@font-face {
    font-family: 'Jacquard24';
    src: url('font/jacquard_24/Jacquard24-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DMSerifText';
    src: url('font/dm_serif_text/DMSerifText-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

/* Desktop Styles */
.desktop-countdown {
    display: flex;
}

.mobile-countdown {
    display: none;
}

/* Title Section */
.title-section {
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 15px;
    /* Break out of container to center on viewport */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.title-section h1 {
    font-family: 'Jacquard24', serif;
    font-size: 8rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: #eff0f1;
    white-space: nowrap;
}

.title-section h1 .title-line {
    display: inline;
}

/* Countdown Section */
.countdown-section {
    color: #ffffff;
    padding: 40px 0 20px 0;
    text-align: center;
    margin-bottom: 10px;
}

.countdown-section h2 {
    font-size: 1.44rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 60px;
}

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

.time-value {
    font-size: 9.6rem;
    font-weight: bold;
    line-height: 1;
    display: block;
    font-family: 'Courier New', monospace;
    color: #ffffff;
}

.time-value-seconds {
    color: #ff4444 !important;
}

.time-label {
    font-size: 0.96rem;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    opacity: 0.8;
}

/* One-liner Section */
.oneliner-section {
    color: #2c5aa0;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 20px;
}

.oneliner-section p {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    color: #999;
}

.oneliner-section .inauguration-title {
    font-family: 'Jacquard24', serif;
    font-size: 5.04rem;
    font-weight: normal;
    color: #eff0f1;
    margin-top: 10px;
    white-space: nowrap;
}

/* Quote Section */
.quote-section {
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
    margin: 0 auto 30px auto;
    min-height: 200px;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loading {
    font-size: 0.96rem;
    color: #999;
}

.quote-content blockquote {
    font-family: 'DMSerifText', serif;
    font-size: 1.44rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: normal;
    color: #2c5aa0;
}

.quote-content blockquote:before {
    content: "\201C";
}

.quote-content blockquote:after {
    content: "\201D";
}

.quote-content cite {
    font-family: 'DMSerifText', serif;
    font-size: 1.04rem;
    font-style: normal;
    display: block;
    text-align: right;
    color: #2c5aa0;
}

.quote-content cite:before {
    content: "— ";
}

.error {
    color: #ff6b6b;
    font-size: 0.96rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

footer p {
    font-size: 1rem;
    line-height: 1.6;
    white-space: nowrap;
}

.submission-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
}

.submission-link:hover {
    text-decoration: underline;
    color: #4a7dc0;
}

.mobile-footer {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide desktop elements */
    .desktop-countdown {
        display: none !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Show mobile elements */
    .mobile-countdown {
        display: block;
    }

    /* Mobile header styling - part of content flow */
    .title-section {
        display: block;
        position: static;
        padding: 0 20px 10px 20px;
        text-align: center;
        background: transparent;
        margin-bottom: 0;
    }

    .title-section h1 {
        font-family: 'Jacquard24', serif;
        font-size: 3.08rem;
        font-weight: normal;
        margin: 0;
        color: #eff0f1;
        line-height: 1.1;
        white-space: normal;
    }

    .title-section h1 .title-line {
        display: block;
    }

    /* Mobile content wrapper */
    .mobile-content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0;
        max-width: 100vw;
        box-sizing: border-box;
        position: static;
        transform: none;
        height: auto;
    }

    /* Reset all section padding/margins */
    .countdown-section {
        padding: 0;
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .quote-section {
        padding: 0;
        margin: 0;
        width: 100%;
        text-align: center;
        max-width: 100%;
    }

    /* Mobile oneliner section */
    .oneliner-section {
        padding: 10px 15px;
        margin: 0 0 -5px 0;
    }

    .oneliner-section p {
        font-size: 0.9rem;
        color: #999;
    }

    .oneliner-section .inauguration-title {
        font-size: 2.16rem;
        white-space: normal;
        line-height: 1.2;
    }

    /* Days hero section */
    .days-hero {
        text-align: center;
        margin: 0 15px 15px 15px;
        width: calc(100% - 30px);
    }

    .days-large {
        font-size: 10.5rem;
        font-weight: 900;
        line-height: 0.8;
        letter-spacing: -3px;
        font-family: 'Courier New', monospace;
        color: #ffffff;
        display: block;
        margin-top: 15px;
        margin-bottom: -10px;
    }

    .days-label {
        font-size: 0.96rem;
        opacity: 0.7;
        margin-top: 0;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    /* Time details section */
    .time-details {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
        width: 100%;
    }

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

    .time-value-small {
        font-size: 3.75rem;
        font-weight: bold;
        font-family: 'Courier New', monospace;
        color: #ffffff;
        line-height: 1;
    }

    .time-value-small.time-value-seconds {
        color: #ff4444;
    }

    .time-label-small {
        font-size: 0.48rem;
        opacity: 0.7;
        margin-top: 2px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .time-separator {
        font-size: 3.75rem;
        font-weight: bold;
        color: #ffffff;
        opacity: 0.5;
        margin: 0 5px;
    }

    /* Quote card for mobile */
    .quote-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 25px 20px;
        margin: 0 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        backdrop-filter: blur(10px);
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
    }

    .quote-content blockquote {
        font-size: 1.2rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .quote-content cite {
        font-size: 0.88rem;
    }

    /* Mobile footer - positioned absolutely to not affect centering */
    .mobile-footer {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        text-align: center;
        width: 100%;
        z-index: 10;
    }

    .submission-link-mobile {
        color: #2c5aa0;
        text-decoration: none;
        font-size: 0.76rem;
        border-bottom: 1px dotted #2c5aa0;
        padding-bottom: 2px;
    }

    .submission-link-mobile:hover {
        color: #4a7dc0;
        border-bottom-color: #4a7dc0;
    }

    /* True vertical centering */
    body {
        min-height: 100vh;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .container {
        padding: 20px;
        margin: 0;
        min-height: 100vh;
        box-sizing: border-box;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Remove quote card box on mobile */
    .quote-card {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 15px 20px;
        margin: 0;
        box-shadow: none;
        backdrop-filter: none;
        width: 100%;
        max-width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .days-large {
        font-size: 8.25rem;
    }

    .time-value-small {
        font-size: 3rem;
    }

    .time-separator {
        font-size: 3rem;
    }

    .quote-content blockquote {
        font-size: 1.04rem;
    }

    .quote-card {
        margin: 20px 15px;
        padding: 20px 15px;
    }
}