@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #5A2A00;      
    background: #FFF7E6; 
}

/* Header styles */
.main-header {
    background-color: #B11A1A; 
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 80px;
    width: auto;
}

.burger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    transition: 0.3s;
}

.login-btn {
    background-color: #FFD700;
    color: #7A0A0A;            
    border: none;
    padding: 0.7rem 2.5rem;
    border-radius: 118px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 3px 10px rgba(255,215,0,0.3);
}

.login-btn:hover {
    background-color: #E6B800;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #B11A1A;
    padding: 1rem;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu a {
    color: #FFFFFF;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: 0.3s;
}

.mobile-menu a:hover {
    color: #E6B800;
}

/* Hero section */
.hero {
    position: relative;
    background-image: url('banner/baner.webp');
    background-size: cover;
    background-position: center;
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    padding: 0 1rem;
    border-radius: 1.5rem;
    margin-top: 80px;
    box-shadow: 0 4px 24px rgba(122,10,10,0.15);
    z-index: 1;
}

/* Overlay */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    border-radius: inherit;
    z-index: 0;
}

.hero-content {
    color: #7A0A0A;
    background: linear-gradient(0deg, rgba(255,249,231,0.93) 0%, rgba(255,235,179,0.85) 0%);
    padding: 2rem 2.5rem;
    border-radius: 15rem;
    display: inline-block;
    box-shadow: 0 2px 12px rgba(122,10,10,0.15);
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #7A0A0A;
}

.cta-button {
    background-color: #FFD700;
    color: #7A0A0A;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1.5rem;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

.cta-button:hover {
    background-color: #E6B800;
    transform: scale(1.05);
}

/* Content section */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    background: #FFF9E6; 
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(122,10,10,0.15);
}

.content h2 {
    color: #7A0A0A;
    margin-bottom: 1.5rem;
}

.content h3 {
    color: #FFD700;
    margin: 2rem 0 1rem;
}

.content p {
    margin-bottom: 1rem;
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    background: #FFF7E6;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(122,10,10,0.15);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.5rem;
    background: #FFF9E6;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(177,26,26,0.85);
    color: #FFFFFF;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-button:hover {
    background: #FFD700;
    color: #7A0A0A;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFE8A3; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #FFD700;
}

/* Content Navigation */
.content-nav {
    background: #FFF9EC;
    padding: 1.5rem;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 2px 12px rgba(90,42,0,0.08);
}

.nav-toggle {
    color: #3A1A00;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.5);
}

.toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.nav-content {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.nav-content.active {
    max-height: 1000px;
}

.content-nav a {
    color: #5A2A00;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.5);
}

.content-nav a:hover {
    background: #D32F2F;
    color: #fff;
    transform: translateX(5px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #D32F2F;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(90,42,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #A51212;
    transform: translateY(-3px);
}

/* Table styles */
.games-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #FFF9EC;
    border-radius: 1rem;
    overflow: hidden;
}

.games-table th,
.games-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #F3E2B8;
}

.games-table th {
    background-color: #7A0A0A;
    color: #fff;
}

.games-table tr:hover {
    background-color: #FFF3CF;
}

/* Footer */
footer {
    background-color: #7A0A0A;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 1rem 1rem 0 0;
}

/* FAQ Section */
.faq-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(90,42,0,0.08);
}

.faq-section h2 {
    color: #3A1A00;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #F3E2B8;
    padding-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    color: #5A2A00;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #D32F2F;
}

.faq-answer {
    color: #3A1A00;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 3px solid #D32F2F;
    margin: 0;
}

/* Slots Grid */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #FFF9EC;
    border-radius: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.slot-item {
    background: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(90,42,0,0.08);
    transition: transform 0.3s ease;
}

.slot-item:hover {
    transform: translateY(-5px);
}

.slot-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.slot-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.slot-item:hover .slot-image img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #D32F2F;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211,47,47,0.3);
    font-size: 0.9rem;
}

.slot-item:hover .play-button {
    opacity: 1;
}

.play-button:hover {
    background: #A51212;
    transform: translate(-50%, -50%) scale(1.05);
}

.slot-item h4 {
    padding: 0.8rem;
    margin: 0;
    text-align: center;
    color: #3A1A00;
    font-size: 1rem;
}

/* Media queries */
@media (max-width: 768px) {
    .hero {
        height: 25vh;
        min-height: 420px;
        background-image: url('banner/baner.webp');
        border-radius: 0.5rem;
    }

    .hero-content {
        max-width: 90%;
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .games-table {
        display: block;
        overflow-x: auto;
    }
    .content {
        border-radius: 0.5rem;
    }
    footer {
        border-radius: 0.5rem 0.5rem 0 0;
    }
    .faq-section {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 0.5rem;
    }
    .faq-section h2 {
        font-size: 1.5rem;
    }
    .faq-question {
        font-size: 1rem;
    }
    .slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }
    .play-button {
        opacity: 1;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .content-nav {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    .nav-content {
        grid-template-columns: 1fr;
    }
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}
