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

.suboption {
    display: flex;
    align-items: center;
    padding: 2% 0;
}
.suboption a {
    color: black;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 25px;
    text-decoration: none;
    padding: 0vw 1vw;
    align-items: center;
    display: flex;
    transition: transform 0.3s;
}
.suboption img {
    display: block;
    width: calc(1vw + 50px);
}

.suboption p {
    margin-left: 1vw;
}

.suboption a:hover{
    transform: scale(1.03);
}

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

.paragraph {
    font-size: 17px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    width: 50vw;
    margin-bottom: 30px;
    margin-top: -5px;
}

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

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

.aboutfull img {
    width: 35vw;
    height: 100%;
    box-shadow: 0 0 0.2em 0 rgba(0,0,0,0.45);
    border-radius: 0.2em;
}

.resume a{
    color: black;
    text-decoration: none;
    text-align: center;
    padding: 1em;
    font-size: 17px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
    transition: box-shadow 0.3s;
}
.resume a:hover{
    box-shadow: 0 0 0.4em 0 rgba(0,0,0,0.5);
    border-radius: 0.5em;
    transform: scale(1.05);
}


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

.topbar {
    background-color: white;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0;
    opacity: 90%;
    z-index: 1000;
    transform: translateY(-60px);
}

.topbar2 {
    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;
    transform: translateY(30px);

}

.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;
    transition: box-shadow 0.3s;
}
.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: 2%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2%;
    padding: 0% 2.5%;
    z-index: 1;
}

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

.gallery img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 0.5em 0 rgba(85, 85, 85, 0.45);
    border-radius: 0.2em;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

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

.gallery img:hover{
    opacity: 80%;
    transform: scale(1.05);
    box-shadow: 0 0px 1em rgba(0, 0, 0, 0.3);
    z-index: 1;
}

@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;
    }
    .topbar {
        transform: translateY(-90px);
    }
    .name {
        transform: translateY(60px);
    }
    .navbar {
        transform: translateY(60px);
    }
    .buttons {
        transform: translateY(30vw);
        color: black;
    }

    @media (max-width: 500px) {
        .options {
            margin-top: 60%;
        }
    
        .aboutfull {
            margin-top: 70%;
        }
    
        .gallery {
            margin-top: 60%;
        }
        .suboption {
            padding: 4% 0;
        }
        .buttons {
            transform: translateY(50vw);
            color: black;
        }
    }
    
}

.buttons {
    display: flex;
    justify-content: center;
    margin-top: 10%;
    color: black;
}

.buttons button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s;
    background-color: white;
    border: none;
    outline: none;
    color: black;
}

.buttons button:hover {
    box-shadow: 0 0 0.4em 0 rgba(0,0,0,0.5);
    border-radius: 0.5em;
}

.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

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

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