@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap');

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #080808;
    color: #fff;
    min-height: 100vh;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.install-image {
    width: 750px;
    max-width: 90%;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.install-button {
    background: linear-gradient(360deg, #000, #080808);
    border: none;
    padding: 18px 48px;
    font-size: 1.5rem;
    font-weight: 600;
    color: rgb(156, 156, 156);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(116, 1, 1, 0.4);
    transition: all 0.3s ease;
    transform: translateY(-20px);
    margin-top: 32px;
}

.install-button:hover {
    box-shadow: 0 15px 20px rgba(116, 1, 1, 0.6);
    color: #fff;
    transform: translateY(-23px);
}

.install-button:active {
    transform: translateY(-21px);
    box-shadow: 0 7px 10px rgba(238, 9, 9, 0.4);
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(20, 20, 20, 0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.5s;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Popup styles */
.popup {
    background: linear-gradient(360deg, #111, #222 80%);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(116, 1, 1, 0.4);
    padding: 40px 32px 32px 32px;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s cubic-bezier(.7, -0.2, .3, 1.2) forwards;
    color: #fff;
    position: relative;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.popup-input {
    width: 80%;
    padding: 12px 16px;
    border-radius: 24px;
    border: none;
    margin-bottom: 24px;
    font-size: 1.1rem;
    background: #181818;
    color: #fff;
    outline: none;
    box-shadow: 0 2px 8px rgba(116, 1, 1, 0.07);
    transition: box-shadow 0.2s;
}

.popup-input:focus {
    box-shadow: 0 4px 12px rgba(116, 1, 1, 0.18);
}

.popup-btn {
    background: linear-gradient(360deg, #000, #080808);
    border: none;
    padding: 12px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(156, 156, 156);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(116, 1, 1, 0.25);
    transition: all 0.2s;
    margin-top: 4px;
}

.popup-btn:hover {
    color: #fff;
    box-shadow: 0 12px 18px rgba(116, 1, 1, 0.4);
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.3rem;
    color: #f55;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.popup-close:hover {
    opacity: 1;
}

/* Téléchargement */
.download-state {
    display: none;
}

.loading-bar {
    width: 80%;
    height: 4px;
    background: #333;
    margin: 20px auto;
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: #4CAF50;
    animation: progress 0.5s ease-out forwards;
}

@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

#manualDownload {
    display: none;
    margin-top: 20px;
}

#manualDownload a {
    color: #4CAF50;
    text-decoration: underline;
}

/* Footer styles */
footer {
    color: #aaa;
    padding: 24px 0 12px 0;
    text-align: center;
    font-size: 1rem;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #f55;
    margin: 0 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .install-image {
        width: 100%;
    }

    .footer-content {
        font-size: 0.9rem;
    }

    .popup {
        padding: 24px 16px;
    }
}

.manual-download-btn {
    background: none;
    border: none;
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}