@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
    --main-colour: #349;
}

* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

h1 {
    color: var(--main-colour);
    font-size: 2rem;
    line-height: 2rem;
    padding: 0 0 20px 0;
}

h2 {
    padding: 20px 0 10px 20px;
    color: var(--main-colour);
    font-size: 1.4rem;
    line-height: 1.6rem;
    font-weight: 500;
}

h3 {
    color: var(--main-colour);
    font-size: 1.2rem;
    font-weight: 400;
    padding: 0 0 15px 0;
    line-height: 1.2rem;
}

h4 {
    padding: 0 0 10px 0;
    color: var(--main-colour);
    font-size: 1.4rem;
    line-height: 1.6rem;
    font-weight: 500;
}

hr {
    border: 0;
    margin: 20px 0 20px 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

pre {
    white-space: pre-wrap;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    background: #eee;
    color: #444;
}

nav {
    background: var(--main-colour);
    height: 60px;
    width: 100%;
    font-size: 1.1rem;
    /* Change nav font size HERE */
    font-weight: bold;
    top: 0;
    position: sticky;
}

label.logo {
    font-family: 'Kanit', sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: white;
    text-shadow: 1px 2px 2px black;
    padding-left: 20px;
}

.logo a, .logo a:hover {
    text-decoration: none;
    color: white;
    background: none;
}

nav ul {
    float: right;
    margin-right: 10px;
}

nav ul li {
    display: inline-block;
    line-height: 60px;
    margin: 0 5px;
}

nav ul li a {
    color: white;
    font-size: 1em;
    /* DO NOT CHANGE NAV FONT SIZE HERE! */
    padding: 7px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

nav a:hover {
    background: black;
    transition: .2s;
}

nav span {
    padding: 0 0 5px 20px;
    font-size: 1.5rem;
    color: #ddd;
}

.checkbtn {
    font-size: 30px;
    color: white;
    float: right;
    line-height: 60px;
    margin-right: 20px;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

.image-layout {
    max-width: 1540px;
    margin: 0 auto;
}

.image-layout img {
    margin: 5px 10px;
    border: 5px solid white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.sizing button {
    margin: 10px 0 10px 20px;
    padding: 5px 10px;
    background: var(--main-colour);
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.sizing button:hover {
    background: black;
}

.sizing a {
    color: white;
}

.sizing p {
    font-size: 1.1rem;
    padding: 5px 0 0 20px;
}

.subheading {
    padding: 5px 0 0 40px;
    font-size: 1.2rem;
}

.container {
    display: grid;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    grid-template-columns: auto 350px;
    grid-template-rows: 350px 600px auto;
    grid-template-areas:
        "main sidebar1"
        "main sidebar2"
        "main spare-panel";
    grid-gap: 1rem;
}

.container span {
    font-size: 1.5rem;
}

.container h1 {
    padding-top: 20px;
}

main {
    grid-area: main;
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    height: 100%;
    font-size: 1.2rem;
    line-height: 1.7rem;
    font-weight: 500;
}

main p {
    margin-bottom: 1.2rem;
}

main img {
    max-width: 100%;
}

main a, main a:hover, main a:visited {
    color: var(--main-colour);
}

main a:hover {
    text-decoration: underline;
}

main pre {
    font-size: 1rem;
    padding: 0;
    margin: 0;
}

.pd-pics img {
    padding: 20px 0;
}

.sidebar1 {
    grid-area: sidebar1;
    background: white;
    padding: 1rem;
    border-radius: 5px;
}

.sidebar1 img {
    max-width: 320px;
    display: block;
}

.sidebar1 p {
    padding-top: 10px;
}

.sidebar2 {
    grid-area: sidebar2;
    background: white;
    padding: 1rem;
    border-radius: 5px;
}

.spare-panel {
    grid-area: spare-panel;
}

.footer-container {
    width: 100%;
    background: var(--main-colour);
    margin-top: 20px;
}
    
footer {
    max-width: 1000px;
    min-width: 320px;
    margin: 0 auto;
}
    
.footer-content {
    padding: 40px;
    color: #eee;
    text-align: center;
    font-size: 1.2rem;
    font-family: arial, sans-serif;
}

.footer-content a, .footer-content a:hover, .footer-content a:visited {
    color: #eee;
}
    
@media screen and (max-width: 940px) {
    .checkbtn {
        display: block;
    }

    ul {
        position: fixed;
        width: 100%;
        background: var(--main-colour);
        top: 65px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }

    nav ul li {
        display: block;
        margin: 0;
        line-height: 50px;
        border-bottom: 1px solid #456;
    }

    nav ul li a {
        font-size: 1.2em;
    }

    nav a:hover {
        background: none;
        color: white;
    }

    #check:checked~ul {
        left: 0;
    }
}

@media screen and (max-width: 700px) {
    .container {
        margin: 0;
        padding: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "main"
            "sidebar1"
            "sidebar2";
        grid-gap: 2px;
        width: 100%;
    }
}