/* Google Fonts */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Global */
html {
    min-height: 100%;
    overflow: hidden;
}

body {
    height: calc(100vh - 20px);
    color: #886dc9;
    font-family: 'Anonymous Pro', monospace;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #ddd6fe 100%);
}

.line-1 {
    position: relative;
    width: 12em;
    margin: 0 auto;
    border-right: 2px solid #886dc9;
    font-size: 200%;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
}

.line-2 {
    max-width: 85%;
    font-size: 100%;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.line-3 {
    max-width: 85%;
    font-size: 250%;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

br {
    margin-bottom: 16px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 100%;
    color: #fff;
    background-color: #886dc9;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.yes {
    background-color: #2fc975;
}

.no {
    background-color: #f87171;
}

/* Animation */
.anim-typewriter {
    animation: typewriter 3s steps(14) 1s 1 normal both,
        blinkTextCursor 500ms steps(14) infinite normal;
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 14ch;
    }
}

@keyframes blinkTextCursor {
    from {
        border-right-color: #886dc9;
    }

    to {
        border-right-color: transparent;
    }
}

/* Cooldown Bar */
#cooldown-bar-container {
    width: 25ch;
    margin: 20px auto 0 auto;
    height: 4px;
    background: rgba(107, 70, 193, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

#cooldown-bar {
    height: 100%;
    width: 0;
    background: #886dc9;
    border-radius: 3px;
    transition: width 5s linear;
}

/* Main Container */
.main-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Video container styles */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.video-player {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Overlay countdown bar */
.overlay-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
}

.countdown-text {
    color: #886dc9;
    font-size: 14px;
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #886dc9;
    border-radius: 3px;
    animation: countdown 15s linear forwards;
}

@keyframes countdown {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Shake animation for the no button */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Confetti overlay */
.confetti-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.confetti-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}