@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab&family=Vollkorn&display=swap');


@font-face {
    font-family: 'ALSRubl';
    src: url('/fonts/ruble.ttf');
}

:root{
    --black-color: #1B1B1B;
    --main-text-color: #F4F4F4;
    --second-text-color: #D9DAFF;
    --default-width: 1240px;
    --default-inline-padding: 15px;
}

*{
    box-sizing: border-box;
    font-family: 'Roboto Slab', serif;
    margin: 0;
}
body{
    padding:0;
    background-color: var(--black-color);
}

h2{
    background: linear-gradient(93deg, #FFF -53.76%, #D9DAFF 59.49%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}
h1{
    font-size: 36px;
    color: var(--main-text-color);
}

.roubleSign{
    font-family: 'ALSRubl';
    font-size: 24px;
    color: var(--second-text-color);
}


.logout-btn, .icon-btn{
    background: transparent;
    padding: .5rem .65rem;
    border: none;
    transition: .15s ease-in;
}
.logout-btn i, .icon-btn i {
    font-size: 1.5rem;
}
.logout-btn:hover, .icon-btn:hover{
    opacity: .6;
}

p,a,span, h3, span, ul, li, ol{
    color: var(--main-text-color);
    font-size: 16px;
}
h2{
    font-size: 24px;
    font-weight: 400;
}
h3{
    font-size: 20px;
    font-weight: 400;
}
img{
    max-width: 100%;
}
ul, ol{
    padding-inline-start: 0;
    list-style-position: inside;
}
a:hover{
    opacity: .8;
}
ul {
    margin: 10px;
}
* > ul:not(:last-child){
    margin-bottom: 24px;
}
ul.dash {
    list-style-type: none;
    padding-inline-start: 12px;
}
ul.dash > li {
    text-indent: -20px;
}
ul.dash > li:before {
    content: "-";
    text-indent: -20px;
}

ol > li:not(:last-child){
    margin-bottom: 24px;
}


/*
Стили для уроков
 */

#logoutButton{
    opacity: .8;
    cursor: pointer;
}
#logoutButton:hover{
    opacity: 1;
}
header > div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

footer{
    margin-top: 48px;
    margin-bottom: 24px;
}
footer > div{
    border-top: 1px solid rgba(244,244,244,.2);
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding-top: 24px;
    align-items: center;
}
footer > div > a:last-child{
    justify-self: end;
}

footer > div > a{
    text-decoration: none;
}
footer > div > a:hover{
    text-decoration: underline;
}

section, header, footer{
    width: 100%;
    padding: 8px;
}
section > div, header > div, footer > div{
    max-width: var(--default-width);
    width: 100%;
    margin-inline: auto;
}

.navigationSection{
    margin: 48px 0;
}
.navigationSection > div > ul{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 24px;
    list-style: none;
    padding-inline-start: 0;
    margin: 0 !important;
}

.navigationSection > div > ul > li > a{
    width: 100%;
    text-align: center;
    height: 100%;
}

.imagesSection{
    height: fit-content;
    margin-top: 48px;
}


.additionalSec {
    margin-top: 48px;
}

.additionalSec > div{
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.additionalSec > div > h2{
    margin-bottom: 12px;
}


/*
Слайдеры картинок
 */

.popupSec{
    display: none;
    position: fixed;
    top:0;
    left: 0;
    bottom:0;
    right:0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.3);
    backdrop-filter: blur(4px);
    z-index: 3;
    padding-bottom: 100px;
    overflow-y: scroll;
}

.splide__slide{
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;
}
.openPopupImage{
    cursor: pointer;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 200px;
}
.openPopupImage:hover{
    opacity: .9;
}

.containingImage{
    max-width: 100%;
    max-height: 100%;
}

.closePopupButton{
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 8px 12px;
    font-size: 18px;
    color: var(--main-text-color);
}


.inactiveNav{
    background: #A4A5AB !important;
}
.inactiveNav:hover{
    background: linear-gradient(93deg, #FFF -53.76%, #D9DAFF 59.49%) !important;
}

.naviControlsContainer{
    display: flex;
    gap: 24px;
    justify-content: flex-end;
    margin-top: 48px;
}

.addSec{
    background-color: var(--black-color);
}

.addSec > div > h1 {
    text-align: center;
}

.addSec > div > div {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.addSec > div > div > a {
    display: inline-block;
}
.addSec > div > div > a:hover {
    opacity: .7;
}

.addSec > div > div.naviControlsContainer{
    align-items: flex-end;
}

.linkList{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    min-height: 48vh;
}
.linkList >a {
    min-width: 350px;
}

.thanksBlock{
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
}

#qarumLink{
    justify-self: center;
    text-align: center;
    color: #7B8090;
}

#closeImgPopup{
    position: absolute;
    width: 100vh;
    height: 100vh;
    z-index: 3;
    top:0;
    left: 0;
    bottom: 0;
    right: 0;
    max-width: unset;
}

.courses_container h1{
    text-align: center;
    margin-bottom: 48px;
}
.courses_list{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.course_cover{
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    padding: 24px;
}

.navigationSection a{
    font-size: 12px;
}

@media screen and (max-width: 900px) {
    .activeNav, .inactiveNav, .lightButton, .secondButton{
        font-size: 18px;
        padding: 8px 12px;
    }
    .navigationSection > div > ul{
        grid-template-columns: 1fr;
        gap: 12px;
    }
    h1{
        font-size: 24px;
    }
    h2{
        font-size: 20px;
    }
    .naviControlsContainer{
        flex-direction: column;
        gap: 8px;
    }
    header > div{
        justify-content: center;
    }
    .addSec > div > div.naviControlsContainer{
        align-items: stretch;
    }

}

@media screen and (max-width: 700px){
    .linkList{
        align-items: stretch;
        gap: 12px;
    }
    footer > div{
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        grid-template-areas:
                "FRST"
                "LAST"
                "QARUM";
    }
    footer > div > a:last-child{
        justify-self: center;
    }
    footer > div > a:first-child{
        grid-area: FRST;
    }
    footer > div > a:last-child{
        grid-area: LAST;
    }
    #qarumLink{
        grid-area: QARUM;
    }
}