html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    /* 
    Possible Additional Colors:
    --background-color: rgb(22, 32, 36);
    */


    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* font-family: "Kanit"; */
    /* font-family: 'Noto Sans', sans-serif; */

    --out-background-color: rgb(8, 8, 8);
    --background-color: transparent;

    --light-background: rgb(100, 100, 100);

    /* --main-border: 1px solid lightgray; */
    --main-border: none;
    --border-color: lightgray;
    --accent-color: rgb(18, 19, 26);

    --text-color: white;

    background-color: var(--out-background-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 10px;
}

h1 { font-size: 1.5em; }

main {
    border: var(--main-border);

    background-color: var(--background-color);

    max-width: 1280px;
    margin: auto;

    padding: 20px;

    box-sizing: border-box;

    padding-top: 20px;
    padding-bottom: 20px;
}

main > * {
    margin-top: 100px;
    margin-bottom: 150px;
}

/* main > div:nth-child(odd) {
    background-color: rgba(0, 0, 0, .2);
} */

#contactform {
    width: 100vw;
    max-width: 500px;

    padding-left: 10px;
    padding-right: 10px;

    font-weight: normal;

    margin: auto;
    text-align: left;

    box-sizing: border-box;
}

#contactform > h2 {
    text-align: center;
}

#contactform > label {
    display: block;
    font-size: 1em;
}

#contactform > input:not(input[type="submit"]), textarea {
    font-family: 'Noto Sans', sans-serif;
    /* display: block; */
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;

    font-size: 0.8em;

    border: 0;
    border-bottom: 2px solid lightgray;
    border-radius: 3px;

    outline: 0;
}

#contactform > input[type="submit"] {
    box-sizing: border-box;

    width: 100%;
    padding: 10px;
    
    font-size: 0.8em;
    margin-bottom: 10px;
    border: 0;

    background-color: white;
    color: black;
    font-weight: normal;

    cursor: pointer;
}

input[type="submit"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#contactform > input[type="submit"]:hover {
    background-color: rgb(200, 200, 200);
}

label.required::after {
    content: "*";
    color: red;
}

#contactform > textarea {
    resize: vertical;
    max-height: 125px;
    min-height: 50px;

    border: 2px solid lightgray;
}


#contactformsent {
    position: relative;

    width: 0;
    text-align: center;

    white-space: nowrap;
    overflow: hidden;

    padding-bottom: 5px;

    transition: width 1s;
}

#contactformsent.show {
    max-width: unset;
    width: 100%;
}

#contactformsent.show::after {
    content: "";
    position: absolute;

    width: 100%;
    max-width: 100%;

    height: 3px;
    background-color: white;

    bottom: 0;
    left: 0;

    animation: shrink 10s linear forwards;
    animation-delay: 1s;
}

@keyframes shrink {
    from {
        max-width: 100%;
    }
    to {
        max-width: 0;
    }
}

.addressInput {
    display: none;
}

td, th {
    padding: 8.7px;
    /* border: 1px solid white;
    border-collapse: collapse; */
}

th {
    font-weight: bold;
}

table.with-border > * > tr > * {
    border: 1px solid white;
    border-collapse: collapse;
}

.timetable-container {
    display: grid;

    grid-template-columns: 40% 50%;
}

footer {
    padding-top: 50px;
    /* padding-bottom: 50px; */
    /* background-color: rgb(20, 20, 20); */
    /* background-color: rgba(32, 36, 52, 0.4); */
    background-color: var(--accent-color);

    box-sizing: border-box;

    overflow: hidden;
    font-family: "Kanit";
}

footer > .content {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    grid-template-rows: 1fr 100px;

    max-width: 1280px;
    margin: auto;
    padding: 20px;
}

.footerLogo {
    filter: brightness(0) invert(1);
    margin: auto;
    padding: 20px;
}

.footerLogo > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-table {
    display: grid;

    grid-template-columns: auto auto auto;
    grid-template-rows: 1fr;

    margin: auto;

    /* width: 100%; */
    /* height: 100%; */

    grid-column: 2 / 4;
    text-align: left;
}

.footer-table > * > * {
    display: block;
    box-sizing: border-box;
    height: 33%;
}

.footer-table > * > .footer-header {
    opacity: 0.7;

    padding: 10px;
    font-size: 1.1em;

    font-weight: normal;
}

.footer-table > * > *:not(.footer-header) {
    padding: 10px;
    /* height: 71px; */
    box-sizing: border-box;

    padding-right: min(50px, 3vw);
}

.footer-table > * > a:hover {
    text-decoration: underline;
}

footer > .content > .socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    /* grid-column: 2 / 4; */

    gap: 10px;
}

.footer-contact-form-wrapper {
    display: flex;

    width: 100%;
    height: 100%;

    justify-content: center;
    align-items: center;
}

.footer-contact-form > input[type="email"] {
    width: 200px;
}

.footer-contact-form > input[type="email"]:focus {
    outline: none;
}

.footer-contact-form > input[type="submit"] {
    color: white;
    background-color: #6d49f5;

    cursor: pointer;
}

.footer-contact-form > input {
    padding: 10px;
    border-radius: 1px;
    border: none;

    font-family: "Kanit";
}

.rights {
    display: flex;
    
    height: 60px;
    align-items: flex-end;
    justify-content: center;

    margin: auto;
    text-align: center;
    grid-column: 2 / 3;
}

.socials > a {
    height: 60px;
}

.socials > a > img {
    height: 60px;
}

.button {
    display: inline-block;
    padding: 20px;
    border: 1px solid white;
}

.button:active {
    background-color: var(--text-color);
    color: var(--out-background-color);
}

nav {
    position: absolute;

    z-index: 20;

    display: flex;
    font-size: 1.2em;

    justify-content: space-around;
    align-items: center;

    width: 100%;
    height: 75px;
    box-sizing: border-box;

    /* border-bottom: 1px solid var(--border-color); */
}

.navTitle {
    display: flex;

    text-align: center;

    align-items: center;
    justify-content: center;

    word-wrap: unset;
    white-space: nowrap;
    height: 100%;
    margin: 0;

    /* box-sizing: border-box; */

    /* color: var(--text-color); */

    font-weight: bold;
    font-size: 1.2em;

}

.navTitle::after {
    content: "\00a0Restaurant, Saloon & RV Park";
}

.navLogo {
    height: 50px;
    margin: 10px;

    filter: brightness(0) invert(1);
}

.navItems {
    position: relative;
    display: flex;

    height: 100%;

    justify-content: flex-start;
    box-sizing: border-box;
    
    text-align: center;
    z-index: 20;
    font-family: "Kanit";
}

.navItems > li > a {
    display: flex;
    position: relative; 
    align-items: center;

    height: 100%;
    padding-left: 20px;
    padding-right: 20px;
    text-decoration: none;
}

/* .navItems > li > a::after {
    content: '';
    position: absolute;
    width: 100%;
    background-color: white;

    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.navItems > li:hover > a::after {
    transform: scaleX(1);
    transform-origin: bottom left;
} */

.hamburgerIcon {
    display: none;
    cursor: pointer;
}

.hamburgerIcon {
    /* display: none; */
    position: fixed;
    z-index: 21;

    top: 35px;
    right: 15px;

    width: 40px;
    height: 5px;
    background-color: var(--text-color);
    border-radius: 5px;

    transition: all 500ms ease;
}

.hamburgerIcon::before {
    content: "";
    position: absolute;

    bottom: 10px;
    width: inherit;
    height: inherit;
    background-color: inherit;
    border-radius: inherit;

    transition: inherit;
}

.hamburgerIcon::after {
    content: "";
    position: absolute;

    top: 10px;
    width: inherit;
    height: inherit;
    background-color: inherit;
    border-radius: inherit;
    
    transition: inherit;
}

.hamburgerIcon.open {
    transform: rotate(45deg);
    /* background-color: white; */
}

.hamburgerIcon.open::after {
    transform: rotate(90deg);
    top: 0;
}

.hamburgerIcon.open::before {
    transform: rotate(360deg);
    bottom: 0;
}
 
a {
    color: inherit;
    text-decoration: inherit;
}

p {
    line-height: 1.3em;
    /* line-height: 1.3em; */
}

.page-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr min(500px, 40vw);

    font-size: 1.1em;

    overflow: hidden;
}

.page-content > figure {
    height: 100%;
    max-height: 500px;
    padding: 5px;
    box-sizing: border-box;

    max-width: 500px;

    overflow: hidden;
}

.page-content > figure > *:not(figcaption) {
    object-fit: cover;
    object-position: 50% 50%;
    
    width: 100%;
    height: 100%;

    aspect-ratio: 1 / 1;
    border-radius: 100%;
}

.page-content.no-image {
    max-width: 720px;
    margin: auto;

    display: block;
}

.page-content > .text > * {
    margin-left: 10px;
}

.page-content > .text > p {
    font-size: 1.2em;
    padding: 10px;
    padding-left: 0;
}

.page-content > .text > h2 {
    position: relative;
    font-size: 3em;
    font-weight: normal;
    margin-bottom: 20px;
    margin-left: 10px;
}

.page-content > .text > h2::after {
    content: "";
    position: absolute;

    bottom: -10px;
    left: 0;

    width: 100%;
    height: 1.5px;
    background-color: var(--border-color);
}

.page-content:nth-child(odd) {
    /* background-color: red; */
}

.viewport-fade {
    opacity: 0;
    transition: 1s opacity;
}

.viewport-fade.onscreen {
    opacity: 1;
}

.heroimage {
    position: relative;
    display: flex;

    /* justify-content: center; */

    width: 100%;
    height: 100vh;
}

.heroimage > .title {
    /* font-family: "Kanit"; */
    font-family: 'Inter', sans-serif;
    /* letter-spacing: -1px; */
    text-align: center;
    font-weight: bold;
    font-size: 1.5em;

    position: absolute;
    z-index: 1;

    width: unset;

    bottom: 10%;
    left: max(5%, 35px);

    /* color: var(--text-color); */
    animation: 500ms float-in;
}

.heroimage.centered > .title {
    position: static;
}

.heroimage.centered {
    justify-content: center;
    align-items: center;
}

.heroimage-image {
    position: absolute;

    width: 100%;
    height: 100%;

    /* box-shadow: 25px 25px 50px 0 white inset, -25px -25px 50px 0 white inset; */
}

.heroimage-image::before {
    content: "";
    position: absolute;

    /* background-image: linear-gradient(to left, rgba(8,8,8, 0) 0%, rgba(8,8,8, 0.75) 100%); */
    background: radial-gradient( circle, transparent 50%, black 125%), rgba(0,0,0,0.3);


    width: 100%;
    height: 100%;
}

.heroimage-image > img {
    width: 100%;
    height: 100%;

    float: right;

    object-fit: cover;

    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    /* user-drag: none; */
}

.heroimage.notfullscreen {
    height: 60vh;
}

.h-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    
    gap: 5px;
}

.h-list-item {
    position: relative;
    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 400px;
    min-height: 500px;
    border-radius: 5px;

    box-sizing: border-box;

    padding: 10px;

    text-align: center;

    margin: auto;

    overflow: hidden;

    opacity: 0;
    transition: opacity 1s;
    transition-delay: calc(var(--i) * 300ms);

    cursor: pointer;
}

.h-list.onscreen > .h-list-item {
    opacity: 1;
}

.h-list-item > h2, .h-list-item > p, .h-list-item > .details {
    position: relative;
    z-index: 1;

    padding-left: 5px;
    padding-right: 5px;
}

.h-list-item > h2 {
    font-size: 2.5em;
}

.h-list-item > p {
    font-size: 1.5em;
}

.h-list-item > .details {
    font-size: 1.5em;
}

.h-list-item::after {
    content: "";
    position: absolute;

    background-image: var(--background-image);
    background-position: 50% 50%;
    background-size: cover;

    filter: brightness(60%);

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 0;

    transition: filter 250ms, transform 250ms;
}

.h-list-item > .details {
    position: absolute;
    font-size: 1.3em;

    transform: translateY(200px);
    opacity: 0;

    transition: opacity 300ms, transform 500ms;
}

.h-list-item > p, .h-list-item > h2 {
    transition: opacity 300ms, transform 500ms;
}

@media screen and (min-width: 641px) {
    .h-list-item:hover::after {
        filter: brightness(50%) blur(3px);
        transform: scale(1.2);
    }
    
    .h-list-item:hover > h2, .h-list-item:hover > p {
        transform: translateY(-200px);
        opacity: 0;
    }
    
    .h-list-item:hover > .details {
        transform: translateY(0);
        opacity: 1;
    }
}

.h-list-item.active::after {
    filter: brightness(50%) blur(3px);
    transform: scale(1.2);
}

.h-list-item.active > h2, .h-list-item.active > p {
    transform: translateY(-200px);
    opacity: 0;
}

.h-list-item.active > .details {
    transform: translateY(0);
    opacity: 1;
}

.video-iframe {
    display: block;

    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    
    overflow: hidden;
    border: none;

    aspect-ratio: 16 / 9.1; /* for some reason 16 / 9 creates a scrolling thumb that doesn't even work */
}

/* Styling for slideshows */
.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow::after {
    content: "";
    position: absolute;
    display: block;
    
    width: 100%;
    height: 100%;

    z-index: 4;

    top: 0;
    left: 0;
}

.slideshowelements {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;

    height: var(--max-height);

    transform: translateX(calc(-100% * var(--current-index)));

    transition: transform 1s;
}

.slideshowelements > span {
    flex-shrink: 0;
    display: block;
    width: 100%;
    height: var(--max-height);
}

.slideshowelements > span > img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.slideshowSettings {
    position: absolute;

    width: 100%;
    height: 100%;
    z-index: 5;
}

.slideshowProgressBar {
    position: absolute;
    display: block;
    
    z-index: 2;
    bottom: 0;

    background-color: rgb(89, 100, 150);

    height: 5px;
    width: 100%;
}

.slideshowArrow {
    position: absolute;

    font-size: 5em;
    top: 50%;
    transform: translateY(-50%);
    
    color: white;
    /* text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;  */

    cursor: pointer;
}

.slideshowArrow.left {
    left: 20px;
}

.slideshowArrow.right {
    right: 20px;
}

.slideshow::after {
    background: radial-gradient( circle, transparent 70%, black 150%), rgba(0,0,0,0.3);
}

/* navbar sizing */
@media screen and (max-width: 950px) {
    nav {
        flex-direction: column;
        padding-top: 10px;

        height: 100px;
    }

    .heroimage > .title {
        bottom: unset;
        left: unset;
        
        width: 100%;
        box-sizing: border-box;
    
        justify-self: center;
        align-self: center;
    }
}

/* Footer-specific sizing */
@media screen and (max-width: 1000px) {
    footer > .content {
        grid-template-columns: 200px 1fr 200px;
        grid-template-rows: 1fr 100px;
    }

    .footerLogo {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
    }

    .footer-table {
        grid-column: 1 / 4;
    }
}

@media screen and (max-width: 735px) {
    footer {
        padding-top: 0;
        font-size: 1.3em;
    }
    
    .footer-contact {
        display: none;
    }

    footer > .content {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-template-rows: auto;
    
        max-width: 1280px;
        margin: auto;
        padding: 20px;

        row-gap: 25px;
    }

    footer > .content > * {
        width: 100%;
    }

    .footer-table > * > a {
        display: block;
        width: 100%;
        /* height: 100%; */
    }

    .footer-table > * {
        margin-top: 20px;
        line-height: 2em;
    }

    .footer-table {
        text-align: center;

        grid-template-columns: 1fr;
        grid-template-rows: auto;

        margin: auto;
        grid-column: 1 / 3;
    }

    .rights {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
        margin-bottom: 10px;
        width: unset;
    }

    footer > .content > .socials {
        grid-row: 1 / 2;
        grid-column: 2 / 3;

        justify-content: center;
        margin-bottom: 10px;
    }

    .footerLogo {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        max-width: 200px;
        /* margin-left: unset; */

        padding: 0;
    }
}

@media screen and (max-width: 500px) {
    footer > .content {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    
        max-width: 1280px;
        margin: auto;
        padding: 20px;

        row-gap: 25px;
    }

    footer > .content > .socials {
        grid-row: 1 / 2;
        grid-column: 1 / 2;

        /* justify-content: space-around; */
        /* margin-bottom: 10px; */
    }

    .footerLogo {
        grid-row: 3 / 4;
        grid-column: 1 / 2;
        max-width: 200px;
        margin-left: auto;
        max-width: 300px;

        padding: 0;
    }

    .rights {
        grid-row: 4 / 5;
        grid-column: 1 / 3;
        margin-bottom: 10px;
        width: unset;
    }

    .footer-table {
        grid-row: 2 / 3;
    }
}

@media screen and (max-width: 845px) {
    .page-content {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 1fr;
    }

    .page-content > figure {
        order: -1;
        max-width: none;
    }

    .page-content > figure > img {
        border-radius: 2px;
        aspect-ratio: 0/0;
    }

    .page-content > .text {
        margin-top: 15px;
    }

    .page-content > .text > h2 {
        font-size: 2.4em;
    }
}

@media screen and (max-width: 860px) {
    .h-list-item {
        width: 100%;
        max-width: none;
        min-height: 400px;
    }

    .h-list {
        row-gap: 10px;
    }
}

/* Mobile */
@media screen and (max-width: 640px) {
    .footer-table > tbody > tr > td > a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .hamburgerIcon {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: 0;

        z-index: 20;
        height: 75px;
        padding-top: 0;

        /* flex-direction: column; */
        justify-content: center;
        align-items: flex-start;

        background-color: var(--accent-color);
        /* background-color: white;
        color: black; */
    }

    .navTitle {
        width: calc(100% - 75px);

        text-align: left;
        justify-content: flex-start;

        z-index: 22;
        font-size: 1.3em;

        color: inherit;
    }

    .navTitle::after {
        content: "\00a0Restaurant & Saloon";
    }

    .navLogo {
        height: 50px;
        margin: 10px;
    
        /* filter: brightness(0); */
    }

    .navItems {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 20;

        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
        padding-top: 130px;

        row-gap: 50px;

        height: 100%;
        width: 100%;
        box-sizing: border-box;

        /* background-color: rgb(26, 34, 146); */
        background-color: inherit;
        font-size: 1.5em;
        
        transform: translateY(calc(-100% + 75px));
        transition: transform 500ms ease;
    }
    
    .navItems.open {
        transform: translateY(0);
    }

    .navItems > li > a:hover {
        background-color: unset;
    }

    .heroimage.notfullscreen {
        height: 70vh;
    }

    .slideshowArrow {
        display: none;
    }
}

/* navtitle sizing */
@media screen and (max-width: 525px) {
    .navTitle::after {
        content: "\00a0Restaurant";
    }
}

@media screen and (max-width: 405px) {
    .navTitle::after {
        content: "";
    }
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(50%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}