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

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: url('../images/madasynergy-fond.webp') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-color: #1a1a2e;
    color: #ffffff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    padding: 25px 20px;
}

header, article, nav, footer {
    width: 100%;
}

footer {
    margin-top: 15px;
    padding-top: 12px;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.countdown {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 10px 0 5px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background: #ffffff;
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover,
.btn:focus {
    background: #f0f0f0;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    margin: 10px auto;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spin {
    0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 0.9rem;
    }

    p {
        font-size: 0.85rem;
    }

    .countdown {
        font-size: 1.8rem;
    }

    .container {
        padding: 20px 15px;
        margin: 10px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 0.85rem;
    }

    p {
        font-size: 0.8rem;
    }

    .countdown {
        font-size: 1.5rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
}

/* Fallback for older browsers */
.no-js .countdown {
    display: none;
}
