*{ margin: 0; padding: 0; }
html, body{ width: 100%; }
img{
    display: block;

}

body{
    font-size: 100%;
    font-family: "Urbanist", sans-serif;
    cursor: default;
}

a{
    text-decoration: none;
    color: grey;
}

.navbar{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 30px;
    height: 80px;
    position:relative;
}

.name{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.logo{
    font-size: 2.5em;
    font-weight: bold;
}
.logo_sub{
    font-size: 1.5em;
    font-weight: lighter;
}
.navigation{
    display: flex;
    align-items: center;
}
.navigation a{
    margin: 1em;
    color: inherit;
    text-decoration: none;
}
.navigation a:last-child{
    margin-right: 0;
}

.me{
    display:flex;
    flex-direction: row;
    align-items: baseline;
    background: linear-gradient(to bottom,lightgrey,white);
    height: calc(100vh - 140px);
}
.me img{
    max-height: 100%;
    max-width: 100%;
}
.me h1{
    align-self: center;
    margin: 30px;
    font-size: 1.5em;
    font-weight: lighter;
}
.projects{
    margin: 30px;
}

.projects h2{
    font-size: 2em;
    font-weight: bolder;
    margin-top: 60px;
}


.gallery{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.gallery .preview{
    position: relative;
    width: 33.333%;
    overflow: hidden;
    color:inherit;
}
.gallery .preview:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: mintcream;
    opacity: 0;
    transition: 0.4s ease-in-out;
}
.gallery .preview:hover img{
    transform: scale(1.1);
    filter: grayscale(0.6);

}
.gallery .preview:hover:after{
    opacity: 0.9;
}

.gallery .preview img{
    width: 100%;
    transition: 0.5s ease-in-out;
}

.gallery .preview div{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0;
    z-index: 1;
    font-size: 1.2em;
    font-weight: lighter;
    font-style: italic;
    color: #000000;

}

.gallery .preview:hover div{
    opacity: 1;
}

.hidden{
    display: none;
}

.selected {
    color: black;
    font-weight: bold;
}
.not-selected {
    color: darkgray;
    font-weight: light;
}


.categories{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.categories div{
    margin: 20px;
    font-size: 1em;
    cursor: pointer;
}

.about{
    display:flex;
    flex-direction: column;
    margin: 30px;
    height: 100vh;
    justify-content: space-between;
}

.about h2{
    font-size: 2em;
    font-weight: bolder;
    margin-top: 60px;
}

.life{
    display:flex;
    flex-direction: column;
    align-self: center;
    justify-content: center;
    margin: 30px;
    font-size: 1.5em;
    font-weight: lighter;
    height: 100vh;

}
.time{
    margin: 20px;
}
.time div{
    margin: 5px;
}


footer{
    border-color: gray;
    border-style: solid none none none;
    margin: 30px;
    padding-top: 10px;
}
footer a{
    margin-right: 20px;
    font-weight: lighter;
    text-decoration: none;
}


@media (max-width: 500px ) {
    .gallery .preview{
        width: 100%;
    }
    .categories{
        width: 100%;
    }
    .categories div{
        font-weight: lighter;
        font-size: 1em;
        margin-left: auto;
        margin-right: auto;
    }
    .me{
        display: block;
        height: auto;
    }
    .navbar{ margin: 0; }
    .name{ margin: 30px; }
    .logo{
        font-size: 1.5em;
        font-weight: bold;
    }
    .logo_sub{
        font-size: 1em;
        font-weight: lighter;
    }

    .navigation{
        display: block;
        position: absolute;
        top:100%;
        left:0;
        right: 0;
        background-color: white;
        padding: 15px;
        display: none;
    }
    .navigation a{
        display: block;
    }

    .hamburger{
        width: 1.5em;
        height: 1.5em;
        align-self: center;
        margin: 30px;
        cursor: pointer;
    }
    .hamburger .line{
        width: 100%;
        height: 2px;
        margin-bottom: 3px;
        background-color: #000;
    }

    #menu-toggle:checked + .navigation{ display: block; }



    .about{
        height: 100%;
    }
    .life{
        font-size: 1em;;
        height: 100%;
    }
}




@media (min-width:501px) and (max-width: 900px){
    .me{
        display: block;
        height: auto;
    }
    .gallery .preview{
        width:50%;
    }
}