* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fffef0;
    --text-color: #5a4a2a;
    --text-light: #8b7a5a;
    --primary-blue: #1da1f2;
    --accent-1: #ffd700;
    --accent-2: #ffed4e;
    --accent-3: #f093fb;
    --accent-4: #4facfe;
    --border-radius: 16px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 40px 100px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
}

.landing-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.landing-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.password-prompt {
    margin-top: 60px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.password-input-group {
    display: flex;
    gap: 12px;
}

.password-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background-color: #fffef8;
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.2s ease;
}

/* Light theme - Yellow border */
body.theme-light .password-input,
body:not([class*="theme"]) .password-input {
    border-color: #ffd700;
}

.password-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.password-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(29, 161, 242, 0.1);
}

.password-submit-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.password-submit-btn:hover {
    background-color: #1a8cd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.password-submit-btn:active {
    transform: translateY(0);
}

.theme-toggle-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.dark-mode-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fffef8;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: center;
}

.moon-icon {
    font-size: 24px;
}

/* Theme styles */
/* Light theme - Yellow */
body.theme-light .landing-title,
body:not([class*="theme"]) .landing-title {
    color: #ffd700;
}

body.theme-dark {
    --bg-color: #000000;
    --text-color: #e8e8e8;
    --text-light: #b8b8b8;
    --primary-blue: #e8e8e8;
}

/* Dark theme - Light gray */
body.theme-dark .landing-title {
    color: #e8e8e8;
}

body.theme-sea {
    --bg-color: #e8f4f8;
    --text-color: #1e3a5f;
    --text-light: #4a6fa5;
    --primary-blue: #1e3a5f;
}

/* Sea theme - Dark blue */
body.theme-sea .landing-title {
    color: #1e3a5f;
}

body.theme-forest {
    --bg-color: #f0f5e8;
    --text-color: #2d5016;
    --text-light: #5a7a3a;
    --primary-blue: #2d5016;
}

/* Forest theme - Dark green */
body.theme-forest .landing-title {
    color: #2d5016;
}

body.theme-christmas {
    --bg-color: #ffffff;
    --text-color: #2d2d2d;
    --text-light: #666666;
    --primary-blue: #dc143c;
}

/* Christmas theme - Red */
body.theme-christmas .landing-title {
    color: #dc143c;
}

/* Password input theme styles */
body.theme-dark .password-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

/* Light theme - Yellow */
body.theme-light .password-input:focus,
body:not([class*="theme"]) .password-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

body.theme-dark .password-input:focus {
    border-color: #e8e8e8;
    box-shadow: 0 0 0 3px rgba(232, 232, 232, 0.2);
}

body.theme-sea .password-input {
    background-color: #ffffff;
    border-color: #1e3a5f;
    color: var(--text-color);
}

body.theme-sea .password-input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
}

body.theme-forest .password-input {
    background-color: #ffffff;
    border-color: #2d5016;
    color: var(--text-color);
}

body.theme-forest .password-input:focus {
    border-color: #2d5016;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.2);
}

body.theme-christmas .password-input {
    background-color: #ffffff;
    border-color: #dc143c;
    color: var(--text-color);
}

body.theme-christmas .password-input:focus {
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.2);
}

/* Enter button theme styles */
/* Light theme - Yellow */
body.theme-light .password-submit-btn,
body:not([class*="theme"]) .password-submit-btn {
    background-color: #ffd700;
    color: #000000;
}

body.theme-light .password-submit-btn:hover,
body:not([class*="theme"]) .password-submit-btn:hover {
    background-color: #ffed4e;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Dark theme - Light gray */
body.theme-dark .password-submit-btn {
    background-color: #e8e8e8;
    color: #000000;
}

body.theme-dark .password-submit-btn:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(232, 232, 232, 0.4);
}

/* Sea theme - Dark blue */
body.theme-sea .password-submit-btn {
    background-color: #1e3a5f;
    color: #ffffff;
}

body.theme-sea .password-submit-btn:hover {
    background-color: #2d4a7a;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Forest theme - Dark green */
body.theme-forest .password-submit-btn {
    background-color: #2d5016;
    color: #ffffff;
}

body.theme-forest .password-submit-btn:hover {
    background-color: #3d7026;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

/* Christmas theme - Red */
body.theme-christmas .password-submit-btn {
    background-color: #dc143c;
    color: #ffffff;
}

body.theme-christmas .password-submit-btn:hover {
    background-color: #ff1744;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

/* Theme toggle theme styles */
/* Light theme - Yellow */
body.theme-light .dark-mode-toggle,
body:not([class*="theme"]) .dark-mode-toggle {
    background-color: #ffffff;
    border-color: #ffd700;
}

body.theme-light .dark-mode-toggle:hover,
body:not([class*="theme"]) .dark-mode-toggle:hover {
    background-color: rgba(255, 215, 0, 0.1);
    border-color: #ffed4e;
}

/* Dark theme - Light gray */
body.theme-dark .dark-mode-toggle {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #e8e8e8;
}

body.theme-dark .dark-mode-toggle:hover {
    background-color: rgba(232, 232, 232, 0.2);
    border-color: #ffffff;
}

/* Sea theme - Dark blue */
body.theme-sea .dark-mode-toggle {
    background-color: #ffffff;
    border-color: #1e3a5f;
}

body.theme-sea .dark-mode-toggle:hover {
    background-color: rgba(30, 58, 95, 0.1);
    border-color: #2d4a7a;
}

/* Forest theme - Dark green */
body.theme-forest .dark-mode-toggle {
    background-color: #ffffff;
    border-color: #2d5016;
}

body.theme-forest .dark-mode-toggle:hover {
    background-color: rgba(45, 80, 22, 0.1);
    border-color: #3d7026;
}

/* Christmas theme - Red */
body.theme-christmas .dark-mode-toggle {
    background-color: #ffffff;
    border-color: #dc143c;
}

body.theme-christmas .dark-mode-toggle:hover {
    background-color: rgba(220, 20, 60, 0.1);
    border-color: #ff1744;
}

@media (max-width: 768px) {
    body {
        padding: 24px 20px;
        min-height: 100vh;
    }
    
    .landing-container {
        max-width: 100%;
    }
    
    .landing-title {
        font-size: 32px;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .password-prompt {
        margin-top: 40px;
        padding: 0 10px;
    }
    
    .password-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .password-submit-btn {
        width: 100%;
    }
    
    .password-input {
        width: 100%;
    }
    
    .theme-toggle-container {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 16px;
    }
    
    .landing-title {
        font-size: 28px;
    }
    
    .password-prompt {
        margin-top: 32px;
    }
    
    .theme-toggle-container {
        margin-top: 32px;
    }
}

