body {
    font-size: 100%;
    line-height: 1.5;
    font-family: "Gothic A1", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #FFF9EF;
}
h1 {
    margin-top: 0.25rem;
    max-width: 10rem;
}
h1:hover {
    cursor: pointer;
}
h1 a {
    display: flex;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    color: black;
}
h1 a img{
    width: 5rem;
}
h2 {
    font-family: "Lora", serif;
    font-weight: 600;
    font-size: clamp(2.25rem, 2.05rem + 1vw, 3.25rem);
    line-height: 64px;
    text-transform: uppercase;
}
h2 span {
    width: 100%;
}
h3 {
    font-family: "Lora", serif;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 1.35rem + 0.75vw, 1.85rem);
    font-weight: 600;
    margin-top: 3rem !important;
}
h4 {
    font-size: 21px;
    font-family: "Lora", serif;
    line-height: 32px;
    font-weight: 600;
    margin-top: 1.5rem;
}
a {
    font-family: "Lora", serif;
}
b {
    font-weight: 700;
}
p {
    margin-bottom: 1.5rem !important;
}

button {
    margin-left: auto;
    border: none;
    background-color: unset;
}
button:hover {
    cursor: pointer;
}
button svg {
    width: 3rem;
    height: 3rem;
    fill: black;
    stroke: black;
    stroke-width: 0.5px;
}

nav {
    position: fixed;
    right: -300px;
    top: 0;
    z-index: 1;
    padding: 1rem 0 1rem 4rem;
    transition: ease-in-out 0.5s;
    background-color: #FFF9EF;
}
.nav {
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(255, 249, 239);

}
.show-nav {
    top: 0;
    right: 0;
    transition: ease-in-out 0.5s;
    width: 100%;
}
nav ul {
    min-width: 10rem;
}
nav ul li {
    margin: 2rem 0;
    list-style-type: none;
}
nav ul li a {
    padding: 0.5rem 0;
    color: black;
    text-transform: uppercase;
}

.nav-icons {
    display: flex;
}

.icon {
    margin: 1rem 0.5rem !important;
}
.icon a svg {
    width: 1.75rem;
    height: 1.75rem;
    transition: all 0.5s ease;
}
.icon:hover a svg {
    fill: #41730F;
}

.link {
    width: 5rem;
}

.link a {
    list-style-type: none;
    text-decoration: none;
    padding-top: 0.45rem !important;
}

.nav nav ul .link a::after {
    content: '';
    display: block;
    bottom: 0;
    left: 0;
    width: 0rem;
    height: 2px;
}
.nav nav ul .link a:hover::after {
    width: 100%;
    background-color: #41730F;
    transition: width 0.3s ease;
}

header {
    padding-bottom: 5rem;
    margin-bottom: 1.5rem;
    color: #FFF9EF;
    background: linear-gradient(-45deg, #537328, #2B5132, #5c3d62, #1d4a0e);
	background-size: 400% 400%;
	animation: gradient 12s ease infinite;
}
@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

header section:nth-of-type(2) {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    background: none;
    border: none;
}

.close-btn svg {
    width: 3rem;
    height: 3rem;
    fill: black;
    stroke: black;
    stroke-width: 1px;
}
.close-btn:hover svg {
    fill: #41730F;
}

.section-container {
    max-width: 1920px;
    margin: 0 auto;
}
.introduction {
    margin: 3rem auto 1.5rem auto;
}
.introduction .content {
    margin-left: 2rem;
    max-width: 40rem;
}
.introduction p {
    font-size: 20px;
    line-height: 48px;
    font-weight: 500;
    margin-bottom: 3rem;
}
span {
    color: white;
}
.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.portfolio {
    background-color: rgb(255 249 239 / 20%);
    color: #FFF9EF;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.25rem;
    border: 2px solid #FFF9EF;
    transition: all 0.5s ease;
}
.portfolio:hover {
    background-color: #FFF9EF;
    color: #234006;
    cursor: pointer;
}
.flower-image img{
    width: 0;
    height: 0;
}

.goto {
    width: 12rem;
    margin: 1rem 0 2rem;
}
.goto a {
    width: 12rem;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    color: black;
    display: flex;
    align-items: center;
}
.goto a p{
    font-size: 18px;
}
.goto img {
    width: 2rem;
    height: 2rem;
    margin-left: 1rem;
    transition: transform 0.3s ease-in-out;
    border-radius: 50%;
}

.goto a:hover img {
    transform: translateX(15px);
}
.projectsite {
    display: flex;
    gap: 3rem;
}
#projects {
    margin: 2rem 2rem 4rem 2rem; 
}

#projects h2 {
    margin-bottom: 1.5rem;
}
.project-display {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.projectcard.visible {
    opacity: 1;
    transform: translateY(0);
}
.projectcard {
    position: relative;
    text-decoration: none;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
    border-radius: 0.5rem;
    overflow: hidden;
}
.projectcard img {
    border-radius: 0.5rem;
    max-width: 100%;
    object-fit: cover;
}

.projectcard .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Tinted overlay */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 1rem;
    text-align: center;
}
.projectcard .overlay h3 {
    margin: 2rem;
}

.max-flex {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}
.max-flex .projectcard {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 431px;
    max-width: 50%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0.5rem;
    overflow: hidden;
}

.max-flex .project-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.projectcard p {
    margin: 0.5rem 0 1.5rem 0;
}

.projectcard .links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0 auto;
}

.projectcard .links a {
    background: #FFF9EF;
    color: #234006;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: ease-in-out 0.25s;
}

.projectcard .links a:hover{
    background: #5c3d62;
    color: #FFF9EF;
}
.projectcard:hover .overlay {
    opacity: 1;
}

.about {
    background-color: #234006;
    color: white;
    margin: 3rem 0; 
    padding: 3rem 1rem 4rem 1rem;
}
.about h2 {
    padding-left: 1rem;
}
.about p {
    margin-bottom: 0.5rem;
}
.about h3 {
    margin-top: 1.5rem;
}
.content {
    display: flex;
    flex-wrap: wrap;
    gap: 3.5rem;
    padding: 0 1rem;
}

.contact {
    margin: 4rem 2rem 4rem 1rem; 
}
.contact h2 {
    margin-bottom: 1.5rem;
}
.contact p a {
    text-decoration: none;
    color: #41730F;
}

.contact-info div:nth-of-type(2) {
    max-width: 30rem;
}
.contact-info p {
    margin-bottom: 0.5rem;
}

.contact img {
    max-width: 50%;
}

.aboutproject {
    margin: 1rem 2rem;
}

.decorative-icon {
    flex-wrap: wrap;
    margin-bottom: 0 !important;
}
.pacesetter .projectdetails {
    display: block;
}
.desktop-mockup {
    margin: 3.5rem 0;
}
.desktop-mockup img {
    max-width: 95%;
}

.pacesetter-mockup img {
    max-width: 95%;
}

.design-process .flex {
    display: flex;
}
.design-process img {
    max-width: 100%;
}
.steps-of-design img{
    margin: 2rem 0;
    max-width: 100%;
}
.goal-statement {
    margin: 2rem auto;
    max-width: 35rem;
}
.goal-statement img {
    max-height: 27rem;
    max-width: 100%;
}
.sketchwireframes {
    margin-bottom: 2rem;
}
.sketchwireframes img{
    max-width: 100%;
}
.prototype img {
    width: 100%;
}
.wireframes img{
    max-width: 100%;
}
.figma-design img {
    max-width: 100%;
}

.function {
    max-width: 25rem;
    margin: 2rem auto 8rem auto;
}
.houseplant .decorative-icon {
    margin-bottom: 2rem;
}
.houseplant-feature .flex img {
    max-width: 100%;
    max-height: 30rem;
}
.login img {
    max-width: 100%;
}

footer {
    background-color: #102c07;
    padding: 4rem 1rem;
    display: flex;
    gap: 3rem;
    justify-content: space-evenly;
}
footer h4 {
    font-family: "Lora", serif;
    font-size: 24px;
    text-transform: uppercase;
    color: #FFF9EF;
    margin-bottom: 0.75rem;
}
footer a {
    text-decoration: none;
    color: #eeece9d7;
}
footer div p {
    margin-bottom: 0.75rem;
}
footer div p:hover a {
    text-decoration: underline;
}

/* Houseplant page */
/* .houseplant-catalogue {
    width: 100%;
} */
.houseplant .goto {
    margin: 1.5rem 0;
    width: 6rem;
}

/* Recipes page */
.recipes .hifi {
    display: flex;
    width: 90%;
}
.recipes .projectdetails div:first-of-type{
    width: 60%;
}
.recipes .projectdetails div:nth-of-type(2) {
    width: 40%;
}
.recipes .hifi div:nth-of-type(2) img{
    max-width: 900px;
}

/* Banff Project */
.banff .projectdetails div:first-of-type {
    width: 100% !important;
}


@media screen and (min-width: 725px) {
    .max-flex {
        width: calc(50% - 2rem);
    }
    .projectcard {
        max-width: calc(50% - 1rem);
    }

    .max-flex .project-card {
        max-height: 431px;
        max-width: 25%!important;
    }

    .sketchwireframes .images {
        display: flex;
        gap: 2rem;
    }
    .sketchwireframes img {
        max-width: calc(33% - 1rem);
    }
    .user-flow {
        margin: 6rem auto;
    }
    
    .steps-of-design {
        display: flex;
        justify-content: space-around;
    }
    .steps-of-design div {
        padding-left: 5rem;
    }
    .steps-of-design img{
        margin: 0;
        max-width: 50%;
        object-fit: cover;
        
    }
}

@media screen and (min-width: 945px) {
    button {
        margin: 0;
        visibility: hidden;
    }
    nav {
        position: relative; 
        right: 0;
        top: 0;
        display: flex;
        align-items: center;
        background-color: rgba(255, 249, 239, 0.3);
        max-width: 1920px;
        width: 70%;
        margin-left: auto;
        padding: 0;
        transition: none; 
    }
    .nav nav ul {
        display: flex;
        margin-left: auto;
        margin-right: 0;
    }
    nav ul li {
        margin: 1rem 0;
    }
    .nav nav ul li a {
        text-decoration: none;
        color: black;
        padding: 0.25rem 1.5rem;
        display: inline-block;

    }
    .nav nav ul li a svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .nav-icons {
        margin-top: 1rem;
    }
    .link {
        width: unset;
        padding: 0;
    }
    .icon {
        margin: 0 !important;
    }
    
    #projects {
        padding: 4rem 0;
    }
    .project-info {
        min-width: 24rem;
    }

    .about {
        padding: 5rem 2rem;
    }
    .about .section-container .content {
        gap: 5rem;
    }
    .contact {
        margin-left: 4rem;
        max-width: 700px;
        margin: 2rem auto 4rem auto;
        padding: 5rem 2rem;
    }
    .contact .contact-info {
        display: flex;
        gap: 1.5rem;
    }

    .contact img {
        width: 26rem;
    }

    /* Pacesetter Page */
    .projectdetails div{
        width: 50%;
    }
    .projectdetails div>div {
        width: 100%;
    }
    .projectdetails {
        display: flex !important;
        gap: 3rem;
        margin-bottom: 2rem;
    }
    
    .desktop-mockup img{
        max-width: 90%;
        max-height: 900px;
    }
    .pacesetter-mockup {
        width: 60%;
    }
    .pacesetter-mockup img {
        height: 90%;
    }

    .design-process {
        display: flex;
        justify-content: space-evenly;
        gap: 3rem;
    }
    .design-process div:first-of-type {
        width: 35%;
        margin: 0;
    }
    .design-process div:nth-of-type(2) {
        width: 65%;
        margin: 0 0 0 4rem;
    }
    .steps-of-design {
        margin-bottom: 6rem;
    }
    .sketchwireframes {
        margin-top: 4rem;
    }
    .sketchwireframes p{
        max-width: 60%;
    }
    .prototype {
        margin-bottom: 5rem;
    }
    .prototype p {
        max-width: 65%;
    }
    .wireframes {
        margin-bottom: 5rem;
    }
    .wireframes p {
        max-width: 65%;
    }
    .challenges, .results, .login {
        max-width: 60%;
        margin: 3rem auto 6rem;
    }

    .houseplant .sketchwireframes .images {
        margin-bottom: 10rem;
    }

    .list {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin: 1.5rem;
        text-decoration: underline;
        text-underline-offset: 0.5rem;
    }

    /* Houseplant page */
    .houseplant-feature .flex {
        display: flex;
        justify-content: space-around;
        margin: 2rem 0 6rem 0;
    }
    .houseplant-feature .flex:nth-child(odd) {
        flex-direction: row;
    }
    
    .houseplant-feature .flex:nth-child(even) {
        flex-direction: row-reverse;
    }
    
    .houseplant-feature .flex div {
        max-width: 35%;
    }
    
    .houseplant-feature .flex img {
        max-width: 60%;
    }
    

    /* Banff page */
    

    footer div ul .icon a svg {
        width: 2rem;
        height: 2rem;
        transition: all 0.5s ease;
        margin-right: 3rem;
    }
}


@media screen and (min-width: 780px) {
    .projectcard {
        display: flex;
        text-align: left;
        gap: 2rem;
    }
}

@media screen and (min-width: 1100px) {
    header section:nth-of-type(2) {
        flex-wrap: nowrap;
    }
    .flex-intro {
        display: flex;
        gap: 2rem;
    }
    .flower-image {
        max-width: 42%;
        margin-top: 4rem;
    }
    .flower-image img {
        width: unset;
        height: unset;
        max-width: 100%;
    }
    .introduction {
        width: 57%;
        margin: 7rem 0 2rem 0;
    }
    .projectcard img{
        min-height: 18rem;
    }

    .content {
        flex-wrap: nowrap;
    }

}

@media screen and (min-width: 1500px) {
    .project-display {
        margin: 0 auto;
    }
    .projectcard {
        width: calc(100%/3 - 2rem);
    }
    .max-flex {
        margin: 0 auto;
        width: 50%;
        justify-content: space-around;
    }
}

@media screen and (min-width: 1920px) {
    .project-display {
        max-width: 1920px;
        margin: 0 auto;
    }

    .flower-image {
        max-width: 35%;
        max-height: 50rem;
    }

    .pacesetter {
        max-width: 1920px;
        margin: 0 auto;
    }

    .houseplant {
        max-width: 1920px;
        margin: 0 auto;
    }
}

.aboutproject h2 {
    margin-bottom: 0;
}
.summary {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
}
/* Pacesetter project page */
.pacesetter h3{
    margin-top: 1.5rem;
}

.projectdetails p, .projectdetails ul li {
    margin-bottom: 0.5rem;
}

.pacesetter section:nth-of-type(3) {
    width: 1200px;
    margin: 0 auto;
}

.design-sprint {
    margin: 0.5rem 0;
    display: flex;
    gap: 1rem;
}
.design-sprint img{
    width: 25rem;
}

.decorative-icon {
    display: flex;
    font-size: 12px;
    margin: 0.75rem 0;
    gap: 1rem;
}
.dec {
    color: white;
    background-color: #41730F;
    padding: 0.5rem 1rem;
    border-radius: 4rem;
}

@media screen and (min-width: 1700px) {
    header .section-container {
        max-width: 1700px !important;
        margin: 0 auto !important;
    }

    .flower-image {
        max-width: 30%;
        max-height: 40rem;
    }
}

/* Jane eyre */
.jane-eyre .projectdetails >div:first-of-type{
    width: 50%;
}
.jane-eyre .projectdetails  >div:first-of-type >div:nth-of-type(2) {
    margin-top: 2rem;
}
.jane-eyre .projectdetails .screenshot {
    width: 50%;
}