@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

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

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 0 0 5px #ff6b9d,
                0 0 0 10px #4ecdc4,
                0 0 0 15px #ffe66d;
    animation: bounceIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.guess-rate {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ffe66d 0%, #ff6b9d 100%);
    border: 5px solid #4ecdc4;
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 100;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.guess-rate-title {
    font-size: 1em;
    font-weight: 700;
    color: #2d3436;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
}

.guess-rate-value {
    font-size: 2em;
    font-weight: 700;
    color: #764ba2;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) rotate(5deg);
    }
    70% {
        transform: scale(0.9) rotate(-2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

h1 {
    font-size: clamp(1.8em, 5vw, 3em);
    color: #ff6b9d;
    text-shadow: 3px 3px 0px #4ecdc4,
                 6px 6px 0px #ffe66d,
                 9px 9px 0px #95e1d3;
    margin-bottom: 10px;
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.subtitle {
    font-size: clamp(1em, 2.5vw, 1.5em);
    color: #764ba2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.quote-display {
    background: linear-gradient(135deg, #ffe66d 0%, #ff6b9d 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                inset 0 0 20px rgba(255, 255, 255, 0.3);
    border: 5px solid #4ecdc4;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 3s ease-in-out infinite;
    min-height: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

#quote-text {
    font-size: clamp(2.8em, 8vw, 3.6em);
    color: #2d3436;
    text-align: center;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
    flex-shrink: 0;
}

.choice-btn {
    flex: 1;
    max-width: 300px;
    padding: 25px 40px;
    font-size: 2em;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.choice-btn:hover::before {
    width: 300px;
    height: 300px;
}

.choice-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.choice-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.fake-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: 5px solid #ff4757;
}

.fake-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e63946 100%);
}

.real-btn {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    border: 5px solid #2f9e44;
}

.real-btn:hover {
    background: linear-gradient(135deg, #40c057 0%, #2f9e44 100%);
}

.result-area {
    margin-top: 20px;
    text-align: center;
    animation: slideDown 0.5s ease-out;
    flex-shrink: 0;
}

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

.result-message {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 15px;
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.result-message.correct {
    color: #2f9e44;
    background: linear-gradient(135deg, #d3f9d8 0%, #b2f2bb 100%);
    border: 5px solid #51cf66;
}

.result-message.incorrect {
    color: #c92a2a;
    background: linear-gradient(135deg, #ffe3e3 0%, #ffc9c9 100%);
    border: 5px solid #ff6b6b;
}

.episode-info {
    font-size: 1.5em;
    color: #764ba2;
    font-weight: 700;
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #e0c3fc 0%, #fbc2eb 100%);
    border-radius: 15px;
    border: 3px solid #a29bfe;
}

.next-btn {
    margin-top: 20px;
    padding: 20px 50px;
    font-size: 1.8em;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: 5px solid #0984e3;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.next-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.completion-message {
    text-align: center;
    margin-top: 20px;
    animation: bounceIn 0.8s ease-out;
    flex-shrink: 0;
}

.completion-message h2 {
    font-size: 2.5em;
    color: #ff6b9d;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #4ecdc4;
}

.restart-btn {
    padding: 20px 50px;
    font-size: 1.8em;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d 0%, #f093fb 100%);
    color: white;
    border: 5px solid #e84393;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.restart-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .guess-rate {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
    }

    .guess-rate-title {
        font-size: 0.8em;
    }

    .guess-rate-value {
        font-size: 1.5em;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 5px;
    }

    .subtitle {
        font-size: 1em;
    }

    header {
        margin-bottom: 15px;
    }

    #quote-text {
        font-size: 2.0em;
    }

    .quote-display {
        padding: 20px;
        margin: 15px 0;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        margin: 15px 0;
        gap: 15px;
    }

    .choice-btn {
        width: 100%;
        max-width: none;
        font-size: 1.5em;
        padding: 20px 30px;
    }

    .result-message {
        font-size: 2em;
    }

    .result-area {
        margin-top: 15px;
    }
}

