/* @import url('https://fonts.googleapis.com/css2?family=Inter');
@import url('https://fonts.googleapis.com/css2?family=Radio+Canada&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

:root {
    --bgWhite: rgba(255, 255, 255, 0.7);
    --pinkish: #dab8c0ee;
    --medlightblue: #5d94ac78;
    --lighterblue: #8da7c093;
    --orangeyellowcrayloa: #f4d45e;
    --lighteryellow: #f3d77281;
    --sandybrown: #ee974b8d;
    --darkdarkblue: #2e2f35;
    --greyblue: #434653;
    --bluegrey: #566e85;
    --lightestblue: #b0d4e4;
    --stone1: var(--lighterblue);
    --stone2: var(--lighteryellow);
    --stone3: var(--medlightblue);
    --navColor: rgba(255, 255, 255, 0.9);
    --linkBG: #43465351;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 100;
    background-image: url("../images/rocks1-f-80percent.jpg");
    background-size: cover;
    background-attachment: fixed;
}

img {
    border-radius: 1em;
}

main,
footer {
    background-color: var(--bgWhite);
    color: var(--text);
    margin: 2vh 2vw;
    padding: 2em 2em;
    border-radius: 1em;
}

footer {
    overflow: hidden;
    padding-top: 1em;
}

footer address {
    margin-bottom: 3vh;
}

footer address ul {
    padding-left: 0;
}

footer address ul li {
    /* display: inline-block; */
    list-style-type: none;
}

footer address ul li b {
    font-style: normal;
    font-weight: bolder;
    padding-left: 0.25em;
}

footer a {
    color: white;
    background-color: var(--linkBG);
    padding: 1em;
    border-radius: 1.3em;
}

.gridlist {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1ch;
    grid-template-rows: auto;
    list-style-type: none;
    padding-left: 0;
}

.gridlist li {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gridlist li p {
    padding: 2ch 2ch;
    /* border: solid red 1px; */
    margin: 0 1ch;
}

.gridlist li a {
    padding: 2ch;
    color: white;
    background-color: var(--linkBG);
}

.gridlist li em {
    font-style: normal;
    font-weight: 800;
    font-size: 1.2em;
}

.gridlist li:nth-child(odd) {
    background-color: var(--stone1);
    border-top-left-radius: 1.4em;
    border-top-right-radius: 1.7em;
    border-bottom-left-radius: 1.2em;
    border-bottom-right-radius: 1.5em;
}

.gridlist li:nth-child(even) {
    background-color: var(--stone2);
}

.gridlist li:first-child {
    border-top-left-radius: 1.6em;
    border-top-right-radius: 1.4em;
    border-bottom-left-radius: 1.2em;
    border-bottom-right-radius: 1.8em;
}

.gridlist li:nth-child(2n) {
    border-top-left-radius: 1.7em;
    border-top-right-radius: 1em;
    border-bottom-left-radius: 1.3em;
    border-bottom-right-radius: 1.5em;
}

.gridlist li:nth-child(3n) {
    /* max-width: 85%; */
    border-top-left-radius: 1.5em;
    border-top-right-radius: 1.7em;
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1.3em;
}

.gridlist li:nth-child(5n) {
    background-color: var(--stone3);
    border-top-left-radius: 1.3em;
    border-top-right-radius: 1.5em;
    border-bottom-left-radius: 1.7em;
    border-bottom-right-radius: 1em;
}

.gridlist li:nth-child(7n) {
    border-top-left-radius: 1.6em;
    border-top-right-radius: 1.3em;
    border-bottom-left-radius: 1.5em;
    border-bottom-right-radius: 1.1em;
}



/* =============================                   PHOTO + INTRO TEXT STUFF */

.hiAndPhoto {
    display: grid;
    grid-template-columns: 1fr;
}

.hiAndPhoto img {
    width: 60%;
    margin: 1em auto;
}

.hiAndPhoto section {
    border: solid var(--bluegrey) 2px;
    border-top-left-radius: 1.5em;
    border-top-right-radius: 1.7em;
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1.3em;
    padding: 1em;
    line-height: 150%;
}

.hiAndPhoto a {
    display: inline-block;
    color: var(--text);
    border-radius: 1.3em;
    background-color: var(--stone2);
    text-decoration: none;
    padding: 1em;
    border-color: var(--stone1);
    border-width: 0.25em;
    border-style: solid;
}

.hiAndPhoto a:visited {
    color: var(--text);
}


/* .hiAndPhoto {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    grid-gap: 1em;
}

.hiAndPhoto article {
    grid-column: 1;
    font-size: 1.1em;
} 

.hiAndPhoto img {
    grid-column: 2;
    width: 100%;
} */



/* =============================                            NAV STUFF */

header {
    /* background-color: rgba(255, 255, 255, 1);  */
    background-color: var(--bgWhite);
    /* var(--one); */
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 3em;
    text-align: right;
    border-bottom: var(--five) solid 2px;
    z-index: 100;
}

#navcheckbox {
    display: none;
}

#navcheckbox:checked~nav {
    max-height: 48em;
    transition: all 0.6s;
}

nav {
    /* max-width: 100ch; */
    margin: 0 auto;
    background-color: var(--navColor);
    position: absolute;
    top: 3em;
    left: 0;
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: all 0.5s;
    font-family: 'Nunito';
    font-weight: bold;
    text-align: right;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    font-size: 1.5em;
    display: block;
    margin: 1em;
}

nav ul li a {
    color: black;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}


#hamburger {
    display: inline-block;
    font-size: 2.4em;
    color: black;
}



/* =============================                    RESPONSIVE STUFF FOR BIGGER SCREENS */

@media only screen and (min-width: 100ch) {


    main,
    footer {
        margin: 2em auto;
        max-width: 100ch;
    }

    footer address ul li {
        display: inline-block;
    }

    #hamburger {
        display: none;
    }

    nav {
        text-align: center;
        position: relative;
        top: -1em;
        max-height: 4em;
    }

    nav ul li {
        font-size: 0.9em;
    }

    .hiAndPhoto {
        display: grid;
        grid-template-columns: 2fr 1fr;
    }
    
    .hiAndPhoto img {
        /* width: min(25vw, 40ch); */
        width: 100%;
        grid-column: 2;
        margin: 0 1em;
        /* margin-left: 1em;
        margin-top: 0;
        margin-right: 0;
        margin-bottom: 0; */
    }
    
    .hiAndPhoto section {
        grid-column: 1;
    }

    .gridlist {
        grid-template-columns: 1fr 1fr 1fr;
    }

    nav ul {
        list-style-type: none;
        display: flex;
        justify-content: flex-end;
    }

    nav ul li {
        display: inline-block;
        padding: 0 0.5em;
    }




    /* .hiAndPhoto article {
        grid-column: span 2;
        grid-row: 2;
        border: 1px green solid;
    } */
}

/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^  END RESPONSIVE STUFF FOR BIGGER SCREENS */