.title-container{
  display: flex;
  align-items: left;
  justify-content: top;
  margin-bottom: 10px;
}

.title {
  flex:0.9;
}

.title h1 {
  text-align: left !important;

}

.marcellus-regular {
  font-family: "Marcellus", serif;
  font-weight: 400;
  font-style: normal;
}

.container {
    max-width: 400px; /* Reduced from 500px */
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px; /* Reduced from 12px */
    margin-bottom: 20px; /* Reduced from 30px */
}

.time-unit {
    text-align: center;
    background: linear-gradient(135deg, #04AEDE, #04AEDE);
    padding: 12px 8px; /* Reduced from 20px 12px */
    border-radius: 12px; /* Reduced from 16px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-2px); /* Reduced from -3px */
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35); /* Reduced shadow */
}

.time-value {
    display: block;
    font-size: clamp(1.2rem, 5vw, 2rem); /* Reduced from clamp(1.8rem, 6vw, 3rem) */
    font-weight: 700;
    color: white;
    line-height: 1;
}

.time-label {
    display: block;
    font-size: clamp(0.65rem, 2vw, 0.8rem); /* Reduced from clamp(0.75rem, 2.5vw, 0.95rem) */
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px; /* Reduced from 6px */
    font-weight: 500;
}

.event-address {
  display: none;
    margin: 20px 0; /* Reduced from 30px 0 */
    padding: 0;
    background: none;
    border: none;
}

.address-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* Reduced from clamp(1rem, 3vw, 1.25rem) */
    transition: color 0.3s ease;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.address-link:hover {
    color: #2d3748;
    text-decoration: underline;
}

.buttons-container {
    display: flex;
    align-items: center;
    gap: 4px; /* Reduced from 5px */
}

.btn {
    padding: 10px 16px; /* Reduced from 12px 20px */
    border: none;
    border-radius: 16px; /* Reduced from 20px */
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 12px; /* Reduced from 14px */
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(145deg, #0099c3, #04AEDE);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-1px); /* Reduced from -2px */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); /* Reduced shadow */
}

.btn-secondary {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: #04AEDE;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: linear-gradient(145deg, #e9ecef, #FCF7F4);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* Reduced shadow */
}

.two-column {
    grid-template-columns: 1fr 1fr;
}

.expired {
    text-align: center;
    padding: 20px; /* Reduced from 30px */
    background: linear-gradient(145deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 12px; /* Reduced from 15px */
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3); /* Reduced shadow */
}

.expired h2 {
    margin-bottom: 8px; /* Reduced from 10px */
    font-size: 1.3rem; /* Reduced from 1.5rem */
}

.loading {
    text-align: center;
    padding: 30px; /* Reduced from 40px */
    color: #666;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px; /* Reduced from 20px */
    height: 16px; /* Reduced from 20px */
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px; /* Reduced from 10px */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced mobile responsiveness */
@media (max-width: 480px) {

    .title-container{
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .container{
        padding: 0;
        margin: 0;
    }

    #headline{
        text-align: center !important;
    }


    .container {
        max-width: 320px; /* Further reduced for mobile */
    }
    
    .countdown {
        gap: 6px; /* Further reduced gap */
    }
    
    .time-unit {
        padding: 8px 6px; /* Further reduced padding */
    }
    
    .countdown-container {
        padding: 15px; /* Reduced from 20px */
    }
    
    .btn {
        padding: 8px 12px; /* Reduced from 10px 15px */
        font-size: 11px; /* Reduced from 12px */
    }
}

@media (max-width: 350px) {
    .container {
        max-width: 280px; /* Even more compact */
    }
    
    .countdown {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 4px; /* Minimal gap for very small screens */
    }
    
    .time-unit {
        padding: 6px 4px; /* Minimal padding */
    }
}

/* Optional: Even more compact version */
.compact-mode .container {
    max-width: 300px;
}

.compact-mode .countdown {
    gap: 6px;
    margin-bottom: 15px;
}

.compact-mode .time-unit {
    padding: 8px 6px;
    border-radius: 8px;
}

.compact-mode .time-value {
    font-size: clamp(1rem, 4vw, 1.5rem);
}

.compact-mode .time-label {
    font-size: clamp(0.6rem, 1.8vw, 0.7rem);
    margin-top: 2px;
}