html {
    scroll-behavior: smooth;
}
body {
    /* Page */
    background: linear-gradient(#0c1431ff, #19385bff);
    margin: 0;
    
    /* Text */
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
    text-align: left;
    color: rgb(214 230 255 / 0.6);
}
/* Navigation */
nav {
    text-align: center;
    background-color: rgb(0 0 0 / 0.2);
    padding: 16px;
}
nav a {
    text-decoration: none;
    letter-spacing: 0.25px;
    color: rgb(214 230 255 / 0.8);
    padding: 8px;
}
nav a:hover {
    color: rgb(214 230 255);
    letter-spacing: 0.75px;
    
    transition:
        letter-spacing 0.25s;
}
nav a span {
    display: inline-block;
}
nav a:hover span {
    transform: scale(110%);

    transition:
            transform 0.25s;
}

/* Headers */
h1 {
    color: rgb(214 230 255);
    text-align: center;
    margin: 0;
}
h2 {
    color: rgb(214 230 255 / 0.4);
    text-align: center;
    font-weight: normal;
}
h3 {
    color: rgb(214 230 255 / 0.7);
    text-align: center;
}
h4 {
    margin: 8px;
}

section {
    min-height: 25vh;
    margin: 0;
    padding-top: 30px;
    padding-bottom: 30px;
}
section div {
    max-width: 60vw;
    margin: 0 auto;
}
hr {
    border: none;
    height: 1px;
    background-color: rgb(0 0 0 / 0.3);
    margin: 0;
}
a {
    text-decoration: none;
    letter-spacing: 0.25px;
    color: rgb(214 230 255 / 0.8);
}
a:hover {
    color: rgb(214 230 255);
    letter-spacing: 0.5px;

    transition:
            letter-spacing 0.25s;
}
button {
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
    color: rgb(214 230 255 / 0.6);
    border: none;
    
    background-color: rgb(0 0 0 / 0.3);
    border-radius: 12px;
    font-weight: bold;
    font-size: medium;
    padding: 8px 16px;
    cursor: pointer;
}
button:hover {
    color: rgb(214 230 255);
    letter-spacing: 0.75px;

    transition:
            letter-spacing 0.25s;
}

#projects {
    background-color: rgb(0 0 0 / 0.15);
}
#connect {
    background-color: rgb(0 0 0 / 0.15);
}

.description {
    max-width: 30vw;
    margin: 0 auto;
}
.tags {
    text-align: center;
}
.tags span {
    background-color: rgb(0 0 0 / 0.3);
    border-radius: 12px;
    font-weight: bold;
    padding: 8px 16px;
}
.tag {
    background-color: rgb(0 0 0 / 0.3);
    border-radius: 12px;
    font-weight: bold;
    padding: 8px 16px;
}
.skillShowcase {
    justify-content: left;
    text-align: left;
    max-width: 45vw;
}
.leftAlign {
    text-align: left;
}

/* Connect Section */
.connectButtons {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 64px;
    gap: 32px;
}
.connectButton {
    background-color: rgb(0 0 0 / 0.3);
    border-radius: 12px;
    padding: 8px;
    min-width: 85px;

    transition:
            background-color 0.15s;
}
.connectButton:hover {
    color: rgb(214 230 255);
    letter-spacing: 0.25px;
    background-color: rgb(0 0 0 / 0.4);
    
    transition:
        background-color 0.15s;
}

/* Project Page */
.projectShowcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    text-align: center;
}
.projectShowcasePage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-content: center;
    grid-row-gap: 16px;
}
.projectPreview {
    text-align: center;
    max-width: 30vw;
    margin: 10px;
}
.projectPreviewName {
    margin-bottom: 9px;
}
.projectBack {
    min-height: 100vh;
}
.projectBack div {
    max-width: 75vw;
}
.projectSection {
    display: flex;
    gap: 30px;
}
.projectDescription {
    flex: 1;
}
.projectSection iframe {
    flex: 1;
    width: 50%;
    aspect-ratio: 16 / 9;
}
.centerFlex {
    display: flex;
    justify-content: center;
}
video {
    width: 512px;
    height: 288px;
}

@media (max-aspect-ratio: 4/3) {
    section div {
        max-width: 90vw;
        margin: 0 auto;
    }
    .description {
        max-width: 75vw;
        margin: 0 auto;
    }
    video {
        width: 100%;
        height: auto;
        max-width: 512px;
    }
    .skillShowcase {
        grid-template-columns: 1fr;
        max-width: 100vw;
    }
    .tags {
        max-width: 100vw;
    }
    
    /* Project Page */
    .projectShowcase {
        grid-template-columns: 1fr;
    }
    .projectPreview {
        max-width: none;
    }
    .projectShowcasePage {
        grid-template-columns: 1fr;
    }
    .projectSection {
        display: grid;
    }
    .projectSection iframe {
        width: 100%;
    }
}