@import url('https://fonts.googleapis.com/css2?family=Charm:wght@400;700&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=EB+Garamond&family=Italianno&display=swap');

:root {
    --gray: #90979A;
    --blue: #608192;
    --green: #5f9ea0;
    --darkgray: #3F454B;
    --beige: #E5E3DD;
    --white: #ffffff;
    --lightblue: #90979A;
    --bg: hsl(0, 0%, 90%);
    --bodyCopy: 12px;
    --bfont: 'Crimson Text', 'EB Garamond', serif;
    --tfont: 'Italianno', 'Charm', cursive;
    --height:height;
    --width:width;
}



* {
    /* border: solid 1px #000; */
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0 auto;
    display: flex;
    font-family: var(--bfont);
    position: relative;
    width: 97%;
    height: 97vh;
    /* z-index: -3;
    position: absolute; */
    position: fixed;
}

main {
    z-index: 1;
    position: absolute;
}

a {
    text-decoration: none;
}

/* loading */
#landing {
    position: absolute;
    background-color: var(--yellow);
    z-index: 5;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: white;
}
.ml12 {
    top: 44%;
    position: absolute;
    left: 50%;
    font-family: var(--tfont);
    font-size: 2rem;
    transform: translate(-50%, -50%);
}

/* background */
#white_layer {
    background-color: hsl(4, 0%, 95%);
    width: 100%;
    height: 97vh;
    z-index: -3;
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 1.5vw;
    opacity: 0.5;
    border: solid 0.1px gray;
}

/* header */

header {
    flex: 1;
}
#headerWrap {
    margin: 3rem;
    margin-right: 0;
    width: 12rem;
    z-index: 2;
    position: absolute;
}

#logo {
    width: 20rem;
    height: auto;
    margin-bottom: 0;
}

h1 {
    margin: 0;
}

#headerWrap > p {
    font-size: 1.1rem;
    margin: 0.4rem 0;
    color: var(--darkgray);
}
nav {
    margin-top: 6vh;
}
#menu {
    padding: 0;
    list-style-type: none;
}
#menu > li {
    margin: 0.5rem 0;
}
#menu > li > a {
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.green {
    color: var(--green);
    font-weight: 600;
}
.greenPin {
    width: 1vw;
    height: auto;
    min-width: 16px;
    filter: drop-shadow(0px 18px 6px rgba(0, 0, 0, 0.25));
    margin-right: 0.5rem;
}

/* Intro area */
#introBox {
    flex: 4;
    width: 24vw;
    height: auto;
    right: 0;
    padding: 0 1rem;
    background-color: #e5e3ddbd;
    bottom: 0;
    filter: drop-shadow(12px 10px 1px rgba(0, 0, 0, 0.15));
}
#intro {
    font-size: .8rem;
    line-height: 1.5;
    color: #424040;
}
#greenClipOnIndex {
    width: 2vw;
    height: auto;
    min-width: 18px;
    position: absolute;
    bottom: 97%;
    right: 43%;
    transform: rotate(6deg);
    filter: drop-shadow(1px 5px 2px rgba(0, 0, 0, 0.25));
}
#ropePNG {
    height: auto;
    width: 5vw;
    position: absolute;
    bottom: 0;
    left: 3%;
    filter: drop-shadow(1px 9px 2px rgba(0, 0, 0, 0.25));
    max-width: 200px;
    min-width: 100px;
    z-index: 2;
}
#countPNG {
    height: auto;
    width: 2vw;
    position: absolute;
    bottom: 42%;
    right: -1%;
    max-width: 201px;
    min-width: 101px;
    filter: drop-shadow(1px 9px 2px rgba(0, 0, 0, 0.25));
    z-index: 2;
}
#timerPNG {
    height: auto;
    width: 7vw;
    position: absolute;
    right: 0px;
    top: 3%;
    max-width: 200px;
    min-width: 100px;
    z-index: 2;
}
.bold {
    font-weight: 600;
    color: var(--green);
    font-size: 1.3rem;
}


/* projects */

.projects > main {
    right: 0;
    bottom: 0;
}
.projects > main > h2,
.sideBtnProjects {
    transform: rotate(-90deg);
    position: absolute;
    left: -5rem;
    bottom: .5rem;
    font-size: 2rem;
    border-bottom: 2px solid;
    font-weight: 600;
    color: var(--darkgray);
}

#show {
    overflow: scroll;
    height: 70vh;
    background-color: #e5e3ddbd;
    padding: .25rem 2rem;
    /* width: 62vw; */
    max-width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.brownBigClip {
    height: auto;
    width: 8vw;
    max-width: 98px;
    min-width: 50px;
    position: absolute;
    left: 42%;
    top: 4%;
    filter: drop-shadow(0px 7px 3px rgba(0, 0, 0, 0.25));
    z-index: 1;
}
#show > p {
    font-size: 0.7rem;
    color: var(--darkgray);
}
#sort {
    margin-bottom: 3rem;
    display: flex;
    justify-content: end;
    gap: 2rem;
}
#wa:hover, #dd:hover, #mw:hover, #od:hover {
    color: var(--blue);
}
#sort > button {
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-family: var(--bfont);
    font-weight: 600;
    border-bottom: 2px solid var(--darkgray);
    color: var(--darkgray);
}
.gray_sort {
    color: var(--darkgray);
}
.green_sort {
    color: var(--green);
}

.blue {
    color: var(--blue);
    margin-left: .25rem;
}

section > h3 {
    color: var(--darkgray);
    font-size: 1rem;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.imgBox {
    width: 32vw;
    height: auto;
}
.imgBox > img {
    width: 100%;
    height: 100%;
}
.card {
    padding: 0.5rem;
    background-color: #ffffff87;
    text-decoration: none;
    /* color: var(--darkgray); */
    /* border: 2px solid var(--darkgray); */
    color: var(--blue);
    border: 2px solid var(--blue);
    transition: all .5s ease-in-out;
}
.card:hover {
    transform: scale(1.05);

}


/* intro */
.intro > main {
    overflow: scroll;
    height: 93vh;
    background-color: #e5e3ddbd;
    padding: 0 1rem;
    width: 47vw;
    max-width: fit-content;
    right: 0;
    bottom: 0;
    font-family: var(--bfont);
    color: var(--darkgray);
    line-height: 1.5;
}
.intro > main > h2{
    color: var(--blue);
    margin-bottom: 2rem;
    padding: 0 2rem;
}
.threePC {
    right: 68px;
    top: 91px;
    position: fixed;
    width: 5.5vw;
    height: auto;
    max-width: 80px;
}
.coffeePC {
    width: 2vw;
    height: auto;
    position: fixed;
    top: 45px;
    min-width: 30px;
}
.straightR > p {
    font-size: .6rem;
    /* font-size: 0.7rem; */
    color: var(--darkgray);
    position: absolute;
    bottom: -75vh;
    right: 4px;
}
.introImg {
    width: 100%;
    height: auto;
}
.introImg > img {
    width: 100%;
    height: 100%;
}
.by {
    border-top: 1px solid var(--lightblue);
}
.content {
    width: 100%;
}
.content > div > h3 {
    font-size: 1.5rem;
}
.content > div > p,
.content > div > ul li {
    font-size: 1.2rem;
}
.by > p {
    font-size: 1.1rem;
}
.straightL > div > h4,
.straightL > div > a {
    font-size: 1.2rem;
}
.straightR,
.straightL {
    width: 100%;
    height: auto;
    max-width: fit-content;
    padding-bottom: 4rem;
}
.straightL > h3 {
    margin-top: 0;
}
.introRow {
    padding: 0 2rem;
}
.straightL > .card:hover {
    color: var(--white);
    background-color: var(--blue);
}
.straightL {
    padding: 0;
}

/* contact */

.contact > main > h2 {
    transform: rotate(-90deg);
    position: absolute;
    left: -2.5em;
    bottom: 0.2rem;
    font-size: 2rem;
    border-bottom: 2px solid;
    font-weight: 600;
    color: var(--darkgray);
}

.contact > main,
.email > main {
    background-color: #e5e3ddbd;
    padding: 2rem;
    width: 54em;
    height: auto;
    max-width: fit-content;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#mes {
    color: var(--darkgray);
    display: flex;
    gap: 2rem;
}
#mesL {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#mesL > p:nth-child(1) {
    margin: 0;
}
#mesL > p,
#mesR > p {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}
#mesR > p > a {
    padding: 0.25rem;
    line-height: 2.5;
    border-radius: 6px;
    letter-spacing: .02rem;
    border: 2px solid var(--blue);
    color: var(--blue);
    transition: all .5s ease-in-out;
    
}
#mesR > p > a:hover{
    color:white;
    background-color: var(--blue);
    transition: all .5s ease-in-out;
}
form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 14em;
}
#fn, #ln, #email{
    height: 2em;
    border: 2px solid var(--blue);
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #ffffffcc;
}
#message {
    border: 2px solid var(--blue);
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #ffffffcc;
}
input[type="submit"] {
    width: 5rem;
    border: 2px solid var(--blue);
    border-radius: 6px;
    background-color: var(--green);
    color: var(--white);
}
input[type="submit"]:hover {
    background-color: #ffffffcc;
    color: var(--green);
}
#stamp {
    position: absolute;
    width: 6vw;
    height: auto;
    top: 14px;
    left: 18px;
    transform: rotate(-7deg);
}
.bigger {
    font-size: 1.8rem;
    font-weight: 700;
}
.ml9 {
    position: relative;
    font-weight: 200;
    font-size: 4em;
  }
  
  .ml9 .text-wrapper {
    position: relative;
    display: inline-block;
    padding-top: 0.2em;
    padding-right: 0.05em;
    padding-bottom: 0.1em;
    overflow: hidden;
  }
  
  .ml9 .letter {
    transform-origin: 50% 100%;
    display: inline-block;
    line-height: 1em;
  }

.fa-linkedin,
.fa-github {
    font-size: 2rem;
    color: var(--green);
}
#fa-linkedin {
    text-align: end;
}
#socialIcons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}


/* responsive */
@media (min-width:1800px) {
    #stamp {
        width: 4vw;
    }
}

@media (max-width:1200px){
    .intro > main {
        height: 78vh;
        width: 70vw;
    }
    .contact > main {
        top: 62%;
        left: 30%;
        transform: translate(-18%, -50%);
    }
    #stamp {
        width: 8vw;
    }
    .brownBigClip {
        top: 6%;
        left: 44%;
    }
    .threePC {
        top: 283px;
    }
    .coffeePC {
        top: 220px;
    }
}

@media (max-width:950px){
    #intro {
        font-size: .7rem;
    }
    #introBox {
        width: 35vw;
    }
    #logo {
        width: 18rem;
    }
    #headerWrap > p {
        font-size: 1rem;
    }
    .card {
        font-size: .8rem;
    }
    #show {
        width: 62vw;
    }
    .email > main {
        max-width: unset;
        width: 15em;

    }
    .brownBigClip {
        top: 4%;
    }
    #sort {
        margin-bottom: 2rem;
    }
   
}
@media (max-width:800px){
    .contact > main {
        top: 49%;
        left: 20%;
        transform: translate(-10%, -24%);
    }
   
}
@media (max-width:760px) {
    .brownBigClip {
        top: -3%;
    }
    
}

@media (max-width:700px){
    .intro > main {
        height: 66vh;
        width: 75vw;
    }
    .intro > main > h2 {
        font-size: 1.5rem;
    }
    .content > div > h3 {
        font-size: 1.2rem;
    }
    .straightL > h4 {
        font-size: 1rem;
    }
    .content > div > p,
    .content > div > ul li {
        font-size: 1.1rem;
    }
    #mes {
        display: block;
        overflow: scroll;
        height: 31rem;
    }
    #stamp {
        top: -24px;
        right: -7px;
        left: unset;
        width: 13.5vw;
    }
    .straightL > a,
    .by > p {
        font-size: 1rem;
    }
    .introRow {
        gap: 1rem;
    }
    .threePC {
        top: 438px;
    }
    .coffeePC {
        top: 364px;
    }
}

@media (max-width: 650px) {
    #greenClipOnIndex {
        bottom: 97%;
    }
}

@media (max-width:550px){
    body, 
    #particles-js, 
    .particles-js-canvas-el,
    #white_layer  {
        height: 88vh;
    }
    
    #logo {
        width: 13rem;
    }
    #menu > li > a {
        font-size: .9rem;
    }
    #introBox {
        width: 52vw;
    }
    section > h3 {
        font-size: .9rem;
    }
    .grid {
        gap: .3rem;
    }
    #show {
        width: 81vw;
        height: 63vh;
        min-width: 200px;
    }
    #headerWrap {
        margin: 3rem 2rem;
    }
    #mesL > p, #mesR > p {
        font-size: .9rem;
    }
    .contact > main > h2 {
        font-size: 1.5rem;
    }
    #mesR > a {
        padding: .2rem;
    }
    .introRow {
        display: block;
    }
    .introImg {
        width: 64vw;
    }
    .content {
        width: 100%;
    }
    .straightR, .straightL {
        padding-bottom: unset;
    }
    .by {
        border-top: unset;
        border-bottom: 1px solid var(--lightblue);
        margin-bottom: 1.3rem;
        font-size: .9rem;
        font-weight: 600;
        width: 64vw;
    }
    .straightR > p {
        position: unset;
    }
    #mes {
        height: 18rem;
    }
    .contact > main {
        transform: translate(-10%, -14%);
        width: 78vw;
    }
    #stamp {
        width: 18vw;
    }
    .intro > main {
        width: 90vw;
        height: 64vh;
    }
    .brownBigClip {
        top: -2%;
    }
    .threePC {
        display: none;
    }
    .coffeePC {
        top: 284px;
    }
}
@media (max-width:370px) {
    .contact > main {
        width: 16rem;
    }
    form {
        width: 11em;
    }
}

@media (min-width:1200px) {
    #headerWrap > p {
        font-size: 1.2rem;
    }
    #menu > li > a {
        font-size: 1.4rem;
    }
    #intro {
        font-size: 1.1rem;
    }
    section > h3,
    .content > div > p, 
    .content > div > ul li {
        font-size: 1.3rem;
    }
    #sort > button,
    .card,
    .by > p {
        font-size: 1.2rem;
    }
    .brownBigClip {
        left: 45%;
        top: 5%;
    }


}