#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    display: none;
    justify-content: start;
    align-items: center;
    /* background: rgba(28, 28, 26, 0.5); */
}

.modal {
    display: flex;
    padding: 20px;
    border-top: 1px solid #fda21e;
    border-right: 1px solid #fda21e;
    border-bottom: 1px solid #fda21e;
    background: radial-gradient(circle at top right, #565656, #565656, #1c1c1a, #1c1c1a, #1c1c1a);
    color: white;
    width: 80vw;
    height: 70vh;
}

.modal-content {
    width: 100%;
    padding-left: 20px;
}

.modal-content h1 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


#modal-text {
    overflow: auto;
    height: calc(100% - 50px);
}
                
.modal-text p {
    margin-bottom: 15px;
}

.modal-side-image {
    width: auto;
    height: calc(100px + 100%);
    transform: translateY(-50px);
}

.modal-close-image {
    width: auto;
    height: 30px;
    cursor: pointer;
}

.modal-opened {
    animation-name: modal-animation-opened;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.modal-closed {
    animation-name: modal-animation-closed;
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes modal-animation-opened {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes modal-animation-closed {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

.modal-text h3 {
    margin-bottom: 10px;
}

.modal-text-list-item {
    display: flex;
    font-size: 12px;
    flex-direction: column;
}

.modal-text-list-item span {
    color: #fda21e;
}

.modal-text-list-item p {
    padding-left: 10px;
}

@media only screen and (max-width: 750px) {
    #modal-container {
        justify-content: center;
        align-items: start;
    }

    .modal {
        flex-direction: column;
        border-top: 0px solid #fda21e;
        border-left: 1px solid #fda21e;
        border-right: 1px solid #fda21e;
        border-bottom: 1px solid #fda21e;

        display: flex;
        padding: 20px;
        background: radial-gradient(circle at top right, #565656, #565656, #1c1c1a, #1c1c1a, #1c1c1a);
        color: white;
        width: calc(100vw - 40px);
        height: 80vh;
    }

    .modal-side-image {
        display: none;
    }

    .modal-content {
        height: 100%;
    }

    .modal-title {
        font-size: 13px;
    }

    @keyframes modal-animation-opened {
        0% {
            transform: translateY(-200%);
        }
        100% {
            transform: translateY(0);
        }
    }
    
    @keyframes modal-animation-closed {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(-200%);
        }
    }
}