:root {
    /* colors */
    --lgreen: #96CC14;
    --mgreen: #00ae00;
    --dgreen: #008140;
    --teal: #00454c;
    --text: #000;

    --vw: 10vw;

}

@font-face {
    font-family: Figtree;
    font-style: normal;
    font-weight: 400;
    src: url('fonts/Figtree-VariableFont_wght.ttf');
}

body {
    margin: 0;
}

container {
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    background-image: url("img/header.png");
    background-position: bottom right -100px;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--lgreen);
    height: 30vh;
}

header h1 {
    margin: 20px var(--vw);
    font-family: Figtree;
    font-size: 70pt;
    font-weight: 900;
    color: white;
    -webkit-text-stroke: 10px var(--teal);
    paint-order: stroke fill;
    align-self: center;
    line-height: 1;
}

nav {
    margin: 20px var(--vw);
}

nav a {
    margin-right: 50px;
    font-family: Figtree;
    font-size: 22pt;
    font-weight: 800;
    text-decoration: none;
    color: var(--dgreen);
}

nav a:hover {
    color: var(--mgreen);
    text-decoration: underline dashed;
}

/*  normally i include a:visited but on such a small site it feels unnecessary
nav a:visited {
    color: var(--teal);
}*/

main {
    margin: 0px var(--vw);
    font-size: 16pt;
    font-family: Figtree;
}

h1,
h2,
h3 {
    margin: 20px 0px;
    color: var(--teal);
}

h1 {
    font-size: 40pt;
}

h2 {
    display: block;
    background: var(--dgreen);
    width: 66%;
    clip-path: polygon(0% 0%, 95% 0%, 100% 100%, 5% 100%);
    color: white;
    text-align: center;
    font-size: 40px;
    padding: 5px;
}

h3 {
    border-bottom: 3px dashed var(--mgreen);
}

flex {
    display: flex;
    gap: 10px;
}

.space-around {
    justify-content: space-around;
}

.space-evenly {
    justify-content: space-evenly;
}

/* making thumbnails clickable  */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    color: white;
    margin: 20px;
    text-align: center;
}

gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* img crop/positioning classes */
.center {
    width: 256px;
    height: 256px;
    object-fit: none;
    object-position: center;
    cursor: pointer;
}

.left {
    width: 256px;
    height: 256px;
    object-fit: none;
    object-position: left;
    cursor: pointer;
}

.right {
    width: 256px;
    height: 256px;
    object-fit: none;
    object-position: right;
    cursor: pointer;
}

.top {
    width: 256px;
    height: 256px;
    object-fit: none;
    object-position: top;
    cursor: pointer;
}

.bottom {
    width: 256px;
    height: 256px;
    object-fit: none;
    object-position: bottom;
    cursor: pointer;
}

footer {
    background-color: var(--lgreen);
    margin: 50px 0 0 0;
    padding: 20px;
    font-family: sans-serif;
    font-size: 12pt;
    text-align: center;
}

footer a {
    color: var(--text);
}

/* container for video portfolio */
portfolio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px 20px;
}

.video {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.video::after {
    display: block;
    content: "";
    padding-top: 56.25%;
}

.video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

description {
    margin: 10px;
}

description h3 {
    margin: 0px;
}

description p {
    font-size: 14pt;
}

/* somewhat hacky adjustment for the gallery on index.html */
@media (max-width: 1280px) {
    .example {
        grid: repeat(2, 256px) / auto-flow 256px;
    }
}

/* adjustments for mobile layout */

@media (max-width: 800px) {

    :root {
        --vw: 5vw;
    }

    header {
        background-position: bottom;
        background-size: cover;
    }

    header h1 {
        font-size: 60pt;
        text-align: center;
    }

    flex {
        flex-direction: column;
    }

    portfolio {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 10px;
    }

    h2 {
        width: 90%;
        margin: 20px auto;
    }

}