html {
    height: 100%;
}
body {
    background: rgb(220,220,220);
    color: rgb(16,16,32);
    height: 100%;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.article {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 24px;
    text-indent: -24px;
}

h1, h2, h3, h4, h5, h6 {
    /* font-family: 'Noto Sans TC'; */
    font-family: 'Righteous';
    font-weight: 400;
}

h2 {
    margin-block-end: 0.2em;
}

div.nav {
    position: fixed;
    top: 0px;
    left: 0px; 
    background: rgb(6,6,18);
    background: linear-gradient(132deg, rgba(6,6,18,1) 0%, rgba(16,16,36,1) 75%, rgba(48,48,108,1) 100%);
    display: block;
    width: 100%;
    margin: 0px;
    padding: 16px;
    text-align: center;
    color: lightgray;
}

div.nav ul {
    padding: 0px;
    padding-right: 20px;
}

div.nav ul li  {
    /* display:inline-flex; */
    /* justify-content:center; */
    /* align-items:center; */
    display: block;
    text-align: right;
    width: auto;
    list-style-type: none;
    margin: 4px;
    padding: 4px;
    padding-top: 12px;
    font-family: 'Righteous';
    font-weight: 400;
    font-size: 12pt;
}

.home {
    font-size: 18pt;
    font-family: 'Righteous';
    font-weight: 400;
}

.home a {
    color: white;
    text-decoration: none;
}

.hamburger {
    display: block;
    position: absolute;
    top: 12px;
    right: 40px;
    color: white;
    font-size: 18pt;
  }

div.nav ul li a {
    color: white;
    text-decoration: none;
}

div.nav ul li a:hover {
    color: lightyellow;
    text-decoration: underline;
}

.drop-menu ul {
    margin-top: 12px;
    margin-bottom: 0px;
}

.drop-menu li {
    padding-top: 0px;
    padding-bottom: 4px;
}

.hamburger a {
  color: white;
}

/* div.nav.responsive li {
    float: none;
    display: block;
    text-align: left;
  } */

div.content {
    margin: 52px 10% 12px 10%;
    padding: 4px;
    display: block;
    width: auto;
}

.portfolio-row {
    display: flex;
    flex-direction: column;
    margin: 8px;
    padding: 4px;
    border-bottom: 1px solid black;
}

/* .portfolio-row a {
    text-align: center;
} */

.portfolio-pic {
    text-align: center;
}

.portfolio-desc h2 {
    margin-block-start: 0px;
    text-align: center;
}

.hide-mobile {
    display: none;
}

.headshot {
    width: auto;
    text-align: center;
    margin-top: 32px;
}

.intro {
    text-align: center;
}

.key {
    display: block;
    font-size: 130%;
    color: black;
}

.following {
    margin-block-start: 6px;
}

@media only screen and (max-width: 480px) {
    div.content {
        margin: 80px 12px 12px 12px;
    }
}

@media only screen and (min-width: 768px) {
    body {
        background: rgb(220,220,220);
        color: rgb(16,16,32);
        margin: 0;
        display: flex;
    }

    div.nav {
        position: fixed;
        top: 0px;
        left: 0px; 
        height: 100%;
        /* width: 30%; */
        max-width: 300px;
        display:block;
        margin: 0px;
        padding: 12px 20px 12px 12px;
        text-align: right;
        align-content: right;
        color: lightgray;
    }

    div.nav ul li {
        display: block;
        width: auto;
        height: 44px;
        list-style-type: none;
        margin: 4px;
        padding: 4px;
        font-family: 'Righteous';
        font-weight: 400;
        font-size: 18pt;
        text-align: right;
    }
    
    .home {
        font-size: 24pt;
    }

    .hamburger {
        display: none;
    }

    .drop-menu {
        display: block;
        padding-top: 24px;
    } 
    
    .drop-menu ul {
        margin-top: 16px;
    }
    
    .drop-menu li {
        height: 44px;
        padding: 4px;
    }

    div.content {
        margin: 4px 4px 4px 340px;
        padding: 4px 16px;
        display: block;
        width: 70%;
    }

    .portfolio-row {
        display: flex;
        flex-direction: row;
        margin: 8px;
        padding: 12px 4px;
        border-bottom: 1px solid black;
    }

    
    /* .portfolio-row a {
        text-align: left;
    } */
    
    .portfolio-pic {
        margin: 2px 6px;
    }

    .portfolio-pic img {
        max-width: 200px;
    }

    .portfolio-desc {
        margin: 2px 6px;
    }

    .portfolio-desc h2 {
        text-align: left;
    }
        
    .hide-mobile {
        display: block;
    }
}

@media only screen and (min-width: 1024px) {
    div.nav {
        max-width: 400px;
    }
    div.content {
        margin-left: 440px;
    }

    .portfolio-pic img {
        max-width: unset;
    }
}