* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

body {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#glavTYK a{
    color: #FFF145;
}

main {
    flex: 1; /* Растягивается, чтобы занять пространство */
}

#perKabBut {
    z-index: 100;
    margin-top: -1rem;
    display: block;
    position: absolute;
    width: 16rem;
    margin-left: -17rem;
    margin-top: -1.5rem;
    padding: 0.8rem 0.1rem;
    text-align: center;
}

body::-webkit-scrollbar {
    width: 15px; /* Ширина всего элемента навигации */
}
  
body::-webkit-scrollbar-track {
    background: #fff; /* Цвет дорожки */
}
  
body::-webkit-scrollbar-thumb {
    background-color: #53B5C5; /* Цвет бегунка */
    border-radius: 20px; /* Округление бегунка */
    border: 0.1px solid #4fadbc; /* Оформление границ бегунка */
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-bar input {
    flex: 1;
    margin-top: 8rem;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.search-bar button {
    padding: 0.7rem;
    cursor: pointer;
    background-color: #53b5c5;
    border: none;
    color: white;
    border-radius: 4px;
    margin-top: 8rem;
}

.no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: 5rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    position: fixed;
    z-index: 900;
    width: 100%;
}

.logo img {
    height: 60px;
    margin-left: 20px;
    margin-bottom: -15px;
}
header nav {
    display: flex;
    width: 50vw;
    justify-content: flex-end;
}
header nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 20px;
}
header nav li{
    box-sizing: border-box;
}
header nav a {
    text-decoration: none;
    /* text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2); */
    color: #474747;
    font-weight: 900;
    display: flex;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 0.6rem;
    font-size: 1.2rem;
}
header nav li:hover a {
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
}
header nav li > a.menugames:after{
    content: " ";  
    background: url(img/oui_arrow-up_black.png) no-repeat center center;
    width: 1rem;
    height: 1rem;
    display: block;
    
}

header nav li:hover{
    /*border: 5px;
    border-color: #53B5C5;
    background-color: #E5F4F7;
    border-radius: 5px;*/
}

header nav img {
    margin-left: 10px;
}

.register-btn {
    background-color: #FFF145;
    border: none;
    color: #474747;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    padding: 13px 60px;
    border-radius: 50px;
    cursor: pointer;
    margin-right: 20px;
    font-size: 1.15rem;
    text-decoration: none;
}

.register-btn:hover {
    background-color: #FFDA18;
}

.dropdown {
    float: left;
    overflow: hidden;
  }

.dropdown .dropbtn {
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    /* text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2); */
    color: #474747;
    font-size: 1.2rem;
    font-weight: 900;
    display: flex;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 1px;
    border: none;
    /* font-size: 1rem; */
    background-color: #fff;
}
  
  
.dropdown:hover .dropbtn {
    /* border: 2px solid #53B5C5; */
    display: flex;
    /* border-radius: 0.5rem; */
    /* background: #E5F4F7; */
    box-sizing: border-box;
    /* padding: calc(1rem - 4px); */
    gap: 1px;
    font-size: 1.2rem;
}

#dropdown-content-ssulkaup {
    background-color: #fff;
    color: #373737;
    border: none;
    border-radius: 5rem;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkadown{
    background-color: #fff;
    color: #373737;
    border: none;
    border-radius: 5rem;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

#dropdown-content-ssulkaup:hover{
    display: block;
    background-color: #E5F4F6;
    border-radius: 0.5rem 0.5rem 0rem 0rem;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkadown:hover{
    display: block;
    background-color: #E5F4F6;
    border-radius: 0rem 0rem 0.5rem 0.5rem;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkabet{
    background-color: #fff;
    color: #373737;
    border: none;
    border-radius: 5rem;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}
#dropdown-content-ssulkabet:hover{
    display: block;
    background-color: #E5F4F6;
    border-radius: 0rem 0rem 0rem 0rem;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    /* border: 2px solid #53B5C5; */
    border-radius: 0.5rem;
    font-size: 1.2rem;
}
  
  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-shadow: none;
    text-align: left;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
  
  .dropdown-content a:hover {
    background-color: #E5F4F6;
    font-size: 1.2rem;
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* Стили для кнопки-гамбургера */
.hamburger {
    display: none; /* по умолчанию скрыта */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 20px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #474747;
    margin: 4px 0;
}





main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.blog {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 3rem;
    min-width: 70rem;
}

.blog-post {
    display: flex;
    background-color: #EEF8FA;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.blog-post:hover {
    background-color: #E7F4F7;
}

.blog-post img {
    height: auto;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 1rem;
}

.post-info {
    padding: 20px;
}

.post-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.post-info h2 {
    color: #474747;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.details-btn {
    color: #53B5C5;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
}

.details-btn:hover {
    color: #004066;
}

footer {
    background-color: #53B5C5;
    color: #fff;
    padding: 1rem 1rem 2rem 1rem;
    font-weight: 600;
    text-align: center;
    margin-top: -10px;
    /* margin-bottom: 2rem; */
}

.cloud-footer-content{
    background-color: #fff;
}

.cloud-footer-content img {
    width: 100%;
    margin-top: 50px;
}

.footer-logo img {
    display: block;
    text-align: left;
    margin-left: 60px;
    margin-top: 35px;
}

footer nav ul {
    padding: 20px;
    display: flex;
    justify-content: right;
    gap: 2rem;
    list-style: none;
    margin-right: 60px;
    margin-top: -70px;
}

footer nav a {
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.3rem;
}

.video-logo {
    display: block;
    background-color: #53B5C5;
    color: #fff;
    width: 25%;
    font-size: 2rem;
    font-weight: 900;
    padding: 0.5rem 2.3rem;
    border-radius: 1rem 1rem 0rem 0rem;
}

footer nav li:hover a{
    text-shadow: 2px 2px 1px rgba(0, 0, 0, 0.15);
    color: #fff580;
}

footer nav li > a.menugames:after{
    content: " ";  
    background: url(img/oui_arrow-up_black.png) no-repeat center center;
    width: 1rem;
    height: 1rem;
    display: block;
    
}

footer p {
    margin-top: 3rem;
    color: #fff;
    text-align: center;
}

.arrow-footer img {
    display: flex;
    margin-left: 4.5rem;
    margin-top: -16px;
    margin-bottom: 30px;
}



@media (max-width: 1300px) {
   .menu-toggle {
        display: inline-block; /* Показать бутерброд-меню */
        position: absolute;
        top: 10px;
        left: 10px;
    }

    nav {
        display: none;
    }
    
    #navfoot{
        display: block;
    }

}

@media (max-width: 1240px) {
    .blog-post {
        display: flex;
        background-color: #EEF8FA;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        width: 60rem;
    }
    .blog {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 3rem;
        min-width: 70rem;
        align-items: center;
    }
    .search-bar {
        display: flex;
        align-items: center;
        gap: 5px;
        width: 60rem;
        margin: 0 auto;
    }

}

@media (max-width: 1180px) {
    .blog-post {
        width: 50rem;
    }
    .blog {
        min-width: 60rem;
    }
    .search-bar {
        width: 50rem;
    }

}



@media (max-width: 1099px) {
  /* Стили для гамбургера остаются, добавляем позиционирование и z-index */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 30px;
    position: relative; /* или fixed, если нужно */
    z-index: 1100;      /* значение выше, чем у меню */
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #474747;
    margin: 3px 0;
  }
  
  /* Меню задаем фиксированное позиционирование с меньшим z-index */
  header > nav {
    order: 2;
    display: none;  /* по умолчанию скрыто */
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;       /* ширина бокового меню */
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding-top: 70px;  /* отступ сверху, чтобы не перекрывать header */
    z-index: 1000;      /* ниже, чем у гамбургера */
  }
  
  /* Остальные стили остаются */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  header > .hamburger { order: 0; }
  header > .logo { order: 1; }
  header > form { order: 3; }
  
  .logo img {
    height: 60px;
    margin-left: 90px;
    margin-bottom: 8px;
    margin-top: -45px;
    z-index: 1100;
  }
  
  .dropdown:hover .dropdown-content {
        display: block;
        width: 100%;
        margin-left: -31px;
    }

    .dropdown-content a {
        float: none;
        color: black;
        padding: 12px 10px 12px 46px;
        text-decoration: none;
        display: block;
        text-shadow: none;
        text-align: left;
        font-size: 1.2rem;
        text-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
    }
}

@media (max-width: 1020px) {
    .blog-post {
        width: 40rem;
    }
    .blog {
        min-width: 45rem;
    }
    .search-bar {
        width: 40rem;
    }

}

@media (max-width: 880px) {
           .hero-image img {
        margin-top: 40px;
        margin-right: 0px;
        width: 28rem;
    }
    
        .access-btn-hero {
        font-family: 'Nunito', sans-serif;
        background-color: #FFF145;
        border: none;
        padding: 15px 25px;
        border-radius: 30px;
        cursor: pointer;
        font-weight: 800;
        font-size: 0.9rem;
        margin-top: 30px;
        color: #474747;
        margin-bottom: 2rem;
    }
    
    #log_logo {
    color: #fff580;
    margin-top: 6rem;
    font-size: 4rem;
    margin-bottom: 2rem;
}

    #oblmainbig {
        margin-left: 16rem;
        position: absolute;
        margin-top: 4.5rem;
        z-index: 10;
        width: 3rem;
    }
    
        #twostar {
        margin-left: 20.5rem;
        position: absolute;
        margin-top: 5rem;
        /* z-index: 0; */
        width: 2.7rem;
    }
        #starmain {
        margin-left: -2rem;
        position: absolute;
        margin-top: 4.6rem;
        z-index: 10;
        width: 2rem;
    }
        .feature img {
        height: 30px;
    }
       .feature p {
        margin-top: 5px;
        margin-left: 15px;
        font-weight: 800;
        font-size: 0.9rem;
        color: #474747;
    }
    
      .video-section {
        padding: 40px 40px 0px 140px;
        background-color: #fff;
    }
        #oblakoUp {
        margin-left: 9rem;
        position: absolute;
        margin-top: 3rem;
        z-index: 10;
        width: 6rem;
    }
        .access-arrow {
        position: absolute;
        bottom: 5rem;
        left: 69%;
        width: 5rem;
    }
    
    footer nav ul {
    padding: 20px;
    display: flex;
    justify-content: right;
    align-items: end;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    /* margin-right: 60px; */
    margin-top: -70px;
}

    footer nav a {
        color: #ffffff;
        font-weight: 800;
        text-decoration: none;
        font-size: 1.3rem;
    }
    
} 

@media (max-width: 780px) {
    .blog-post {
        flex-direction: column;
        text-align: center;
        width: 30rem;
        padding: 1rem;
        
    }
    
        .blog {
        min-width: 33rem;
    }
    
    .blog-post img {
        height: 17rem;
        object-fit: cover;
        border-radius: 1rem;
        margin-right: 0px;
    }


    .search-bar {
        width: 40rem;
    }

        .search-bar {
        width: 30rem;
    }

}





@media (max-width: 610px) {
.register-btn {
    background-color: #FFF145;
    border: none;
    color: #474747;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    padding: 13px 20px;
    border-radius: 50px;
    cursor: pointer;
    margin-right: 20px;
    font-size: 1.15rem;
}
    #oblakoUp {
        width: 0rem;
    }
        .access-arrow {
        width: 0rem;
    }
}

@media (max-width: 590px) {
    .blog-post {
        flex-direction: column;
        text-align: center;
        width: 24rem;
        padding: 1rem;
    }
    
        .blog {
        min-width: 24rem;
    }
    
    .blog-post img {
        height: 16rem;
        object-fit: cover;
        border-radius: 1rem;
        margin-right: 0px;
    }


    .search-bar {
        width: 24rem;
    }


}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .register-btn, .access-btn-hero, .access-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}