/* 8-Bit Retro Styling */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
}

#app {
    position: relative;
    width: 100vw;
    height: 100vh;
}

/* Background Container */
#background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s ease;
}

#rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Welcome Content */
.welcome-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-content.show {
    opacity: 1;
    visibility: visible;
}

/* Adjust welcome content when menu is open */
.welcome-content.show.menu-open {
    transform: translateX(-200px);
}

.welcome-card {
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #fff;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.welcome-title {
    font-size: 32px;
    color: #f6bc00;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #000;
    letter-spacing: 2px;
}

.welcome-subtitle {
    font-size: 14px;
    color: #fff;
    margin-bottom: 25px;
    opacity: 0.9;
}

.welcome-description {
    font-size: 12px;
    color: #ccc;
    line-height: 1.6;
    opacity: 0.8;
}

.welcome-description p {
    margin: 0;
}

/* Rain Drops */
.rain-drop {
    position: absolute;
    width: 2px;
    height: 20px;
    animation: rain-fall linear infinite;
    opacity: 0.8;
}

/* Rain drop size variants */
.rain-drop.small {
    width: 1px;
    height: 12px;
}

.rain-drop.medium {
    width: 2px;
    height: 18px;
}

.rain-drop.large {
    width: 3px;
    height: 25px;
}

.rain-drop.xlarge {
    width: 4px;
    height: 30px;
}

/* Rain Color Themes - Cold Theme Variants (Grey with Transparency) */
.rain-drop.cold-1 {
    background: linear-gradient(to bottom, transparent, rgba(128, 128, 128, 0.7), rgba(128, 128, 128, 0.7));
}

.rain-drop.cold-2 {
    background: linear-gradient(to bottom, transparent, rgba(96, 96, 96, 0.6), rgba(96, 96, 96, 0.6));
}

.rain-drop.cold-3 {
    background: linear-gradient(to bottom, transparent, rgba(160, 160, 160, 0.5), rgba(160, 160, 160, 0.5));
}

/* Rain Color Themes - Warm Theme Variants */
.rain-drop.warm-1 {
    background: linear-gradient(to bottom, transparent, #e67e22, #e67e22);
}

.rain-drop.warm-2 {
    background: linear-gradient(to bottom, transparent, #f8c471, #f8c471);
}

.rain-drop.warm-3 {
    background: linear-gradient(to bottom, transparent, #e74c3c, #e74c3c);
}

@keyframes rain-fall {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Menu Toggle Button */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: rgba(42, 42, 42, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', monospace;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.menu-toggle:hover {
    background: rgba(74, 74, 74, 0.8);
    border-color: rgba(255, 255, 255, 1);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Subtle menu button when background is selected */
.menu-toggle.subtle {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(3px);
}

.menu-toggle.subtle:hover {
    background: rgba(42, 42, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 0.9);
}

/* Fullscreen hint message */
.fullscreen-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #f6bc00;
    color: #f6bc00;
    padding: 15px 25px;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-align: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px rgba(246, 188, 0, 0.3);
    border-radius: 6px;
}

.fullscreen-hint.show {
    opacity: 1;
    visibility: visible;
}

/* Menu */
.menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    border-left: 3px solid #fff;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.menu.open {
    right: 0;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fff;
}

.menu-header h2 {
    font-size: 16px;
    color: #fff;
}

.close-btn {
    background: none;
    border: 2px solid #fff;
    color: #fff;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #fff;
    color: #000;
}

/* Menu Sections */
.menu-section {
    margin-bottom: 30px;
}

.menu-section h3 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #4a90e2;
}

/* Background Options */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.option-btn {
    background: #2a2a2a;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 10px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.2;
}

.option-btn:hover {
    background: #4a4a4a;
    transform: translateX(5px);
}

.option-btn.selected {
    background: #4a90e2;
    border-color: #4a90e2;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.toggle-label {
    font-size: 12px;
    color: #fff;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    border: 2px solid #fff;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Rain Theme Section */
.rain-theme-section {
}

.rain-theme-section h4 {
    font-size: 12px;
    margin-bottom: 10px;
    color: #4a90e2;
}

.theme-options {
    display: flex;
    gap: 10px;
}

.theme-btn {
    background: #2a2a2a;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 9px;
    transition: all 0.3s ease;
    flex: 1;
}

.theme-btn:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
}

.theme-btn.selected {
    background: #4a90e2;
    border-color: #4a90e2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu {
        width: 100vw;
        right: -100vw;
    }
    
    .menu-toggle {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .menu-header h2 {
        font-size: 14px;
    }
    
    .menu-section h3 {
        font-size: 12px;
    }
    
    .option-btn {
        font-size: 7px;
        padding: 6px 8px;
    }
    
    .toggle-label {
        font-size: 10px;
    }
    
    .rain-theme-section h4 {
        font-size: 10px;
    }
    
    .theme-btn {
        font-size: 8px;
        padding: 6px 8px;
    }
    
    .welcome-title {
        font-size: 24px;
        color: #f6bc00;
    }
    
    .welcome-subtitle {
        font-size: 12px;
    }
    
    .welcome-description {
        font-size: 10px;
    }
    
    .welcome-card {
        padding: 30px 20px;
        margin: 15px;
    }
    
    /* Mobile menu adjustment */
    .welcome-content.show.menu-open {
        transform: translateX(-50vw);
    }
} 

/* Particles Container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Particles */
.particle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    /* Removed border-radius for pixelated square look */
}

/* Petals Container */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Fallout Container */
#fallout-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Cherry Blossom Petals */
.petal.cherry-blossom {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    /* Flatter, more realistic petal shape - less round, more oval */
    border-radius: 70% 10% 70% 10%;
    transform-origin: center;
}

/* Fallout Particles */
.fallout-particle {
    position: absolute;
    pointer-events: none;
    z-index: 10;
    /* Square/rectangular shape for ashen particles */
    border-radius: 0;
    transform-origin: center;
}

/* Particle size variants */
.particle.small {
    width: 2px;
    height: 2px;
}

.particle.medium {
    width: 3px;
    height: 3px;
}

.particle.large {
    width: 4px;
    height: 4px;
}

.particle.xlarge {
    width: 6px;
    height: 6px;
    /* Keep pixelated square look for 8-bit aesthetic consistency */
}

/* Petal size variants */
.petal.small {
    width: 4px;
    height: 16px;
}

.petal.medium {
    width: 8px;
    height: 24px;
}

.petal.large {
    width: 12px;
    height: 32px;
}

/* Fallout particle size variants */
.fallout-particle.small {
    width: 2px;
    height: 2px;
}

.fallout-particle.medium {
    width: 3px;
    height: 3px;
}

.fallout-particle.large {
    width: 4px;
    height: 4px;
}

/* Environmental Effects */
.environmental-effect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.effect-label {
    font-size: 10px;
    color: #fff;
    font-family: 'Press Start 2P', monospace;
}

/* Update the menu sections to be hidden by default */
.background-section,
.sound-section,
.environmental-section {
    display: none;
} 

/* About Button */
.about-btn {
    background: #2a2a2a;
    border: 2px solid #f6bc00;
    color: #f6bc00;
    padding: 10px 15px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.about-btn:hover {
    background: #f6bc00;
    color: #000;
    transform: translateY(-2px);
}

/* About Modal */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.about-modal.open {
    opacity: 1;
    visibility: visible;
}

.about-content {
    background: #2a2a2a;
    border: 3px solid #f6bc00;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.about-modal.open .about-content {
    transform: scale(1);
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f6bc00;
    padding-bottom: 10px;
}

.about-header h2 {
    color: #f6bc00;
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    margin: 0;
}

.about-body {
    color: #fff;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.about-body p {
    margin-bottom: 15px;
} 

/* Coffee Button Container */
.coffee-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

/* Placeholder text for when no destination is selected */
.placeholder-text {
    color: #888;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    text-align: center;
    padding: 20px;
    font-style: italic;
} 