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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.banner {
    background: linear-gradient(135deg, #004a99 0%, #0066cc 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}

.welcome-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.6;
    font-weight: 600;
}

@media (min-width: 768px) {
    .welcome-text {
        font-size: 2rem;
        padding: 3rem 2rem;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.countdown-container {
    text-align: center;
}

#countdown {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: nowrap;
}

@media (min-width: 768px) {
    #countdown {
        gap: 2rem;
    }
}

.countdown-box {
    padding: 0.25rem;
    min-width: 60px;
    perspective: 400px;
    margin: 2px;
    background: transparent;
}

@media (min-width: 768px) {
    .countdown-box {
        padding: 1rem;
        min-width: 120px;
    }
}

.flip {
    position: relative;
    width: 100%;
    height: 80px;
    background: #333;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.countdown-box {
    padding: 1rem;
    min-width: 120px;
    perspective: 400px;
    margin: 5px;
}

.flip {
    position: relative;
    width: 100%;
    height: 100px;
    background: #333;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.countdown-box {
    padding: 1rem;
    min-width: 120px;
    perspective: 400px;
    margin: 5px;
}

.flip {
    position: relative;
    width: 100%;
    height: 100px;
    background: #333;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.top, .bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Digital', monospace;
    background: #333;
    line-height: 0;
}

@media (min-width: 768px) {
    .top, .bottom {
        font-size: 5rem;
    }
}

.top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transform-origin: bottom;
}

.bottom {
    bottom: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transform-origin: top;
}

.top div, .bottom div {
    width: 100%;
    height: 60px;
    position: absolute;
    left: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .top div, .bottom div {
        height: 100px;
    }
}

.top div {
    bottom: 0;
    line-height: 120px;
}

@media (min-width: 768px) {
    .top div {
        line-height: 200px;
    }
}

.bottom div {
    top: 0;
    line-height: 0;
}

@keyframes flipTop {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-90deg); }
}

@keyframes flipBottom {
    0% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.flip.animate .top {
    animation: flipTop 0.3s ease-in;
    transform-origin: bottom;
}

.flip.animate .bottom {
    animation: flipBottom 0.3s ease-out;
    transform-origin: top;
}

.top {
    background: #333;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.bottom {
    bottom: 0;
    background: #333;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    line-height: 0;
}

@keyframes flipTop {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-90deg); }
}

@keyframes flipBottom {
    0% { transform: rotateX(90deg); }
    100% { transform: rotateX(0deg); }
}

.flip.animate .top {
    animation: flipTop 0.3s ease-in;
    transform-origin: bottom;
}

.flip.animate .bottom {
    animation: flipBottom 0.3s ease-out 0.3s;
    transform-origin: top;
}

.countdown-box label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
    display: block;
    text-align: center;
}

@media (min-width: 768px) {
    .countdown-box label {
        font-size: 1rem;
    }
}

.italic-small {
    font-style: italic;
    font-size: 0.875rem;
    text-align: center;
}

footer {
    background-color: #333;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    height: 40px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .welcome-text {
        font-size: 1rem;
    }

    #countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-box {
        min-width: 100px;
        padding: 1rem;
    }

    .countdown-box span {
        font-size: 2rem;
    }
}
