#booking-modal-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 1;
}

#booking-modal-container .modal-background {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}
#booking-modal-container .modal-background .modal {
    display: inline-block;
    position: relative;
    min-width: 1000px;
    width: 80vw;
    height: 80vh;
}

#close_booking {
    font-size: 20px;
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--mute-blue);
}
#close_booking:hover {
    cursor: pointer;
}

#booking-modal-container.in {
    z-index: 0;
    transform: scale(1);
}

#booking-modal-container.in .modal-background .modal {
    animation: blowUpModal 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#booking-modal-container.in ~ main,
#booking-modal-container.in ~ footer,
#booking-modal-container.in ~ header  {
    z-index: 1;
    animation: blowUpContent 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}


#booking-modal-container.out .modal-background .modal {
    animation: blowUpModalTwo 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
#booking-modal-container.out ~ main,
#booking-modal-container.out ~ footer,
#booking-modal-container.out ~ header {
    animation: blowUpContentTwo 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes blowUpContent {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    99.9% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(0);
    }
}

@keyframes blowUpContentTwo {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blowUpModal {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes blowUpModalTwo {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@media only screen and (max-width: 1200px) {
    #booking-modal-container .modal-background .modal {
        min-width: 0px;
        width: 100%;
        height: 100%;
    }
}
@media only screen and (max-width: 480px) {
    #booking-modal-container .modal-background .modal .close_booking {
        font-size: 20px;
    }
}