/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Container principal */
.weboon-img-div {
    display: flex;
    justify-content: center;
    padding: 20px;
    width: 100%;
    max-width: 100%;
}

/* Style de l'image */
.webtoon-img {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-width: 600px;
    /* Largeur maximale sur ordinateur */
    width: auto;
    height: auto;
    display: block;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .webtoon-img {
        max-width: 100%;
        /* Image pleine largeur sur mobile */
    }

    .weboon-img-div {
        padding: 10px;
    }
}


.webtoon-img {
    animation: fadeIn 0.5s ease-in;
}

/* Styles de défilement personnalisés */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}



/* Styles des boutons de navigation */
.next-chapter,
a button {
    text-decoration: none;
    display: inline-block;
}

button {
    background-color: #333;
    color: #f5f5f5;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* Effet spécial pour le bouton "Next Chapter" */
.next-chapter button {
    background-color: #FF5733;
    /* Orange vif comme la thématique des chapitres */
    padding-right: 34px;
    /* Espace pour l'icône */
}

.next-chapter button:after {
    content: "→";
    position: absolute;
    right: 15px;
    transition: transform 0.3s ease;
}

.next-chapter button:hover:after {
    transform: translateX(5px);
}

/* Effet hover pour tous les boutons */
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

/* Style spécifique pour le bouton Home */
a:not(.next-chapter) button {
    background-color: #444;
}

a:not(.next-chapter) button:hover {
    background-color: #555;
}

/* Conteneur pour les boutons de navigation */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-top: 1px solid #333;
}

/* Version responsive pour petits écrans */
@media screen and (max-width: 768px) {
    button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 6px;
    }

    .navigation-buttons {
        padding: 10px;
    }
}

/* Animation pour les boutons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.next-chapter button {
    animation: pulse 2s infinite;
}

/* Désactive l'animation après avoir cliqué ou lors du survol */
.next-chapter button:hover,
.next-chapter button:focus {
    animation: none;
}