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

html {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #1a472a;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a472a 0%, #0d2818 50%, #1a472a 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Snowflakes animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gift-counter {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: rgba(26, 71, 42, 0.9);
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: bold;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 1.5em;
    animation: fall linear infinite;
    opacity: 0.7;
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 14s;
    animation-delay: 2s;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 0.5s;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 13s;
    animation-delay: 1.5s;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 15s;
    animation-delay: 2.5s;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 10s;
    animation-delay: 0.3s;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 12s;
    animation-delay: 1.8s;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 14s;
    animation-delay: 0.7s;
}

.snowflake:nth-child(10) {
    left: 95%;
    animation-duration: 13s;
    animation-delay: 2.2s;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.container.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Title */
.title {
    font-size: 4.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4),
            3px 3px 6px rgba(0, 0, 0, 0.8);
    }
    to {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 35px rgba(255, 215, 0, 0.6),
            3px 3px 6px rgba(0, 0, 0, 0.8);
    }
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* Gift locations */
.gift-locations {
    margin-top: 3rem;
    text-align: center;
}

.locations-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.locations-list {
    font-size: 1.1rem;
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a472a;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 3px solid #ffaa00;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    min-width: 250px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 3px 10px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
    border: 4px solid #ffd700;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #1a472a;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background-color: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg);
    color: #d32f2f;
}

.modal-text {
    color: #1a472a;
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    padding-top: 1rem;
}

.modal-text p {
    margin: 0;
}

/* Awards Box */
.awards-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1400px;
    height: 85vh;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe082 100%);
    border: 6px solid #ffd700;
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.awards-box.active {
    opacity: 1;
    visibility: visible;
}

.phase-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}

.phase-title {
    font-size: 6rem;
    font-weight: 900;
    color: #1a472a;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: 0.2em;
    margin: 0;
    margin-bottom: 1.5rem;
    font-family: 'Arial Black', 'Arial', sans-serif;
    text-transform: uppercase;
}

.phase-line {
    width: 100%;
    height: 2px;
    background-color: #1a472a;
    opacity: 0.6;
    margin-bottom: 2rem;
}

.phase-date {
    font-size: 0.875rem;
    color: #1a472a;
    opacity: 0.8;
    margin: 0;
    margin-top: -1.5rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Awards Grid */
.awards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.award-box {
    background: linear-gradient(135deg, #ffffff 0%, #fff8e1 100%);
    border: 3px solid #ffd700;
    border-radius: 15px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    width: 100%;
    aspect-ratio: 1;
    max-width: 100%;
    max-height: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.award-box:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Award content styling */
.award-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pink-square {
    background-color: #ff69b4;
}

.dark-blue-square {
    background-color: #00008b;
}

.glowing-white-square {
    background-color: #ffffff;
    box-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.4),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    from {
        box-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 0 25px rgba(255, 255, 255, 0.8),
            0 0 35px rgba(255, 255, 255, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.7);
    }
}

.glowing-gold-square {
    background-color: #ffd700;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        inset 0 0 10px rgba(255, 215, 0, 0.5);
    animation: glow-gold-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-gold-pulse {
    from {
        box-shadow: 
            0 0 10px rgba(255, 215, 0, 0.8),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4),
            inset 0 0 10px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 
            0 0 15px rgba(255, 215, 0, 1),
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 35px rgba(255, 215, 0, 0.6),
            inset 0 0 15px rgba(255, 215, 0, 0.7);
    }
}

.color-preview.blue-white-square {
    width: 50px !important;
    height: 50px !important;
    background-image: linear-gradient(to right, rgb(0, 0, 255) 0%, rgb(102, 102, 255) 20%, rgb(153, 153, 255) 40%, rgb(204, 204, 255) 60%, rgb(255, 255, 255) 100%) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 3px solid transparent !important;
    border-image: linear-gradient(to right, rgb(0, 0, 255), rgb(255, 255, 255)) 1 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.color-preview.red-green-square {
    width: 50px !important;
    height: 50px !important;
    background-image: linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 102, 0) 20%, rgb(255, 153, 0) 40%, rgb(153, 204, 0) 60%, rgb(0, 128, 0) 100%) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 3px solid transparent !important;
    border-image: linear-gradient(to right, rgb(255, 0, 0), rgb(0, 128, 0)) 1 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.award-text {
    font-size: 0.9rem;
    color: #1a472a;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.gift-button {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: #1a472a;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #ffaa00;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gift-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.gift-button:active {
    transform: translateY(0) scale(1);
    box-shadow: 
        0 2px 6px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.gift-button.sold {
    background: linear-gradient(135deg, #888888 0%, #aaaaaa 100%);
    border-color: #666666;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.7;
}

.gift-button.sold:hover {
    transform: none;
    box-shadow: 
        0 2px 8px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #888888 0%, #aaaaaa 100%);
}

/* Constrain boxes for smaller viewport heights (non-fullscreen windows) */
@media (max-height: 900px) {
    .award-box {
        max-height: 120px;
    }
}

@media (max-height: 700px) {
    .award-box {
        max-height: 100px;
    }
    
    .awards-grid {
        gap: 1rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        font-size: 1.1rem;
        padding: 0.9rem 2rem;
        min-width: 220px;
    }
    
    .gift-locations {
        margin-top: 2rem;
    }
    
    .locations-title {
        font-size: 1.5rem;
    }
    
    .locations-list {
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 2rem;
        max-width: 90%;
    }
    
    .modal-text {
        font-size: 1.1rem;
    }
    
    .gift-counter {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
    
    .awards-box {
        width: 95%;
        height: 90vh;
        padding: 2rem;
    }
    
    .phase-title {
        font-size: 4rem;
    }
    
    .phase-header {
        margin-top: 0.3rem;
    }
    
    .phase-date {
        font-size: 0.75rem;
        margin-top: -1.2rem;
    }
    
    .awards-grid {
        gap: 1rem;
        margin-top: 0.5rem;
    }
    
    .awards-grid {
        gap: 1rem;
    }
    
    .award-box {
        max-height: 120px;
    }
    
    .award-text {
        font-size: 0.8rem;
    }
    
    .color-preview {
        width: 35px;
        height: 35px;
    }
    
    .color-preview.blue-white-square {
        width: 45px !important;
        height: 45px !important;
        background-image: linear-gradient(to right, rgb(0, 0, 255) 0%, rgb(102, 102, 255) 20%, rgb(153, 153, 255) 40%, rgb(204, 204, 255) 60%, rgb(255, 255, 255) 100%) !important;
        background-color: transparent !important;
        background-size: 100% 100% !important;
        border: 3px solid transparent !important;
        border-image: linear-gradient(to right, rgb(0, 0, 255), rgb(255, 255, 255)) 1 !important;
    }
    
    .color-preview.red-green-square {
        width: 45px !important;
        height: 45px !important;
        background-image: linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 102, 0) 20%, rgb(255, 153, 0) 40%, rgb(153, 204, 0) 60%, rgb(0, 128, 0) 100%) !important;
        background-color: transparent !important;
        background-size: 100% 100% !important;
        border: 3px solid transparent !important;
        border-image: linear-gradient(to right, rgb(255, 0, 0), rgb(0, 128, 0)) 1 !important;
    }
    
    .gift-button {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
        min-width: 200px;
    }
    
    .gift-locations {
        margin-top: 1.5rem;
    }
    
    .locations-title {
        font-size: 1.3rem;
    }
    
    .locations-list {
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .gift-counter {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 0.875rem;
        font-size: 0.9rem;
        border-width: 2px;
    }
    
    .awards-box {
        width: 98%;
        height: 92vh;
        padding: 1.5rem;
        border-width: 4px;
    }
    
    .phase-title {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }
    
    .phase-header {
        margin-top: 0.2rem;
    }
    
    .phase-date {
        font-size: 0.7rem;
        margin-top: -1rem;
    }
    
    .awards-grid {
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .awards-grid {
        gap: 0.8rem;
    }
    
    .award-box {
        max-height: 90px;
        border-width: 2px;
    }
    
    .award-text {
        font-size: 0.7rem;
    }
    
    .color-preview {
        width: 30px;
        height: 30px;
    }
    
    .color-preview.blue-white-square {
        width: 40px !important;
        height: 40px !important;
        background-image: linear-gradient(to right, rgb(0, 0, 255) 0%, rgb(102, 102, 255) 20%, rgb(153, 153, 255) 40%, rgb(204, 204, 255) 60%, rgb(255, 255, 255) 100%) !important;
        background-color: transparent !important;
        background-size: 100% 100% !important;
        border: 3px solid transparent !important;
        border-image: linear-gradient(to right, rgb(0, 0, 255), rgb(255, 255, 255)) 1 !important;
    }
    
    .color-preview.red-green-square {
        width: 40px !important;
        height: 40px !important;
        background-image: linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(255, 102, 0) 20%, rgb(255, 153, 0) 40%, rgb(153, 204, 0) 60%, rgb(0, 128, 0) 100%) !important;
        background-color: transparent !important;
        background-size: 100% 100% !important;
        border: 3px solid transparent !important;
        border-image: linear-gradient(to right, rgb(255, 0, 0), rgb(0, 128, 0)) 1 !important;
    }
    
    .gift-button {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
}

