*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: 'Jost';
    font-weight: 400;
    font-size: large;
    /* border: 1px solid red; */
}

body { 
    background-color: #eaeaea;
    color: #151515;
    min-height: 100vh;
    min-width: 400px;
}

.dark-mode {
    background-color: #151515;
    color: #eaeaea;
}

canvas { 
    width: 100%; 
    height: 100%;
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 0 5%;
}

header .logo {
    height: 5rem;
    width: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.logo {
    animation: pulse 4s ease infinite;
}

@keyframes pulse {
    75% {transform: scale(1);}
    81% {transform: scale(1.05);}
    85% {transform: scale(1);}
    90% {transform: scale(1);}
    96% {transform: scale(1.05);}
    100% {transform: scale(1);}
}

header nav {
    display: flex;
    align-items: center;
}

header nav .menu {
    display: flex;
    align-items: center;
}

header nav .menu li a {
    position: relative;
    color: #151515;
    font-weight: 600;
    font-size: larger;
    margin-left: 40px;
    border-radius: 0.4rem;
    transition: color 0.4s ease;
}

.dark-mode header nav .menu li a {
    color: #eaeaea;
}

header nav .menu li a:hover {
color: #83993c;
}

header nav #toggle {
    font-size: 1.3rem;
    margin-left: 80px;
    cursor: pointer;
}

.navbutton {
    visibility: hidden;
}

.active-page {
    text-decoration-line: underline;
}

.home {
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    min-height: calc(90vh - 50px);
}

.home-content {
    flex: 1;
}

.footer {
    flex-shrink: 0; 
    text-align: right;
    padding: 10px;
    height: 50px;
    background-color: #eaeaea;
}

.dark-mode .footer {
    background-color: #151515;
}

.footer a {
    color: #151515;
    transition: color 0.4s ease;
}

.dark-mode .footer a {
    color: #eaeaea;
}

.footer a:hover {
    color: #83993c;
}

#front-page-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-content: flex-end;
    align-items: flex-end;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.hello {
    font-weight: 600;
    font-size: xx-large;
    color: #eaeaea;
    padding-top: 20px;
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.75);
}

#statement {
    transition: opacity 0.5s ease; /* Smooth opacity transition */
    z-index: 10;
    color: #eaeaea;
    font-size: x-large;
    padding-bottom: 10px;
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.75);
}

#imageWrapper {
    position: absolute;
    width: 100vw; /* Set the width of the image container */
    height: 75vh;
    overflow: hidden; /* Hide any overflow */
    z-index: -10;
    background-color: #151515;
}

#image {
    width: 100%; /* Ensure the image takes up 100% of the container's width */
    height: 100%; /* Ensure the image takes up 100% of the container's height */
    object-fit: cover; /* Scale the image to cover the entire container while maintaining aspect ratio */
    transition: opacity 0.5s ease; /* Smooth opacity transition */
    z-index: -5;
    background-size: cover;
    background-position: center;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image {
    position: relative;
    margin: 10px;
    width: 32vw; /* Set the width of the image container */
    height: 32vh; /* Set the height of the image container */
    overflow: hidden; /* Hide any overflow */
  }
  
  .image img {
    width: 100%; /* Ensure the image takes up 100% of the container's width */
    height: 100%; /* Ensure the image takes up 100% of the container's height */
    object-fit: cover; /* Scale the image to cover the entire container while maintaining aspect ratio */
  }

/* Dark overlay */
.image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    opacity: 0; /* Initially transparent */
    transition: opacity 0.3s ease; /* Smooth transition for opacity */
  }
  
  /* Show overlay on hover */
  .image:hover::before {
    opacity: 1; /* Make the overlay fully opaque on hover */
  }

  .label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 5px;
    z-index: 1; /* Ensure label appears above the image */
  }

  .gallery-end {
    text-align: center;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 50px;
    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: 90%;
    max-height: 90%;
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #eaeaea;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
  }

  #caption {
    color: #eaeaea; 
    text-align: center; 
    margin-top: 10px; 
  }

.about-me-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.contact-container {
    display: flex;
    flex-direction: column;
    padding-right: 8vw;
}

.big-bio {
    padding-bottom: 4vh;
    text-align: justify;
}

.form-contact {
    display: flex;
    flex-direction: column;
    padding-bottom: 4vh;
}

.form-top {
    display: flex;
    flex-direction: row;
    padding-bottom: 10px;
}

.form-name {
    padding-right: 10px;
}

.name {
    width: 100%;
}

.form-email {
    padding-left: 10px;
    flex-grow: 1;
}

.email {
    width: 100%;
}

.form-message {
    align-items: flex-start;
    padding-bottom: 10px;
}

.message {
    width: 100%;
}

.captcha {
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.captcha-complete {
    padding-bottom: 10px;
}

.captcha-input {
    width: 100%;
    flex-grow: 1;
}

.captcha-reloader {
    color: #151515;
    text-decoration-line: underline;
}

.dark-mode .captcha-reloader {
    color: #eaeaea;
}

.me-bw-container {
    width: 300vw;
    height: auto;
    overflow: hidden;
}

.me-bw {
    width: 100%;
    width: 100%;
    object-fit: cover;
}

.reach-button {
    width: 100%;
    transition: all 0.4s ease;
}

.reach-button:hover {
    background-color: #83993c;
}

@media (max-width:800px){
    .home {
        min-width: 390px;
    }
    header nav .menu {
        flex-direction: column;
        row-gap: 2rem;
        position: absolute;
        left: -100%;
        top: 115px;
        width: 100%;
        padding-top: 110px;
        background: #83993c;
        height: calc(100vh - 80px);
        z-index: 10;
        transition: left 0.4s ease;
    }
    header nav .menu.active{
        left: 0;
    }
    header nav .menu li a {
        margin-left: unset;
        color: #eaeaea;
        font-size: xx-large;
        width: 250px;
        height: 60px;
        line-height: 60px;
        display: block;
        text-align: center;
        border-radius: 5px;
        transition: 0.25s ease;
    }
    header nav .menu li a:hover {
        color: white;
    }
    .navbutton {
        visibility: visible;
    }
    .about-me-content {
        flex-direction: column;
    }
    .contact-container {
        padding-right: 0%;
    }
    .me-bw-container {
        width: 100%;
        height: auto;
        overflow: hidden;
    }
    .image {
        width: 32vw; /* Set the width of the image container */
        height: 20vh; /* Set the height of the image container */
    }


}