/* Общие стили */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f6f9; /* светлый фон страницы */
    color: #080235; /* основной текст тёмно-синий */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #080235; /* тёмный фон */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1e90ff; /* синий акцент */
    margin-top: 25px;
}

header .logo {
    height: 50px;
}

header nav a {
    color: #ffffff; /* белые ссылки */
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

header nav a:hover {
    color: #1e90ff; /* синий при наведении */
}

/* Age banner */
.age-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ff4c4c; /* красная плашка */
    color: #fff;
    text-align: center;
    padding: 5px;
    font-weight: bold;
    z-index: 999;
}

/* Age popup */
#age-popup {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(8,2,53,0.95); /* тёмно-синий почти непрозрачный */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

#age-popup h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#age-popup p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#age-popup button {
    background-color: #1e90ff; /* синий основной */
    border: none;
    color: #fff; /* текст белый */
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#age-popup button:hover {
    background-color: #1c86ee; /* чуть темнее при hover */
}

/* Main content */
main {
    margin-top: 80px;
    text-align: center;
    padding: 20px;
}

main h1, main h2 {
    color: #080235; /* основной заголовок темный */
}

main h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

main h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

main p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

main button {
    background-color: #1e90ff; /* синий основной */
    border: none;
    color: #fff;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

main button:hover {
    background-color: #1c86ee;
}


/* Footer */
footer {
    background-color: #ffffff; /* всегда белый */
    color: #080235; /* текст тёмный */
    padding: 20px;
    text-align: center;
    border-top: 2px solid #1e90ff; /* синий акцент */
}

footer p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

footer .footer-buttons a img {
    margin: 0 10px;
    vertical-align: middle;
    transition: transform 0.3s;
}

footer .footer-buttons a img:hover {
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }

    main h1 {
        font-size: 2rem;
    }

    main h2 {
        font-size: 1.5rem;
    }

    main p {
        font-size: 1rem;
    }

    .game-card {
        width: 90%;
    }

    footer .footer-buttons a img {
        margin: 5px;
        height: 35px;
    }
}

#hero {
    height: 80vh; /* 80% от высоты окна */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    padding: 20px;
    color: #fff;

    /* Градиентный фон */
    background: linear-gradient(135deg, #1e90ff, #6a5acd, #00ced1);
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    border-radius: 15px;
}

/* Анимация плавного переливания градиента */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    max-width: 700px;
}

#hero button {
    background-color: #fff;
    color: #1e90ff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 15px 30px;
    font-size: 1rem;
}

#hero button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

#hero img {
    width: 150px;       
    max-width: 90%;  
    height: auto;      
    margin: 20px auto;
    border-radius: 10px;
    display: block;    
}

/* Медиазапросы для мобильных */
@media (max-width: 950px) {
    #hero {
        height: auto; /* блок подстраивается по высоте */
        padding: 30px 15px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
        max-width: 90%;
    }

    #hero button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    #hero img {
        width: 120px;
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.6rem;
    }

    #hero p {
        font-size: 0.95rem;
    }

    #hero button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    #hero img {
        width: 100px;
    }
}


/* Общие заголовки секций */
section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #080235;
    text-align: center;
}

/* Секции */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

/* Games Section */
#games .game-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.game-card {
    background: #ffffff;
    color: #080235;
    padding: 15px;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.game-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.game-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.game-card button {
    background-color: #1e90ff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.game-card button:hover {
    background-color: #1c86ee;
    transform: scale(1.05);
}

/* Benefits Section */
#benefits ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
}

#benefits li::before {
    content: "✅";
    margin-right: 10px;
}

/* About Section */
#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #080235;
    text-align: center;
}

/* Community Section */
#community p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #080235;
    text-align: center;
}

/* Reviews Section */
#reviews .reviews {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #080235;
}

#reviews p {
    margin-bottom: 15px;
}

/* Responsible Section */
#responsible p {
    max-width: 800px;
    margin: 10px auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #080235;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-card {
        width: 90%;
    }

    section h2 {
        font-size: 1.8rem;
    }

    #benefits li, #about p, #community p, #reviews p, #responsible p {
        font-size: 1rem;
    }
}


.game-button {
    display: inline-block;
    background-color: #1e90ff;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.3s;
}

.game-button:hover {
    background-color: #1c86ee;
    transform: scale(1.05);
}

#contact h2 {
    font-size:2rem;
    text-align:center;
    margin-bottom:15px;
    color:#080235;
}

#contact form input,
#contact form textarea {
    font-size:1rem;
}

#contact form button:hover {
    background-color:#1c86ee;
    transform: scale(1.05);
}


#ratings h2 {
    font-size:2rem;
    text-align:center;
    color:#080235;
    margin-bottom:20px;
}

.rating-card {
    background:#f0f4f8;
    padding:20px;
    border-radius:10px;
    width:250px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.rating-card:hover {
    transform: translateY(-5px);
    box-shadow:0 8px 20px rgba(0,0,0,0.2);
}

.rating-card h3 {
    margin-bottom:10px;
    font-size:1.2rem;
    color:#080235;
}

.rating-card p {
    font-size:1rem;
    color:#333;
    margin-bottom:10px;
}

.rating-card .stars {
    font-size:1.2rem;
    color:#ffcc00; /* золотой цвет звезд */
}

/* Адаптивность */
@media (max-width:768px){
    .rating-card {
        width:90%;
    }
}


.site-header {
    display: flex;
    justify-content: space-between; /* Лого слева, бургер справа */
    align-items: center; /* Вертикальное центрирование */
    padding: 15px 20px;
    background-color: #001f36;
    color: #fff;
    position: relative;
     flex-wrap: nowrap; 
}

.logo img {
    height: 50px;
    max-height: 50px;
}

.burger-btn {
    display: none; /* показываем только на мобилках */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Навигация */
.main-nav {
    display:flex;
    gap:15px;
    flex-wrap: nowrap;
}

.main-nav a {
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    color:#1e90ff;
}

/* Бургер */
.burger-btn {
    display:none;
    flex-direction: column;
    justify-content: space-between;
    width:25px;
    height:20px;
    background:transparent;
    border:none;
    cursor:pointer;
    padding:0;
    margin-top: 5px;
}

.burger-lines {
    display:block;
    height:3px;
    width:100%;
    background:#fff;
    border-radius:2px;
    transition: all 0.3s ease;
}

/* Анимация для активного меню */
.burger-btn.active .burger-lines:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.burger-btn.active .burger-lines:nth-child(2) {
    opacity:0;
}
.burger-btn.active .burger-lines:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Мобильная навигация */
@media (max-width:900px){
 #header{
    flex-wrap: nowrap;
 }

    .main-nav {
        position:absolute;
        top:80px;
        flex-wrap: nowrap;
        right:0;
        background-color:#001f36;
        flex-direction:column;
        width:200px;
        padding:15px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-radius:0 0 0 10px;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .burger-btn {
        display:flex;
    }


     .burger-btn {
        display: flex; /* показываем бургер */
    }

    .main-nav {
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        flex-direction: column;
        background-color: #001f36;
        padding: 15px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-radius: 0 0 0 10px;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    /* Чтобы лого и бургер оставались в одной линии */
    .site-header {
        flex-wrap: nowrap; 
    }
}


main ul {
    list-style: disc inside;
    margin-bottom: 15px;
    padding-left: 20px;
}

main ul li {
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width:768px){
    main {
        padding: 20px;
        font-size: 1rem;
    }

    main h1 {
        font-size: 2rem;
    }

    main h2 {
        font-size: 1.5rem;
    }
}