:root {
    --primary-glow: rgba(0, 255, 255, 0.6);
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    /* Prevent selection during interaction */
}

body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: url('angel_v2.png') no-repeat center center/cover;
    font-family: 'Cinzel', serif;
    color: #fff;
    user-select: none;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* background-color: #050510; */
    /* This was removed by the change */
    /* font-family: var(--font-body); */
    /* This was removed by the change */
    /* color: var(--text-color); */
    /* This was removed by the change */
}

#app-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('angel_v2.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through to container/listener */
}

.ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    /* Display properties moved to support scrolling layout in main-view */
    pointer-events: none;
    /* Allow clicks on background */
    text-align: center;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-shadow: 0 0 20px var(--primary-glow);
    opacity: 0.9;
    margin-bottom: 2rem;
    transition: opacity 0.5s ease;
}

.instruction {
    font-size: 1.2rem;
    opacity: 0.7;
    letter-spacing: 2px;
    animation: pulse 3s infinite;
}

#wish-input-container {
    pointer-events: auto;
    /* Enable interaction */
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    /* Default visible now */
    transform: translateY(0);
}

/* Reusing for other potential hidden elements */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none !important;
}

#donate-btn {
    pointer-events: auto;
    font-size: 0.9rem;
    padding: 8px 16px;
    opacity: 0.7;
    margin-top: 15px;
    /* Add spacing from input */
}

#donate-btn:hover {
    opacity: 1;
    background: rgba(255, 215, 0, 0.2);
    /* Gold tint */
    border-color: rgba(255, 215, 0, 0.4);
}

input {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    outline: none;
    width: 300px;
    font-family: var(--font-body);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--primary-glow);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* --- Content & SEO Section --- */
.content-section {
    width: 100%;
    max-width: 800px;
    margin-top: 80vh;
    /* Push below the initial "Make a Wish" screen */
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #eee;
    text-align: center;
    pointer-events: auto;
    /* Allow text selection */
}

.legend-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legend-content h2 {
    font-family: var(--font-heading);
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 2rem;
}

.legend-content p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ddd;
}

.ad-slot {
    width: 100%;
    min-height: 100px;
    /* Space for banner */
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-placeholder {
    width: 728px;
    /* Leaderboard size */
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

footer {
    padding: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover {
    color: gold;
}

/* Adjust UI layer to allow scrolling */
.ui-layer {
    overflow-y: auto;
    /* Enable scrolling */
    display: block;
    /* Remove flex centering to allow long content validation */
    pointer-events: auto;
    /* Enable interaction for scrolling */
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

/* Keep the main view centered initially */
.main-view {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}