* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #2f3640, #212f3c, #34495e);
    background-size: 400% 400%;
    animation: gradientAnimation 6s ease infinite;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    padding-top: 80px; /* Space for fixed header */
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(34, 49, 63, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border-bottom: 4px solid #f39c12;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    color: #f39c12;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    font-weight: 800;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    margin: 0 20px;
    position: relative;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #e74c3c;
    transform: translateY(-5px);
}

nav a:before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #e74c3c;
    transition: all 0.3s ease;
}

nav a:hover:before {
    width: 100%;
}

/* Main Game Area */
main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-width: 900px;
    width: 100%;
    margin-top: 50px;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    flex: 1;
}

/* Game Info Section */
#game-info {
    flex: 1;
    width: 100%;
    padding: 20px;
    background: rgba(52, 152, 219, 0.9);
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

#game-info h2 {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 10px;
}

#game-info p {
    font-size: 1.2rem;
    color: #ecf0f1;
    line-height: 1.6;
    margin-bottom: 20px;
}

#demo-video iframe {
    width: 100%;
    height: 315px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

#demo-video iframe:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* Game Area Section */
#game-area {
    width: 100%;
    padding: 20px;
    background: rgba(44, 62, 80, 0.9);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    animation: fadeInUp 1.5s ease-out;
}

#score-display {
    font-size: 2rem;
    color: #ecf0f1;
    margin-bottom: 10px;
}

#gameCanvas {
    width: 100%;
    max-width: 900px; /* Increased canvas size */
    height: 400px; /* Increased height for better gameplay area */
    border: 6px solid #f39c12;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

#gameCanvas:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

/* Credits Section */
#credits {
    width: 100%;
    background: rgba(52, 152, 219, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    margin-top: 30px;
    animation: fadeInUp 1.5s ease-out;
}