* {
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: rgb(0, 0, 0);
}


h1 {
    font-size: 5rem;
    text-transform: lowercase;
    font-weight: 200;
    color: #efefef;
    margin-bottom: 2em;
    margin-top: 1.5em;
}

h2 {
    font-size: 4rem;
    text-transform: lowercase;
    font-weight: 400;
    color: rgb(255, 255, 255);
}

h3 {
    font-size: 3rem;
    font-weight: 200;
    color: rgb(255, 255, 255);
    text-align: center;
    margin: 0.75em 0;
}

h4 {
    font-size: 1.33rem;
    font-weight: 300;
    color: rgb(0, 0, 0);
    text-align: center;
    margin-bottom: 0.25em;
}

h4 a {
    font-size: 1.33rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
    text-align: center;
    margin-bottom: 0.25em;
    text-decoration: underline;
}


p {
    font-size: 2rem;
    font-weight: 4000;
    color: rgb(255, 255, 255);
    margin-bottom: 1rem;
    text-align: left;
      
}


nav {
    position: fixed;
    top: 0;
    height: 65px;
    padding: 0.67rem 3rem;
    background-color: rgba(21, 21, 21, 1);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    text-align: center;
    gap: 1.44em;
    width: calc(100vw - 6rem);
}

nav a{
    font-weight: 200;
    text-decoration: none;
    color: #efefef;
    height: 100%;
    display: grid;
    align-items: left;
    font-size: 1.33rem;
}

nav a:hover {
    color: /*#c8c0b9*/rgb(213, 206, 187);
}

header {
    text-align: center;
    background: url(/web2/img/header.jpeg) rgba(39, 39, 39, 0.5);
    background-blend-mode: multiply;
    background-size: cover;
    padding-top: 25vh;
    height: 50vh;
    justify-content: center;
    align-items: center;
    padding: 6em 4em;
}


.agrid-container {
    margin-top: 90px;
    background-color: rgb(213, 206, 187);
    background-image: url(/web2/img/landscape.jpeg);
    background-blend-mode: multiply;
    background-size: cover;
    padding-top: 25vh;
    height: 50vh;
    justify-content: center;
    align-items: center;
    padding: 6em 4em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5.5em;
    justify-content: center;
}


.agrid-item {
    text-align: center;
    margin: 20px;
    padding: 40px;
}


#work {
    background: rgb(0, 0, 0);
    padding: 6em 12em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin: 0 auto;
}

#exercises {
    background: rgb(167, 159, 138);
    border-radius: 12px;
    height: 40em;
    width: 67%;
    margin: 0 auto;
    padding: 2em;
}

#projects {
    background: rgb(167, 159, 138);
    border-radius: 12px;
    height: 25em;
    width: 67%;
    margin: 0 auto;
    padding: 2em;
}

footer {
    background: rgb(0, 0, 0);
    text-align: center;
    padding: 2em;
    position: relative;
}

.pflip {
    color: #efefef;
}

.hilight {
    color: rgb(213, 206, 187);
}

footer a {
    color: rgb(213, 206, 187);
    font-weight: 600;
    text-decoration: none;
}



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

    h3 {
        font-size: 2em;
    }

    #work {
        padding: 4em 8em;
    }

    #exercises {
        padding: 2em;
        height: 30em;
    }

    #projects {
        padding: 2em;
        height: 30em;
    }

    #about {
        padding: 4em 8em;
    }

    .agrid-container {
        grid-template-columns: repeat(1, 100%);
    }

    .agrid-item img{
        width: 80%;
    }

}

.youtube-video {
    aspect-ratio: 16 / 9;
    width: 100%;
  }

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

    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3.5rem;
    }

    header {
        padding: 2em;
    }

    nav {
        padding: 0.67rem 1rem;
        width: calc(100vw - 2rem);
        gap: 1em;
        font-size: 0.75rem;
        grid-template-columns: 4fr repeat(3, min-content);
    }

    nav a {
        font-size: 1.2rem;
    }

    #about {
        padding: 4em;
    }

    .agrid-container {
        gap: 4.5em;
    }

    .agrid-item img {
        width: 100%;
    }

    #work {
        grid-template-columns: repeat(1, 100%);
        gap: 3em;
        padding: 4em;
    }

    #projects {
        padding: 1.5em;
    }

    #exercises {
        padding: 1.5em;
    }

}