* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Sarabun', sans-serif;
    font-size: 18px;
    line-height: 1.5;
}

header {
    position: fixed;
    top: 0;
    z-index: 999;
    background-color: white;
    color: #FFFFFF;
    padding: 1rem;
    text-align: right;
    width: 100%;
    line-height: 70%;
}

h1 {
    margin: auto;
    margin-block-start: 0.5rem;
    font-size: 45px;
    line-height: 3rem
}

h2 {
    margin: auto;
    font-size: 23px;
    font-weight: lighter;
}


/* ----- MAKE THIS INTO A NAVIGATION TAB -----*/
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 20px;
}

nav ul li {
    display: inline-block;
    margin-right: 1.2rem;
    margin-top: 0.7rem;
}

nav ul li a {
    color:  black;
    text-decoration: none;
}
/*--------------------------------*/

.nav-toggle {
    visibility:hidden;
}

nav a:hover {
    color: #c9c9c9
}

main {
    max-height: 200rem;
    max-width: 60rem;
    margin: 0 auto;
    padding: 0.5rem;
}

section {
    margin-bottom: 2rem;
}

#title {
    margin-top: 1.5rem;
}

section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    font-size: 24px;
    font-weight: bold;
}

.biographic {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.biographic img {
    margin-right: 1.5rem;
    width: 150px;
    height: 150px;
    object-fit: cover;
}
  
.biographic p {
    flex: 1;
    margin: auto;
    text-align: justify;
}

.bio-icon {
    padding: auto;
    margin-top: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.bio-icon img {
    margin: auto;
    margin-right: 0.5rem;
}

ul {
    list-style-type: disc;
    margin: auto;
    margin-left: 1.5rem;
}

.project {
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background-color: #eee;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
}

form input[type="submit"] {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
}

footer {
    background-color: #ccc;
    color: #333;
    padding: 0.5rem;
    text-align: center;
}

@media (max-width: 900px) {
    
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1;
      }
      
      nav ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
      }
      
      nav li {
        margin: 0 10px;
      }
      
      nav a {
        display: block;
        padding: 10px;
        text-decoration: none;
        color: #000;
      }

    .biographic {
        flex-direction: column;
        align-items: center;
    }
  
    .biographic img {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

  }


@media screen and (max-width: 900px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: #eee;
        padding: 2rem;
        z-index: 999;
    }
    
    header nav {
        display: none;
    }
      
    header .nav-toggle {
        visibility: visible;
        background-color: transparent;
        color: #fff;
        border: none;
        font-size: 2em;
        padding: 0.5rem;
        position: absolute;
        top: 1.2rem;
        right: 1.5rem;
        z-index: 9999;
    }
      
    header .hamburger {
        display: block;
        width: 1.25rem;
        height: 2px;
        background-color: black;
        margin: 5px auto;
        position: relative;
        transition: all .3s ease-in-out;
    }
      
    header .hamburger:before,
    header .hamburger:after {
        content: '';
        display: block;
        width: 1.25rem;
        height: 2px;
        background-color: black;
        position: absolute;
        left: 0;
        transition: all .3s ease-in-out;
    }
      
    header .hamburger:before {
        top: -7px;
    }
      
    header .hamburger:after {
        bottom: -7px;
    }
      
    header.show-nav nav {
        display: block;
        position: fixed;
        top: 4rem;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 0.5rem;
        z-index: 999;
    }
      
    header.show-nav .hamburger {
        transform: rotate(90deg);
    }
      
    header.show-nav .hamburger:before {
        transform: rotate(45deg);
        top: 0;
    }
      
    header.show-nav .hamburger:after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}