html{
    scroll-behavior: smooth;
}

body{
    background-color: #fefae0;
    margin: 0;
    color: #283618;
    font-family: "roboto";
}


img{
    border: 15px outset #bc6c25;
    border-radius: 4vh;
}

header{
    background-color: red;
}

a:link{
    color: inherit;
}

a:visited{
    color: inherit;
}

a:hover{
    color: green;
}

#navbar {
    background-color: #dda15e;
    height: 6.5vh;
    position: fixed;
    width: 100%;
    top: -100%;
    z-index: 1;
    display: flex;
    align-items: center;
    animation: slideIn 5s ease forwards;
}

    #navbar ul{
        width: inherit;
        padding: 0;
        list-style-type: none;
        overflow: hidden;
    }

    #navbar li{
        font-size: 1vw;
        float: right;
        padding-right: 0.5rem;
    }

    #navbar a{
        padding: 0.5rem;
        text-decoration: none;
        display: block;
        text-align: center;
        color: #fefae0;
    }

    #navbar a.active{
        transition: .3s;
        background-color: #b4834c;
        border-radius: 10px;
    }

    @keyframes slideIn{
        100%{
            top:0;
        }
    }

.page-layout{
    display: grid;
    row-gap: 5vh;
    margin: 0;
}
    .page-layout .anchor{
        display: block;
        position: relative;
        top: 6vh;
        visibility: hidden;
    }

.section-title{
    font-size: 7vh;
    font-weight: 500;
    margin-left: 2rem;
    margin-bottom: -0.5rem;
}

.introduction-div{
    display: flex;
    flex-direction: row;
    height: 100vh;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;
    margin-left: 1rem;
    margin-right: 1rem;
}

    .equal-flex{
        flex: 1;
    }

.portrait-container{
    flex: 1;
    justify-content: center;
    display: flex;
}

.portrait{
    object-fit: fill;
    height: auto;
    width: 50%;
    border-width: 5vh;
    border-color: #bc6c25;
    border-radius: 8vh;
}

.intro{
    font-size: 3.6vw;
    line-height: 2.5;
    display: inline-block;
    color: #364920;
}

    .intro span{
        opacity: 0;
        animation: fadeIn ease 3s forwards;
    }
        .intro span:nth-of-type(2){
            animation-delay: 1s;
        }
        .intro span:nth-of-type(3){
            animation-delay: 2s;
        }
        .intro span:nth-of-type(4){
            animation-delay: 2.5s;
        }
        .intro span:nth-of-type(5){
            animation-delay: 3s;
        }
        @keyframes fadeIn{
            100% {
                opacity: 1;
            }
        }

    .slidingVertical span{
        animation: topToBottom 12.5s linear infinite 0s;
        animation-delay: 1s;
        opacity: 0;
        overflow: hidden;
        position: absolute;
        display: inline;
        text-indent: 0.35em;
    }
        .slidingVertical span:nth-child(2){
            animation-delay: 3.5s;
        }
        .slidingVertical span:nth-child(3){
            animation-delay: 6s;
        }
        .slidingVertical span:nth-child(4){
            animation-delay: 8.5s;
        }
        .slidingVertical span:nth-child(5){
            animation-delay: 11s;
        }
    
        @keyframes topToBottom{
            0% {opacity: 0;}
            5% {opacity: 0; transform: translateY(-8vh);}
            10% {opacity: 1; transform: translateY(0px);}
            25% {opacity: 1; transform: translateY(0px);}
            30% {opacity: 0; transform: translateY(8vh);}
            80% {opacity: 0;}
            100% {opacity: 0;}
        }

.project-entry{
        display: flex;
        flex-direction: row;
        height: 30vh;
        margin-top: 2vh;
    }

    .project-image-container{
        flex-basis: 22%;
        justify-content: center;
    }

    .project-image{
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        height: 80%;
        border-width: 3vh;
    }

    .project-text-container a{
        font-size: 3vh;
        font-weight: 500;
        color: #283618;
    }
        .project-text-container a:hover{
            color: green;
        }

    .project-description{
        margin-top: 0.5rem;
        font-size: 2.5vh;
    }

    .project-entry ul{
        padding-left: 0;
        font-size: 2.5vh;
    }
        .project-entry li{
            list-style-position: inside;
        }


.about-me{
    display: flex;
    flex-direction: row;
    height: 70vh;
    align-items: center;
    justify-content: center;
    gap: 60px;
    background-image: url("pictures/hatless_valley_crop.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

    .tint{
        background-blend-mode: multiply;
        background-color: #838174;
    }

    .empty{
        width: auto;
        flex: 1;
    }

    .about-text-container{
        flex: 2;
    }

    .about-text-container p{
        flex: 2;
        text-align: justify;
        font-size: 3vh;
        color:  #fefae0;
        text-shadow: 0px 0px 10px black;
        line-height: 1.3;
        margin: 3rem;
    }

    .slideshow-container{
        position: relative;
        flex-basis: 25%;
        width: 80%;
        border: 15px outset #bc6c25;
        border-radius: 4vh;
        height: 70%;
        z-index: 1;
        margin-right: 50px;
        overflow: hidden;
    }

    .slideshow-container .slideshow-image{
        position: absolute;    
        border: none;
        border-radius: 0;
        opacity: 0;
        transition: all 2s ease-in-out;
    }

    .slideshow-container .fit1{
        object-fit: contain;
        height: 100%;
        width: auto;
    }

    .slideshow-container .fit2{
        object-fit: contain;
        width: 100%;
        height: auto;
        top: -20%;
    }

    .slideshow-container .fit3{
        object-fit: contain;
        width: 100%;
        height: auto;
        top: -25%;
    }

    .slideshow-container .active{
        opacity: 1;
    }


.contacts{
    display: flex;
    background-color: #dda15e;
    width: 100%;
    height: 6.5vh;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.contacts a{
    font-size: 3vh;
    color: #fefae0;
}

    .contacts a:hover{
        color: #b4834c;
    }

