body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1.1em;
    line-height: 1.2em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 10px;
}

h1 { font-size: 1.5em; }
h2 { font-size: 1.3em; }

main {
    max-width: 1280px;

    box-sizing: border-box;

    margin: auto;
    background-color: lightgray;
}

section {
    display: grid;

    grid-template-columns: 400px 1fr;
    padding: 20px;
}

.sectionImage {
    grid-column: 1 / 2;
    
    overflow: hidden;
    align-self: center;

    max-height: 500px;
}

.sectionImage > img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
}

section > .content {
    grid-column: 2 / 3;
    padding: 20px;
}

footer {
    width: 100%;
    padding: 20px;

    text-align: center;
    font-family: "Kanit";
    font-size: 1.2em;

    box-sizing: border-box;
    border-top: 1px solid lightgray;
}

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%;

    padding-left: 55px;

    font-weight: bold;

    background-image: url(assets/logo.png);
    background-size: 40px;
    background-repeat: no-repeat;
    background-position-y: 50%;
}

.navItems {
    display: flex;

    height: 100%;

    justify-content: flex-start;
    box-sizing: border-box;
    
    font-family: "kanit";
}

.navItems > li > a {
    display: flex;
    align-items: center;

    height: 100%;
    padding-left: 20px;
    padding-right: 20px;

}

.navItems > li > a:hover {
    background-color: lightgray;
}

.hamburgerIcon {
    display: none;
    cursor: pointer;
}

.hamburgerIcon {
    /* display: none; */
    position: fixed;
    z-index: 11;

    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: inherit;
}

/* Table Screen */
@media screen and (max-width: 1199px) and (min-width: 601px) {
    section {
        grid-template-columns: 200px 1fr;
    }
}

@media screen and (max-width: 750px) and (min-width: 601px) {
    nav {
        padding-top: 20px;
        padding-bottom: 20px;
        flex-direction: column;
        
        height: 135px;
        /* padding-top: 20px; */
    }

    .navTitle {
        
    }
}

/* Mobile Screen */
@media screen and (max-width: 600px) {
    body {
        font-size: 1.2em;

        margin-top: 75px;
    }

    .navTitle {
        
    }

    .hamburgerIcon {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;

        /* flex-direction: column; */
        justify-content: flex-start;
        align-items: center;
    }

    .navTitle {
        /* color: white; */
        margin-left: 20px;
        padding-left: 80px;
        z-index: 12;

        /* width: 100%; */
    }

    .navItems {
        position: fixed;
        top: 0;
        left: 0;

        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;
        
        z-index: 10;
    }
    
    .navItems.open {
        transform: translateY(0);
    }

    .navItems > li > a:hover {
        background-color: unset;
    }

    section {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
    }

    .sectionImage {
        grid-column: 1 / 2;
        grid-row: 1 / 2;

        height: 100%;

        overflow: hidden;
        box-sizing: border-box;
    }

    section > .content {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
}

@media screen and (max-width: 400px) {
    .navTitle {
        color: transparent
    }
}