html, body {
    margin: 0;
    padding: 0;
}


.options {
    padding: 0% 2%;
    margin-top: 10%;
}

.paragraph {
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
    width: 50vw;
}

.aboutmain {
    padding: 0% 1.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.aboutfull {
    margin-top: 10%;
    display: flex;
}

.aboutfull img{
    width: 40vw;
    box-shadow: 0 0 0.5em 0.1em rgba(0,0,0,0.45);
    border-radius: 0.2em;
}
.resume a{
    color: black;
    text-decoration: none;
    text-align: center;
    padding: 1em;
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
}
.resume a:hover{
    box-shadow: 0 0 0.4em 0 rgba(0,0,0,0.5);
    border-radius: 0.5em;
}


.name {
    position: relative;
    font-size: 50px;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
}

/* Default topbar styles */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    transition: transform 0.3s ease-in-out; /* Smooth sliding transition */
}

/* Slide-up effect */
.topbar.slide-up {
    transform: translateY(-100%); /* Moves the topbar out of view */
}


.topbar2 {
    margin-top: -35px;
    margin-bottom: -35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 2.5vw;
    width: 100%;
}

.line {
    position: fixed;
    width: 96%;
    height: 1px;
    background-color: rgb(128, 128, 128);
    left: 2%;
    margin-left: auto;
}

.navbar {
    margin-right: 8vh;
}

.navbar ul{
    list-style-type: none;
}

.navbar a{
    color: black;
    text-decoration: none;
    display: flex;
    text-align: center;
    padding: 1em;
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
}
.navbar a:hover{
    /*background-color: rgb(205, 201, 201);*/
    box-shadow: 0 0 0.4em 0 rgba(0,0,0,0.5);
    border-radius: 0.5em;
    /*color: white;*/
}

.navbar li{
    float: right;
    padding: 0.5em;
    margin-top: -4vh;
}
.active {
    border-bottom: 1px solid grey;
}

.gallery {
    margin-top: 10%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2%;
    padding: 0% 2.5%;
}

.gallery a{
    text-decoration: none;
    color: black;
}

.gallery img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 0.5em 0.1em rgba(0,0,0,0.45);
    border-radius: 0.2em;
    
}

.gallery p {
    position: relative;
    top: -5%;
    text-align: center;
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.gallery img:hover{
    opacity: 80%;
    box-shadow: 0 0 0.4em 0.1em rgba(0,0,0,0.4), 0 0 0.5em 0.35em rgba(0,0,0,0.8);
}


@media (max-width: 750px){
    .options {
        margin-top: 40%;
    }

    .aboutfull {
        margin-top: 40%;
    }

    .gallery {
        margin-top: 40%;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar li {
        float: none;
    }
    .topbar2 {
        margin-top: -35px;;
        margin-bottom: -60px;
    }

    @media (max-width: 500px) {
        .options {
            margin-top: 60%;
        }
    
        .aboutfull {
            margin-top: 60%;
        }
    
        .gallery {
            margin-top: 60%;
        }
        .suboption {
            padding: 4% 0;
        }
    }
    .navbarbottom ul {
        flex-direction: column;
        align-items: flex-start;
        align-items: center;
    }
    .navbarbottom a{
        /*
        margin-top: -25px;
        margin-bottom: -25px;
        */
        padding: 1em !important;
    }
    .text {
        margin-top: 200px;
        margin-bottom: -100px;
    }
}

.navbarbottom ul{
    list-style-type: none;
    overflow: hidden;
    display: flex;
    padding: 0.8vw;
    justify-content: space-between;
    flex-wrap: wrap;

}
.navbarbottom a{
    color: black;
    text-decoration: none;
    display: flex;
    text-align: center;
    padding: 3em;
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
}
.navbarbottom a:hover{
    box-shadow: 0 0 0.6em 0 rgba(0,0,0,0.5);
    border-radius: 0.5em;
}
.navbarbottom li{
    align-items: center;
}

.backtotop{
    margin: auto;
    display: block;
    text-align: center;
    padding: 1em;
    width: 40%;
}
.backtotop a{
    display: block;
    text-align: center;
    padding: 1em;
    font-size: 15px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    text-decoration: none;
    color: black;
}

.backtotop a:hover{
    box-shadow: 0 0 0.7em 0 rgba(0,0,0,0.5);
    border-radius: 0.5em;
}

.text {
    padding: 200px 0;
    font-size: 30px;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.main, .name{
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-out {
    opacity: 0 !important;
}