/* PFS Styles - https://www.profinance.ru/ */

/* -------------- something -------------- */

.sticky-top {
    top: max(4rem, 0.1%);
}

/* -------------- navbar -------------- */

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* navbar small transparency */
.navbar {
    opacity: 0.975;
    /* making height smaller */
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    /* border: 1px solid red !important; */
}

.navbar-brand img {
    height: 25px;
    margin-bottom: 2px;
}

.offcanvas {
    width: 300px;
}

.offcanvas-header img {
    height: 25px;
}

.offcanvas-header button {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

@media screen and (max-width: 1429px) {
    .nav-link {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.navbar li {
    padding-left: 6px !important;
    padding-right: 6px !important;
}

@media screen and (min-width: 1430px) {
    .navbar li {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}


/* -------------- top -------------- */

#pfs-ad-top {
    margin-top: 50px !important;
    x-border: 1px solid red !important;
    x-height: 250px !important;
}

.article blockquote {
    font-size: 16px;
    font-style: italic;
    border-left: 4px solid #5E9BD4;
    padding-left: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
}

hr {
    display: none;
}

.x--red {
    border: 1px solid red !important;
}

.telegram-images img {
    max-width: 320px !important;
    min-width: 320px !important;
    width: 320px !important;
}


@media only screen and (min-width: 1448px) {

    .x-navbar,
    #x-yandex_rtb_R-A-9524-96,
    #x-yandex_rtb_R-A-9524-92 {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }
}


/* -------------- news -------------- */

#news {
    min-width: 0px;
    max-width: 728px;
}

#news a:link,
#news a:visited,
#news a:active {
    text-decoration: none !important;
    font-weight: bold !important;
}

#news a:hover {
    text-decoration: underline !important;
}

#news .article .content strong {
    font-weight: bold !important;
}

.article .content a,
.article .content strong,
.latest-news a,
.latest-news strong {
    text-decoration: none !important;
    font-weight: bold !important;
}

.article .content a:hover,
.latest-news a:hover {
    text-decoration: underline !important;
    font-weight: bold !important;
}

/*
.article .content a:hover, .article .content strong:hover,
.latest-news a:hover, .latest-news strong:hover {
    text-decoration: underline !important;
    font-weight: bold !important;
}
*/

.article h3 {
    margin-top: 0 !important;
}


/* -------------- telegram widget -------------- */
#telegram-mobile {
    max-width: 439px !important;
    margin: 0 auto;
}


/* -------------- ads-right -------------- */
#pfs-ad-right {
    width: 320px;
    text-align: right;
}

/* -------------- ads-bottom -------------- */
#pfs-ad-bottom {
    text-align: center;
    border: 1px solid #ddd !important;
}

#yandex_rtb_R-A-9524-96 {
    position: relative;
    z-index: 0;
    x-height: 250px;
    x-border: 1px solid red !important;
}

/* -------------- footer -------------- */
footer .li {
    line-height: 0.8rem !important;
}

footer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#footer-logo {
    height: 25px;
}

.footer-icon {
    height: 28px;
}

footer a .footer-icon {
    text-decoration: none !important;
    margin-right: 4px;
}

/* паддинг от меню */
.main {
    padding-top: 5rem !important;
}

.redx {
    border: 1px solid red;
}


/* light/dark mode */
#lightSwitch {
    display: none;
    cursor: pointer;
}

#sun {
    display: block;
    cursor: pointer;
}

#moon {
    display: none;
    cursor: pointer;
}

#lightSwitch:checked~#sun {
    display: none;
}

#lightSwitch:checked~#moon {
    display: block;
}

/* верхнее меню */
.navbar .bg-light {
    // background-color: #ececec !important;
    //    opacity(0.7);
}

.bg-light.bg-dark,
footer {
    //    background-color: #6e6e6e !important;
    //    opacity(0.7);
}

.navbar li {
    font-size: 18px;
    font-weight: 600;
    padding-left: 8px;
    padding-right: 8px;
}

.navbar li a {
    //  color: #212529;
}

.navbar-light .navbar-toggler {
    border-color: transparent !important;
}

.dropdown-menu {
    max-height: 70vh;
    overflow-y: scroll;
}

/* убираем полосы по бокам у блока с графиком до ширины 540 пикселей */
@media (max-width: 540px) {
    .container-chart {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* фикс для меню */
.scroll_fix {
    margin-top: 50px;
}

.text-cont {
    max-width: 970px;
}