:root {
    --primary-color: #ff9a9e;
    --secondary-color: #fecfef;
    --text-color: #555;
    --bg-color: #fff0f5;
}

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

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scrolling */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle, #ffffff 20%, transparent 20%),
        radial-gradient(circle, #ffffff 20%, transparent 20%);
    background-size: 50px 50px;
    background-position:
        0 0,
        25px 25px;
    color: var(--text-color);
}

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

/* Countdown Section */
.countdown-container {
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid var(--primary-color);
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 0.3rem;
}

.countdown-timer {
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unit-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Standee Images */
.standee {
    position: absolute;
    bottom: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-height: 60vh; /* Adjust based on viewport */
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    /* Placeholder style if image missing */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Placeholder styling */
.standee.placeholder {
    background: linear-gradient(to bottom, #ff9a9e, #fad0c4);
    width: 200px;
    height: 400px;
    border-radius: 20px 20px 0 0;
}

.standee-left {
    left: 6%;
    transform-origin: bottom center;
    animation: sway 4s ease-in-out infinite;
}

.standee-right {
    right: 6%;
    transform-origin: bottom center;
    animation: sway 5s ease-in-out infinite reverse;
}

.standee:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

.standee:active {
    transform: scale(0.95) rotate(5deg);
}

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

/* Omikuji Section */
.omikuji-container {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
    z-index: 20;
    max-width: 200px;
}

.omikuji-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
    letter-spacing: 5px;
}

.omikuji-btn:hover {
    background-color: #ff758c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.omikuji-btn:active {
    transform: translateY(0);
}

.omikuji-result {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 1.5em;
    color: #d63384;
    display: none; /* Hidden by default */
}

.omikuji-result.show {
    display: block;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-timer {
        font-size: 1.8rem;
        gap: 10px;
    }

    .standee {
        max-height: 40vh;
        opacity: 0.8; /* Fade slightly so text is readable */
    }

    .standee.placeholder {
        width: 120px;
        height: 250px;
    }

    .omikuji-container {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .omikuji-result {
        margin-top: 0;
        margin-left: 10px;
    }
}
