@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Great+Vibes&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Great Vibes', cursive;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #ffe4e1;
    min-height: 100vh; /* Assure que la hauteur du body couvre tout l'écran */
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Utilise toute la hauteur disponible */
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: -3;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.countdown-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 2s ease-in-out forwards;
    opacity: 0;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

h1 {
    font-size: 2.5em;
    color: #ff69b4;
    text-shadow: 0 0 15px rgba(255, 182, 193, 1);
    margin-bottom: 20px;
}

.message {
    font-size: 1.5em;
    color: #ff1493;
    margin-top: 20px;
}

#countdown {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.time-box {
    background: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 1.2em;
    animation: bounce 1.5s ease-in-out infinite;
    flex: 1;
    min-width: 70px;
    text-align: center;
}

.time-box span {
    font-size: 3em;
    color: #ff1493;
}

small {
    color: #ff69b4;
    display: block;
    margin-top: 5px;
}

/* Heart floating effect */
@keyframes floatHeart {
    0% { transform: translateY(100vh); }
    100% { transform: translateY(-100vh); }
}

.heart {
    position: absolute;
    background-color: rgba(255, 20, 147, 0.8);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: floatHeart 8s linear infinite;
    z-index: -2;
}

.heart::before, .heart::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: inherit;
    border-radius: 50%;
}

.heart::before {
    top: -4px;
    left: 0;
}

.heart::after {
    left: 4px;
    top: 0;
}

/* ---------------- RESPONSIVE MEDIA QUERIES ---------------- */

/* For tablets and small screens */
@media (max-width: 768px) {
    .countdown-container {
        padding: 20px;
        width: 95%;
    }

    h1 {
        font-size: 2em;
    }

    .time-box {
        padding: 10px;
    }

    .time-box span {
        font-size: 2.5em;
    }

    .message {
        font-size: 1.2em;
    }
}

/* For small mobile screens */
@media (max-width: 480px) {
    .countdown-container {
        padding: 10px;
        width: 100%;
    }

    h1 {
        font-size: 1.8em;
    }

    .time-box {
        padding: 8px;
    }

    .time-box span {
        font-size: 2em;
    }

    .message {
        font-size: 1.2em;
    }

    #countdown {
        gap: 5px;
    }
}
