@font-face {
    font-family: Geist Mono;
    src: url('fonts/GeistMono-UltraLight.woff2') format('woff2');
    src: url('fonts/GeistMono-UltraLight.woff') format('woff');
}
@font-face {
    font-family: geist;
    src: url('fonts/Geist-Light.woff2') format('woff2');
    src: url('fonts/Geist-Light.woff') format('woff');
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #222526;
}



/* --- HEADER --- */

.header {
    height: 100vh;
}

.headerName {
    font-family: Geist Mono, monospace;
    margin: 0;
    padding: 0;
    color: #F2F2F2;
    font-size: 7vh;
    text-align: center;
    padding: 45vh 0 0 0;
}




/* --- PROJECTS --- */

.projects {
    height: 100vh;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #222526;
}

.projectsText {
    color: #F2F2F2;
    font-size: 7vh;
    text-align: center;
    padding: 10vh 0 0 0;
    font-family: geist, sans-serif;
}

.projectsWrapper {
    display: flex;
}

.projectsWrapper img {
    border-radius: 10%;
    width: 30vh;
    height: auto;
    transition: transform 0.3s ease;
}

.projectsWrapper img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.project1 {
    margin-left: auto;
    margin-right: auto;
}

.project1Name {
    color: #F2F2F2;
    font-size: 3vh;
    text-align: center;
    font-family: geist, sans-serif;
}

.project1Description {
    color: #F2F2F2;
    font-size: 2vh;
    text-align: center;
    font-family: geist, sans-serif;
}

.project2 {
    margin-left: auto;
    margin-right: auto;
}

.project2Name {
    color: #F2F2F2;
    font-size: 3vh;
    text-align: center;
    font-family: geist, sans-serif;
}

.project2Description {
    color: #F2F2F2;
    font-size: 2vh;
    text-align: center;
    font-family: geist, sans-serif;
}

.project3 {
    margin-left: auto;
    margin-right: auto;
}

.project3Name {
    color: #F2F2F2;
    font-size: 3vh;
    text-align: center;
    font-family: geist, sans-serif;
}

.project3Description {
    color: #F2F2F2;
    font-size: 2vh;
    text-align: center;
    font-family: geist, sans-serif;
}



/* Add the popup styles */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    color: #dddddd;
    background-color: #494949;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 20px;
    width: 70vw;
    max-width: 1600px;
    height: auto;
    max-height: 1000px;
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 5%; /* <-- add "padding" here */
  }

#popupImage {
    width: 95%;
    height: auto;
    border-radius: 20px;
    position: relative;
    box-shadow: #222526 0px 0px 10px 3px;
}

#popupName {
    font-size: 4vh;
    font-weight: bold;
    margin-bottom: 10px; /* Add some space below the project name */
}

#popupDescription {
    font-size: 2vh;
    white-space: pre-wrap;
    margin-top: -50px;
}

#popupHyperlink {
    font-size: 2vh;
    margin-top: -50px;
}

.popup-text {
    color: #F2F2F2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    font-family: geist, sans-serif;
    text-shadow: #222526 0px 0px 15px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 3px;
    right: 10px;
}

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

.nav-button {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.nav-button:hover {
    color: #bebebe;
}

#image-container {
    height: auto;
    position: relative;
}

#nextImage {
    position: absolute;
    right: 5%;
    z-index: 2;
}




/* Media query for smaller screens */
@media (max-width: 800px) {

    body {
        overflow-x: hidden; /* Disable horizontal scrolling */
    }

    /* --- HEADER --- */
    .headerName {
        font-size: 5vh;
        padding: 40vh 0 0 0;
    }

    /* --- PROJECTS --- */
    .projects {
        margin-bottom: 100vh;
    }

    .projectsText {
        font-size: 5vh;
    }

    .projectsWrapper {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images horizontally */
    }

    .project1 {
        margin-left: auto;
        height: auto;
        padding-bottom: 100px;
    }
    
    .project2 {
        margin-left: auto;
        height: auto;
        padding-bottom: 100px;
    }
    
    .project3 {
        margin-left: auto;
        margin-right: 0;
        height: auto;
    }

    .popup-content {
        flex-direction: column; /* Stack image and text vertically */
        width: 80vw; /* Adjust width for smaller screens */
        height: auto; /* Adjust height for smaller screens */
    }

    #popupImage {
        width: 100%; /* Full width for smaller screens */
        height: auto; /* Maintain aspect ratio */
        margin-right: 0; /* Remove right margin */
        margin-bottom: 20px; /* Add bottom margin for spacing */
    }

    .popup-text {
        align-items: center; /* Center text for smaller screens */
        text-align: center; /* Center text alignment */
    }

    #prevImage {
        margin-top: 10%;
        left: 10px;
    }

    #nextImage {
        margin-top: 10%;
        right: 10px;
    }

    /* --- FOOTER --- */
    .about {
        font-size: 5vh;
    }

    #githubText {
        font-size: 1.5em !important;
    }

    #linkedinText {
        font-size: 1.5em !important;
    }

    #mailText {
        font-size: 1.5em !important;
    }
    
    .contact-form {
        width: 80% !important;
    }

}

/* For script disabling scrolling */
.no-scroll {
    overflow: hidden;
}






/* --- FOOTER --- */
.footer {
    height: 100vh;
    background-color: #222526;
}

.about {
    color: #F2F2F2;
    font-size: 7vh;
    text-align: center;
    padding: 10vh 0 0 0;
    font-family: geist, sans-serif;
}

.flex-container {
    display: flex;
    align-items: center;
}

.contactWrapperWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.github-flex-item {
    display: flex;
    align-items: center;
}

.github-flex-item a {
    color: #F2F2F2;
    text-decoration: none !important;
}

.github-flex-item a:hover > #githubText {
    color: #9200cc !important;
    text-shadow: #222526 0px 0px 15px;
}

#githubLogo {
    width: 3em;
    height: auto;
    margin-right: 20px;
}

#githubText {
    color: #F2F2F2;
    font-size: 2em;
    font-family: geist, sans-serif;
    margin-right: 50px;
}

.linkedin-flex-item {
    display: flex;
    align-items: center;
}

.linkedin-flex-item a {
    color: #F2F2F2;
    text-decoration: none !important;
}

.linkedin-flex-item a:hover > #linkedinText {
    color: #9200cc !important;
    text-shadow: #222526 0px 0px 15px;
}

#linkedinLogo {
    width: 3em;
    height: auto;
    margin-right: 20px;
}

#linkedinText {
    color: #F2F2F2;
    font-size: 2em;
    font-family: geist, sans-serif;
}

.contactMeText {
    color: #F2F2F2;
    font-size: 2em;
    font-family: geist, sans-serif;
    margin-right: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure it takes the full width of the container */
    max-width: 500px; /* Optional: Set a max-width for better appearance */
    margin: 0 auto; /* Center the form horizontally */
    box-sizing: border-box;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #494949;
    color: #F2F2F2;
    font-family: geist, sans-serif;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing of the textarea */
    min-height: 50px;
    max-height: 300px;
}

.status span {
    color: #a00000;
    font-family: geist, sans-serif;
}

#submitButton {
    display: flex;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #494949;
    color: #F2F2F2;
    font-family: geist, sans-serif;
}

#submitButton:hover {
    cursor: pointer; /* Add a pointer cursor for better UX */
    background-color: #5A5A5A; /* Optional: Different background color for the button */
    transition: background-color 0.3s;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
}

#captcha-response {
    display: flex;
    justify-content: center;
    color: #cc0000;
    font-family: geist, sans-serif;
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 1.2em;
}

#form-notification {
    display: flex;
    justify-content: center;
    color: #00cc00;
    font-family: geist, sans-serif;
    text-align: center;
    font-weight: bold;
    font-size: 3vh;
    margin-left: 0;
    width: 100%;
    white-space: nowrap;
}


@keyframes easeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.show-ease-in {
    animation: easeIn 0.3s ease-in;
}