body {
    background-color:#f0f0f0;
}

.page {
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}


/* CSS pour le corbeau */
.corbeau-container {
    width: 400px;
    display: grid;
    grid-template-areas: "left center right";
    justify-content: start;
    align-items: center;
    border-radius: 20px;
    padding: 10px;
    margin: 10px;
    box-shadow: 2px 2px 10px gray inset;
    background-color: white;
}

.trophee_select img {
    grid-area: left;
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.trophee_select img:hover {
    transform: scale(1.1);
    border-color: #007BFF;
}

.fleche_corbeau {
    grid-area: center;
    width: 90px;
    height: auto;
    object-fit: cover;
    cursor: default;
}

.result_corbeau {
    grid-area: right;
    width: 200px;
    height: auto;
    object-fit: cover;
    cursor: default;
    border: 2px solid #ccc;
}


/* CSS pour la div fiole */
.fiole-container {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    margin: 10px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px gray inset;
    background-color: white;
}

@media (min-width: 1750px) {
    .fiole-container {
        max-width: 700px;
    }
}
  
/* Styles pour les écrans étroits */
@media (max-width: 1351px) {
    .fiole-container {
        max-width: 700px;
    }
}


.fiole-image-container {
    width: 200px;
    height: 200px;
    position: relative; /* Nécessaire pour que les enfants (overlay) soient positionnés */
    cursor: pointer;
}

.fiole-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.fiole-main-img {
    width: 100%;
    height: auto;
    display: block;
}

.symbol-fiole-img {
    position: absolute;
    top: 110px;
    left: 77px;
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: none; /* Masquée par défaut */
    pointer-events: none; /* Ignorer les clics sur cette image */
    /* opacity: 0.8;  Légèrement transparente */
}


/* CSS pour le livre */
.livre-container {
    padding: 10px;
    margin: 10px;
    border-radius: 20px;
    box-shadow: 2px 2px 10px gray inset;
    background-color: white;
}

.livre-view {
    width: 600px;
    height: 498px;
    background-image: url("img/livre.png");
    background-size: contain;
}

.sym-cont {
    width: 400px;
    margin: auto;

}

.livre-1 img {
    margin-left: 15px;
    margin-right: 15px;
    width: 120px;
    height: 120px;
    object-fit: cover;
}
.livre-2 img{
    margin-left: 25px;
    margin-right: 25px;
    width: 130px;
    height: 130px;
    object-fit: cover;
}


/* CSS popup */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
}

.fiole-popup-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 80%;
    overflow: auto;
}

.fiole-popup-content img {
    width: 50px;
    height: 50px;
    padding: 25px;
    cursor: pointer;
    background-image: url("img/fond.png");
    background-size: contain;
    border: 2px solid #ddd;
    transition: transform 0.2s ease;
}

.fiole-popup-content img:hover {
    transform: scale(1.1);
    border-color: #333;
}


.livre-popup-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 80%;
    overflow: auto;
}

.livre-popup-content img {
    width: 100px;
    height: 100px;
    padding: 25px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.2s ease;
}

.livre-popup-content img:hover {
    transform: scale(1.1);
    border-color: #333;
}


#close-popup {
    margin-top: 20px;
    padding: 10px 20px;
    background: #ff5555;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

#close-popup:hover {
    background: #ff2222;
}
