@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap');

body {
    background-color: #fff;
    line-height: 1.8em;
    padding:0px;
    margin: 0px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;;
}
#en, #zh {
    display: none;
}

#lang {
    position: fixed;
    z-index: 20;
    top: 15px;
    right: 20px;
    font-size: 20px;
}
#lang label, a {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.w50 {
    min-width: 100%;
    display: flex;
    position: relative;
    z-index:1;
}
.bio {
    /* height: 60vh; */
    background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,255) 30vh);
    /* margin-top: -40vh; */
    padding-top: 20vh;
    padding-bottom: 15vh;
    z-index: 5;
    position: absolute;
    bottom:0px;
}
.content {
    width:80%;
    margin: 0px auto;
    text-align: center;
}
.profile {
    background-image: url('./assets/profile.webp');
    background-size: auto 95%;
    background-position: center bottom;
    background-repeat: no-repeat;
    height: 70vh;
    z-index: 1;
    position: relative;
}

/* .profile:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 50%;
    background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,255) 100%);
} */

#zh-content {
    display: none;
}

#en-content {
    display: none;
}

#zh:checked ~ #zh-content,
#en:checked ~ #en-content {
    display: flex !important;
}

@media only screen and (min-width: 768px) {
    body {
        flex-direction: row;
    }
    .w50 {
        min-width: 50%;
        width:50%;
        height: 100vh;
        align-items: center;
        justify-content: center;    
    }
    .bio {
        margin-top: 0;
        padding: 0;
        position: relative;
    }
    .content {
        text-align: left;
    }
    .profile {
        max-height: 100vh;
        background-position: right bottom;
    }
    .profile:after {
        display: none
    }
}

h1, h2, a {
    color: #0290e8;
    font-weight: 300;
}
p {
    color: #8cabbd;
}