
.modal {
    display: none;
    align-items: center;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: auto;
}

@keyframes slide-from-bottom-and-bounce {
    0% {
        transform: translateY(60%) scale(0);
    }
    50% {
        transform: translateY(-20px)scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
    
}

.modal-content {
    background-color: white;
    margin: 10px auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    display: inline;
    animation: slide-from-bottom-and-bounce 0.4s ease-out;
}

#movie-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.modal-content .details {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    height: 450px;
    max-height: 450px;
    justify-content: space-between;
    overflow-y: auto;
}

.modal-content img {
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-content h2 {
    text-align: center;
    width: 100%;
    font-size: 2em;
    margin-bottom: 20px;
    margin-top: 0;
}

.modal-versions{
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    gap: 10px;
}

#movie-title{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.modal-intra{
    display: flex;
    flex-direction: row;
    align-items: center;
}

#detail-elem {
    margin-top: 5px;
    margin-bottom: 5px;
}

.close-button {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
}

.close-button:hover,
.close-button:focus {
    color: black;
}

/* Dropdown Custom */
.dropdown {
    margin-top: 10px;
    width: 100%;
}

.dropdown label {
    display: block;
    cursor: pointer;
    padding: 5px;
    padding-right: 35px;
    background-color: #64ffda;
    color:#000;
    border-radius: 5px;
    position: relative;
    font-weight: bold;
    width: -webkit-fill-available;
}

.dropdown label:after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#anime-langue-btn{
    margin-top: 10px;
    display: block;
    cursor: pointer;
    padding: 5px;
    padding-right: 35px;
    background-color: #64ffda;
    color:#000;
    border-radius: 5px;
    border: none;
    position: relative;
    font-weight: bold;
    width: -webkit-fill-available;
    transition : all 0.3s;
}

#anime-langue-btn:hover{
    background-color: #05af87;
    color: white;
}


.dropdown-content {
    display: none;
    margin-top: 5px;
    padding: 5px;
    background-color: #f9f9f9;
    border: 0px solid #ddd;
    border-radius: 5px;
}

.dropdown-content button {
    display: block;
    width: 100%;
    padding: 5px;
    border: none;
    background-color: lightgrey;
    color: black;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.dropdown-content button:hover {
    background-color: #05af87;
    color: white;
}

.dropdown.open .dropdown-content {
    display: block;
}


@media (max-width: 768px){
    .modal-intra {
        flex-direction: column;
    }
    .modal-content h2 {
        font-size: 1.5em;
    }
    .modal-content img {
        height: 220px;
        width: 180px;
        object-fit: cover;
        margin-bottom: 10px;
    }
    .modal-content .details {
        height: 200px;
        max-height: 200px;
    }
    .modal-versions {
        flex-wrap: wrap;
        gap: 2px;
    }
}

