body {
    font-family: sans-serif;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    padding-bottom: 2rem; /* Add padding at the bottom to ensure content isn't hidden by fixed buttons */
}

html {
    overflow-x: hidden;
}

#main-title {
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

h2 {
     font-family: 'Lobster', cursive;
}

#menu-container, #confirmation-container {
    margin: 9rem auto 6rem; /* Reduced top margin for more content space on mobile */
    padding: 1rem;
    position: relative;
    height: auto; /* Let content determine height */
    max-width: 100%;
    background-color: rgb(255 255 255 / 50%);
}

/* Improve options list layout for mobile */
#options-list {
    width: 100%;
    padding-bottom: 5rem; /* Extra padding at bottom for better visibility with fixed button */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.option-div {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #ec4899, #f472b6);
    color: white;
    font-weight: bold;
    padding: 0.75rem 0.5rem; /* Increased vertical padding for better tap targets */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s ease-out;
    cursor: pointer;
    width: 100%;
    min-height: 5rem; /* Ensure minimum height for content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 4px dashed rgba(255,255,255,0.5);
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.option-div:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-radius: 1rem;
    border-color: white;
}

.option-div.selected::after {
    content: '✨';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 1.5rem;
    opacity: 1;
    transform: scale(1) rotate(15deg);
    transition: all 0.3s ease-out;
}

.option-div.selected {
    outline: 4px solid #f472b6;
    transform: scale(1.05) rotate(-3deg);
    background: linear-gradient(to bottom right, #f87171, #ec4899, #9333ea);
    border-color: #f9a8d4;
    color: white;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.option-div .icon {
    display: block;
    padding: 0.5rem;
    margin-bottom: 0.25rem;
}
.option-div .option-text {
    font-size: 0.875rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cloud {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 100px;
    height: 40px;
    opacity: 0.6;
    filter: blur(2px);
    animation: moveClouds 20s linear infinite;
}

.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.cloud::before {
    width: 40px;
    height: 40px;
    top: -15px;
    left: 10px;
}

.cloud::after {
    width: 50px;
    height: 50px;
    top: -20px;
    right: 5px;
}

.cloud.fast {
    animation-duration: 25s;
    width: 80px;
    height: 35px;
    opacity: 0.5;
}
.cloud.slow {
    animation-duration: 40s;
    width: 120px;
    height: 50px;
    opacity: 0.7;
}

@keyframes moveClouds {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(110vw); }
}

.sun {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 70px;  /* Reduced from 100px */
    height: 70px; /* Reduced from 100px */
    background: radial-gradient(circle, rgba(255,255,0,1) 0%, rgba(255,200,0,1) 60%, rgba(255,165,0,0) 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px 7px rgba(255, 255, 0, 0.7); /* Smaller shadow */
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: subtlePulse 5s ease-in-out infinite alternate;
}

.sun-rays {
    position: absolute;
    width: 105px; /* Reduced from 150px */
    height: 105px; /* Reduced from 150px */
    z-index: 1;
    animation: spin 25s linear infinite;
}

.ray {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 7px;  /* Reduced from 10px */
    height: 60px; /* Reduced from 85px */
    background: linear-gradient(to top, rgba(255,200,0,0.8), rgba(255,255,0,0.9));
    border-radius: 5px 5px 0 0;
    transform-origin: bottom center;
    box-shadow: 0 0 4px rgba(255, 255, 0, 0.5); /* Smaller shadow */
    z-index: 1;
}

.ray:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.ray:nth-child(2) { transform: translateX(-50%) rotate(45deg); }
.ray:nth-child(3) { transform: translateX(-50%) rotate(90deg); }
.ray:nth-child(4) { transform: translateX(-50%) rotate(135deg); }
.ray:nth-child(5) { transform: translateX(-50%) rotate(180deg); }
.ray:nth-child(6) { transform: translateX(-50%) rotate(225deg); }
.ray:nth-child(7) { transform: translateX(-50%) rotate(270deg); }
.ray:nth-child(8) { transform: translateX(-50%) rotate(315deg); }


@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes subtlePulse {
    0% { box-shadow: 0 0 20px 7px rgba(255, 255, 0, 0.6); transform: scale(1); }
    100% { box-shadow: 0 0 30px 10px rgba(255, 220, 0, 0.8); transform: scale(1.05); }
}

.festival-logo {
    width: 16rem;
    height: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -9rem;
    z-index: 1;
}

/* Responsive adjustments for smaller screens */
@media (max-height: 700px) {
    .option-div {
        min-height: 4.5rem; /* Smaller minimum height on small screens */
        padding: 0.5rem;
    }
    
    .option-div .icon {
        font-size: 1.5rem; /* Smaller icons on small screens */
    }
}

