#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Polopriehľadné čierne pozadie */
    z-index: 9; /* Nižšie ako formulár, aby bolo v pozadí */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

#formContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    display: none; /* Skryť formulár */
    opacity: 0; /* Začiatočná priehľadnosť */
}

#formContainer.showform {
    display: block; /* Zobraziť formulár */
    animation: fadeIn 0.3s ease-out forwards; /* Použiť animáciu fadeIn */
}

#formContainer.hideform {
    animation: fadeOut 0.3s ease-out forwards; /* Použiť animáciu fadeOut */
}


#reservationForm {
    z-index: 999;
}

#closeFormButton {
    position: absolute;
    top: 10px;
    right: 10px;
    /*background-color: #f44336;  Červená farba pre zatváracie tlačidlo */
    color: #b4914c;
    border: none;
    padding: 5px 10px;
    cursor: pointer;

    font-weight: 900;

    border-radius: 5px;
}

/* MOBILE RESOLUTION */

@media only screen and (max-width: 600px) {
    #formContainer {
        width: 100vw;
        height: 150vh;
    }
    
    #closeFormButton {
        top: 3px;
        right: 3px;
    }

    h2.contact-header {
        padding-top: 25px;
    }

}    