/* Ghostbusters Party Style - Mobile Optimiert */

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

body {
    font-family: 'Roboto', sans-serif;
    background: #000;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.main-header {
    text-align: center;
    padding: 15px 10px;
    background: transparent;
    position: relative;
}

.party-title {
    font-size: 1em;
    color: white;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.ghostbusters-title {
    font-family: 'Creepster', cursive;
    font-size: 2em;
    color: #00ff00;
    text-shadow: 
        2px 2px 0px #000,
        3px 3px 8px rgba(0,255,0,0.4);
    letter-spacing: 2px;
    margin: 5px 0;
}

.ghost-logo {
    width: 100px;
    height: 100px;
    margin: 10px auto;
}

.ghost-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* Content Area */
.content {
    flex: 1;
    padding: 10px;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.login-box {
    background: rgba(0,0,0,0.8);
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #ffcc00,
        #ffcc00 10px,
        #000 10px,
        #000 20px
    ) 4;
    border-radius: 15px;
    padding: 20px 15px;
    width: 95%;
    max-width: 350px;
    box-shadow: 0 0 20px rgba(255,204,0,0.2);
}

.welcome-text {
    font-size: 1.1em;
    text-align: center;
    color: #aaa;
    margin-bottom: 5px;
}

.kid-name {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    color: #ffcc00;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.login-form {
    margin-top: 10px;
}

.password-group {
    margin-bottom: 10px;
}

input[type="password"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.1);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    color: white;
    text-align: center;
    margin-bottom: 10px;
}

input[type="password"]:focus {
    outline: none;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(0,255,0,0.5);
}

.login-button {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    font-weight: bold;
    background: #ffcc00;
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.login-button:active {
    transform: scale(0.95);
}

.ghost-icon {
    font-size: 1.2em;
}

.hint-text {
    text-align: center;
    color: #888;
    font-size: 0.85em;
    margin-top: 10px;
}

.error-message {
    background: rgba(255,0,0,0.1);
    border: 3px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #cc3333,
        #cc3333 10px,
        #000 10px,
        #000 20px
    ) 3;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    color: #cc3333;
    font-size: 0.9em;
    font-weight: bold;
}

/* Mission/Rätsel Styles */
.mission-box {
    background: rgba(0,0,0,0.8);
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #ffcc00,
        #ffcc00 10px,
        #000 10px,
        #000 20px
    ) 4;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(255,204,0,0.2);
}

.mission-box h1 {
    color: #ffcc00;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Creepster', cursive;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.mission-box h2 {
    color: #ffff00;
    margin: 20px 0;
    font-size: 1.5em;
}

.mission-step {
    margin: 20px 0;
}

.riddle-box {
    background: rgba(255,204,0,0.1);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.clue {
    background: rgba(255,255,0,0.1);
    border-left: 4px solid #ffff00;
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    font-size: 1.1em;
}

.reward {
    background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,140,0,0.2));
    border: 2px solid gold;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.2em;
}

.reward strong {
    color: #ffd700;
    font-size: 1.3em;
}

/* Button Styles */
button {
    background: #ffcc00;
    color: black;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

button:active {
    transform: scale(0.95);
}

/* Checkbox Styles */
label {
    display: block;
    margin: 10px 0;
    cursor: pointer;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Input Fields */
input[type="text"], input[type="number"] {
    padding: 10px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.1);
    border: 2px solid #ffcc00;
    border-radius: 5px;
    color: white;
    margin: 10px 0;
}

/* Partner-Suche Styles */
.partner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
}

.partner-box {
    background: rgba(0,0,0,0.9);
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #ff00ff,
        #ff00ff 10px,
        #00ffff 10px,
        #00ffff 20px
    ) 4;
    border-radius: 15px;
    padding: 30px 20px;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255,0,255,0.3);
}

.partner-box h1 {
    text-align: center;
    color: #ff00ff;
    text-shadow: 2px 2px 4px rgba(255,0,255,0.5);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.partner-intro {
    text-align: center;
    margin-bottom: 20px;
}

.partner-intro strong {
    color: #00ffff;
    font-size: 1.2em;
}

.partner-hint {
    background: rgba(255,0,255,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,0,255,0.3);
}

.partner-hint h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.partner-hint p {
    margin: 8px 0;
    color: white;
}

.partner-input-section {
    background: rgba(0,255,255,0.1);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.partner-input-section h3 {
    color: #00ffff;
    margin-bottom: 15px;
}

#partner-name {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    background: rgba(0,0,0,0.5);
    border: 2px solid #ff00ff;
    color: white;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

#partner-name:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

.partner-button {
    width: 100%;
    background: linear-gradient(135deg, #ff00ff, #00ffff);
    color: black;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.partner-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    transform: scale(1.05);
}

.partner-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#partner-error {
    color: #ff6666;
    background: rgba(255,0,0,0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

.partner-tip {
    text-align: center;
    margin-top: 20px;
    color: #ffcc00;
    font-style: italic;
}

/* Quest Styles */
.quest-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 20px;
}

.quest-box {
    background: rgba(0,0,0,0.9);
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #00ff00,
        #00ff00 10px,
        #ffcc00 10px,
        #ffcc00 20px
    ) 4;
    border-radius: 15px;
    padding: 30px 20px;
    width: 95%;
    max-width: 600px;
    box-shadow: 0 0 30px rgba(0,255,0,0.3);
}

.quest-box h1 {
    text-align: center;
    color: #00ff00;
    text-shadow: 2px 2px 4px rgba(0,255,0,0.5);
    margin-bottom: 20px;
}

.team-info {
    text-align: center;
    background: rgba(255,204,0,0.1);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.team-info strong {
    color: #ffcc00;
    font-size: 1.2em;
}

.quest-description {
    background: rgba(0,255,0,0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,255,0,0.2);
}

.quest-instructions {
    margin-bottom: 20px;
}

.quest-instructions h3 {
    color: #ffcc00;
    margin-bottom: 15px;
}

.quest-instructions p {
    margin: 8px 0;
    padding-left: 10px;
    color: white;
}

.quest-answer-section {
    background: rgba(255,204,0,0.1);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.quest-answer-section h3 {
    color: #ffcc00;
    margin-bottom: 15px;
}

#quest-answer {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    background: rgba(0,0,0,0.5);
    border: 2px solid #00ff00;
    color: white;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

#quest-answer:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 10px rgba(255,204,0,0.3);
}

.quest-button {
    width: 100%;
    background: linear-gradient(135deg, #00ff00, #00aa00);
    color: black;
    border: none;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
}

.quest-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    transform: scale(1.05);
}

.quest-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#quest-error {
    color: #ff6666;
    background: rgba(255,0,0,0.1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    text-align: center;
}

.quest-reward-hint {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255,0,255,0.1);
    border-radius: 8px;
    color: #ff00ff;
    font-weight: bold;
}

/* Animations */
.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Special Birthday Kid Styles */
.special-birthday {
    background: linear-gradient(135deg, rgba(255,0,255,0.1), rgba(0,0,0,0.8));
    border-color: #ff00ff;
    box-shadow: 0 0 40px rgba(255,0,255,0.4);
}

.special-birthday h1 {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logout Button */
.logout-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,0,0,0.2);
    color: #ff6666;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    border: 1px solid #ff6666;
}

.logout-btn:hover {
    background: rgba(255,0,0,0.3);
}

/* Slime Effect Background */
.slime-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.4;
    background: 
        radial-gradient(circle at 20% 50%, #aa0000 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #aa0000 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, #aa0000 0%, transparent 50%);
    animation: slime 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes slime {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Error Container */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.error-box {
    background: rgba(0,0,0,0.8);
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #ff0000,
        #ff0000 10px,
        #000 10px,
        #000 20px
    ) 4;
    border-radius: 15px;
    padding: 20px 15px;
    width: 95%;
    max-width: 350px;
    box-shadow: 0 0 20px rgba(255,0,0,0.2);
    text-align: center;
}

.error-box h2 {
    color: #ff6666;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.sad-ghost {
    margin: 10px 0;
}

.ghost-animation {
    animation: float 3s ease-in-out infinite;
    font-size: 3em;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.error-content {
    margin: 10px 0;
    font-size: 0.95em;
}

.error-details {
    background: rgba(255,0,0,0.1);
    border-radius: 10px;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    font-size: 0.9em;
}

.error-details ul {
    margin-left: 20px;
}

.spooky-message {
    color: #888;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9em;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ghostbusters-title {
        font-size: 2em;
    }
    
    .ghost-logo {
        width: 120px;
        height: 120px;
    }
    
    .kid-name {
        font-size: 2em;
    }
    
    .mission-box h1 {
        font-size: 1.5em;
    }
    
    button {
        width: 100%;
        margin: 10px 0;
    }
}

/* Visibility Helper Classes */
.hidden {
    display: none !important;
}

/* Countdown/Too Early Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.too-early-box {
    background: rgba(0,0,0,0.8);
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #ff0000,
        #ff0000 10px,
        #ffcc00 10px,
        #ffcc00 20px
    ) 4;
    border-radius: 15px;
    padding: 30px 20px;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255,0,0,0.3);
    text-align: center;
}

.too-early-box h1 {
    color: #ff0000;
    font-family: 'Creepster', cursive;
    font-size: 1.8em;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: pulse 2s infinite;
}

.warning-ghost {
    margin-bottom: 20px;
}

.scolding {
    color: #ffcc00;
    font-size: 1.2em;
    margin: 20px 0;
}

.countdown-display {
    background: rgba(255,204,0,0.1);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.countdown-display h2 {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(0,0,0,0.5);
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
}

.time-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0,255,0,0.5);
}

.time-label {
    display: block;
    font-size: 0.8em;
    color: #aaa;
    margin-top: 5px;
}

.current-time {
    margin: 20px 0;
    color: #888;
    font-size: 0.9em;
}

.current-time span {
    color: #ffcc00;
    font-family: monospace;
}

.warning-message {
    background: rgba(255,0,0,0.1);
    border: 1px solid #ff6666;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.warning-message p {
    margin: 5px 0;
    color: #ff6666;
}

.small-text {
    font-size: 0.8em;
    font-style: italic;
    color: #888 !important;
}

.visible {
    display: block !important;
}

/* Teekesselchen Styles */
.teekesselchen-container {
    min-height: 400px;
}

.game-screen {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.partner-info {
    background: rgba(255,204,0,0.1);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.explanation {
    background: rgba(255,204,0,0.1);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.hint-item {
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #ffcc00;
    padding: 15px;
    margin: 15px 0;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from { 
        transform: translateX(-20px);
        opacity: 0;
    }
    to { 
        transform: translateX(0);
        opacity: 1;
    }
}

.hint-number {
    color: #ffcc00;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.hint-text {
    font-size: 1.2em;
    line-height: 1.4;
}

.input-section {
    margin: 30px 0;
    display: flex;
    gap: 10px;
}

#answer-input {
    flex: 1;
    padding: 12px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.1);
    border: 2px solid #ffcc00;
    border-radius: 10px;
    color: white;
}

.check-button {
    padding: 12px 20px;
    background: #ffcc00;
    color: black;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.next-button {
    background: #ffcc00;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.hint-counter {
    color: #888;
}

.success-box {
    background: linear-gradient(135deg, rgba(0,255,0,0.1), rgba(255,204,0,0.1));
    border: 4px solid transparent;
    border-image: repeating-linear-gradient(
        45deg,
        #ffcc00,
        #ffcc00 10px,
        #000 10px,
        #000 20px
    ) 4;
}

.solution-reveal {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
}

.team-success {
    font-size: 1.2em;
    margin: 20px 0;
    color: #ffcc00;
}

.points-display {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 15px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0,255,0,0.5);
}

#earned-points {
    font-size: 1.3em;
    color: #00ff00;
}

.start-button, .finish-button {
    background: #ffcc00;
    color: black;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    margin: 20px auto;
    display: block;
}