@charset "utf-8";
.top-banner-bg {
    background: #2052a2;
}
/* Base Footer */
.footer {
    z-index: 10;
    position: relative;
    background: #fff;
}
.footer-blank {
    height: 20px;
}
.footer a {
  text-decoration: underline;
  color: #fff;
}

.copydiv {
    background: #1d4fa0;
}
.copy {
    color: #fff;
    padding: 5px 0;
    font-size: 0.90em;
}
/* Countdown Wrapper */
#countdown-container {
    text-align: center;
    font-family: 'Arial', sans-serif;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px; /* Reasonable minimum height */
    transition: opacity 0.3s ease-in-out;
    text-align: center;
}
#countdown-title, #countdown-label h2 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}
/* Flip Clock */
#flip-clock {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 2em;
    width: 80px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.time small {
    font-size: 0.5em;
    opacity: 0.8;
}
/* Countdown Variants */
/* Countdown Containers */
.clock-entries {
    background: #222;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}
.clock-race {
    background: #222;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
}
.clock-entries, .clock-race {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
}
/* Individual Time Blocks */
.time {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 2em;
    width: 80px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}
.time small {
    font-size: 0.6em;
    opacity: 0.8;
}
/* Navigation Buttons */
#nav-buttons .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}
#nav-buttons .btn-primary {
    background-color: #2052a2; /* Blue for Race Info, Participants */
}
#nav-buttons .btn-warning {
    background-color: #FFC107; /* Amber for Entries Opening Soon */
    color: #000;
}
#nav-buttons .btn-success {
    background-color: #4CAF50; /* Green for Entries Open */
}
#nav-buttons .btn-purple {
    background-color: #9C27B0; /* Purple for Results */
}
#nav-buttons .btn-grey {
    background-color: #607D8B; /* Blue-grey alternative */
}
/* Optional Hover Effect */
#nav-buttons .btn:hover {
    filter: brightness(1.1);
    cursor: pointer;
}
/* Navigation */
#nav-container {
    padding-bottom: 10px;
}
#nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}
#nav-buttons .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
}
#nav-status, #dynamic-nav {
    transition: opacity 0.3s ease-in-out;
}
#nav-buttons {
    transition: opacity 0.4s ease-in-out;
}
#countdown-label {
    transition: opacity 0.4s ease-in-out;
}
/* Responsive - Tablets */
@media (max-width: 1024px) {
    .time {
        width: 70px;
        font-size: 1.6em;
        padding: 8px;
    }
    #countdown-label h2, #countdown-title {
        font-size: 1.4rem;
    }
    #nav-buttons .btn {
        font-size: 0.95rem;
    }
}
/* Responsive - Phones & small landscape */
@media (max-width: 768px) {
    .time {
        width: 60px;
        font-size: 1.3em;
    }
    #countdown-label h2, #countdown-title {
        font-size: 1.2rem;
    }
    #nav-buttons {
        gap: 0.4rem;
    }
    #nav-buttons .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}
/* Responsive - Mobile phones portrait */
@media (max-width: 480px) {
    .time {
        width: 50px;
        font-size: 1.1em;
        padding: 6px;
    }
    #countdown-label h2, #countdown-title {
        font-size: 1rem;
    }
    #nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    #nav-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.flip {
  animation: flip 0.3s ease-in-out;
}
@keyframes flip {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-90deg);
  }
}
.time span {
  display: inline-block;
  transform-origin: center;
}
