/* Default styles for the game UI */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Critical for game view */
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
}

canvas {
    display: block;
}

#scene-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block; /* Game is visible by default */
}

#content-wrapper {
    display: none; /* Landing page is hidden by default */
}


/* Overrides for when the landing page is active */
body.landing-page-active {
    overflow: auto; /* Allow scrolling on landing page */
}

body.landing-page-active #content-wrapper {
    display: block; /* Show landing page */
}

body.landing-page-active #scene-container {
    display: none; /* Hide game */
}


/* --- The rest of the landing page styles --- */

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-text {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.5rem;
}

#startButton {
    background-color: #f4b400;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#startButton:hover {
    background-color: #daA300;
}

/* Main Content Sections */
main {
    padding: 20px;
    background: #f4f4f4;
    text-align: center;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid #ddd;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Equipment Section */
.equipment-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    text-align: left;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #333;
}

.card p {
    font-size: 1rem;
    color: #666;
}

/* Bow Selection Area Styles */
#bow-selection-area {
    margin-top: 30px;
}

#bow-selection-area h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.bow-selection-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
}

.bow-selection-card:hover {
    border-color: #f4b400;
    transform: translateY(-5px);
}

#backButton {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#backButton:hover {
    background-color: #5a6268;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f4b400;
}