.domine-medium {
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
  
:root{
/*     
    --black: #383838;
    --darkerBlack: #2c2c2c;
    --white: #f2f0ef;
    --mint: #adebb3;
    --dark_green: #161a13;
    --light_brown: #B6AD90;
    --dark_brown: #755940;
    --darker_brown: #423326; */

    --dark_green: #004030;
    --green: #748873;
    --tan: #d2b48c;
    --cream: #FFF9E5;
    --white: #f9f0ea;
    --gray: #3f3f3f;
    --bgColor: var(--cream); /* Background */
    --primary: var(--cream); /* Button text */
    --secondary: var(--gray); /* H4 - p color, figcaption color */
    --accentColor: var(--green); /* H1 - H3 + Button color + card color */
}

h1 {
    font-family: "Fjalla One";
    font-size: 64px;
    color: var(--accentColor);
    font-weight: 300;
    margin-bottom: 10px;
}

h2 {
    font-family: "Fjalla One", sans-serif;

    font-size: 52px;
    color: var(--accentColor);
    font-weight: 300;
    margin-bottom: 10px;    
}

h3 {
    font-family: "Fjalla One", sans-serif;

    font-size: 48px;
    color: var(--accentColor);
    font-weight: 400;
}

h4 {
    font-family: "Fjalla One", sans-serif;

    font-size: 32px;
    color: var(--secondary);
    font-weight: 400;
}

h5 {
    font-family: "Fjalla One", sans-serif;

    font-size: 24px;
    color: var(--secondary);
    font-weight: 400;
    width: 60%;
    line-height: 1.2em;
}

h6 {
    font-family: "Bodoni Moda";

    font-size: 20px;
    color: var(--secondary);
    font-weight: 500;
}

figcaption {
    font-family: "Domine";

    font-size: 20px;
    color: var(--secondary);
    font-weight: 500;
}

p {
    font-size: 18px;
    line-height: 1.4em;
    color: var(--secondary);
    font-weight: 500;
    width: 60%;
    font-family: "Domine";
    margin-bottom: 25px;
}

br {
    line-height: 2em;
}

body{
    background-color: var(--bgColor);
    padding-right: 88px;
}

#projects {
    display: flex;
    align-content: flex-start;
    max-width: 100vw;
    flex-wrap: wrap;
    justify-self: center;
    gap: 40px;
}

#projects a {
    max-width: 18em;
    max-height: 28em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 18em;
    height: 28em;
}

.projectCard {
    margin: 0;
}

.projectCard img {
    width: 18em;
    height: 28em;
    object-fit: cover;
    border-radius: 16px;
    filter: sepia(40%);
    box-shadow: 0 0 10px 5px rgba(104, 36, 0, 0.313);

    transition: all 0.25s ease;
}

.projectCard img:hover {
    filter: none;
    box-shadow: 0 0 7px 10px rgba(104, 36, 0, 0.313);

}

.projectCard figcaption {
    position: absolute;
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
    background-color: var(--accentColor);
    width: 9em;
    height: 9em;
    text-align: center;
    border-radius: 25%;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: captionShow 0.25s forwards;
}

@keyframes captionHide {
    from {rotate: none;}
    to {rotate: y 90deg;display: none;}
}

@keyframes captionShow {
    from {rotate: y 90deg;display: none;}
    to {rotate: none; display: absolute;}
}

.projectCard:hover figcaption {
    animation: captionHide 0.25s forwards;
}

#about {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
}

#aboutHead {
    grid-column: span 2;
}

#aboutHead img {
    display: none;
}

#about p {
    width: 100%;
}

#about img {
    width: 100%;
    height: auto;
}

.images {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 20px;
    justify-self: left;
    max-width: 100vw;
    grid-auto-rows: minmax(100px, auto);
}

.tall {
  grid-row: span 2; /* Make this image span two rows */
  grid-column: span 1;
}

.wide {
  grid-column: span 1; /* Make this image span two columns */
  grid-row: span 1;
}

.big {
    grid-column: span 2;
    grid-row: span 2;
}

.images img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 0 10px 5px rgba(104, 36, 0, 0.313);
}

.images img:hover {
    cursor: zoom-in;
}

body {
    margin-left: 105px;
}

nav ul {
    list-style: none;
    padding: 0 20px;
    font-size: 50px;
    color: var(--secondary);
}

nav li {
    display: flex;
    justify-content: left;
    align-items: center;
    font-family: Helvetica, Arial, sans-serif;
    color: var(--green);
}

li a {
    color: var(--green);
}

nav {
    position: fixed;
    height: 100vh;
    width: 88px;
    background-color: var(--bgColor);
    top: 0;
    left: 0;
    display: flex;
    justify-self: center;
    align-items: center;
    z-index: 9999999;
    
    transition: all 0.25s ease;
}

nav:hover {
    width: 188px;
    box-shadow: 0 0 10px 5px rgba(104, 36, 0, 0.313);
    z-index: 9999999999999;
}

.navHover {
    width: 0;
    overflow: hidden;
    font-size: 24px;
    float: right;
    padding-bottom: 9px;

    transition: all 0.25s ease;
}

nav:hover .navHover, ul:hover .navHover {
    width: 160px;
    font-size: 24px;
    float: right;
    padding-bottom: 9px;
}

nav a, nav a:visited, nav a:hover {
    color: var(--secondary);
    text-decoration: none;
    font-style: normal;
}

a, a:visited {
    color: var(--secondary);
}

nav a, nav a:visited {
    color: var(--green);
}

a:hover {
    font-style: italic;
}

a .navHover {
    width: auto;
    color: var(--green);
}

figure a:hover {
    font-style: normal;
}

nav img {
    padding: 10px 0;
    width: 48px;
    height: 48px;
}

ul img {
    padding-right: 10px;
}

#mobileNav, #menuButton {
    display: none;
}

br {
    display: block; /* makes it have a width */
    content: ""; /* clears default height */
    margin-top: 10px; /* change this to whatever height you want it */
}

/* Back to Top Button Container */
#toTop {
    display: none; /* hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    cursor: pointer;
    padding: 0px;
    border-radius: 100%;
    font-size: 18px;
    width: 5rem;
    height: 5rem;
    border: none;
    /* box-shadow: 0 0 10px 5px rgba(104, 36, 0, 0.313); */
}

#logo {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 64px;
    height: 64px;
    z-index: 9999999999;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; display: none;}
}

button {
    padding: 10px;
    border-radius: 8px;
    background-color: var(--accentColor);
    color: var(--primary);
    outline: none;
    border: 5px solid var(--accentColor);
    font-size: 18px;
    font-family: "Domine";
    font-weight: 800;

    margin-bottom: 20px;
    transition: all 0.25s ease;

    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

button:hover {
    background-color: var(--bgColor);
    color: var(--accentColor);
    cursor: pointer;
}

.arrow {
    font-size: 30px;
    font-weight: 500;
}

a {
    text-decoration: none;
}

iframe {
    border-radius: 8px;
    border-style: solid;
    border-color: var(--accentColor);
    border-width: 5px;
}

#photobook {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
}

.fade-in {
    opacity: 0;
    transition: opacity 250ms ease-in;
}

.fade-in.appear {
    opacity: 1;
}

.before-after-webpage {
    display: grid;
    grid-template-columns: auto auto;
    gap: 20px;
    justify-self: left;
    grid-auto-flow: column;
}

.before-after-webpage img {
    width: 100%;
    height: auto;
}

.before-after-webpage h2 {
    width: 100%;
}

#foot {
    display: grid;
    grid-template-columns: 33.333% 33.333% 33.333%;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 100px;
    height: fit-content;
}

#buttonInstruction {
    display: flex;
    justify-content: center;
    align-items: center;
}

#foot h5 {
    text-align: center;
    margin: 0;
    padding: 0;
}

#foot a, #foot button {
    width: 100%;
    height: 75px;
    margin-bottom: 0;
}

footer {
    padding-top: 50px;
}

footer p {
    width: 100%;
}

#footContent {
    display: grid;
    gap: 20px;
    grid-template-columns: 70% 30%;
    padding:0 50px;
}

#footContent h5 {
    margin: 5px 0px;
}

#rightCol {
    display: flex;
    flex-direction: column;
    justify-content: right;
}

#returnToProjects {
    margin-left: auto; 
    margin-right: 0;
}

#copyright {
    text-align: right;
}

@media (max-width: 1080px){
    p {
        width: 100%;
    }

    .images {
        grid-template-columns: auto auto;
    }

    .big {
        grid-column: span 1;
        grid-row: span 1;
    }

    .before-after-webpage {
        grid-auto-flow: row;
        grid-template-columns: auto;
    }

    #about {
        grid-template-columns: 100%;
    }

    #aboutHead {
        grid-column: span 1;
    }

    #aboutHead img {
        display: block;
    }

    #aboutImage {
        display: none;
    }

    #photobook {
        height: 350px;
    }

    #foot {
            gap: 5px 20px;
            grid-template-columns: 50% 50%;
    }

    #buttonInstruction {
        order: -1;
        grid-column: span 2;
    }

    #foot a, #foot button {
        width: 100%;
        height: 100px;
    }
}

@media (max-width:768px) {
    #logo {
        display: none;
    }

    body{
        margin-left: 0;
        padding: 10px;
        padding-top: 40px;
    }

    p {
        width: 100%;
    }

    h5 {
        width: 100%;
    }

    #projects {
        /* flex-direction: column; */
        align-items: center;
        justify-content: center;
    }

    .projectCard {
        justify-self: center;
        align-self: center;
    }

    .images {
        grid-template-columns: auto;
        padding-right: 0;
    }

    .images img {
        width: 100%;
        height: auto;
    }

    h1 {
        text-align: center;
        font-size: 48px;
    }

    nav a, nav a:visited {
        color: var(--dark_green);
    }

    #navList {
        display: none;
    }

    #menuButton { 
        display: block;
        position: fixed;
        top: 20px;
        left: 20px;
        width: 48px;
        height: 48px;
        z-index: 99999999;
        padding: 5px;
        background-color: var(--tan);
        border-radius: 8px;
    }

    nav {
        background-color: none;
        height: auto;
        width: auto;
        box-shadow: none;
    }

    #menuButton:hover + #mobileNav, #mobileNav:hover {
        display: flex;
        width: 160px;
        height: fit-content;
        background-color: var(--tan);
        align-items: flex-end;
        position: fixed;
        top: 70px;
        left: 20px;
        border-radius: 0 8px 8px 8px;
        box-shadow: none;
    }

    ul .navHover, ul:hover .navHover {
        width: fit-content;
        font-size: 24px;
        float: right;
        padding-bottom: 9px;
        box-shadow: none;
    }

    nav img {
        padding: 10px 0;
        padding-right: 5px;
        width: 32px;
        height: 32px;
    }

    .navHover {
        width: auto;
        box-shadow: none;
    }

    #mobileNavList {
        height: fit-content;
        width: fit-content;
        margin: 0;
    }

    button {
        width: 90vw;
    }

    iframe {
        width: 90vw;    
    }

    #photobook {
        height: 250px;
    }

    .center {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #foot {
        grid-template-columns: auto;
    }

    #foot a, #foot button {
        width: 100%;
        height: fit-content;
    }
    
    #buttonInstruction {
        order: -1;
        grid-column: span 1;
    }

    #footContent {
        grid-template-columns: auto;
        padding-left: 0;
        padding-right: 0;
    }

    #returnToProjects {
        margin-left: auto; 
        margin-right: auto;
    }

    #copyright {
        text-align: center;
    }
}