html {
    scroll-behavior: smooth;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #1d1d1d;
    color: white;
    
}

/* Custom scrollbar styling */
/* ::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0C0C27;
}

::-webkit-scrollbar-thumb {
    background: #1d1d1d;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e00070;
}
 */
.logo img {
    width: 200px;
}

.navbar {
    top: 40px;
    left: 20px;
    right: 20px;
    padding: 11px 0;
    display: flex;
    font-size: 16px;
    align-items: center;
    flex-wrap: wrap;
    transition: background 0.3s, color 0.1s, top 0.3s, padding 0.3s, margin 0.3s, box-shadow 0.3s;
    z-index: 1000;
}

.navbar .navbar-items {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.navbar.sticky {
    position: fixed;
    background: #fff;
    color: #ff4081;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* White shadow */
}

.navbar .navbar-items a {
    color: black;
    /* Use inherit to ensure color change on scroll */
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s;
}

.container {
    min-height: 100vh;
    width: 90vw;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    /* Ensure content is above particles */
}


.dropdown {
    position: relative;
    display: none;
    width: 100%;
}

.dropbtn {
    color: black;
    background-color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-top: 1px solid #cdcdcd;
    cursor: pointer;
    width: 100%;
    text-align: start;
    display: flex;
    gap: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    z-index: 1000;
    width: 100%;
    background: white;
    padding: 0 10px;
    margin: 0;
    list-style: none;
    max-height: 50vh;
    border-bottom: 2px solid #070b21;
    overflow-y: auto;
}

.dropdown-content li {
    padding: 10px 0;
}

.dropdown-content li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}


.dropdown-content li a.active {
    border-color: black;
}

.opened{
    display: block;
}

/* 
.dropdown ul .active-year {
    font-weight: bold;
} */

h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

p {
    font-size: 1.2em;
    margin-bottom: 1em;
}
 

footer {
    background: #0C0C27;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}


footer .logo img {
    width: 300px;
}

.our-histories {
    text-align: center; 
    font-size: 100px
}


.years-nav::-webkit-scrollbar-track {
    background: #333; /* Цвет фона полосы прокрутки */
}

.years-nav::-webkit-scrollbar {
    width: 4px;
}

.years-nav::-webkit-scrollbar-thumb {
    background-color: #888; /* Цвет бегунка */
    border-radius: 10px; /* Скругление бегунка */
    border: 2px solid #f1f1f1; /* Отступ вокруг бегунка */
}

.years-nav {
    position: fixed;
    top: 50%;
    left: 100px;
    z-index: 100;
    transform: translate(-50%, -50%);
    max-height: 600px;
    overflow-y: auto;
    
}

.years-nav ul {
    list-style: none;
}

a {
    text-decoration: none;    
}
.history-block a{
    color: white;
    text-decoration: underline;
    font-weight: bold;

}

.years-nav ul li {
    margin: 15px;
}

.years-nav ul li a {
    font-weight: bold;
    color: white;
    border-bottom: 2px solid transparent;
    padding: 4px;
}


.years-nav ul li a:hover,
.years-nav ul li a.active {
    border-color: white;
}

.history {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap-reverse;
    /* gap: 70px; */
    width: 70%;
    min-height: 80vh;
    /* margin: 20px; */
    margin-top: 100px;
}

.history #year {
    position: absolute;
    bottom: 40%;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: .9;
    z-index: 50
}

.history #year .text {
    font-weight: bold;
    font-size: 250px;
    color: #fff;
}


.history #year .link {
    color: white;
    font-size: 12px;
    display: inline;
    width: max-content;
    border-bottom: 1.5px solid white;
    margin: auto;
}

.history #year .link:hover {
    border-bottom: 1px solid white;
}

.detail {
    /* flex-direction: initial; */
    /* justify-content: center;
    gap: 20px;
    flex-wrap: wrap; */
}

.history-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50vh;    
}

.history-block:nth-child(even) {
    flex-direction: row-reverse;
}

.splide__slide img {
    width: 600px;
    /* Set the width to 600px */
    height: auto;
    /* Maintain the aspect ratio */
}


.slide-container {
    max-width: 600px;
}

#image-slider {
    width: 600px;
}
    
.splide__list {
    align-items: center;
}
    
.detail .content {
    max-width: 700px;
    padding: 10px;
}
    
.year-detail {
    font-weight: bold;
    font-size: 30px
}

.nav-links a {
    color: black
}

img.imageOnMainPage {
    filter: grayscale(1);
    transition: 1s;
}



@media (max-width: 800px) {
    .dropdown {
        display: block;
    }
    .navbar {
        padding: 0px; 
    }
    
    .our-histories {
        font-size: 65px
    }

    .history #year .text {
        font-size: 120px !important;
    }

    .history {
        justify-content: center;
    }    
    .container.detail {
        padding: 5px;
    }
    .history-block {
        flex-direction: column-reverse;
        min-height: 40vh
    }

    .history-block:nth-child(even) {
        flex-direction: column-reverse;
    }
    
    .years-nav {
        display: none;
    }

    .splide__slide img {
    width: 400px;
    /* Set the width to 600px */
    height: auto;
    /* Maintain the aspect ratio */
    }

    .slide-container {
        max-width: 400px;
    }
    
    #image-slider {
        width: 400px;
    }

    .year-detail {
        margin-top: 20px;
    }
    
    .history-block .content iframe {
        width: 100%;
   }
   
   .history-block .content ul {
        padding: 0;
        max-width: 93%;
        margin-left: auto;
    }
   
   .hide-mobile{
       display: none;
   }
}