@font-face {
    font-family: 'AvenirNextThin';
    src: url('fonts/AvenirNextCyr-Thin.ttf');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'AvenirNextLight';
    src: url('fonts/AvenirNextCyr-Light.ttf');
    font-weight: 300;
    font-style: normal;
}

*{
    margin: 0;
    padding: 0;
}

body{
    min-height: 100vh;
    background-color: white;
    font-family: 'AvenirNextLight';
    padding-top: 100px;
}

header{
    height: 100px;
    background-color: white;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

header a:first-child{
    margin-right: auto;
}

.headerLogo{
    height: 80%;
    padding-left: 30px;
}

.headerLogo img{
    height: 100%;
    width: auto;
}

footer{
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}

.LogoSRC img{
    height: 100px;
    width: auto;
}

nav ul{
    width: 100%;
    padding-right: 20px;
    list-style: none;
    display: flex;
}

nav a{
    height: 100%;
    padding: 20px 20px;
    text-decoration: none;
    display: flex;
    color: black;
    font-weight: bold;
}

nav a:hover{
    color: #d82e26;
}

h1, h2, h3, h4, p{
    color: black;
}

.button-self{
    background-color: transparent;
    border: 2px solid #d82e26;
    border-radius: 10px;
    color: #d82e26;
    cursor: pointer;
    padding: 10px 20px;
}

.button-self:hover{
    background-color: #d82e26;
    color: white;
}

.carousel-indiv-height{
    position: relative;
    height: calc(100vw*0.45);
    min-height: 240px;
    display: flex;
}

.carousel-pic{
    position: relative;
    overflow: hidden;   
    height: 100%;
    width: 100%;
}

.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.menuButton{
    display: none;
}

.color-white{
    color: white;
}

.flip-box{
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.flip-box-front, .flip-box-back{
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    min-height: 400px;
    transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    backface-visibility: hidden;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.3);
}

.flip-box-front{
    transform: rotateY(0deg);
    transform-style: preserve-3d;
}

.flip-box-header{
    display: flex;
    justify-content: center;
}

.flip-back-col{
    background-color: white;
}

.flip-box:hover .flip-box-front{
    transform: rotateY(-180deg);
    transform-style: preserve-3d;
}

.flip-box-back{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: rotateY(180deg);
    transform-style: preserve-3d;   
}

.flip-box:hover .flip-box-back{
    transform: rotateY(0deg);
    transform-style: preserve-3d;
}

.flip-box .inner-front{
    position: absolute;
    left: 0;
    width: 100%;
    padding: 60px;
    outline: 1px solid transparent;
    perspective: inherit;
    z-index: 2;
    transform: translateY(-50%)translateZ(60px)scale(.94);
    top: 70%;
}

.flip-box .inner-front-about{
    position: absolute;
    left: 0;
    width: 100%;
    padding: 60px;
    outline: 1px solid transparent;
    perspective: inherit;
    z-index: 2;
    transform: translateY(-50%)translateZ(60px)scale(.94);
    top: 85%;
}

.flip-box .inner-back{
    position: absolute;
    left: 0;
    width: 100%;
    padding: 60px;
    outline: 1px solid transparent;
    perspective: inherit;
    z-index: 2;
    transform: translateY(-50%)translateZ(60px)scale(.94);
    top: 50%;
}

.flip-box .inner-front h2{
    font-weight: bold;
}

.form-area{
    padding-top: 7%;
    padding-bottom: 10%;
}

.row.single-form{
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.contact-left{
    background-color:#d82e26;
    height: 100%;
    padding: 10% 10%;
    border-radius: 10px;
}

.contact-left h2{
    color: white;
    font-weight: bold;
}

.contact-left p{
    color: white;
}

.contact-right{
    padding: 5% 5%;
    position: relative;
}

.containerKurse{
    width: 60vw;
    margin: auto;
    padding-top: 3%;
    display: flex;
    justify-content: center;
    flex-direction:column;
    align-items: center;
}

.nav-link{
    color: #d82e26;
}

.nav-link:hover{
    color: #d82e26;
}

.accordion-button{
    color: #d82e26;
    width: 60vw;
}

.accordion-button:not(.collapsed){
    color: white;
    font-weight: bold;
    background-color: #d82e26;
    width: 100%;
}

.accordion-button:focus{
    outline: none;
    box-shadow: none;
}

.accordion-button:hover{
    color: white;
    font-weight: bold;
    background-color: #d82e26;
    width: 100%;
}

.middle-strip{
    width: 100%;       
    height: 20vh;
    overflow: hidden;
}

.middle-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.zert-link{
    color: #d82e26;
}

.logo_about{
    height: 200px;
}

.team-photo-div{
    position: relative;
    height: calc(100vw*0.35);
    min-height: 200px;
    display: flex;
}

@media(max-width: 767px){
    .hideOnMobile{
        display: none;
    }
    .menuButton{
        display: block;
    }
    nav ul{
        padding-right: 0px;
    }
    .containerKurse{
        width: 90vw;
    }
    .accordion-button{
        width: 90vw;
    }
}

@media(max-width: 490px){
    .sidebar{
        width: 100vw;
    }
}
