body {
    margin: 0;
    box-sizing: border-box;
}

body::-webkit-scrollbar {
    display: none;
}

.top {
    position: fixed;
    top: 0;
    z-index: 3;
    width: 100vw;
    height: 10vh;
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.nav-header {
    display: inline;
}

.nav-btn {
    display: none;
}

.nav-links {
    display: inline;
    float: right;
    font-size: 1.2rem
}

.nav-links > a {
    display: inline-block;
    font-family: Alice;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 2vw;
    text-decoration: none;
    color: #8E7871; 
}

.top > #nav-check {
    display: none;
}

.logo {
    padding: 0 0 0 1vw;
    height: 100%;
}

.logo img {
    height: 100%;
}

.nav-links a[target="_blank"]::after {
    content: "" / "opens in new tab/window";
    width: 0.8rem;
    height: 0.8rem;
    display: inline-block;
    background: url("new-window-icon.png");
    background-size: contain;
    margin: 0 0.3rem 0 0.3rem;
}

.nav-links a:hover {
    cursor: pointer;
}

#appear-after {
    font-family: Alice;
}


@media only screen and (min-width: 1024px) {
    .appear-first {
        position: relative;
        height: 100vh;
        width: 100vw;
    }

    .transition-page {
        height: 100vh;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #8E7871;
    }

    canvas { 
        margin: 0 auto; 
        text-align: center;
    }

    .main-page {
        width: 100%;
        height: 100%;
        transform: scale(0, 0);
        animation: animate 0.8s ease-in forwards 2.2s;
    }

    .main-content {
        opacity: 0;
        animation: fadeInBottom 2.5s ease forwards 3s;
        width: 100%;
        height: 100%;
    }

    .layer1 {
        opacity: 0;
        animation: fadeInBottom 2.5s ease forwards 3s;
    }

    .header {
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: #8E7871;
    }

    .nav-links {
        opacity: 0;
        animation: fadeInRight 2s ease forwards 3.5s;
    }

    .logo {
        opacity: 0;
        animation: fadeInTop 2.5s ease forwards 3.2s;
    }

    .top {
        opacity: 0;
        animation: topBar 1s ease forwards 3s;
    }

    #appear-after {
        display: none;
    }
}

@media only screen and (max-width: 1023px) {
    .appear-first {
        position: relative;
        height: 60vh;
        width: 100vw;
    }
    .transition-page {
        display: none;
    }

    .header {
        display: none;
    }

    .main-page {
        width: 100%;
        height: 100%;
    }

    .main-content {
        width: 100%;
        height: 100%;
    }

    .nav-btn {
        display: inline-block;
        position: absolute;
        right: 0;
        top: 0;
    }

    .nav-btn > label {
        display: flex;
        flex-direction: column;
        width: 10vh;
        height: 10vh;
        justify-content: center;
        align-items: center;
    }

    .nav-btn > label > span {
        width: 2rem;
        height: 0.5rem;
        border-top: 0.2rem solid #8E7871;
    }

    .nav-links {
        position: absolute;
        display: block;
        text-align: center;
        width: 100%;
        background-color: white;
        height: 0;
        overflow: hidden;
        transition: all 0.3s ease-in;
        top: 10vh;
        left: 0;
        z-index: 3;
    }

    .nav-links > a {
        display: block;
        width: 100%;
        color: #8E7871;
    }

    .top > #nav-check:not(:checked) ~ .nav-links {
        height: 0;
    }

    .top > #nav-check:checked ~ .nav-links {
        height: 90vh;
        overflow-y: auto;
    }
}

.main-page {
    position: absolute;
    top: 0;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-content {
    font-family: Allura;
    font-size: 5rem;
}

.headshot {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.headshot img {
    height: 100%;
    max-width: 100%;
    object-fit: fill;
}

.layer1 {
    position: absolute;
    bottom: 0;
    aspect-ratio: 900/600;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url("front-wave.svg");
    z-index: 2;
}

@keyframes animate {
    0% {
      transform: scale(0, 0.005);
    }
    50% {
      transform: scaleY(0.005);
    }
    100% {
      transform: scale(1, 1);
    }
}

@keyframes fadeInBottom {
    from {
      opacity: 0;
      transform: translateY(5%);
    }
    to {
      opacity: 1;
      transform: translateY(0%);
    }
}

@keyframes fadeInTop {
    from {
      opacity: 0;
      transform: translateY(-15%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
}

@keyframes topBar {
    from {
      opacity: 0;
      transform: translateY(-15%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
}

@keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(8%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
}

.about {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: center;
    text-align: center;
    background-color: #f7efe9;
    padding: 10vh 20vw 0 20vw;
}

.about h1 {
    font-size: 3rem;
}

.about p {
    font-size: 1.3rem
}

.about a {
    text-decoration: none;
    color: #8E7871;
    font-weight: 500;
}

.about a:hover {
    font-weight: bolder;
}

.icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.icons img {
    width: 5rem;
    height: 5rem;
    transform: scale(0.8);
    border-radius: 50%;
    padding-left: 1vw;
    padding-right: 1vw;
    object-fit: cover;
}

.icons img:hover {
    transform: scale(1);
}

.experience {
    background-image: linear-gradient(#f7efe9, #8E7871);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10vh 10vw 5vh 10vw;
}

.project-card {
    background-color: white;
    border: #8E7871;
    border-style: double;
    border-radius: 1.5rem;
    border-width: 0.3rem;
    padding: 3vh 2vw 3vh 2vw;
    margin: 3vh 0 2vh 0;
}

.project-card:hover {
    opacity: 1;
    transform: scale(1.05,1.05);
    box-shadow: 0.2rem 0.2rem 0.2rem grey;
}

.diagram {
    background-image: url("paper.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

@media only screen and (min-width: 1024px) {
    .project-card {
        width: 70%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-basis: 100%;
    }

    .info {
        flex: 1 1 50%;
    }
    
    .diagram {
        flex: 1 1 50%;
        margin: 0 0 0 2vw;
    }
}

@media only screen and (max-width: 1023px) {
    .project-card {
        width: 95%;
        min-height: 50vh;
        display: flex;
        flex-direction: column;
    }

    .diagram {
        height: 30vh;
        margin-top: 1vh;
    }

    .tools {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.diagram img {
    position: absolute;
    max-height: 100%;
    max-width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.experience h1 {
    font-size: 3rem;
}

.experience p {
    font-size: 1.1rem;
}

.experience a {
    text-decoration: none;
    color: #8E7871;
}

.experience a:hover {
    font-weight: bolder;
}

.tools {
    display: flex;
    flex-direction: row;
    text-align: center;
}

.tools span {
    background-color: #8E7871;
    border-radius: 1rem;
    padding: 0 1vw 0 1vw;
    height: 4.5vh;
    margin: 0 0.5vw 0 0.5vw;
    color: white;
    display: flex;
    align-items: center;
}

.project {
    background-color: #8E7871;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project h1 {
    font-size: 3rem;
}

.project-item input {
    display: none;
}

@media only screen and (min-width: 1024px) {
    .flex-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        height: 70vh;
        width: 80%;
        border: #8E7871;
        border-style: double;
        border-radius: 1.5rem;
        border-width: 0.3rem;
        margin: 0 0 10vh 0;
        background-color: white;
        box-shadow: 0.2rem 0.2rem 0.2rem grey;
        flex-direction: row;
        position: relative;
    }

    .left-zone {
        height: 100%;
        width: 30%;
        -webkit-box-flex: 0;
        flex: 0 0 auto;
        display: flex;
    }

    .project-item label {
        display: block;
        opacity: 0.8;
        height: 5vh;
        font-size: 1.5rem;
        position: relative;
        border-right: 0.1rem solid #8E7871;
        display: flex;
        text-align: right;
        align-items: center;
        justify-content: right;
    }
    
    .project-item label:after {
        width: 2rem;
        height: 2rem;
        background-position: center;
        background-size: 75% 75%;
        background-repeat: no-repeat;
        display: block;
    }
    
    .label1:after {
        content: " ";
        background-image: url("zen_stock_logo.png");
    }
    
    .label2:after {
        content: " ";
        background-image: url("chiron_logo.png");
        border-radius: 50%;
    }
    
    .label3:after {
        content: " ";
        background-image: url("carla_logo.png");
    }
    
    .label4:after {
        content: " ";
        background-image: url("insta_clone_logo.png");
    }
    
    .label5:after {
        content: " ";
        background-image: url("search_logo.png");
    }
    
    .label6:after {
        content: " ";
        background-image: url("social_svm_logo.png");
    }
    
    .label7:after {
        content: " ";
        background-image: url("canine_logo.png");
    }
    
    .label8:after {
        content: " ";
        background-image: url("thread_logo.png");
    }
    
    .label9:after {
        content: " ";
        background-image: url("files_logo.png");
    }
    
    .label10:after {
        content: " ";
        background-image: url("pager_logo.png");
    }

    .project-item label:hover {
        background-image: linear-gradient(to right,#f7efe9, #8E7871);
        font-weight: bold;
    }
    
    .project-item label:hover {
        opacity: 0.75;
        cursor: pointer;
    }

    input:checked ~ label {
        background-image: linear-gradient(to right,#f7efe9, #8E7871);
        color: white;
        font-weight: bold;
        opacity: 1;
    }
    
    input:checked ~ label:hover {
        opacity: 1;
    }

    .project-list {
        display: flex;
        list-style: none;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        flex-direction: column;
        -webkit-box-flex: 1;
        flex: 1 1 auto;
        margin: auto;
        padding: 0;
        box-sizing: border-box;
    }

    .content-test {
        position: absolute;
        right: 0;
        top: 50%;
        opacity: 0;
        height: 75%;
        width: 70%;
        display: flex;
        align-items: center;
        text-align: center;
        flex-direction: column;
    }

    input:checked ~ .content-test {
        transform: translateY(-50%);
        opacity: 1;
        overflow-y: auto;
    }

    .right-zone {
        width: 70%;
        -webkit-box-flex: 1;
        flex: 1 0 auto;
    }
    
}

@media only screen and (max-width: 1023px) {
    .project-item label {
        display: none;
    }

    .project-list {
        display: flex;
        list-style: none;
        flex-direction: column;
        margin: auto;
        box-sizing: border-box;
        padding: 0;
        align-items: center;
    }

    .project-item {
        width: 85%;
    }

    .content-test {
        border: #8E7871;
        border-style: double;
        border-radius: 1.5rem;
        border-width: 0.3rem;
        padding: 3vh 2vw 3vh 2vw;
        margin: 3vh 0 2vh 0;
        background-color: white;
        display: flex;
        align-items: center;
        text-align: center;
        flex-direction: column;
    }
}

.content-test h1 {
    margin: 1vh;
    color: #8E7871;
}

.content-test h3 {
    border-bottom: 0.1rem solid black;
    padding: 0 2vw 2vh 2vw;
}

.content-test p {
    width: 70%;
    font-size: 1.2rem;
    text-align: center;
}

.content-test::-webkit-scrollbar {
    background-color: #f7efe9; 
    width: 0.5vw;
}

.content-test::-webkit-scrollbar-thumb {
    background: #8E7871;
}

.content-test a {
    text-decoration: none;
    color:#8E7871;
}

.content-test a:hover {
    font-weight: bolder;
}

.picto {
    min-height: 3.5rem;
    width: 3.5rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.content1 > span {
    background-image: url("zen_stock_logo.png");
}

.content2 > span {
    background-image: url("chiron_logo.png");
    border-radius: 50%;
}

.content3 > span {
    background-image: url("carla_logo.png");
}

.content4 > span {
    background-image: url("insta_clone_logo.png");
}

.content5 > span {
    background-image: url("search_logo.png");
}

.content6 > span {
    background-image: url("social_svm_logo.png");
}

.content7 > span {
    background-image: url("canine_logo.png");
}

.content8 > span {
    background-image: url("thread_logo.png");
}

.content9 > span {
    background-image: url("files_logo.png");
}

.content10 > span {
    background-image: url("pager_logo.png");
}

.layer2 {
    aspect-ratio: 720/144;
    background-image: url("bottom-wave.svg");
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

@media only screen and (min-width: 1024px) {
    .contact {
        aspect-ratio: 1080/400;
        background-image: url("flower-background.png");
        background-repeat: no-repeat;
        background-size: cover;
    }

    .form {
        width: 30%;
    }
}

@media only screen and (max-width: 1023px) {
    .form {
        width: 60%;
    }
}

.form {
    position: relative;
    margin: auto;
    align-items: center;
    text-align: center;
}

.contact h1 {
    font-size: 3rem;
}

.contact input {
    width: 100%;
    height: 3vh;
    font-size: 1rem;
    font-family: Alice;
}

.contact textarea {
    min-width: 100%;
    max-width: 100%;
    font-family: Alice;
    min-height: 20vh;
}

.contact input[type=submit] {
    height: 3.5vh;
    border-radius: 2rem;
    border-color: #f7efe9;
    background-color: #f7efe9;
    color: black;
}

.contact input[type=submit]:hover {
    color: white;
    background-color: #8E7871;
    border-color: #8E7871;
    cursor: pointer;
}

.contact label {
    font-size: 1.2rem;
}

.footer {
    height: 5vh;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 10vh 0 3vh 0;
}