html {
    padding: 40px 30px 20px 150px;
    white-space: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: rgb(30, 30, 30);
    font-family: "body";
    color: white;
    z-index: 1;
}

p {
    font-size: 20px;
    margin-bottom: 25px;
    text-wrap: wrap;
    width: 700px;
    line-height: 1.3;
}

img, a {
    -webkit-user-drag: none;
}

header {
    margin-bottom: 50px;
}

/* CLASSES */

.header {
    font-family: "header";
    font-size: 40px;
    margin-bottom: 20px;
}

.subheader {
    font-family: "body";
    font-size: 20px;
    margin-bottom: 30px;
}

.italicized {
    font-style: italic;
}

.cert-container {
    width: 200px;
    height: 300px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.cert-header {
    margin: 0 auto 10px auto;
    padding: 0 10px 0 10px;
    width: fit-content;
    height: 35px;
    line-height: 35px;
    font-size: 13.5px;
    text-align: center;
    border-radius: 15px;
    background-color: rgb(20, 20, 20);
}

.cert {
    width: 100%;
}

.scale-wrapper:hover {
    transition: all 0.15s;
    transform: scale(1.02);
}

.scale-wrapper:not(:hover) {
    transition: all 0.15s;
}

.sample-container {
    width: 320px;
    height: 350px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.sample-header {
    height: 30px;
    line-height: 30px;
    font-size: 13.5px;
    text-align: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: rgb(20, 20, 20);
}

.sample {
    width: 100%;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 8px 3px rgba(0, 0, 0, 0.3);
}

.scrolling-bg-container {
    overflow: hidden;
    margin: 0%;
    padding: 0%;
    width: 100%;
    height: 700%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
  
.scrolling-bg {
    background: url("images/bg-pattern.png") repeat;
    width: 1000vw;
    height: 1000vh;
    background-size: 100px;
    animation: bg 20s linear infinite;
    filter: invert() brightness(0.15);
}

.navbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 100%;
    background-color: rgb(15, 15, 15);
    box-shadow:
    5px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
    padding: 5px;
    justify-content: center;
}

.pages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pages > a > img {
    width: 70px;
}

.pages > a > img:hover {
    transition: all 0.15s;
    transform: scale(1.05);
}

.pages > a > img:not(:hover) {
    transition: all 0.15s;
}

.word-link {
    display: inline-block;
    color: rgb(119, 239, 255);
}

.word-link:hover {
    transition: all 0.15s;
    transform: scale(1.05);
}

.word-link:not(:hover) {
    transition: all 0.15s;
}

/* IDS */

#main-header {
    font-family: "header";
    font-size: 60px;
    margin-bottom: 20px;
    width: 100%;
}

#about {
    display: flex;
    align-items: center;
    height: 500px;
    margin-bottom: 350px;
}

#about-img {
    display: block;
    margin: auto;
    max-width: 450px;
    min-width: 300px;
    border-radius: 15px;
}

#certifications {
    scroll-margin-top: 60px;
    margin-bottom: 625px;
}

#resume {
    display: block;
    margin: 20px auto 300px auto;
    position: relative;
    width: 600px;
    box-shadow: 0 8px 3px rgba(0, 0, 0, 0.3);
    scroll-margin-top: 30px;
}

#resume-img {
    width: 100%;
    height: 100%;
}

#resume-new-page {
    width: 8%;
    position: absolute;
    bottom: 1%;
    right: 1%;
}

#resume-new-page:hover {
    transition: all 0.15s;
    transform: scale(1.1) rotate(4deg);
}

#resume-new-page:not(:hover) {
    transition: all 0.15s;
}

#hover-status {
    display: none;
    position: fixed;
    pointer-events: none;
    text-shadow:
    0 0 5px black,
    0 0 5px black,
    0 0 5px black;
    z-index: 5;
}

#info {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

#info-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: 0 0;
    width: 900px;
    height: 600px;
    background-color: rgb(30, 30, 30);
    border-radius: 15px;
    z-index: 4;
    background-image: url(images/info-bg.png);
    background-size: cover;
    scale: 0;
    transition: scale 0.5s;
}

#info-header {
    width: 100%;
    height: 20px;
    padding: 15px 0 15px 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 26px;
    line-height: 20px;
    background-color: rgb(20, 20, 20);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#info-content-container {
    display: flex;
    flex-direction: row;
    padding: 0 15px 0 15px;
    gap: 15px;
}

#info-image {
    width: 500px;
    height: 520px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
}

#info-body {
    margin: 0;
    width: 355px;
    text-wrap: wrap;
    font-size: 18px;
    line-height: 22px;
    text-align: left;
}

#close-button {
    width: 40px;
    position: absolute;
    top: 1%;
    right: 1%;
    transition: all 0.15s;
}

#close-button:hover {
    transform: scale(1.08);
}

#info-darken {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    z-index: 3;
}

#samples {
    scroll-margin-top: 40px;
}

#sample-grid {
    display: grid;
    margin: 20px auto 20px auto;
    gap: 50px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
    max-width: 1300px;
}

#cert-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    justify-content: center;
    max-width: 1800px;
}

#resume-header {
    text-align: center;
}

/* FONTS */

@font-face {
    font-family: "body";
    src: url("fonts/body.ttf");
}

@font-face {
    font-family: "header";
    src: url("fonts/header.ttf");
}

/* ANIMATIONS */

@keyframes bg {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(0, -200px);
    }
}

/* MEDIA QUERY */

@media screen and (max-width: 600px) { /* MOBILE */
    * {
        text-align: center;
    }

    html {
        padding: 20px 0 20px 0;
    }

    p {
        width: 475px;
        text-align: left;
        margin: auto;
        margin-bottom: 20px;
    }

    #main-header {
        font-size: 50px;
    }

    #description {
        width: 500px;
        margin: auto;
        margin-bottom: 10px;
        white-space: wrap;
        margin-bottom: 20px;
    }

    .navbar {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: 65px;
        transform: translateY(-100%);
        box-shadow:
        0 -5px 5px rgba(0, 0, 0, 0.3);
    }

    .pages {
        width: 90%;
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }

    .pages > a > img {
        width: 60px;
    }

    #about {
        display: block;
        height: auto;
    }

    #about-img {
        display: none;
    }

    #resume {
        width: 85%;
        min-width: 400px;
    }

    #info-container {
        top: 45%;
        width: 500px;
        height: 600px;
    }

    #info-header {
        font-size: 18px;
    }

    #info-content-container {
        flex-direction: column;
        gap: 10px;
    }

    #info-image {
        width: 470px;
        height: 300px;
        object-position: center;
    }

    #info-body {
        width: 470px;
        font-size: 16px;
        line-height: 22px;
    }

    #close-button {
        width: 30px;
    }
}