* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

p {
    position: relative;
    z-index: 9998;
    margin-left: 2rem;
    font-size: 1.4rem;
    padding: 1rem;
}

li {
    position: relative;
    z-index: 9998;
    list-style: none;
}

a {
    position: relative;
    z-index: 9998;
    color: black;
    text-decoration: none;
}

h1, h2 {
    position: relative;
    z-index: 9998;
    margin-left: 2rem;
    padding: 1rem;
}

.center {
    margin: auto;
    width: 60%;
    text-align: center;
}

.typewrite {
    animation: cursor 5.7s step-end;
}

@keyframes cursor {
    from {
        border-right: 0.08em solid black;
    }
    to {
        border-right: 0.08em solid white;
    }
}

.picture-left {
    position: relative;
    z-index: 9998;
    float: left;
    padding: 1rem;
    margin: 1rem;
    border-radius: 50%;
    width: 300px;
}

.picture-center {
    position: relative;
    z-index: 9998;
    padding: 1rem;
    margin: 1rem;
    border-radius: 50%;
    width: 300px;
}

.return-home {
    margin-left: 2rem;
    text-decoration: underline;
}

.line::before {
    border-left: 3rem solid #497c62;
    content: "";
    display: block;
    height: 0.2rem;
    margin-bottom: 0.5rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: right;
    padding: 1rem;
    background-color: #d3eee1;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: right;
    gap: 3rem;
    background-color: #d3eee1;
    padding: 1rem;
}

.home {
    font-size: 1.6rem;
    padding: 1rem;
    margin: 0;
    position: relative;
}

.nav-link {
    /* transition: 0.3s ease; */
    padding: 1rem 1rem 0.7rem 1rem;
    font-size: 1.6rem;
    position: relative;
}

.nav-link:hover, .home:hover {
    color: #497c62;
    transition: 0.3s ease-in-out;
}

.nav-link::before, .home::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 0.2rem;
    border-radius: 0.2rem;
    background-color: #497c62;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}
  
.nav-link:hover::before, .home:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.hamburger {
    padding: 1rem;
    display: none;
    cursor: pointer;
    background-color: #d3eee1;
}

.bar {
    display: block;
    align-content: right;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: black;
}

.code-link {
    text-decoration: underline;
}

@media(max-width:900px) {
    .hamburger {
        display: block;
        align-self: right;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        z-index: 9999;
        padding: 2rem;
        left: -100%;
        top: 5.9rem;
        gap: 0;
        flex-direction: column;
        background-color: #f6fff1;
        width: 100%;
        text-align: right;
        transition: 0.3s;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }
}

.container {
    background-color: white;
    width: 100%;
    height: 40rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

form {
    position: relative;
    z-index: 9998;
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 2rem 3rem;
    width: 90%;
    max-width: 600px;
    border-radius: 1rem;
    border-style: solid;
    border-color: #497c62;
}

form h2 {
    margin: 0;
    /* color: #497c62; */
}

form input, form textarea {
    border: 0;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    outline: none;
    background: #eafaf2;
    font-size: 1rem;
}

form button {
    padding: 1rem;
    border-radius: 0.5rem;
    background: #eafaf2;
    font-size: 1rem;
    border-color: #d3eee1;
    margin: 2rem auto 0;
    cursor: pointer;
    transition-duration: 0.3s;
}

form button:hover {
    background-color: #d3eee1;
}


.background-animation {
    top: 6.1rem;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@keyframes animate {
    from {
        opacity: 1;
        border-radius: 0;
        transform: translateY(0) rotate(0deg);
    }

    to {
        opacity: 0;
        border-radius: 50%;
        transform: translateY(-100vw) rotate(720deg);

    }
}

.background-animation div {
    position: fixed;
    display: block;
    list-style: none;
    
    background: #d3eee1a7;
    bottom: -150px;
    animation: animate linear infinite;
}

.background-animation div:nth-child(1) {
    left: 3%;
    width: 4vw;
    height: 4vw;
    animation-delay: 0s;
    animation-duration: 10s;
}

.background-animation div:nth-child(2) {
    left: 10%;
    width: 5vw;
    height: 5vw;
    animation-delay: 5s;
    animation-duration: 12s;
}

.background-animation div:nth-child(3) {
    left: 20%;
    width: 8vw;
    height: 8vw;
    animation-delay: 5s;
    animation-duration: 20s;
}

.background-animation div:nth-child(4) {
    left: 30%;
    width: 12vw;
    height: 12vw;
    animation-delay: 0s;
    animation-duration: 30s;
}

.background-animation div:nth-child(5) {
    left: 45%;
    width: 5vw;
    height: 5vw;
    animation-delay: 5s;
    animation-duration: 18s;
}

.background-animation div:nth-child(6) {
    left: 50%;
    width: 4vw;
    height: 4vw;
    animation-delay: 5s;
    animation-duration: 20s;   
}

.background-animation div:nth-child(7) {
    left: 65%;
    width: 10vw;
    height: 10vw;
    animation-delay: 0s;
    animation-duration: 25s;   
}

.background-animation div:nth-child(8) {
    left: 70%;
    width: 5vw;
    height: 5vw;
    animation-delay: 4s;
    animation-duration: 10s;
}

.background-animation div:nth-child(9) {
    left: 80%;
    width: 7vw;
    height: 7vw;
    animation-delay: 5s;
    animation-duration: 25s;   

}

.background-animation div:nth-child(10) {
    left: 90%;
    width: 8vw;
    height: 8vw;
    animation-delay: 0s;
    animation-duration: 20s;
}

