dialog {
    background-color: rgb(255, 255, 255);
  }
  dialog[open]:not(:focus-within) {
    background-color: rgb(255, 255, 254);
    transition: background-color 0.01s;
  }


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999999999999; /* Sit on top */
    padding-top: 7vh; /* Location of the box */
    left: 0;
    top: 0;
    width: 100vw; /* Full viewport width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: var(--black); /* Fallback color */
    background-color: rgba(0, 0, 0, .6);/* Black w/ opacity */
}
/* Modal Content */
.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px 60px 10px;
    padding: 15px;
    border: 6px solid var(--black);
    border-radius: 0;
    width: 80%;
    max-width: 740px;
    overflow-y: auto;
    position: relative
}
/* The Close Button */
.resClose, .conClose  {
    color: var(--black);
    width: 10%;
        /* float: right; */
    position: absolute;
    right: 5%;
    top: 5%;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    transition: all ease-in-out .15s;

}
.resClose:hover,
.resClose:focus,
.conClose:hover,
.conClose:focus {
    /* color: var(--dark-gray); */
    /* opacity: .5; */
    text-decoration: none;
    cursor: pointer;
    transform: scale(.85);
    transform-origin: center;
    transition: all ease-in-out .15s;

}
.modal-content p {
    width: 85%;
    margin: 0 auto;
}
.modal-content h1 {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    margin: 15px 2% 0 5%;
}
dialog[open]:not(:focus-within) {
    background-color: rgb(255, 255, 254);
    transition: background-color 0.01s;
  }
    /* RESERVATION-SPECIFIC */
    #reservation-form {
        margin: 30px auto 30px;
        width: 90%;
        grid-area: form;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-row-gap: 1rem;
        grid-column-gap: 3rem;
        grid-template-areas:
                "a a a a d d"
                "b b b b e e"
                "c c c c f f"
                ". . g g . ."
                ;
    }
    #reservation-form #fullname-field {grid-area: a;}
    #phone-field {grid-area: b;}
    #email-field {grid-area: c;}
    #number {grid-area: d;}
    #datepicker {grid-area: e;}
    #timepicker {grid-area: f;}
    #datetimepicker {grid-area: e}
    #submit {
        grid-area: g;
        border: none;
    }
    #number select {
        width: 60px;
        height: 30px;
        margin: 5px auto;
        border-radius: 0;
    }
    /* CONTACT-SPECIFIC */
    #contact-form {
        margin: 30px auto;
        width: 90%;
        grid-area: form;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-column-gap: 3rem;
        grid-template-areas:
                "a a b b"
                "c c d d"
                "e e e e";
    }
    #contact-firstname-field { grid-area: a;
    }
    #contact-lastname-field { grid-area: b; }
    #contact-email-field { grid-area: c; }
    #contact-phone-field {grid-area: d;}
    #contact-subject-field {grid-area: e;}
input, textarea, select {
    border: 1px solid lightgray;
    background-color: #fefefb;
    border-radius: 2px;
}
input:focus, textarea:focus, select:focus {
    /* border: 1px solid hsl(68, 41%, 65%); */
    border-radius: 3px;
    outline: 2px auto var(--dark-gray) !important
}
#button {
    width: 33.333%;
    margin: 0 auto;
}
.form-fields input, .form-fields textarea{
    width: 100%;
    font-size: 1.5rem;
    font-family: proxima-nova, sans-serif;
    font-weight: 300;
    padding: 10px;
    color: hsl(68, 6%, 50%);
}
.form-fields textarea {
    min-height: 150px;
    resize: vertical;
}
.form-fields h4 {
    padding: 2rem 0 .5rem;
    font-size: 1.4rem;
}
.form-fields ::placeholder {
    color: hsl(68, 6%, 50%);
}

.modal-content form button {
    margin: 3rem auto 0!important;
}

.submit button:focus {
    border: 3px dotted hsl(68, 5%, 12%)!important;
}
/*!* \\\\\\\\\\\\ LAPTOP ( < 1170 px \\\\\\\\\\\\\\ *!*/

    @media (max-width: 1170px) {
        #reservation-form, #contact-form {
            grid-template-columns: 1fr 1fr;
            margin: 30px auto;
            grid-row-gap: 0;
            grid-column-gap: 30px;
            width: 80%;
        }
        #reservation-form {
            /* grid-template-columns: 1fr 1fr; */
            grid-template-rows: auto auto auto auto auto;
            grid-template-areas:
                    "a a"
                    "b b"
                    "c c"
                    "e f"
                    "d g";
            /* margin: 30px auto; */
            /* grid-column-gap: 30px;
            grid-row-gap: 0; */
            /* width: 80%; */
            margin-top: 0;
        }
        .modal {
            padding-top: 3.5%;
            padding-bottom: 4%;
        }
        #contact-form {
            grid-area: form;
            margin: 30px auto;
            /* grid-template-columns: 1fr 1fr; */
            grid-template-rows: auto auto auto;
            grid-template-areas:
                    "a c"
                    "b d"
                    "e e"    ;
            /* margin: 1rem auto 3rem; */
            /* grid-column-gap: 30px;
            grid-row-gap: 0; */
        }
    }

/*!* \\\\\\\\\\\\ TABLET ( < 860 px \\\\\\\\\\\\\\ *!*/
    @media (max-width: 860px) {
        #button-group .resBtn {
            font-size: 2.2rem;
            margin: 0 auto!important;
            position: fixed;
            left: 4%;
            color: var(--white);
            background-color: rgba(0, 0, 0, .75);
            backdrop-filter: blur(3px);
            bottom: 30px;
            height: 60px;
            width: 92%;
            overflow: hidden;
            border: 1px solid var(--dark-gray);
            border-radius: 15px;
                box-shadow: 0 0px 1px rgba(0, 0, 0, 0.09),
                0 0px 2px rgba(0, 0, 0, 0.07),
                0 0px 4px rgba(0, 0, 0, 0.06),
                0 0px 8px rgba(0, 0, 0, 0.07),
                0 0px 16px rgba(0, 0, 0, 0.09);
            z-index: 9999999999999999999999999999;
            font-family: 'proxima-nova', sans-serif;
            font-weight: 600;
            letter-spacing: 1.6px;
        }
        #button-group .resBtn:hover {
            transform: scale(.98)!important;
            font-weight: 600!important;
            box-shadow: 0 0px 1px rgb(0 0 0 / 7%),
            0 0px 2px rgb(0 0 0 / 5%),
            0 0px 4px rgb(0 0 0 / 4%),
            0 0px 8px rgb(0 0 0 / 5%),
            0 0px 16px rgb(0 0 0 / 7%);
            transition: all ease-in-out .15s !important;
            /* color: hsl(68, 5%, 12%);
            background: hsl(68, 41%, 80%); */
        }
        .modal {
            padding-top: 4%;
            padding-bottom: 16%;
        }
        .modal-content {
            margin: 90px auto;
            padding: 45px 3% 30px;
            border-radius: 0;
            width: 85%;
        }
        /* .modal-content h1 {
            margin-right: 30%;
        } */
        /* .resClose, .conClose {
            margin-right: 15px;
        } */
        .modal-content p {
            width: 90%;
            margin: 0 auto;
        }
        #reservation-form {
            margin: 0 auto 30px;
            grid-template-columns: 1fr 1fr;
            grid-template-areas:
                    "a a"
                    "b b"
                    "c c"
                    "e e"
                    "d g";
        }
        #button, #submit button {
            width: 100%;
            /* margin: 30px auto 0!important */
        }
        #submit {
            margin: 0 auto;
            width: 100%;
        }
        #contact-form {
            grid-template-columns: 1fr;
            grid-template-rows: auto auto auto auto auto auto;
            grid-template-areas: "a" "b" "c" "d" "e" "f";
            margin-top: 30px;
        }

        /* #conModal h1 {
            width: min-content;
        } */
    }
/*!* \\\\\\\\\\\\ MOBILE ( < 450 px \\\\\\\\\\\\\\ *!*/

@media (max-width: 450px) {
    .modal-content {
        width: 95%;
        padding: 15px;
        margin-top: 15px;
    }
    .modal-content h1 {
        font-size: 1.8rem;
        line-height: 2.0rem;
        margin-top: 15px;
        margin-right: 23%;
    }
    .modal-content p {
        width: 100%;
    }
    .form-fields h4 {
        padding: 2rem 0 .5rem;
        font-size: 1.6rem;
    }
    #button-group .resBtn {

        font-size: 2rem;
        bottom: 45px;
        bottom: 30px;
    }
    /* #submit button {
        margin: 3rem auto 0!important;
    } */
    .resClose, .conClose {
        font-size: 36px;
        padding: 12px 20px;
        right: 2%;
        top: 2%;
        width: auto;
    }
}



/* needed for old browsers */
dialog {
    display: block;
  }
  /* removes scroll when modal is opened */
  .no-scroll {
    overflow: hidden;
  }
  /* overlay covers everything */
  .simple-modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    padding-top: 7vh; /* Location of the box */
    background-color: var(--black); /* Fallback color */
    background-color: hsla(68, 5%, 12%, .6); /* Black w/ opacity */
    opacity: .8;
    z-index: 999999999999; 
    cursor: pointer;
  }
  /* modal */
  .simple-modal {
    position: fixed;
    left: 15%;
    top: 5%;
    width: 85%;
    max-width: 900px;
    /* max-height: 98vh; */
    right: auto;
    border: 6px solid var(--black);
    border-radius: 3px;
    z-index: 99999999999999; 

    background-color: var(--white);
    z-index: 667;
    padding: 2em;
    overflow: auto;

    margin: auto;
    padding: 30px 60px 10px;
  }
  .simple-modal-close {
    float: right;
    background: #933;
    border-radius: 1em;
    color: #fff;
    padding: .25em;
    text-decoration: none;
    line-height: 1.2;
    text-align: center;
  }
  .simple-modal-close:focus,
  .simple-modal-close:hover,
  .simple-modal-close:active {
    background: #882525;
  }
  .simple-modal-overlay[data-background-click="disabled"] {
    cursor: auto;
  }
  
  /* it can be easily adapted in media-queries for tablets/mobile */
  
  /* for this example: tablets */
  @media (max-width: 55.625em) {
  
    .simple-modal {
      left: 5%;
      top: 5%;
      bottom: 5%;
      width: 90%;
    }
    
  }
  
  /* for this example: mobile */
  @media (max-width: 44.375em) {
  
    .simple-modal {
      left: 1%;
      top: 1%;
      max-width: 98%;
      bottom: 1%;
    }
  
  }
  
  
  /* another modal styling example */
  /* tooltip modal for it’s easy button */
  .simple-left-modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0, 0, 0, .8);
    opacity: .8;
    z-index: 666;
    cursor: pointer;
  }
  
  .simple-left-modal {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 667;
    position: fixed;
    width: 40em;
    max-width: 100%;
    padding: 1em;
    font-size: 1em;
    border: 0;
    overflow: auto;
    background-color: #fff ;
    background-image:
        -webkit-linear-gradient(
          top,
          #882525 3em,
          #f7f7f7 3em
        );  background-image:
        linear-gradient(
          to bottom,
          #882525 3em,
          #f7f7f7 3em
        );
    background-attachment: local;
  }
  .simple-left-modal-close {
    position: absolute;
    top: .25em;
    right: 0;
    background: transparent;
    color: #fff;
  }
  