
.trigger {
    padding: 5px;
    cursor: pointer;
}

.modal {
    /*position: fixed;*/
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0vh;
    background-color: transparent;
    overflow: hidden;
    transition: background-color 0.25s ease;
    z-index: 9999;
}

    .modal.open {
        /*position: fixed;*/
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        transition: background-color 0.25s;
    }

        .modal.open > .content-wrapper {
            transform: scale(1);
        }

    .modal .content-wrapper {
        position: relative;
        /*display: flex;*/
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 60%;
        margin: 0;
        padding: 1.5rem;
        background-color: white;
        border-radius: 0.3125rem;
        box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.5);
        transform: scale(0);
        transition: transform 0.25s;
        transition-delay: 0.15s;
    }

        .modal .content-wrapper .close {
            cursor: pointer;
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 2.5rem;
            height: 2.5rem;
            border: none;
            background-color: transparent;
            font-size: 1.5rem;
            transition: 0.25s linear;
        }

            .modal .content-wrapper .close:before, .modal .content-wrapper .close:after {
                position: absolute;
                content: "";
                width: 1.25rem;
                height: 0.125rem;
                background-color: black;
            }

            .modal .content-wrapper .close:before {
                transform: rotate(-45deg);
            }

            .modal .content-wrapper .close:after {
                transform: rotate(45deg);
            }

            .modal .content-wrapper .close:hover {
                transform: rotate(360deg);
            }

        .modal .content-wrapper .content {
            position: relative;
            display: flex;
        }


@media only screen and (max-width: 768px) {
    .modal .content-wrapper {
        width: 94%;
    }

    modal {
        top: 10px;
    }

    .modal.open {
        font-size: .7rem;
    }
}
