/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-small {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border: 2px solid #d32f2f;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #d32f2f;
    border: 2px solid #d32f2f;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.15);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.25);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
    border: 2px solid #d32f2f;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

.btn-small:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f);
    border-color: #b71c1c;
    box-shadow: 0 3px 12px rgba(211, 47, 47, 0.3);
}

/* Games Section */
.games-section, .games-page {
    padding: 4rem 0;
}

.games-section h3, .games-page h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.games-page p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #d32f2f;
}

.game-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* Why Play Section */
.why-play {
    background-color: white;
    padding: 4rem 0;
}

.why-play h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #d32f2f;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.feature p {
    color: #666;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    background-color: white;
}

.page-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #d32f2f;
    text-align: center;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #d32f2f;
}

.content-section p {
    color: #666;
    line-height: 1.8;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.disclaimer {
    background-color: #d32f2f;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    text-align: center;
}

.disclaimer p {
    font-size: 0.9rem;
    line-height: 1.4;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #d32f2f;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Popup Styles */
.popup {
    position: fixed;
    background-color: white;
    border: 2px solid #d32f2f;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

.cookies-popup {
    bottom: 20px;
    left: 20px;
    max-width: 300px;
}

.age-popup {
    bottom: 20px;
    right: 20px;
    max-width: 300px;
}

.popup-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .popup {
        left: 10px !important;
        right: 10px !important;
        max-width: none;
    }
    
    .age-popup {
        bottom: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .games-section, .games-page, .why-play, .page-content {
        padding: 2rem 0;
    }
}
