:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #f9a826;
    --text-color: #ffffff;
    --text-secondary: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    position: relative;
}

.logo {
    height: 80px;
    width: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.auth-buttons {
    margin-left: auto;
}

.auth-buttons button {
    padding: 0.75rem 1.5rem;
    margin-left: 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: neon-glow-white 1.5s ease-in-out infinite;
}

.login-btn:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.signup-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(249, 168, 38, 0.5);
    animation: neon-glow-accent 1.5s ease-in-out infinite;
}

.signup-btn:hover {
    background-color: #e59620;
    box-shadow: 0 0 15px rgba(249, 168, 38, 0.8);
}

@keyframes neon-glow-white {
    0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
}

@keyframes neon-glow-accent {
    0% { box-shadow: 0 0 10px rgba(249, 168, 38, 0.5); }
    50% { box-shadow: 0 0 20px rgba(249, 168, 38, 0.7); }
    100% { box-shadow: 0 0 10px rgba(249, 168, 38, 0.5); }
}

/* Updated Slider for 1500x500 Images */
.hero-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 1; /* Matches 1500x500 image ratio */
    max-height: 500px; /* Caps height on large screens */
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full image without cropping */
    display: block;
}

/* Media Queries for Fine-Tuning */
@media (max-width: 768px) {
    .hero-slider {
        aspect-ratio: 3 / 1; /* Maintains ratio */
        max-height: 400px; /* Slightly smaller for tablets */
    }
}

@media (max-width: 480px) {
    .hero-slider {
        aspect-ratio: 3 / 1; /* Maintains ratio */
        max-height: 300px; /* Smaller for mobile */
    }

    .slide img {
        object-fit: contain; /* Ensures full image visibility */
    }
}

.games-section, .demo-section, .promo-section {
    padding: 4rem 2rem;
    text-align: center;
}

.games-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    justify-content: center;
}

.game-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 0;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-10px);
}

.demo-section {
    padding: 4rem 2rem;
}

.demo-section h5 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.iframe-container {
    position: relative;
    background-color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    height: 400px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.iframe-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(249, 168, 38, 0.2);
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
    background: transparent;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 0 10px rgba(249, 168, 38, 0.5);
    animation: glow 1.5s ease-in-out infinite;
}

.fullscreen-btn:hover {
    background-color: #e59620;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 0 15px rgba(249, 168, 38, 0.8);
}

@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(249, 168, 38, 0.5); }
    50% { box-shadow: 0 0 20px rgba(249, 168, 38, 0.7); }
    100% { box-shadow: 0 0 10px rgba(249, 168, 38, 0.5); }
}

.article-box {
    padding: 4rem 2rem;
    background-color: #0f0f1a;
    text-align: center;
}

.article-box h1,h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.article-box .description {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
	text-align: justify;
}

.promo-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.promo-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.promo-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    width: 300px;
    text-align: center;
}

.promo-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.main-footer {
    background-color: var(--secondary-color);
    padding: 2rem;
    text-align: center;
}

.footer-links ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 1.5rem;
    }

    .auth-buttons {
        margin-top: 0;
        margin-left: 0;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .auth-buttons button {
        margin-left: 0;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .footer-links ul {
        flex-direction: column;
    }

    .footer-links li {
        margin: 0.5rem 0;
    }
}