html {
    /* height: 100%; показва грида по пълната височина на екрана и фиксира footer в дъното на прозореца (footerfix.js) */
    min-height: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: none; /* Не позволява промяна на размера на текста при завъртане на екрана (landscape/portrait) */
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* Remove Gray Highlight When Tapping Links in Mobile Safari */
}

body {
    height: 100%; /* показва грида по пълната височина на екрана. Ако го има НЕ фиксира footer в дъното на прозореца (footerfix.js) */
    margin: 0 auto;
    padding: 0;
    overflow-y: scroll; /* показва вертикален scrolbar независимо от съдържанието / предотвратява подскачането на съдържанието при динамично зареждане на съдържание */

    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.7875rem;

    max-width: 1440px;
}

main {
    display: block; /* fix IE -> main */
    /* overflow: hidden; https://stackoverflow.com/questions/20689575/css-margin-top-of-h1-affects-parents-margin*/
    background-color: #FFF;
}

img {
    border: none;
    outline: none;
    line-height: 0;
    vertical-align: middle; /* TODO: da se testwa */
    max-width: 100%; /* TODO: da se testwa */
}

a {
    outline: 0; /* Removing The Dotted Outline */
    -webkit-tap-highlight-color: rgba(0,0,0,0);  /* Remove Gray Highlight When Tapping Links in Mobile Safari */
    /*cursor: pointer;*/
    text-decoration: none;
} /* ??? */

*:focus { outline: 0; }

.cf:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
} /* clearfix */

/*.hidden { display: none !important; }*/
.hidden { display: none; }

main a,
section.mobile a,
.mgPopup a {
    color: #204182;
}

main a:hover,
section.mobile a:hover,
.mgPopup a:hover {
    color: #008ADB;
}

div.logintext {
    text-align: center;
    padding: 10px;
}

main article {
    padding: 10px;
}

a.akciq {
    background-color: red;
    display: inline-block;
    padding: 1px 5px;
    color: #FFF;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
}

a.akciq.disabled {
    display: none;
}

@media all and (min-width: 961px) {
    main aside {
        display: inline-block;
        vertical-align: top;
        width: 280px;
        background-color: #f8f8f8;
        border-bottom: 2px solid #d1d1d1;
        margin-bottom: 10px;
    }

    main article {
        display: inline-block;
        vertical-align: top;
        width: calc(100% - 300px);
    }
}

@media all and (max-width: 960px) {
    main aside { display: none; }
}

img.loader {
    opacity: 0;
    transition: opacity .5s ease;
}

img.loader.show {
    opacity: 1;
}

h2 { font-size: 18px; margin: 0; }
h3 { font-size: 14px; margin: 0; }
h4 { font-size: 12px; margin: 0; }

h3.bluetitle {
    background-color: #008adb;
    padding: 8px 10px;
    color: #FFF;
    margin-bottom: 3px;
}

div.bluetitle {
    background-color: #008adb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

div.bluetitle h3 {
    padding: 8px 10px;
    color: #FFF;
}

div.bluetitle .mgInfo {
    background-image: url(../svg/info.svg);
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: center;

    display: inline-block;
    width: 38px;
    height: 32px;

    cursor: pointer;
}

.r { text-align: right; }

@media only screen and (-webkit-min-device-pixel-ratio: 1.5) and ( min-width: 640px),
only screen and (-o-min-device-pixel-ratio: 3/2) and ( min-width: 640px),
only screen and (min--moz-device-pixel-ratio: 1.5) and ( min-width: 640px),
only screen and (min-device-pixel-ratio: 1.5) and ( min-width: 640px) {
    /*body { font-size: 12px; }*/

    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    h4 { font-size: 16px; }
}

.hide { display: none !important; }