html, body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    height: 100%;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

h1 {
    font-family: 'DM Serif Display', serif;
    margin: 0;
    font-size: 2.8vw;
}

p {
    font-family: 'Merriweather', serif;
}

a {
    text-decoration: none;
    color: rgb(139, 139, 139);
    transition: color 300ms;
}

a:hover {
    color: black;
}

.nav {
    height: 100%;
    width: 20%;
    position: fixed;
    display: flex;
    justify-content: center;
    border-right: 2px solid black;
}

.internal {
    padding-top: 7vw;
    max-width: 85%;
}

.hey {
    font-size: 1.9vw;
    margin-bottom: -1vw;
}

.intro {
    font-size: 1vw;
    line-height: 1.5vw;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    grid-gap: 15px;
    width: 78%;
    margin-left: 21%;
    padding-block: 15px;
    padding-top: .7rem;
}

.content {
    width: 78%;
    margin-left: 21%;
    padding-block: 15px;
    padding-top: .7rem;
}

#about {
    padding: 0;
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 3.5rem;
    padding-top: 8vw;
}

#about > img {
    width: 30vw;
    box-shadow: 0px 5px 20px 5px rgb(116, 116, 116);
    margin-left: 2rem;
}

.about-text {
    max-width: 25vw;
    line-height: 1.9rem;
}

.about-text h1 {
    font-size: clamp(45px, 5vw, 5rem);
    margin: 0;
}

.about-text p {
    font-size: clamp(12px, 1.2vw, 1.1rem);
    margin: 0;
}

.grid > div {
    background: rgb(0, 0, 0);
    padding: 2px;
    display: grid;
    transition: 300ms;
}

.grid > div::before {
    content: "";
    padding-bottom: 100%;
    display: block;
  }

  .grid > div::before,
  .grid > div > img {
    grid-area: 1 / 1 / 2 / 2;
  }

  .grid > div > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .card:hover {
    box-shadow: 0px 0px 10px rgb(15, 15, 15);
    cursor: pointer;
  }

  .links {
    font-size: 1vw;
  }

  #project {
    padding-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #project h1 {
    border-bottom: 1px solid black;
    font-size: clamp(3rem, 4vw, 4rem);
  }

  .imagecontainer {
    width: 90%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
  }

  .imagecontainer img {
    box-shadow: 0px 5px 20px 5px rgb(116, 116, 116);
    width: clamp(25rem, 40%, 50rem);
  }

  button {
    background-color: white;
    border: 1px solid black;
    padding: .5rem;
    transition: 300ms;
  }

  button:hover {
    background-color: rgb(145, 145, 145);
    color: white;
    cursor: pointer;
    border: 1px solid white;
  }

  #project p {
    width: clamp(25rem, 30vw, 35rem);
  }

  .contacts {
    line-height: 2rem;
    text-align: center;
  }

  @media screen and (max-width: 1250px) {

    body {
        display: flex;
        flex-direction: column;
    }

    .grid {
        width: 96%;
        padding-top: 10rem;
        margin: 0;
        margin-left: 2%;
    }

    .content {
        width: 100%;
        padding-top: 10rem;
        margin: 0;
        margin-left: 2%;
    }
    
    .content h1 {
        text-align: center;
    }

    .nav {
        width: 100%;
        height: 9rem;
        position: fixed;
        background-color: #ffffff;
        border-bottom: 2px solid black;
    }

    .internal {
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 90%;
    }

    .intro {
        display: none;
    }

    h1 {
        font-size: 70px;
    }

    .hey {
        font-size: 35px;
        margin-bottom: -25px;
    }

    hr {
        display: none;
    }

    .links {
        font-size: .9rem;
    }
    
    #about {
        justify-content: center;
        padding-top: 11rem;
        margin-left: 0;
    }

    #about > img {
        margin: 0;
        width: 40vw;
    }

    .about-text {
        line-height: 1.2rem;
    }

    #project {
        padding-top: 10rem;
        margin-left: 0;
    }

  }

  @media screen and (max-width: 650px) {

    .nav {
        height: 25vw;
        background-color: #ffffff;
        padding-bottom: 1rem;
    }

    .internal {
        flex-direction: column;
    }

    .hi {
        border-bottom: 1px solid black;
        height: 19vw;
    }

    .hey {
        font-size: 7vw;
        margin-bottom: -5vw;
    }

    h1 {
        font-size: 10vw;
    }

    .links {
        display: flex;
        justify-content: space-around;
        width: 100%;
        line-height: normal;
        margin-top: -1vw;
    }

    p {
        font-size: clamp(5px, 4vw, 17px);
    }

    .grid {
        padding-top: 26vw;
        margin-top: 1.5rem;
    }

    .content {
        padding-top: 20vw;
        margin-top: 1.5rem;
    }

    #about {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 30vw;
    }

    #about > img {
        width: 65vw;
    }

    .about-text {
        max-width: 70%;
        padding-bottom: 5rem;
    }

    #project {
        padding-top: 25vw;
    }
  }