/*
Orange Catcher - Custom Stylesheet
*/

:root {
    --primary-orange: #FFA500;
    --secondary-deep-blue: #0A192F;
    --accent-yellow: #FFD700;
    --text-light: #E6F1FF;
    --background-dark-start: #0A192F;
    --background-dark-end: #1C2D4A;
    --font-headings: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-dark-start);
    color: var(--text-light);
    font-family: var(--font-body);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle, var(--background-dark-end), var(--background-dark-start));
    overflow: hidden;
    padding: 0 15px;
}

.hero-section .content-wrapper {
    z-index: 2;
}

.game-title {
    font-family: var(--font-headings);
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.game-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0.9;
}

.btn-play {
    background-color: var(--primary-orange);
    color: var(--secondary-deep-blue);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 12px 40px;
    border-radius: 50px;
    border: none;
    margin-top: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 165, 0, 0.2);
    color: var(--secondary-deep-blue);
}

/* Decorative Shapes */
.hero-section .shape-1, .hero-section .shape-2 {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-orange);
    opacity: 0.1;
    z-index: 1;
}

.hero-section .shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 15%;
}

.hero-section .shape-2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    right: 20%;
}

/* Game Container */
.game-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.game-and-leaderboard-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
}

.game-column {
    flex: 0 0 auto; /* Don't grow, don't shrink, initial size is auto */
}

.leaderboard-column {
    flex: 1 1 400px; /* Grow, shrink, initial size 400px */
    max-width: 500px;
}

.canvas-wrapper {
    background-color: #000;
    border: 4px solid var(--primary-orange);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.3);
    overflow: hidden;
    /* The canvas itself is 500x350 */
    width: 500px;
    height: 350px;
}

#gameCanvas {
    display: block;
}

.instructions {
    background-color: var(--background-dark-end);
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-light);
    max-width: 500px; /* Match canvas width */
    margin-bottom: 2rem;
}

.instructions-title {
    font-family: var(--font-headings);
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 3rem;
    }
    .game-subtitle {
        font-size: 1.2rem;
    }

    /* The problematic responsive styles that stretched the canvas have been removed. */
    /* The canvas will now maintain its fixed size. */
}