/* Main container for the full-screen experience */
#spc-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden; /* Ensure nothing spills out */
}

/* Hidden state for the container */
#spc-container.spc-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Video background styles */
#spc-video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

/* Dark overlay to improve text readability over the video */
#spc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Close button in the top right corner */
#spc-close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    z-index: 3;
}

#spc-close-button:hover {
    transform: scale(1.1);
}

/* Container for the produce pods */
#spc-pods-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 150px); /* Avoids overlap with the slider */
    pointer-events: none; /* Allows clicks to go "through" the container */
}

/* Individual produce pod styling */
.spc-pod {
    position: absolute;
    padding: 12px 24px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    color: #333;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: spc-pod-appear 0.5s ease-out forwards;
    pointer-events: all; /* Make pods clickable */
}

.spc-pod:hover {
    transform: scale(1.08) translateY(-5px);
    background-color: rgba(255, 255, 255, 1);
}

@keyframes spc-pod-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Wrapper for the slider controls at the bottom */
#spc-slider-wrapper {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
    padding: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

/* Current month label above the slider */
#spc-month-label {
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Styling for the range slider */
#spc-month-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#spc-month-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

#spc-month-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

/* Tick marks for the months below the slider */
#spc-month-ticks {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

