/* ==========================================
   Project Unicorn
   Version 0.1
========================================== */

:root {

    /* Farben */
    --background: #12343B;
    --primary: #22C7C7;
    --secondary: #7EE7C7;
    --accent: #F6C945;
    --text: #F8F8F8;

    /* Größen */
    --radius: 18px;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(126, 231, 199, 0.25), transparent 35%),
        radial-gradient(circle at bottom right, rgba(34, 199, 199, 0.25), transparent 35%),
        linear-gradient(135deg, #0f2f35, #12343B 45%, #0b2429);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

#start-screen {

    width: 100vw;
    height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

}

.hero-card {
    width: 700px;
    padding: 60px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    text-align: center;
}

.birthday-icon {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .25));
    transition: transform .3s ease;
}

.birthday-icon:hover {
    transform: scale(1.05) rotate(-2deg);
}

.hero-card h1 {
    font-size: 3rem;
    margin-bottom: 18px;
    color: #267888;
    letter-spacing: .5px;

}

.hero-card {
    padding: 60px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

.birthday-icon {
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 45px;

}

.start-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.start-button:hover {
    transform: scale(1.05);
    background: var(--secondary);
}

#game-screen {

    display: none;

    width: 100vw;
    height: 100vh;

    justify-content: center;
    align-items: center;

}

.game-container {
    width: min(1100px, 90vw);
    min-height: 720px;
    padding: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 35px;
}

.eyebrow {
    color: var(--secondary);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#riddle-title {
    font-size: 2.2rem;
}

.card-overview {
    text-align: right;
}

.card-overview span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 10px;
}

#card-collection {
    display: grid;
    grid-template-columns: repeat(6, 42px);
    gap: 10px;
    justify-content: end;
}

#card-collection-final {
    display: grid;
    grid-template-columns: repeat(6, 42px);
    gap: 10px;
    justify-content: end;
}

.card-slot {
    width: 42px;
    height: 60px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: default;
    transition: 0.25s;
}

.card-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: 0.25s;
}

.card-slot.locked img {
    opacity: 0.28;
    filter: grayscale(100%) brightness(0.75);
}

.card-slot.collected {
    cursor: pointer;
}

.card-slot.collected img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(34, 199, 199, 0.45));
}

.card-slot.collected:hover {
    transform: translateY(-4px);
}

.card-slot.collected:hover img {
    filter: drop-shadow(0 8px 18px rgba(34, 199, 199, 0.6));
}

.riddle-area {
    justify-content: flex-start !important;
    padding-top: 0 !important;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.18);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    margin-bottom: 30px;
}


#riddle-content {
    margin-top: 0 !important;
}

#riddle-content.reveal-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    /* nach Geschmack anpassen */
}

.riddle-placeholder {
    opacity: 0.75;
    font-size: 1.2rem;
}

.answer-area {
    display: flex;
    gap: 14px;
    width: 100%;
    margin: 20px auto 0 auto;
}

#answer-input,
#answer-input-final {
    flex: 1;
    padding: 18px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 1rem;
    outline: none;
}

#answer-input::placeholder,
#answer-input-final::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

#answer-area {
    justify-content: center;
}




#answer-feedback,
#answer-feedback-final {
    margin-top: 14px;
    min-height: 24px;
    text-align: center;
    font-weight: 600;
    color: #ff8f8f;
    opacity: 0;
    transition: opacity .25s ease;
}

#answer-feedback.show,
#answer-feedback-final.show {
    opacity: 1;

}

#answer-area-final {
    display: none;
}

@keyframes shake {

    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }

}

.shake {

    animation: shake .35s;

}

.input-error {

    border: 2px solid #ff6b6b !important;

    box-shadow: 0 0 10px rgba(255, 107, 107, .45);

}

.hidden {
    display: none;
}

#check-button {
    padding: 18px 34px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}


#card-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.card-slot.collected:hover {

    transform: translateY(-4px) scale(1.05);

}

.reward-card {
    position: relative;
    perspective: 1200px;
}

.reward-card.large {
    width: 390px;
    height: 560px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s ease, transform 0.35s ease;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.55));
}

.reward-card.large.visible {
    opacity: 1;
    transform: scale(1);
}

.reward-card.large.closing {
    opacity: 0;
    transform: scale(0.6);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s ease;
}

.reward-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-back>img,
.card-frame {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-front {
    transform: rotateY(180deg);
}

.card-frame {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card-symbol {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 65%;
    height: auto !important;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.card-title {
    position: absolute;
    bottom: 11%;
    left: 36%;
    right: auto;
    width: 70%;
    transform: translateX(-30%);
    text-align: center;
    color: #12343B;
    font-weight: 700;
    font-size: 1.3rem;
    z-index: 3;
    text-shadow:
        0px 1px 2px rgba(255, 255, 255, 0.5),
        0px 2px 4px rgba(0, 0, 0, 0.25);
}

.card-letter {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: #f023bd;
    font-size: 2.5rem;
    font-weight: 800;
    z-index: 4;
    text-shadow:
        0px 1px 2px rgba(255, 255, 255, 0.4),
        0px 2px 5px rgba(0, 0, 0, 0.35);
    letter-spacing: 1px;
}

.start-button {

    opacity: 0;

    transform: translateY(12px);

    pointer-events: none;

    transition:
        opacity .45s ease,
        transform .45s ease;

}

.start-button.show {

    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;

}

#loading-area {
    margin-top: 35px;
    text-align: center;

    opacity: 1;
    transition: opacity .5s ease;
}

#loading-area.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading-area p {
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.85;
}

.loading-bar {
    width: 260px;
    height: 12px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: loadGame 10.0s ease forwards;
}

@keyframes loadGame {

    0% {
        width: 0%;
    }

    10% {
        width: 18%;
    }

    25% {
        width: 45%;
    }

    45% {
        width: 72%;
    }

    70% {
        width: 90%;
    }

    90% {
        width: 97%;
    }

    100% {
        width: 100%;
    }

}

.riddle-text {
    text-align: center;
    font-size: 2.0rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #8faeb4;

}

.riddle-image {
    display: block;
    max-width: 100%;
    max-height: 320px;
    margin: 0 auto;
    border-radius: 14px;
}

#riddle-text {
    text-align: center;
    font-size: 2.0rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--text);
    white-space: pre-line !important;
}

.wordsearch-grid {
    display: grid !important;
    grid-template-columns: repeat(10, 42px);
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

.wordsearch-cell {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
}

.wordsearch-cell.selected {
    background: var(--primary) !important;
    color: #12343B !important;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(34, 199, 199, 0.6);
}

.wordsearch-cell.preview {
    background: rgba(126, 231, 199, 0.45) !important;
    color: #12343B !important;
}

.wordsearch-cell.found {
    background: rgba(126, 231, 199, 0.75) !important;
    color: #12343B !important;
    box-shadow: 0 0 14px rgba(126, 231, 199, 0.55);
    cursor: default;
}

.wordsearch-cell.found:hover {
    transform: none;
}

.wordsearch-counter {
    text-align: center;
    margin-top: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.wordsearch-counter.pop {
    animation: counterPop .25s ease;
}

@keyframes counterPop {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }

}

.riddle-video {
    width: 100%;
    max-width: 720px;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    margin-top: 20px;
    margin-bottom: 20px
}

.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(5, 72px);
    grid-template-rows: repeat(5, 72px);
    gap: 4px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.puzzle-piece {
    width: 72px;
    height: 72px;

    background-repeat: no-repeat;
    background-size: 360px 360px;

    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.puzzle-piece.selected {
    transform: scale(1.08);
    filter: brightness(1.2);
    box-shadow: 0 0 18px rgba(246, 201, 69, 0.7);
}

.spot-difference-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 24px;
}

.spot-difference-image {
    max-width: 100%;
    max-height: 430px;
    display: block;
    border-radius: 16px;
    margin-bottom: 20px;
}

.difference-marker {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 4px solid #E53935;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 0 0 14px rgba(229, 57, 53, .6);

    animation: markerPop .2s ease;
}

@keyframes markerPop {

    0% {
        transform: translate(-50%, -50%) scale(.3);
    }

    80% {
        transform: translate(-50%, -50%) scale(1.15);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }

}

.difference-counter {
    text-align: center;
    margin-bottom: 18px;
    font-weight: 700;
    color: var(--secondary);
}

.audio-morse {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 24px;
}

.audio-player {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.morse-table {
    flex: 1;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.morse-table table {
    width: 100%;
    border-collapse: collapse;
}

.morse-table td {
    padding: 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: monospace;
}

.timeline-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: nowrap;
}

.timeline-item {
    width: 130px;
    height: 190px;
    border: none;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.timeline-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-line {
    margin: 22px auto 0;
    max-width: 850px;
    text-align: center;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: .04em;
}

.timeline-item.swapping {
    transform: scale(0.94);
    opacity: 0.65;
    transition: transform .22s ease, opacity .22s ease;
}

.timeline-item {
    transition: transform .22s ease, opacity .22s ease, box-shadow .22s ease;
}

.timeline-item.selected {
    box-shadow:
        inset 0 0 0 4px var(--accent),
        0 0 18px rgba(246, 201, 69, .7);
    transform: scale(1.04);
}

.emoji-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0;
}

.emoji-card {
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    min-height: 80px;

    font-size: 1.5rem;
    letter-spacing: 10px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

.matching-container {
    display: flex;
    justify-content: center;
    gap: 180px;
    margin-top: 0px;
    margin-bottom: 50px;
    position: relative;
}



.matching-item {
    width: 260px;
    min-height: 56px;
    background: rgba(255, 255, 255, .08);
    border: 2px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 14px 18px;
    text-align: center;
    cursor: pointer;
    transition: .2s;

    display: flex;
    justify-content: center;
    align-items: center;
}

.matching-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.matching-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 2;
}

.matching-item.selected {
    box-shadow:
        inset 0 0 0 4px var(--accent),
        0 0 18px rgba(246, 201, 69, .7);
    transform: scale(1.03);
}

.matching-lines path.wrong {
    animation: lineShake .28s ease;
}

@keyframes lineShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-3px);
    }
}

.flashlight-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 330px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
}

.flashlight-image {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
    object-position: center top;
    user-select: none;
    pointer-events: none;
}

.flashlight-overlay {
    position: absolute;
    inset: 0;

    --x: 50%;
    --y: 50%;

    background:
        radial-gradient(circle 20px at var(--x) var(--y),
            transparent 0,
            transparent 15px,
            rgba(0, 0, 0, .35) 16px,
            rgba(0, 0, 0, .995) 30px);

    transition: opacity .8s ease;
}

.flashlight-overlay.solved {
    opacity: 0;
}

.flashlight-overlay.flicker {
    background:
        radial-gradient(circle 10px at var(--x) var(--y),
            transparent 0,
            transparent 6px,
            rgba(0, 0, 0, .55) 10px,
            rgba(0, 0, 0, 1) 24px);
}


#final-screen {
    display: none;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

#final-text {
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.6;
}

#rpd-map {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.rpd-nav {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.rpd-nav button {
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.rpd-nav button.active {
    background: var(--primary);
}

.rpd-floor {
    display: none;
    width: 100%;
    max-width: 900px;
    position: relative;
}

.rpd-floor img {
    width: 100%;
    border-radius: 16px;
}

.rpd-floor.active {
    display: block;
}

.room-hotspot {
    position: absolute;
    cursor: pointer;
    border-radius: 8px;
    transition: all .0s ease;
}

.room-hotspot.pulse {
    animation: pulse 2s infinite;
}

.room-hotspot:hover {
    outline: 0px solid rgba(126, 231, 199, .9);
    box-shadow: 0 0 14px rgba(126, 231, 199, .35);
    transform: scale(1.02);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 rgba(126, 231, 199, 0);
    }

    50% {
        box-shadow: 0 0 18px rgba(126, 231, 199, .35);
    }

    100% {
        box-shadow: 0 0 0 rgba(126, 231, 199, 0);
    }
}

.room-hotspot.debug {
    background: rgba(255, 0, 0, 0.25);
    outline: 2px solid red;
}

#floor-eg .room-hotspot[data-room="lobby"] {
    top: 29.6%;
    left: 37.5%;
    width: 22.5%;
    height: 46.5%;
}

#floor-eg .room-hotspot[data-room="bathroom"] {
    top: 38.7%;
    left: 83.7%;
    width: 6.8%;
    height: 15%;
}

#floor-eg .room-hotspot[data-room="eastoffice"] {
    top: 59.6%;
    left: 65.2%;
    width: 18.5%;
    height: 23%;
}

#floor-eg .room-hotspot[data-room="operations"] {
    top: 29%;
    left: 3.6%;
    width: 11.5%;
    height: 15%;
}

#floor-eg .room-hotspot[data-room="darkroom"] {
    top: 31%;
    left: 28%;
    width: 5.6%;
    height: 14.8%;
}

#floor-f1 .room-hotspot[data-room="library"] {
    top: 36.4%;
    left: 17.5%;
    width: 16%;
    height: 34%;
}

#floor-f1 .room-hotspot[data-room="outside"] {
    top: 26.7%;
    left: 88.5%;
    width: 10.3%;
    height: 18.6%;
}

#floor-f1 .room-hotspot[data-room="bearroom"] {
    top: 55.3%;
    left: 65.2%;
    width: 8%;
    height: 13.5%;
}

#floor-f1 .room-hotspot[data-room="statue"] {
    top: 71%;
    left: 17.5%;
    width: 10.2%;
    height: 13%;
}

#floor-f1 .room-hotspot[data-room="bathroom2"] {
    top: 17.1%;
    left: 1.3%;
    width: 21%;
    height: 15%;
}

#floor-f2 .room-hotspot[data-room="library2"] {
    top: 32%;
    left: 4.8%;
    width: 12.7%;
    height: 29%;
}

#floor-f2 .room-hotspot[data-room="rightroom"] {
    top: 19.2%;
    left: 70.7%;
    width: 15.4%;
    height: 23%;
}

.room-hotspot.visited {
    outline: 0px solid var(--primary);
}

.room-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.room-popup.hidden {
    display: none;
}

.popup-content {
    background: #111;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 0 25px rgba(0, 0, 0, .6);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 22px;
    color: #aaa;
    opacity: 0.7;
    transition: 0.2s;
    user-select: none;
}

.popup-close:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #fff;
}

.popup-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

#popup-text {
    margin-bottom: 15px;
}

.popup-hint {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.4;
}

#ending-screen {
    display: none;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at center, rgba(126, 231, 199, .18), transparent 35%),
        radial-gradient(circle at top, rgba(255, 255, 255, .08), transparent 30%),
        #050707;
}

.ending-container{
    max-width:1100px;
    width:90%;
    padding:40px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    background:transparent;
    border:none;
    box-shadow:none;
    backdrop-filter:none;

    position:relative;
    z-index:2;
}

.ending-text-wrapper{
    width:100%;
    max-width:1000px;
    min-height:300px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin-bottom:30px;
}

.ending-text{
    width:100%;
    max-width:1000px;

    text-align:center;
    font-size:2.8rem;
    line-height:1.45;
    font-weight:600;

    color:#eefcf8;

    text-shadow:
        0 0 8px rgba(0,0,0,.95),
        0 0 18px rgba(0,0,0,.75),
        0 0 30px rgba(0,0,0,.45);
}

.ending-symbol {
    width: 90px;
    margin-bottom: 24px;
    margin-top: 35px;
    filter: drop-shadow(0 0 18px rgba(126, 231, 199, .45));
}

#fireworks-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 40px;

    justify-content: center;
}

.fade-out{
    opacity:0;
    transition:opacity .8s ease;
}

.fade-in{
    animation:fadeIn .8s ease forwards;
}

@keyframes fadeIn{
    from{ opacity:0; }
    to{ opacity:1; }
}

.pulse-symbol{
    animation: symbolPulse 2s ease-in-out infinite;
}

@keyframes symbolPulse{
    0%{transform:scale(1);}
    50%{transform:scale(1.2);}
    100%{transform:scale(1);}
}

#volume-slider {

    width: 220px;

    accent-color: #7ee7c7;

    cursor: pointer;
}

.hidden {
    display: none;
}



.answer-area.solved {
    justify-content: flex-end;
}

.answer-area.solved input {
    display: none;
}

.answer-area.solved .answer-feedback {
    display: none;
}

.answer-area.solved #check-button {
    min-width: 220px;
}

#flash-overlay{
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.16);
    opacity:0;
    z-index:1;
    pointer-events:none;
}

#flash-overlay.flash{
    animation:screenFlash .35s ease-out;
}

@keyframes screenFlash{
    0%{
        opacity:0;
    }

    18%{
        opacity:.18;
    }

    100%{
        opacity:0;
    }
}