html {
    background-color: #f6f6f6;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}


body {
    display: flex;
    width: 100vw;
    align-items: center;
    flex-direction: column;
    margin: 0;
    background-image: url("../ressources/background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

body::-webkit-scrollbar {
    width: 0.8vw; /* Largeur de la scrollbar */
}

body::-webkit-scrollbar-track {
    background: transparent; /* Fond transparent */
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5); /* Couleur de la barre */
    border-radius: 10px; /* Bords arrondis */
    border: 3px solid transparent; /* Crée un espace autour de la barre */
    background-clip: content-box; /* Permet de rendre le fond transparent */
}

header {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #f6f6f6;
    padding-top: 2.5vh;
    padding-bottom: 2.5vh;
    justify-content: center;
    border-bottom: solid 0.2vh #e3e3e3;
}

#subHeaderDiv {
    width: 80vw;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 4vw;
    padding-right: 5vw;
}

#logoDiv {
    width: 20vw;
    display: flex;
    justify-content: flex-start;
    padding-left: 5vw;
}

.logo {
    width: 6vw;
    height: 6vw;
    cursor: pointer;
}

.imageTitle {
    width: 5vw;
}

.link {
    color: cornflowerblue;
}

button {
    cursor: pointer;
}

.headerButton {
    border: none;
    font-size: 1.8vw;
    background-color: #f6f6f6;
    text-decoration: underline;
    color: #a4a4a4;
    font-family: "Roboto";
    font-weight: bold;
}

/* Style pour le dropdown */
.custom-dropdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contenu du dropdown, caché par défaut */
.custom-dropdown-content {
    display: none;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    flex-direction: column;
    position: absolute;
    top: 12vh;
    width: 20vw;
}

/* Style des liens dans le dropdown */
.custom-dropdown-content a {
    color: #a4a4a4;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    font-family: Roboto;
    font-weight: bold;
    justify-content: center;
    align-items: center;
    font-size: 1vw;
    gap: 1vw;
}

.insideMenuFlag {
    border-radius: 0.1vw;
    width: 2vw;
}

/* Afficher le contenu du dropdown au survol */
.custom-dropdown-content.show {
    display: flex; /* Affiche le contenu */
}


/* Changement de couleur au survol des liens */
.custom-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.headerLabel {
    font-size: 1.8vw;
    color: #a4a4a4;
    font-weight: bold;
    font-family: "Roboto";
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bodyContainer {
    display: flex;
    width: 60%;
    flex-direction: column;
    align-items: center;
}

#head {
    padding-top: 10vh;
    padding-bottom: 10vh;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    margin-top: 10vh;
    margin-bottom: 10vh;
    justify-content: center;
    border: solid 2px #E3E3E3;
    border-radius: 2vw;
    background: white;
    box-shadow: 0.5vw 0.5vw 0.5vw rgba(0, 0, 0, 0.5);
}



.title {
    font-size: 2vw;
    font-weight: bold;
    color: #A4A4A4;
    font-family: Roboto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    text-align: center;
    padding-bottom: 10vh;
    width: 54vw;
}

#insideTitle {
    display: flex;
    align-items: center;
    gap: 2vw;
    font-family: Roboto;
    font-weight: bold;
    color: #A4A4A4;
    font-size: 2vw;
    padding-bottom: 10vh;
}

.subDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#searchDiv {
    gap: 2.5vw;
}

.countryFlag {
    border-radius: 0.5vw;
    width: 5vw;
}

.miniCountryFlag {
    width: 2vw;
}

#changeCountry {
    gap: 1vw;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.5vw;
    font-family: Roboto;
    text-decoration: underline;
    color: #bbbbbb;
    cursor: pointer;
    margin-bottom: 2vh;
}

select {
    width: 50vw;
    padding: 0.3vw;
    height: 8vh;
    background-color: white;
    font-size: 1.2vw;
    font-family: Roboto;
    font-weight: bold;
    cursor: pointer;
    border: solid 0.15vw #C8C8C8;
    border-radius: 1vw;
    text-align: center;
    color: black;
}

option {
    font-family: Roboto;
    font-weight: bold;
    text-align: center;
}

#searchButton {
    background-color: #eaeaea;
    border: none;
    padding-bottom: 2vh;
    padding-top: 2vh;
    padding-right: 2vw;
    padding-left: 2vw;
    font-size: 1vw;
    border-radius: 0.5vw;
    text-align: center;
    color: #696969;
    margin-top: 5vh;
    font-weight: bold;
}

#afterSearch {
    display: flex;
    flex-direction: column;
    width: 95%;
    overflow: hidden;
    align-items: center;
}

#allCards {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1vw;
    padding-top: 10vh;
    padding-bottom: 6vh;
}

.card {
    width: 10vw;
}

.pokeball {
    width: 3vw;
}

#cardImgDiv {
    margin-top: 10vh;
    display: none;
    align-items: center;
    justify-content: center;
}

#cardImg {
    height: 50vh;
    width: auto;
}

#price {
    width: 95%;
    margin-top: 10vh;
    display: none;
    justify-content: center;
    border: solid 2px #d1ff96;
    border-radius: 2vw;
    padding-top: 5vh;
    padding-bottom: 5vh;
    background-image: url("../ressources/money_background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

#priceLabel {
    font-size: 3vw;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    font-weight: bold;
    font-family: "Microsoft JhengHei UI";
}

#priceDesc {
    font-size: 1.2vw;
    font-weight: normal;
    font-family: "Microsoft JhengHei UI";
}

#annoncesTitleLabel {
    margin-bottom: 1vw;
    text-align: center;
    font-size: 1.5vw;
    font-family: "Microsoft JhengHei UI";
}

#labelToEbay {
    margin-top: 1vw;
    font-size: 1vw;
    text-align: center;
    font-family: "Roboto";
}

#resultsContainer {
    background-color: rgb(208, 234, 251);
    padding-top: 1.5vw;
    padding-bottom: 1vw;
    margin-top: 10vh;
    margin-bottom: 10vh;
    display: none;
    flex-direction: column;
    border: solid 2px rgb(174, 218, 255);
    border-radius: 2vw;
    overflow: auto;
    width: 95%;
}

#results {
    background-image: url("../ressources/ebay_background.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    max-height: 70vh;
    display: none;
    align-items: center;
    flex-direction: column;
    overflow-y: scroll;
    padding-top: 1.5vw;
    padding-bottom: 0.5vw;
    border-top: solid 1px rgb(174, 218, 255);
    border-bottom: solid 1px rgb(174, 218, 255);
}

#results::-webkit-scrollbar {
    width: 0.8vw; /* Largeur de la scrollbar */
}

#results::-webkit-scrollbar-track {
    background: transparent; /* Fond transparent */
}

#results::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5); /* Couleur de la barre */
    border-radius: 10px; /* Bords arrondis */
    border: 3px solid transparent; /* Crée un espace autour de la barre */
    background-clip: content-box; /* Permet de rendre le fond transparent */
}

#priceDiv {
    width: 100%;
    margin: 5vw;
    font-size: 10vw;
}

#loadingIndicator {
    display: none;
    margin-top: 10vh;
    margin-bottom: 10vh;
    width: 10vw;
}

#priceTable {
    display: none;
    justify-content: center;
    margin-top: 10vh;
    margin-bottom: 10vh;
    background-color: #f4f4f4;
    border: solid 1px #e3e3e3;
    border-radius: 5vw;
    width: 95%;
}

table {
    width: 80%;
    border-collapse: collapse; /* Fusionne les bordures pour éviter les doubles bordures */
    margin: 20px 0; /* Marge pour espacer le tableau du reste du contenu */
    font-family: Arial, sans-serif; /* Police de caractères */
    margin-top: 5vh;
    margin-bottom: 5vh;
}

/* Style de l'en-tête de la table */
thead {
    background-color: #f4f4f4; /* Couleur de fond claire pour les en-têtes */
    border: 2px solid #ccc;
}

tbody {
    border: 2px solid #ccc;
}

/* Style des cellules d'en-tête */
th {
    padding: 12px; /* Espacement intérieur */
    font-size: 1.5vw;
    font-weight: bold;
    font-family: "Roboto";
    text-align: center;
}

/* Style des cellules du corps de table */
td {
    padding: 10px; /* Espacement intérieur */
    border-bottom: 1px solid #ddd; /* Bordure inférieure légère pour les lignes */
    font-size: 1vw;
    font-weight: bold;
    font-family: "Microsoft JhengHei UI";
    text-align: center;
}

/* Style des lignes du tableau */
tr:nth-child(even) {
    background-color: #f9f9f9; /* Couleur de fond alternée pour les lignes paires */
}

tr:hover {
    background-color: #f1f1f1; /* Couleur de fond au survol pour mettre en évidence */
}

/* Style pour les bordures de la table */
table {
    border: 1px solid #ddd; /* Bordure légère autour du tableau */
    border-radius: 5px; /* Coins arrondis pour le tableau */
    overflow: hidden; /* Évite que les coins arrondis ne soient coupés */
}

.subtitle {
    font-size: 1.5vw;
    font-weight: bold;
    color: #838383;
    font-family: Roboto;

    gap: 2vw;
    margin-bottom: 2vh;
    width: 85%;
    text-align: justify;
}

.warningSubtitle {
    display: flex;
    justify-content: center;
    color: #A4A4A4;
    font-size: 2vw;
}

.warningImg {
    width: 2.8vw;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

#modalImg{
    width: 20vw;
    border-radius: 2vw;
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

/* Caption of Modal Image */
#modalResults {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ffffff;
    margin-top: 6vh;
    padding: 10px 20px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #modalResults {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Styles pour le menu desktop */

.mobileMenu {
    display: none;
}

/* Menu Hamburger */
.hamburger {
    display: inline-block;
    cursor: pointer;
    position: relative;
    z-index: 2; /* Assure que le bouton est au-dessus du menu */
}

#hamburgerMenuDiv {
    padding-right: 5vw;
}

.hamburger div {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}

/* Lorsque le menu est ouvert */
.change .bar1, .change .bar2, .change .bar3 {
    background-color: #fff; /* Change la couleur en blanc lorsque le menu est ouvert */
}

/* Animation de transformation en croix */
.change .bar1 {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* Style pour le menu déroulant qui couvre toute la page */
#dropdownMenu {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1; /* Met le menu derrière le bouton hamburger */
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 4vh;
    align-items: center;
    justify-content: center;
}

#dropdownMenu a {
    text-decoration: none;
    color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    font-family: "Roboto";
    text-align: center;
    width: 100vw;
    font-weight: bold;
    text-decoration: none;
    gap: 1vw;
}

.sublink {
    font-size: 16px;
}

#dropdownMenu label {
    text-decoration: none;
    font-size: 20px;
    color: #f1f1f1;
    display: block;
    transition: 0.3s;
    font-family: "Roboto";
    text-align: center;
    width: 100vw;
    font-weight: bold;
    text-decoration: none;
}

#dropdownMenu a:hover {
    color: rgba(255, 247, 147, 0.99);
}

.serieLogoImg {
    width: 35vw;
}

@media  (max-width: 1000px) {
    .serieLogoImg {
        width: 60vw;
    }

    header {
        display: flex;
        justify-content: space-between;
        padding: 10px;
    }

    /* Le logo reste visible */
    #logoDiv {
        width: auto;
    }
    .logo {
        width: 10vh;
        height: 10vh;
    }

    /* Afficher le menu mobile */
    .mobileMenu {
        display: flex;
        align-items: center;
    }

    /* Masquer le menu desktop */
    #subHeaderDiv {
        display: none;
    }

    #bodyContainer {
        width: 90%;
    }
    .modal {
        padding-top: 20vh;
    }
    #modalImg{
        width: 50vw;
    }

    .title {
        width: 80vw;
        font-size: 4vw;
    }
    .subtitle {
        font-size: 3.5vw;
    }
    .imageTitle {
        width: 10vw;
    }
    .changeCountry {
        font-size: 3vw;
    }
    .miniCountryFlag {
        width: 3vw;
    }
    select {
        width: 80vw;
        font-size: 2.5vw;
        border: solid 0.5vw #C8C8C8;
    }
    #gradedLabel {
        margin-left: 5vw;
        font-size: 4vw;
    }
    #searchButton {
        padding-bottom: 4vw;
        padding-top: 4vw;
        padding-right: 15vw;
        padding-left: 15vw;
        font-size: 5vw;
        border-radius: 3vw;
        margin-top: 4vh;
    }
    #priceLabel {
        font-size: 10vw;
        color: white;
    }
    #priceDesc {
        font-size: 3.7vw;
        font-weight: normal;
        font-family: "Microsoft JhengHei UI";
    }
    #annoncesTitleLabel {
        font-size: 3vw;
        margin-top: 3vh;
        margin-bottom: 3vh;
    }
    th {
        font-size: 4vw;
    }
    td {
        font-size: 3.2vw;
    }
    .warningSubtitle {
        font-size: 4vw;
    }
    .warningImg {
        width: 5vw;
    }
    #changeCountry {
        font-size: 4vw;
    }
    .miniCountryFlag {
        width: 5vw;
    }
    .card {
        width: 25vw;
    }

    #head {
        padding-top: 6vh;
        padding-bottom: 6vh;
        box-shadow: 1vw 1vw 1vw rgba(0, 0, 0, 0.5);
    }

    .searchByCardTitle {
        padding-bottom: 5vh;
    }

    .insideMenuFlag {
        border-radius: 1vw;
        width: 10vw;
    }
}

