/* style.css */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-header ul {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-header ul li a {
    color: var(--light-text);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-header ul li a:hover {
    color: var(--accent-color);
}

.btn-container {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-signup {
    background-color: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.1);
}

/* Hero section */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    margin-top: 20px;
}

.hero-banner-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 830px;
    height: 400px;
    background-color: rgb(255, 255, 255);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--banner-text-color); 
    max-width: 600px;
    padding: 40px 0;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--banner-text-color); 
}

.sub-title {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--banner-text-color); 
}

.btn-get-bonus {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 30px;
    font-size: 18px;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.section-block {
    padding: 60px 0;
}

.dark-section {
    background-color: var(--dark-section-color);
    color: var(--light-text);
}

h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.info {
    display: flex;
    gap: 50px;
    align-items: center;
}

.info h2 {
    text-align: left;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-card {
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s;
    height: 100%;
}

.image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.66%; 
    overflow: hidden;
    background-color: #f0f0f0;
}

.image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .hover-overlay {
    opacity: 1;
}

.btn-play {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 10px 25px;
    margin-bottom: 15px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.game-provider {
    color: var(--light-text);
    font-size: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 30px;
}

.text-container {
    padding: 20px;
    min-height: 120px;
}

.game-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.game-rating {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.game-text {
    color: var(--muted-text);
    font-size: 14px;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.promo-card {
    background-color: var(--light-text);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.promo-content {
    padding: 20px;
}

.promo-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.promo-content p {
    color: var(--muted-text);
    margin-bottom: 20px;
}

.btn-promo {
    background-color: var(--secondary-color);
    color: var(--light-text);
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
}

footer {
    background-color: var(--darker-section-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light-text);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.banners-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.banners-block img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.banners-block img:hover {
    opacity: 1;
}

.footer-small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 20px;
}

.side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--light-text);
    z-index: 1000;
    overflow-x: hidden;
    transition: width 0.3s;
}

.side-panel img {
    width: 150px;
    margin: 30px 0 40px 40px;
}

.side-panel ul {
    padding: 0 40px;
    list-style: none;
}

.side-panel ul li {
    margin-bottom: 15px;
}

.side-panel ul li a {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.side-panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--secondary-color);
    cursor: pointer;
}

.side-panel-open {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    display: none;
}

@media (max-width: 1024px) {
    .nav-header {
        display: none;
    }
    
    .side-panel-open {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .info {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .sub-title {
        font-size: 16px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .promotions-grid {
        grid-template-columns: 1fr;
    }
    
    .image-container {
        padding-bottom: 75%; 
    }
}

@media (max-width: 480px) {
    .btn-container {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .image-container {
        padding-bottom: 100%; 
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
     
    
}
.popular-games-title {
     color: var(--popular-games-color) !important;
    }