html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    /* font-family: "Noto Sans"; */
    font-size: 1.1em;
    line-height: 1.3em;

    /* min-height: 100vh; */
}

/* *:not(body) {
    background-color: rgba(255, 0, 0, 0.5);
} */

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

h1 { font-size: 1.5em; }
h2 { font-size: 1.3em; }

.bulletPoints {
    list-style-type: disc;
    margin-left: 20px;
}

.bulletPoints > li {
    margin-top: 5px;
    margin-bottom: 5px;
}

main {
    max-width: 1280px;

    min-height: calc(100vh - 400px);

    box-sizing: border-box;

    margin: auto;
    outline: 1px solid lightgray;
    /* background-color: lightgray; */
}

section {
    display: grid;

    grid-template-columns: 400px 1fr;
    padding: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
}

section:nth-child(odd) {
    background-color: rgba(0, 0, 0, .1);
}

.sectionImage > iframe {
    width: 100%;
    height: 100%;
}

.inlineButton {
    display: inline-block;

    padding: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 3px;

    font-family: "Kanit";
    background-color: lightgray;

    text-decoration: none;
    /* box-sizing: content-box; */
}

.inlineButton:hover {
    cursor: pointer;
    background-color: rgb(185, 185, 185);
}

.sectionImage {
    grid-column: 1 / 2;
    
    overflow: hidden;
    align-self: center;

    height: 100%;
    width: 100%;

    overflow: hidden;

    /* max-height: 500px; */
}

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

    object-fit: cover;
}

section > .content {
    grid-column: 2 / 3;
    padding: 20px;
}

.centerImage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.centerImage > img {
    width: 200px;
    height: 200px;
}

footer {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
    gap: 20px;

    width: 100%;
    /* height: 200px; */
    padding: 20px;

    text-align: center;
    font-family: "Kanit";
    font-size: 1.2em;

    box-sizing: border-box;
    border-top: 1px solid lightgray;
}

footer > .information {
    line-height: 2em;
    font-size: 0.9em;
}

footer > .information > span {
    display: block;
}

footer > div {
    display: flex;

    flex-direction: column;
    justify-content: space-evenly
}

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

    /* gap: 10px; */
    column-gap: 10px;
}

.socials > a {
    /* width: 60px; */
    height: 60px;
}

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

.information > a {
    text-decoration: underline;
}

.heroimage {
    display: block;
    position: relative;

    text-align: center;

    margin-left: auto;
    margin-right: auto;

    padding: 0;
    margin: 0;
    grid-column: 1 / 4;

    overflow: hidden;
}

.heroimage > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* object-position: 50% 50%; */
    /* transform: translateY(-50%); */
}

.overImageTitle {
    position: absolute;
    
    z-index: 10;

    color: white;
    
    font-size: 1.2em;
    line-height: 1.5em;
}

.overImageTitle:not(.notfullscreen) {
    display: flex;

    width: 100%;
    height: 100%;

    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgb(0, 0, 0, 0.3);
}

.overImageTitle.notfullscreen {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.overImageTitle > h2 {
    font-size: 1em;
}

/* 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);

    /* background-color: red; */
}

.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: white;

    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);
}

nav {
    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 lightgray;
}

.navTitle {
    display: flex;

    text-align: center;

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

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

    padding-left: 55px;

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

    font-weight: bold;

    background-image: url(assets/images/soul_cats.png);
    background-size: 50px auto;
    background-repeat: no-repeat;
    background-position-y: 50%;

    transition: padding 500ms, background-position-y 400ms;
}

.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;
    align-items: center;

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

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

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

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

    top: 35px;
    right: 15px;

    width: 40px;
    height: 5px;
    background-color: black;
    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: underline;
}

/* Form page */
.contact-form {
    display: grid;
    grid-template-columns: 400px 600px;

    gap: 5px;

    width: 100%;
    height: 100%;

    max-width: 1000px;
    max-height: 800px;

    margin: 30px;
    padding: 10px;
    padding-top: 20px;
    padding-bottom: 20px;

    text-align: left;

    border-radius: 5px;
    /* background-color: rgb(0, 98, 128); */
    background-color: white;
    color: black;

    box-sizing: border-box;
}

.contact-form > .map {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
    /* height: calc(100% - 4em); */

    padding: 10px;

    box-sizing: border-box;
    max-width: 800px;

    text-align: center;
    margin: auto;
}

.map > iframe {
    width: 100%;
    height: 100%;
}

form {
    width: 100%;
    max-width: 500px;

    margin: auto;

    box-sizing: border-box;
}

form > h2 {
    text-align: center;
}

form > label {
    display: block;
    font-size: 1.2em;
}

form > 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.9em;

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

    outline: 0;
}

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

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

    background-color: rgb(210, 210, 210);
    color: black;
    font-weight: normal;

    cursor: pointer;
}

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

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

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

form > textarea {
    resize: vertical;
    max-height: 240px;
    min-height: 50px;

    border: 2px solid lightgray;
}

.addressInput {
    display: none;
}

#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: gray;

    bottom: 0;
    left: 0;

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

@media screen and (max-width: 1023px) {
    .contact-form {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 500px;
        max-height: unset;

        height: unset;

        width: 100%;

        /* padding: 10px; */
        margin: 0;
        border-radius: 0;

        font-size: 0.9em;
    }

    .contact-form > form {
        grid-row: 1 / 2;

        max-width: 700px;

        padding: 10px;
    }
}

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

@media screen and (min-width: 411px) {
    .sectionImage {
        aspect-ratio: 1.5 / 1;
    }
}

/* Tablet Screen */
@media screen and (max-width: 850px) {
    section {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;

        padding-left: 0;
        padding-right: 0;
    }

    .sectionImage {
        grid-column: 1 / 2;
        grid-row: 1 / 2;

        height: 100%;
        width: 100%;

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

        overflow: hidden;
        box-sizing: border-box;
    }

    section > .content {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        /* text-align: center; */
    }

    section.mobileTall {
        grid-template-rows: 450px 1fr;
    }

    section.mobileTall > .sectionImage {
        padding: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .sectionImage > iframe {
        /* pointer-events: none; */
        height: 500px;
    }
}

@media screen and (max-width: 1023px) and (min-width: 411px) {
    nav {
        padding-top: 20px;
        padding-bottom: 20px;
        flex-direction: column;
        
        height: 135px;
        /* padding-top: 20px; */
    }
}

@media screen and (max-width:750px) {
    footer {
        grid-template-columns: 1fr;
    }

    footer > .socials {
        order: -1;

        column-gap: 30px;

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

    footer > .footerLogo {
        order: 1;
    }
}

/* Mobile Screen */
@media screen and (max-width: 410px) {
    body {
        font-size: 1.2em;

        margin-top: 75px;
    }

    .overImageTitle {
        font-size: 1.4em;
        width: 90%;
    }

    .hamburgerIcon {
        display: block;
    }

    .slideshowArrow {
        display: none;
    }

    ul, ol {
        font-size: 0.9em;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;

        z-index: 20;

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

    .navTitle {
        /* color: white; */
        margin-left: 20px;
        /* padding-left: 50px; */
        z-index: 22;

        font-size: 1.3em;

        /* width: 100%; */
    }

    .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: white;
        color: black;
        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;
    }

    .inlineButtonContainer {
        text-align: center;
        margin-top: 20px;
    }
    
    .content {
        /* text-align: center; */
    }

    .contact-form > form {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 340px) {
    .navTitle {
        /* margin-right: 40px; */
        font-size: 1.2em;
        margin-left: 10px;
        padding-left: 40px;
        /* margin-left: 0; */
    }

    .navTitle {
        /* background-position-y: -75px;
        padding-left: 0; */
    }
}