/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;700;900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #5C94FC 100%);
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6; /* Increased line height for better readability */
    letter-spacing: 0.03em; /* Slightly increased letter spacing */
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

/* Header styles */
header {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(0, 0, 0, 0.6);
}

header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Add some space between logo and nav */
}

header h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 
        3px 3px 0px #FF6B6B,
        6px 6px 0px #4ECDC4,
        9px 9px 20px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 3px 3px 0px #FF6B6B, 6px 6px 0px #4ECDC4, 9px 9px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 3px 3px 0px #FF6B6B, 6px 6px 0px #4ECDC4, 9px 9px 20px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.8); }
}

header h1 a {
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s ease;
}

header h1 a:hover {
    color: #FFF;
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px; /* Slightly reduced gap for a more compact look */
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.05); /* Subtle background for the menu bar */
    padding: 10px 20px; /* Padding around the menu items */
    border-radius: 30px; /* More rounded corners for the menu bar */
    border: 1px solid rgba(255, 215, 0, 0.2); /* Light border */
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1); /* Inner shadow */
    justify-content: center; /* Center the menu items */
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem; /* Slightly smaller font size */
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    padding: 8px 18px; /* Adjusted padding for menu items */
    border-radius: 20px; /* More rounded buttons */
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2); /* Default background for menu items */
    border: 1px solid transparent; /* Default transparent border */
}

nav a::before {
    content: ‘’;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent); /* Stronger gradient */
    transition: left 0.5s ease-out; /* Smoother transition */
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    color: #FFF; /* White text on hover */
    background: rgba(255, 215, 0, 0.2); /* Lighter background on hover */
    transform: translateY(-3px) scale(1.02); /* More pronounced lift and slight scale */
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.3); /* Enhanced shadow */
    border-color: #FFD700; /* Gold border on hover */
}

/* Main content styles */
main {
    padding: 60px 0;
}

.hero {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.hero::before {
    content: '🍄';
    position: absolute;
    top: -30px;
    left: 10%;
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.hero::after {
    content: '⭐';
    position: absolute;
    top: -20px;
    right: 10%;
    font-size: 2.5rem;
    animation: bounce 2s infinite 0.5s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.hero h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-shadow: 
        2px 2px 0px #FF6B6B,
        4px 4px 0px #4ECDC4,
        6px 6px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#game-container {
    background: linear-gradient(145deg, #000000, #1a1a1a);
    border: 6px solid #FFD700;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 900px;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    animation: gameGlow 3s ease-in-out infinite alternate;
}

@keyframes gameGlow {
    from { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 20px rgba(255, 215, 0, 0.1); }
    to { box-shadow: 0 0 50px rgba(255, 215, 0, 0.8), inset 0 0 30px rgba(255, 215, 0, 0.2); }
}

#game-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FF6B6B, #4ECDC4, #FFD700);
    border-radius: 20px;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#game-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.hero p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controls section with better styling */
.controls-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 20px;
    padding: 30px;
    margin: 30px auto;
    max-width: 800px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.control-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.control-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.control-key {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    color: #FFD700;
    margin-bottom: 5px;
}

/* Gameplay info section */
.gameplay-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(78, 205, 196, 0.1));
    padding: 50px 0;
    margin-bottom: 50px;
    border-radius: 20px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.gameplay-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: sparkle 10s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.gameplay-info h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #4ECDC4;
    text-shadow: 
        2px 2px 0px #FF6B6B,
        4px 4px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

.gameplay-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #4ECDC4;
}

/* Comments section */
.comments {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 215, 0, 0.1));
    padding: 50px 0;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(10px);
}

.comments h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #FF6B6B;
    text-shadow: 
        2px 2px 0px #4ECDC4,
        4px 4px 20px rgba(0, 0, 0, 0.8);
}

.comments p {
    text-align: center;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    backdrop-filter: blur(10px);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    border-top: 3px solid rgba(255, 215, 0, 0.5);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FF6B6B, #4ECDC4, #FFD700);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

footer p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

footer a {
    color: #FFD700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

footer a:hover {
    background: rgba(255, 215, 0, 0.2);
    text-shadow: 0 0 10px #FFD700;
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 15px;
    }
    
    nav a {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    #game-container {
        margin: 20px auto;
        height: 400px;
        max-width: 95%;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .gameplay-info h3,
    .comments h3 {
        font-size: 1.4rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.4rem;
    }
    
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .hero h2 {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    #game-container {
        height: 300px;
        border-width: 4px;
    }
    
    .hero::before,
    .hero::after {
        display: none;
    }
}



/* Gameplay page specific styles */
.gameplay-hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid rgba(78, 205, 196, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.gameplay-hero::before {
    content: '🎯';
    position: absolute;
    top: 20px;
    left: 10%;
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.gameplay-hero::after {
    content: '🎮';
    position: absolute;
    top: 20px;
    right: 10%;
    font-size: 2.5rem;
    animation: bounce 2s infinite 0.5s;
}

.gameplay-hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4ECDC4;
    text-shadow: 
        3px 3px 0px #FF6B6B,
        6px 6px 0px #FFD700,
        9px 9px 20px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.gameplay-hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Tips grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tip-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #FFD700;
}

.tip-card h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.tip-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 255, 255, 0.1));
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: #4ECDC4;
}

.feature-item h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    margin-bottom: 10px;
    color: #4ECDC4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Scoring info */
.scoring-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.score-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.score-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.05);
}

.score-value {
    display: block;
    font-family: 'Press Start 2P', monospace;
    font-size: 1.2rem;
    color: #FFD700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.score-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Strategy section */
.strategy-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 215, 0, 0.1));
    padding: 50px 0;
    margin: 50px 0;
    border-radius: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(10px);
}

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

.strategy-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #FF6B6B;
}

.strategy-card h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #FF6B6B;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.strategy-card ul {
    list-style: none;
    padding: 0;
}

.strategy-card li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding-left: 20px;
    position: relative;
}

.strategy-card li::before {
    content: '🎯';
    position: absolute;
    left: 0;
    top: 0;
}

/* Active navigation link for gameplay page */
nav a.active {
    background: rgba(78, 205, 196, 0.2);
    color: #4ECDC4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.4);
    border-color: #4ECDC4;
}

/* Responsive design for gameplay page */
@media (max-width: 768px) {
    .gameplay-hero h1 {
        font-size: 2rem;
    }
    
    .gameplay-hero p {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .tips-grid,
    .features-grid,
    .strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scoring-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tip-card,
    .feature-item,
    .strategy-card {
        padding: 20px;
    }
    
    .tip-card h3,
    .feature-item h3,
    .strategy-card h3 {
        font-size: 0.9rem;
    }
    
    .gameplay-hero::before,
    .gameplay-hero::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .gameplay-hero {
        margin: 20px 0;
        padding: 40px 0 30px;
    }
    
    .gameplay-hero h1 {
        font-size: 1.5rem;
    }
    
    .scoring-info {
        grid-template-columns: 1fr;
    }
    
    .tip-card,
    .feature-item,
    .strategy-card {
        padding: 15px;
    }
}



/* History page specific styles */
.history-hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(153, 50, 204, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid rgba(153, 50, 204, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.history-hero::before {
    content: '📜';
    position: absolute;
    top: 20px;
    left: 10%;
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.history-hero::after {
    content: '⭐';
    position: absolute;
    top: 20px;
    right: 10%;
    font-size: 2.5rem;
    animation: bounce 2s infinite 0.5s;
}

.history-hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #9932CC; /* Dark Orchid */
    text-shadow: 
        3px 3px 0px #FFD700,
        6px 6px 0px #FF6B6B,
        9px 9px 20px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.history-hero p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(153, 50, 204, 0.3);
}

/* Timeline styles */
.timeline-section {
    padding: 50px 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #FFD700;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #FFD700;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: ' ';
    height: 0;
    position: absolute;
    top: 22px;
    right: 30px;
    z-index: 1;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.right::before {
    content: ' ';
    height: 0;
    position: absolute;
    top: 22px;
    left: 30px;
    z-index: 1;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.4);
    position: relative;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: #FFD700;
}

.timeline-content h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Active navigation link for history page */
nav a.active {
    background: rgba(153, 50, 204, 0.2);
    color: #9932CC;
    box-shadow: 0 0 15px rgba(153, 50, 204, 0.4);
    border-color: #9932CC;
}

/* Responsive design for history page */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .left::after, .right::after {
        left: 15px;
    }

    .right {
        left: 0%;
    }

    .history-hero h1 {
        font-size: 2rem;
    }

    .history-hero p {
        font-size: 1.1rem;
        padding: 15px;
    }
}



/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #FFD700;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #4ECDC4;
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #FFD700, #FF6B6B);
    color: #1e3c72;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form .submit-button:hover {
    background: linear-gradient(90deg, #FF6B6B, #FFD700);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}



/* Features Grid Styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-item h4 {
    font-family: 'Press Start 2P', monospace;
    color: #FFD700;
    font-size: 1rem;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
}

/* FAQ Section Styles */
.faq-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 60px 0;
    margin: 40px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #FFD700;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.faq-item h4 {
    font-family: 'Press Start 2P', monospace;
    color: #FFD700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
}

/* Game Features Section */
.game-features {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.1);
}

.game-features h3 {
    font-family: 'Press Start 2P', monospace;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.5rem;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item, .faq-item {
        padding: 20px;
    }
    
    .feature-item h4, .faq-item h4 {
        font-size: 0.8rem;
    }
}

