/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loading-spinner {
    margin-bottom: 20px;
}

.heart-spinner {
    font-size: 40px;
    color: white;
    animation: heartbeat 1s infinite, spin 2s infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

#loading-overlay p {
    color: white;
    font-size: 18px;
    font-family: 'Dancing Script', cursive;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 70%, #f5576c 100%);
    text-align: center;
    overflow: hidden;
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px;
    min-width: 70px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.countdown-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-hearts i {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    animation: gentleFloat 6s ease-in-out infinite;
    will-change: transform, opacity;
}

.heart1 { top: 20%; left: 10%; animation-delay: 0s; font-size: 20px; }
.heart2 { top: 60%; left: 80%; animation-delay: 1s; font-size: 25px; }
.heart3 { top: 30%; left: 70%; animation-delay: 2s; font-size: 18px; }
.heart4 { top: 80%; left: 20%; animation-delay: 3s; font-size: 22px; }
.heart5 { top: 10%; left: 60%; animation-delay: 4s; font-size: 24px; }

.floating-number {
    position: absolute;
    font-family: 'Dancing Script', cursive;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.08);
    animation: gentleFloat 12s ease-in-out infinite;
    text-shadow: none;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    font-style: italic;
    will-change: transform, opacity;
}

.age-23 { 
    top: 15%; 
    right: 10%; 
    font-size: 8rem; 
    animation-delay: 0s; 
    transform: rotate(-15deg);
}

.age-23-2 { 
    bottom: 15%; 
    left: 8%; 
    font-size: 6rem; 
    animation-delay: 6s; 
    transform: rotate(12deg);
}

.age-23-3 { 
    top: 25%; 
    left: 5%; 
    font-size: 4rem; 
    animation-delay: 3s; 
    transform: rotate(-8deg);
}

.age-23-4 { 
    bottom: 25%; 
    right: 12%; 
    font-size: 5rem; 
    animation-delay: 9s; 
    transform: rotate(18deg);
}

.age-23-5 { 
    top: 60%; 
    left: 15%; 
    font-size: 3rem; 
    animation-delay: 12s; 
    transform: rotate(-25deg);
}

.age-23-6 { 
    top: 40%; 
    right: 8%; 
    font-size: 3.5rem; 
    animation-delay: 15s; 
    transform: rotate(22deg);
}

@keyframes gentleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(var(--rotation, 0deg)) scale(1); 
        opacity: 0.05;
    }
    25% { 
        transform: translateY(-5px) rotate(calc(var(--rotation, 0deg) + 2deg)) scale(1.02); 
        opacity: 0.12;
    }
    50% { 
        transform: translateY(-8px) rotate(calc(var(--rotation, 0deg) - 1deg)) scale(1.05); 
        opacity: 0.08;
    }
    75% { 
        transform: translateY(-3px) rotate(calc(var(--rotation, 0deg) + 1deg)) scale(1.01); 
        opacity: 0.10;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    backdrop-filter: blur(1px);
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.name-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.age-highlight {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.9), rgba(255, 159, 243, 0.9));
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: inline-block;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 107, 107, 0.7);
    }
}

@keyframes glow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 10px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.8); }
}

.birthday-text {
    display: block;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.and-text {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.6em;
    margin: 10px 0;
}

.engagement-text {
    display: block;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.date-text {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.heart-icon {
    font-size: 3rem;
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Message Section */
.message-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #ffeaa7 100%);
}

.message-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.card-header h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.love-quote {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 1rem;
    position: relative;
    padding: 20px 0;
}

.love-quote i {
    color: #ff6b6b;
    font-size: 1.2rem;
    margin: 0 10px;
}

/* Memories Section */
.memories-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 20px;
    z-index: 2;
    position: relative;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 250px;
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Interactive Section */
.interactive-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
    text-align: center;
}

/* Wishes Section */
.wishes-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 50%, #e17055 100%);
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.wish-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.wish-card:hover {
    transform: translateY(-5px);
}

.wish-card i {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.wish-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.wish-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 60px 20px;
    background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #74b9ff 100%);
    text-align: center;
    color: white;
}

.footer-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Dancing Script', cursive;
}

.footer-hearts i {
    font-size: 1.5rem;
    margin: 0 10px;
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

.footer-hearts i:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-hearts i:nth-child(3) {
    animation-delay: 1s;
}

/* Fireworks */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework 1s ease-out forwards;
}

@keyframes firework {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Photo Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 0;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.gallery-item:hover, .gallery-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img, .gallery-item:focus img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption, .gallery-item:focus .gallery-caption {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin: auto;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

#lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Wish Form Section */
.wish-form-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #9795f0 0%, #fbc8d4 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.submit-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    align-self: center;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.confirmation-message {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.confirmation-message i {
    font-size: 3rem;
    color: #4CAF50;
}

.confirmation-message p {
    font-size: 1.2rem;
    color: #333;
}

.hidden {
    display: none;
}

/* Footer Nav */
.footer-nav {
    margin-top: 20px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.3s;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .countdown-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 65px;
        padding: 8px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.5rem;
    }
    
    .floating-number {
        font-size: 2rem !important;
        opacity: 0.03;
        display: none;
    }
    
    .age-23 { 
        display: block;
        top: 10%; 
        right: 5%; 
        font-size: 4rem !important; 
        opacity: 0.05;
    }
    
    .age-23-2 { 
        display: block;
        bottom: 10%; 
        left: 5%; 
        font-size: 3rem !important; 
        opacity: 0.05;
    }
    
    .age-23-3, .age-23-4, .age-23-5, .age-23-6 {
        display: none;
    }
    
    .message-card {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }
    
    .timeline-icon {
        position: absolute;
        left: 0;
        margin: 0;
    }
    
    .timeline-content {
        max-width: none;
        flex: 1;
    }
    
    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 15px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        min-width: 55px;
        padding: 5px;
    }
    
    .countdown-item span:first-child {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .floating-number {
        display: none;
    }
    
    .age-23, .age-23-2 { 
        display: none;
    }
    
    .date-text {
        font-size: 1.2rem;
    }
    
    .message-card {
        padding: 20px 15px;
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
    
    .message-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .wish-card {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 20px 15px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide candle flame when blown */
.flame.blown {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Celebration animation */
.celebration {
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Accessibility Improvements */
:focus {
    outline: 2px solid #764ba2;
    outline-offset: 2px;
}

.screen-reader-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations with reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Pre-Celebration Styles */
.pre-celebration-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    text-align: center;
    padding: 20px;
}

.pre-celebration-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pre-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pre-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.large-countdown {
    margin: 40px 0;
}

.large-countdown .countdown-item {
    min-width: 100px;
    padding: 15px;
}

.large-countdown .countdown-item span:first-child {
    font-size: 3rem;
}

.large-countdown .countdown-label {
    font-size: 1rem;
}

.pre-message {
    color: white;
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
    line-height: 1.6;
}

.pre-hearts {
    font-size: 2rem;
    margin-top: 30px;
    color: #ff6b6b;
}

.pre-hearts i {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Hidden Content */
.hidden-content {
    display: none;
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

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

/* Content Transition */
.content-transition-out {
    animation: fadeOut 1s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Adjustments for Pre-Celebration */
@media (max-width: 768px) {
    .pre-celebration-content {
        padding: 30px 20px;
    }
    
    .large-countdown .countdown-item {
        min-width: 70px;
        padding: 10px;
    }
    
    .large-countdown .countdown-item span:first-child {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pre-celebration-content {
        padding: 25px 15px;
    }
    
    .large-countdown {
        flex-wrap: wrap;
    }
    
    .large-countdown .countdown-item {
        min-width: 60px;
        padding: 8px;
        margin: 5px;
    }
    
    .large-countdown .countdown-item span:first-child {
        font-size: 1.5rem;
    }
    
    .pre-message {
        font-size: 1rem;
    }
}

/* Remaining Time Display */
.remaining-time {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 15px 20px;
    margin: 30px auto;
    max-width: 80%;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.remaining-time p {
    margin: 0;
    line-height: 1.5;
}

#remaining-time-display {
    font-weight: 600;
    color: #ffe8e8;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .remaining-time {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .remaining-time {
        font-size: 0.9rem;
        padding: 10px;
        max-width: 95%;
    }
}

/* Network Status Indicator */
.network-status {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.network-status.offline {
    opacity: 1;
    background: rgba(255, 87, 87, 0.9);
}

.network-status i {
    font-size: 1rem;
}
