@import url('https://fonts.googleapis.com/css2?family=Eater&display=swap');

.font-creepy {
    font-family: 'Eater', cursive;
    text-shadow: 0 0 10px #ff6600, 0 0 20px #ff3300;
}

.door {
    perspective: 1000px;
    cursor: pointer;
    transition: transform 0.3s;
}

.door:hover {
    transform: translateY(-5px);
}

.door-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 150%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.door-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.door-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background-color: #1a202c;
    border-radius: 5px;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.open {
    transform: rotateY(180deg);
}

.prize {
    background-color: gold !important;
    box-shadow: 0 0 20px gold;
}

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

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