body {
    position: relative;
    margin: 0px;
    padding: 0px;
    background-color: rgb(252, 245, 237);
}

body::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/grain-dark.png);
    background-size: 10rem;
    content: "";
    opacity: 0.08;
    pointer-events: none;
    z-index:-5;
}

h1, h2, h3, h4, h5, h6, p, a, span {
    margin: 0px;
    padding: 0px;
    font-family: "Alegreya Sans";
    text-decoration: none;
    color: rgb(0, 0, 0);
    background-color: transparent;
}

#not-redirected {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px;
    width: 100%;
    height: calc(100vh - 70px);
}

#not-redirected a {
    color: rgb(0, 0, 255);
    text-decoration: underline;
}

ul {
    padding: 0px;
    padding-inline-start: 0px;
    margin: 0px;
    margin-inline-start: 0px;
}

header {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 50%;
    height: 50px;
    padding: 10px 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border-bottom: 1px solid rgb(237, 229, 213);
    z-index: 1000000;
}

header>a {
    position: relative;
    height: 100%;
    width: 35%;
}

#header-logo {
    position: absolute;
    width: calc(100% - 50px);
    top: 0px;
    left: 0px;
    height: calc(100% - 30px);
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    font-family: "Press Start 2P";
    color: rgb(0, 128, 0);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: clamp(0.625rem, 0.5vw + 0.3rem, 0.9rem);
    transition: all 0.4s ease;
}

#header-logo-hover {
    position: absolute;
    width: calc(100% - 50px);
    top: 0px;
    left: 0px;
    height: calc(100% - 30px);
    padding: 15px 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    font-family: "Press Start 2P";
    color: rgb(0, 128, 0);
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8);
    text-align: center;
    font-size: clamp(0.625rem, 0.5vw + 0.3rem, 0.9rem);
    transition: all 0.4s ease;
}

header>a:hover #header-logo {
    opacity: 0;
    transition: all 0.4s ease;
}

header>a:hover #header-logo-hover {
    opacity: 1;
    transition: all 0.4s ease;
}

header>nav {
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

header>nav>ul {
    padding: 0px;
    margin: 0px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    list-style-type: none;
}

header>nav>ul>li {
    width: 20%;
    margin: 1.25%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-family: "Alegreya Sans";
}

header>nav>ul>li>a {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(0, 0, 0);
    transition: all 0.25s ease;
}

header>nav>ul>li>a:hover {
    color: rgb(0, 128, 0);
    transition: all 0.25s ease;
}

#lang-select {
    position: relative;
    width: 10%;
    padding: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
}

#lang-select>img {
    height: 100%;
    margin-left: 7px;
    border-radius: 50%;
}

#lang-select>ul {
    position: absolute;
    top: 100%;
    left: 0px;
    width: 100%;
    display: none;
    list-style: none;
    cursor: pointer;
}

.lang-hover::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: calc(100% + 10px);
    background: transparent;
    cursor: pointer;
}

.lang-hover>ul {
    display: flex !important;
    flex-direction: column !important;
    background-color: rgb(255, 255, 255) !important;
    border: 1px solid rgb(194, 194, 194) !important;
    border-radius: 5px !important;
    z-index: 997 !important;
}

.lang-hover:hover >ul>li {
    width: 100% !important;
    display: flex !important;
    z-index: 998 !important;
}

.lang-hover:hover >ul>li>a {
    padding: 8px;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: rgb(0, 0, 0) !important;
    cursor: pointer !important;
    z-index: 999 !important;
    transition: all 0.4s ease !important;
}

.lang-hover>ul>li>a:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: rgb(0, 128, 0) !important;
    transition: all 0.4s ease !important;
}

.lang-hover:hover >ul>li>a>span {
    width: 50% !important;
    text-align: center !important;
}

.lang-hover:hover >ul>li>a>img {
    width: 50% !important;
    margin-left: 5px !important;
    border-radius: 50% !important;
}





main {
    width: 100%;
    min-height: calc(90vh - 120px);
    padding-top: 70px;
}

main>section {
    min-height: 30vh;
    width: 50%;
    padding: 0px 25%;
    margin-top: 50px;
    display: flex;
    align-items: center;
}

.standard-btn {
    background-color: rgb(0, 128, 0);
    color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 5px;
    scale: 1;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.standard-btn:hover {
    scale: 1.1;
    color: rgb(0, 128, 0);
    background-color: rgb(255, 255, 255);
    border: 2px solid rgb(0, 128, 0);
    transition: all 0.4s ease;
}





#home-welcome-screen {
    height: calc(100vh - 170px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#home-welcome-screen>div {
    height: 100%;
    width: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

#home-welcome-screen>div>div {
    height: calc(100% / 3);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#home-welcome-more_info_button {
    align-items: center;
}

#home-welcome-main-info {
    align-items: flex-start;
}

#home-title-1, #home-title-2, #home-subtitle-1 {
    color: rgb(0, 128, 0);
    display: inline-block;
    overflow: hidden;
    white-space: pre-wrap;
    width: max-content;
    max-width: 100%;
    word-wrap: break-word;
}

#home-title-1, #home-title-2 {
    font-family: "Press Start 2P";
    font-size: 21px;
}

#home-subtitle-1 {
    font-family: "Alegreya Sans";
    font-size: 15px;
}

#home-welcome-img-container>img {
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    background: linear-gradient(rgb(255, 255, 255), rgb(32, 64, 32));
}

#home-startbutton {
    opacity: 0;
}








#home-about_me-screen {
    height: 70vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 1)),
        url("../img/personal_img_1.jpg");
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

#home-about_me-screen>div {
    padding: 25px 0px;
    width: 50%;
    margin-left: 50%;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

#home-about_me-screen>div>h2 {
    font-family: "Press Start 2P";
    text-align: center;
    color: rgb(0, 128, 0);
    text-shadow: rgba(0, 0, 0, 0.25) 0px 2px 5px;
}

#home-about_me-screen>div>div {
    display: flex;
    justify-content: center;
    align-items: center;
}





#home-projects-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home-projects-screen>h2 {
    margin-bottom: 25px;
    color: rgb(0, 128, 0);
    text-shadow: rgba(0, 0, 0, 0.25) 0px 2px 5px;
    font-family: "Press Start 2P";
    font-size: clamp(1rem, 1vw + 0.5rem, 3rem);
    text-align: center;
}

#home-projects-screen>div {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#home-projects-screen>div>div {
    padding: 20px;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
}

#home-projects-screen>div>div>img {
    margin-bottom: 20px;
    height: 50%;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

#home-projects-screen>div>div>div {
    width: 100%;
    height: 500%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#home-projects-screen>div>div>div>h3 {
    text-align: center;
}

.project-category-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.project-category {
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.075);
    border-radius: 50px;
    font-size: clamp(0.5rem, 0.5vw + 0.25rem, 1rem);
}







#home-experience-screen {
    height: 70vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.25)),
        url("../img/ter-aa2.jpg");
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

#home-experience-screen>div {
    padding: 25px 0px;
    width: 50%;
    margin-right: 50%;
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

#home-experience-screen>div>h2 {
    font-family: "Press Start 2P";
    text-align: center;
    color: rgb(0, 128, 0);
    text-shadow: rgba(0, 0, 0, 0.25) 0px 2px 5px;
}

#home-experience-screen>div>div {
    display: flex;
    justify-content: center;
    align-items: center;
}







#home-contact-screen {
    justify-content: center;
}

#home-contact-screen>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px;
    width: calc(100% - 50px);
    background-color: rgb(255, 255, 255);
    border-radius: 10px;    
}

#home-contact-screen>div>h2 {
    font-family: "Press Start 2P";
    font-size: clamp(1rem, 1vw + 0.5rem, 3rem);
    color: rgb(0, 128, 0);
    text-align: center;
}

#home-contact-screen>div>h3 {
    color: rgb(0, 128, 0);
    text-align: center;
}

#home-contact-screen>div>div {
    height: 20%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#home-contact-screen>div>div>img {
    height: 4.5vh;
    aspect-ratio: 1;
    margin-right: 10px;
}

#home-contact-screen>div>div>a {
    height: 5vh;
    display: flex;
    align-items: center;
    color: rgb(0, 0, 255);
    text-decoration: underline;
}

#home-contact-screen>div>div>a:hover {
    text-decoration: none;
}




















footer {
    margin-top: 50px;
    height: 10vh;
    background-color: rgb(0, 48, 0);
}

footer>div {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer>div>p {
    color: rgb(255, 255, 255);
    text-align: center;
}


/* animations */

.bg-fade-in {
    background-color: rgb(0, 0, 0);
    animation: bgFadeIn 1.25s ease 0.5s forwards;
}

.header-slide-in {
    transform: translateY(-100%);
    animation: headerSlideIn 0.75s ease 1.25s forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.slide-in-from-right {
    animation: slideInFromRight 2.5s ease forwards;
}

@keyframes bgFadeIn {
    from {
        background-color: rgb(0, 0, 0);
    }
    to {
        background-color: rgb(252, 245, 237);
    }
}

@keyframes headerSlideIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        transform: translateY(+5%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0%);
    }
}