@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root {
    --font: 'Comic Neue', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-size-desktop: 22px;
    --font-size-mobile: 20px;
    --container: 800px;
}
input.error {
    border-color: var(--error);
}

input.error:focus {
    box-shadow: 0 0 0 2px rgba(218, 41, 28, 0.25);
    outline: none;
}
input, textarea, select {
    border: 3px solid;
}

label {
    color: var(--text);
}

label:not(.checkbox)::before {
    height: 3px;
}

/* Make body a flex container to push footer to bottom */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.form {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
}
.form.valign {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.checkbox {
    scale: 1.2;
}

/* Background video styling */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: none;
    pointer-events: none; /* Prevent all interactions */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Sound indicator for videos with audio */
.sound-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sound-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
}

.sound-indicator.muted {
    opacity: 0.6;
}
.confirmation, .bgbox {
    background: #fff;
    padding: 0.5rem;
    border-radius: var(--radius);
    border: 3px solid #333;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.8);
}

/* Ensure contest result boxes do not stretch */
.contest-result-win.container.center.bgbox,
.contest-result-no-win.container.center.bgbox {
    margin: 0 auto;
}

.partner-logo {
    max-width: 220px;
    max-height: 120px;
    display: block;
    margin: 1rem auto 0;
}
input {
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.8);
}

/* Sound Indicator Overlay Animations */
#iheart {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: scale(1);
    z-index: 1000;
    animation: iheart-pulse 1s infinite ease-in-out;
    pointer-events: none;
}

@keyframes iheart-pulse {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.8);
    }
}
#iheart.animate-out {
    animation: zoomFadeOut 0.5s ease-out forwards;
}

@keyframes zoomFadeOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(6);
        opacity: 0;
    }
}
