body {
    margin: 0;
    background-color: #080808;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    overflow-y: auto;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: red;
    border-radius: 50%;
    opacity: 0.8;
    animation: star-animation 3s linear infinite;
}

@keyframes star-animation {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-200px) translateY(200px);
        opacity: 0;
    }
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.language-switcher {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.flag {
    width: 30px;
    height: 20px;
    cursor: pointer;
    border: 1px solid #fff;
    border-radius: 3px;
    position: relative;
}

.flag-fr {
    background: linear-gradient(to right, #0055A4 33.3%, #FFF 33.3%, #FFF 66.6%, #EF4135 66.6%);
}

.flag-en {
    background: #ffffff;
    position: relative;
}

.flag-en::before,
.flag-en::after {
    content: "";
    position: absolute;
    background: red;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    transform: translateY(-50%);
}

.flag-en::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    background: red;
}

.dropdown {
    background-color: #444;
    border: 1px solid #777;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.dropdown::-ms-expand {
    display: none;
}

.chapter-title {
    color: white;
    font-size: 24px;
    text-align: center;
    margin: 0 auto;
}

.text-box {
    width: 100%;
    max-height: 600px;
    height: auto;
    padding: 20px;
    background-color: black;
    border: 3px solid #333;
    border-radius: 10px;
    font-size: 20px;
    line-height: 1.8;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Custom scrollbar styles */
.text-box::-webkit-scrollbar {
    width: 10px;
}

.text-box::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 5px;
}

.text-box::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

.text-box::-webkit-scrollbar-track {
    background-color: #2b2b2b;
}

.footer {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
}

.button {
    background-color: #555;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.button:hover {
    background-color: #777;
}

.dropdown {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    .text-box {
        height: 500px;
        font-size: 18px;
    }

    .button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .chapter-title {
        font-size: 20px;
    }

    .dropdown {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .text-box {
        height: 400px;
        font-size: 16px;
    }

    .button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .chapter-title {
        font-size: 18px;
    }

    .dropdown {
        font-size: 12px;
    }
}

.home-container {
    max-width: 90vw;
    margin: 0 auto;
    text-align: center;
}
.home-cover {
    width: 450px;
    max-width: 40vw;
    height: auto;
    border-radius: 10px;
    border: 0px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    animation: pulse-sequence 11s infinite;
}

@keyframes pulse-sequence {
    0%, 46% { /* Phase de repos */
        transform: scale(1);
    }
    47%, 48% { /* Premier battement */
        transform: scale(1.1);
    }
    49%, 50% { /* Retour à la normale */
        transform: scale(1);
    }
    51%, 52% { /* Deuxième battement */
        transform: scale(1.1);
    }
    53%, 54% { /* Retour à la normale */
        transform: scale(1);
    }
    55%, 56% { /* Troisième battement */
        transform: scale(1.1);
    }
    57%, 100% { /* Retour à la normale et repos */
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .home-cover {
        width: 350px;
        max-width: 60vw;
    }
}

@media (max-width: 480px) {
    .home-cover {
        width: 250px;
        max-width: 75vw;
    }
}