:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --font-countdown: 'Outfit', sans-serif;
    --font-message: 'Syne', sans-serif;
    --font-footer: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-message);
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center; /* Keep the main content centered vertically */
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    padding-left: 10%;
}

.container {
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    height: 85vh; /* Take up most of the height to allow footer at bottom */
    justify-content: center; /* Center the main content within the container */
}

main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1; /* Allow main to take space and push footer down */
    justify-content: center;
}

.countdown-wrapper {
    font-family: var(--font-countdown);
    font-size: 10rem;
    font-weight: 200;
    letter-spacing: -0.05em;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

#countdown {
    font-variant-numeric: tabular-nums;
}

.degree {
    font-size: 4rem;
    margin-top: 1rem;
    font-weight: 300;
}

.message {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.5s forwards;
    color: rgba(255, 255, 255, 0.9);
}

.branding-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 2s ease-out 1.2s forwards;
    margin-top: auto; /* Push to the absolute bottom of the container */
    padding-bottom: 2rem;
}

.logo img {
    display: block;
    height: 18px; /* Slightly smaller for the end tag feel */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.signage {
    font-family: var(--font-footer);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-left: 5%;
    }
    .countdown-wrapper {
        font-size: 8rem;
    }
    .degree {
        font-size: 3rem;
    }
    .message {
        font-size: 1.1rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .countdown-wrapper {
        font-size: 6rem;
    }
    .degree {
        font-size: 2.5rem;
    }
    .message {
        font-size: 1rem;
    }
}
