/* Modal Overlay Styles */

.amoeba-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.amoeba-modal-overlay.active {
    display: flex;
}

.amoeba-modal-content {
    display: flex;
    flex-direction: row;
    background: #fff;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.amoeba-modal-container {
    display: block;
    margin: 0px 30px;
    align-items: flex-start;
}

.amoeba-modal-image {
    flex: 0 0 200px;
}

.amoeba-modal-image img {
    width: 205px;
    height: 265px;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}


.amoeba-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.amoeba-modal-title { 
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
}
.amoeba-modal-title h2 {
    margin-top: 0;
    margin-right: 10px;
    font-size: 1.8rem;
    margin-bottom: 0px;
}

.amoeba-modal-body {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 600px) {
    .amoeba-modal-container {
        display: block;
        align-items: center;
        text-align: center;
    }
    
    .amoeba-modal-image {
        flex: 0 0 auto;
        width: 150px;
    }
}
