*{
    font-family: 'Montserrat', sans-serif;
}

body{
    background: #f1f2f6;
}

.no-main{
    display: none;
}

.btn-info{
    background: #70a1ff;
    margin: 0 auto;
    display: block;
    width: fit-content;
    margin-top: 10px;
    border-color: #70a1ff;
}

.btn-info:hover{
    background: #80a8f0;
    border-color: #70a1ff;
}

a.btn-info{
    color: #fff;
}

h1{
    font-size: 24px;
    text-align: center;
    display: block;
    margin-top: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

h2{
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    padding-right: 50px;
    border-bottom: 3px solid #70a1ff;
    margin-top: 20px;
}

.carousel-control-prev, .carousel-control-next{
    filter: invert(1);
}

/************************************/
/*********PRELOADER + PLANES*********/
/************************************/

#splash {
    background: #70a1ff;
    background-repeat: repeat-y;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    animation: splash 1.5s ease-in;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
    z-index: 999;
}

#loader {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%,0);
}

#loader:after {
    content: '';
    position: absolute;
    left: 50%;
    margin-left: -8px;
    bottom: -170px;
    width: 3px;
    background: #fff;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 100%);
    height: 200px;
}

#loader:before {
    content: '';
    position: absolute;
    left: 50%;
    margin-left: 8px;
    bottom: -190px;
    width: 3px;
    background: #000;
    background: linear-gradient(to bottom, rgba(0,0,0,.2) 0%, rgba(0,0,0,.2) 50%, rgba(0,0,0,0) 100%);
    height: 200px;
}

#splash .anim {
    height: 100%;
    position: absolute;
    left: 50%;
    width: 100px;
    transform: translate(-50%,100%);
    animation: loader 3s linear;
    animation-fill-mode: forwards;
    -webkit-animation-fill-mode: forwards;
}

@keyframes loader {
    0% {
        transform: translate(-50%,110%);
    }
    30% {
        transform: translate(-50%,50%);
    }
    100% {
        transform: translate(-50%,0%);
    }
}

@keyframes splash {
    0% {
        transform: translate(0%,0%);
    }
    50% {
        transform: translate(0%,0%);
    }
    100% {
        transform: translate(0%,-100%);
    }
}

/***********************************/
/*************NAVBAR****************/
/***********************************/

.logo{
    position: absolute;
    top:35px;
    display: block;
    left: 50%;
    margin-right: -50%;
    transform: translateX(-50%);
    z-index: 10;
}

.logo img{
    width: 70%;
    display: block;
    margin: 0 auto;
}

.upbar{
    background: #f1f2f6;
    text-align: center;
    min-height: 60px;
    padding: 5px;
}

.upbar h1{
    font-size: 0.9vw;
    font-weight: 700;
    display: inline-block;
    margin-left: 10px;
}

.upbar img{
    height: 50px;
}

.upbar a{
    color: #000;
    font-size: 0.75vw;
}

.upbar .nav-item{
    padding-top: 5px;
    margin-top: 13px;
}

nav{
    background: #70a1ff;
    text-align: center;
    min-height: 60px;
}
nav ul.containernav{
    display: inline-flex;
    width: 49%;
    padding: 0 130px;
}

.navbar-light .navbar-nav .nav-link{
    font-size: .9vw;
    white-space: nowrap;
}


.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>a:after {
    content: "\f0da";
    float: right;
    border: none;
    font-family: 'FontAwesome';
}

.dropdown-submenu>.dropdown-menu {
    top: -0.625rem;
    left: 100%;
}


/**************************/
/********FOOTER************/
/**************************/

footer{
    margin-top: 30px;
    background: #70a1ff;
}

footer canvas{
    display: block;
    margin: 0 auto;
}

footer img{
    max-width: 100%;
    display: block;
    margin: 0 auto;
    margin-top: 50px;
}

footer h3{
    font-size: 16px;
    font-weight: 700;
    margin-top: 50px;
    padding-bottom: 10px;
    color: #fff;
}

footer a{
    display: block;
    color: #fff;
    font-size: 14px;
    padding-left: 15px;
}

footer a:hover{
    color: #eee;
}

/**************************/
/****MAIN PAGE CONTENT*****/
/**************************/

.cards{
    padding: 50px 0;
}

.cards h3{
    font-size: 16px;
    text-align: center;
    font-weight: 700;
}

.cards .flip-card-front, .cards .flip-card-back{
    border-radius: 15px;
    box-shadow: -5px 5px 10px #666;
}

.cards .flip-card-front img{
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    object-fit: cover;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 350px;
    border: none;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}


.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front {
    background-color: #bbb;
    color: black;
}

.flip-card-back h4{
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 15px;
    text-align: center;
}

.flip-card-back ul, .flip-card-back li, .flip-card-back p, .flip-card-back a{
    font-size: 14px; color: #fff;
    text-align: left;
}

.flip-card-back {
    background-color: #70a1ff;
    color: white;
    transform: rotateY(180deg);
    text-align: center;
}

.flip-card-back .btn{
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    color: #000;
}

.about{
    margin-top: 20px;
}

.about h2, .news h2{
    padding-right: 70px;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 3px solid #70a1ff;
    margin-bottom: 15px;
}

.about p{
    text-indent: 20px;
}

.newsmain{
    padding: 20px;
}

.newsmain .card{
    margin: 20px 5px;
    width: 33%;
}
.newsmain .card .card-text{
    overflow: hidden;
    line-height: 20px;
    height: 100px;
}

/*
 * Нормування зображень у картках новин
 * на головній сторінці.
 */
.newsmain .card-img-top {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    background: #eef1f6;
}


/*****************************/
/*****TEACHERS PAGE***********/
/*****************************/

.teachers{
    background: #f1f2f6;
    padding-top: 50px;
    padding-bottom: 50px;
}

.teachers h2{
    display: inline-block;
    margin-top: 20px;
    border-bottom: 3px solid #70a1ff;
}

.teacher img{
    padding: 5px;
    margin: 0 auto;
}

.teacher p{
    font-size: 12px;
}

.teacherinfo{
    padding: 0 50px;
    margin-top: 50px;
}

.teacherinfo h1{
    text-align: left;
    margin:0;
    padding:0;
}

.teacherinfo .image{
    padding: 20px;
    border: 10px solid #fff;
    text-align: center;
}

.teacherinfo .image img{
    width: 100%;
}

.teacherinfo .image h3{
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
}

.teacherinfo .image span{
    color: #666666;
    font-size: 12px;
}

.teacherinfo .row{
    display: none;
}

.teacherinfo .row.show{
    display: flex;
}

.teacherinfo a{
    color: #fff;
}

.teacherinfo .biography p{
    margin-bottom: 0;
}

.teacher img.active{
    border: 3px solid #70a1ff;
    box-shadow: 5px 5px 10px #777;
}

.teacher .card:hover{
    box-shadow: 8px 8px 15px #777;
}

.teacher .card{
    text-align: center;
}

.teachersmain img{
    width: 60%;
    display: block;
    margin: 0 auto;
    text-align: center;
    float: right;
}



/***************************/
/**********NEWS PAGE********/
/***************************/

.news .card{
    margin: 10px 0;
}

.news .card .card-text{
    overflow: hidden;
    line-height: 20px;
    height: 100px;
}

.newspage span{
    color: #666666;
    font-size: 12px;
}

.newspage h1{
    margin-bottom: 15px;
}
/***************************/
/*********PHOTOALBUM********/
/***************************/

.photoalbum .carousel{
    margin: 20px auto;
    width: 80%;
    display: block;
    height: 800px;
}

.photoalbum .carousel-caption{
    background: rgba(0,0,0,0.6);
}

/***************************/
/**********JOURNAL**********/
/***************************/

/***************************/
/*********SCIENCE WORK******/
/***************************/


.sciencework h2{
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    padding-right: 50px;
    border-bottom: 3px solid #70a1ff;
    margin-top: 20px;
}

.sciencework img{
    max-width: 100%;
}

.sworks img.main{
    width: 50%;
    display: block;
}

.sworks h3{
    font-weight: 700;
}

.sworks span{
    color: #777;
    display: block;
}

.sworks .btn-info{
    margin: 15px 0;
}

/***************************/
/************HISTORY********/
/***************************/


.history img{
    display: block;
    padding: 30px;
    margin: 20px auto;
    border: 5px solid #888;
}

.history h6{
    text-align: center;
    font-weight: 700;
}

.history p{
    text-indent: 1.5em;
    text-align: justify;
}
/***************************/
/*********LABORATORY********/
/***************************/


.laboratory img, .base img {
    display: block;
    margin: 0 auto;
    width: 70%;
}

/* =========================================================
   Фотогалерея на сторінці новини
   ========================================================= */

.news-media-column {
    margin-bottom: 24px;
}

.news-gallery {
    width: 100%;
    margin-bottom: 10px;
}

.news-gallery__viewport {
    position: relative;
    width: 100%;
    height: 520px;
    height: clamp(340px, 52vw, 540px);
    overflow: hidden;
    background: #eef1f6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(20, 32, 55, 0.1);
    touch-action: pan-y;
    user-select: none;
    outline: none;
}

.news-gallery__viewport:focus-visible {
    box-shadow:
        0 0 0 3px rgba(43, 126, 255, 0.28),
        0 4px 14px rgba(20, 32, 55, 0.1);
}

.news-gallery__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.news-gallery__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.news-gallery__slide img {
    display: block;
    width: 100%;
    height: 100%;

    /*
     * Фото відображається повністю:
     * не стискається, не розтягується і не обрізається.
     */
    object-fit: contain;
    object-position: center;
}

.news-gallery__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(15, 25, 42, 0.62);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.news-gallery__arrow:hover {
    background: rgba(15, 25, 42, 0.86);
}

.news-gallery__arrow:focus-visible {
    outline: 3px solid rgba(43, 126, 255, 0.45);
    outline-offset: 2px;
}

.news-gallery__arrow--prev {
    left: 12px;
}

.news-gallery__arrow--next {
    right: 12px;
}

.news-gallery__counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 5;
    min-width: 54px;
    padding: 5px 10px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 25, 42, 0.68);
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.news-gallery__thumbs {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 2px 1px 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.news-gallery__thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 60px;
    padding: 3px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #eef1f6;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.news-gallery__thumb:hover {
    opacity: 1;
}

.news-gallery__thumb.is-active {
    border-color: #2b7eff;
}

.news-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.news-gallery__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 260px;
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 8px;
    color: #6c757d;
    background: #eef1f6;
    text-align: center;
}

.news-publication-date {
    display: block;
    margin-top: 7px;
    color: #6c757d;
    font-size: 13px;
}


/* =========================================================
   Зображення в картках списку новин
   ========================================================= */

.news .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.news .card {
    width: 100%;
    height: 100%;
}

.news .card-img-top {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    background: #eef1f6;
}

.news .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.news .card-body .btn {
    align-self: flex-start;
    margin-top: auto;
}


