* {
    font-family: 'Red Hat Text', sans-serif;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: black;
    font-family: 'Red Hat Text', sans-serif;
}

#videoBackground {
    position: fixed;
    right: 50%;
    bottom: 50%;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    overflow: hidden;
    transform: translate(50%, 50%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition:
        background-color 0.25s,
        border-bottom 0.25s,
        box-shadow 0.25s;
}

.headerBackdrop {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0px 6px 40px 0px rgba(255, 255, 255, 0.15);
    -webkit-box-shadow: 0px 6px 40px 0px rgba(255, 255, 255, 0.15);
    -moz-box-shadow: 0px 6px 40px 0px rgba(255, 255, 255, 0.15);
}

#headerImage {
    height: 7em;
    padding: 1rem;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 60%;
    padding: 1rem;
}

nav>a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1.25em;
}

nav>a,
#headerImage,
main i,
.contactElement,
.mobileNavButton,
#mobileMenu a,
#mobileMenu i {
    transition: opacity 0.2s ease-in-out;
}

nav>a:hover,
#headerImage:hover,
main i:hover,
.contactElement:hover,
.mobileNavButton:hover,
#mobileMenu a:hover,
#mobileMenu i:hover {
    opacity: 0.5;
    cursor: pointer;
}

main {
    height: 80vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

main>h1 {
    font-size: 4em;
    font-weight: 600;
    margin: 0.5em;
    text-align: center;
}

main>p {
    font-size: 1.25em;
    margin-top: 0;
}

i {
    font-size: 3em;
    margin: 0.25em;
}

.socialLinks>a {
    color: white;
}

section {
    color: white;
    padding-left: 1em;
    padding-right: 1em;
}

section>h2,
footer>h2 {
    font-weight: 600;
    font-size: 3em;
}

#projectsSection {
    background-color: black;
    padding-top: 0.5em;
}

#projectsBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project {
    width: 30%;
    margin: 0.5em;
    padding: 0.5em;
    background-color: white;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.projectImageBox {
    width: 100%;
    height: 20vh;
    display: flex;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

#RouteImageBox {
    background-image: url('/assets/cliviaroute.webp');
}

#ScribeImageBox {
    background-image: url('/assets/scribe.png');
}

#TermocheckImageBox {
    background-image: url('/assets/termocheck.webp');
}

#DomkiTolaImageBox {
    background-image: url('/assets/domkiletniskowetola.webp');
}

#DictManagerImageBox {
    background-image: url('/assets/dictmanager.png');
}

#BagietkowniaImageBox {
    background-image: url('/assets/bagietkownia.webp');
}

.projectImageBoxContent {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.3);
}

.projectImageBoxContent>h3 {
    text-shadow: 4px 4px 9px rgba(0, 0, 0, 0.6);
    font-weight: 500;
    font-size: 2em;
    margin: 0.25em;
    color: white;
}

.projectTop>p {
    padding: 0.25em;
    font-weight: 400;
}

.projectBottom {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
}

.projectBottom a {
    text-decoration: none;
}

.projectBottom button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    background-color: black;
    border: 1px solid white;
    padding-left: 0.5em;
    padding-right: 0.5em;
    align-self: flex-end;
    transition: color 0.25s, background-color 0.25s, border 0.25s;
}

.projectBottom button>i {
    font-size: 2em;
}

.projectBottom button>p {
    font-size: 1.5em;
    margin: 0;
}

.projectBottom button:hover {
    color: black;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
}

#skillsSection {
    background-color: white;
    color: black;
    padding-top: 0.5em;
}

#skillsSection>h2 {
    text-align: right;
}

#skillsBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill {
    display: flex;
    width: 30%;
    align-items: center;
    justify-content: space-between;
    border: 1px solid black;
    margin: 0.5em;
    padding: 0.5em;
}

.skill>i {
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: center;
}

.skillSeparator {
    height: 100%;
    padding-right: 1px;
    margin-left: 1em;
    margin-right: 1em;
    background-color: black;
}

.skillText {
    margin-right: 1em;
}

footer {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#contactBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
}

.contactElement {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contactElement>i {
    padding: 0.5em;
}

.contactElementText>p {
    margin: 0;
    font-size: 1.25em;
}

.contactElementText>h3 {
    margin: 0.25em 0 0 0;
    font-size: 1.25em;
}

#mobileNav {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0.25em;
    right: 0.25em;
}

.mobileNavButton {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0px 6px 40px 0px rgba(255, 255, 255, 0.15);
    -webkit-box-shadow: 0px 6px 40px 0px rgba(255, 255, 255, 0.15);
    -moz-box-shadow: 0px 6px 40px 0px rgba(255, 255, 255, 0.15);
    border-radius: 100%;
    color: white;
    padding: 0.25em;
    font-size: 90%;
    height: 8vh;
    width: 8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25em;
}

.mobileNavButton i {
    margin: 0;
    padding: 0;
}

#mobileNavUpButton {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

#mobileMenu {
    display: none;
    opacity: 0;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.25s ease-in-out;
}

#mobileMenu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 2.5em;
    margin-top: 1em;
}

#mobileMenu i {
    color: white;
    font-size: 4em;
}

#projects,
#skills,
#contact {
    scroll-margin-top: 5em;
}

@keyframes glimpse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@media screen and (max-width: 900px) {
    .project {
        width: 40%;
    }

    .skill {
        width: 40%;
    }

    main>h1 {
        font-size: 3.5em;
    }

    section>h2,
    footer>h2 {
        font-size: 2.5em;
    }
}

@media screen and (max-width: 700px) {
    nav {
        display: none;
    }

    header {
        position: static;
        z-index: inherit;
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    main {
        height: 60vh;
    }

    .project {
        width: 90%;
    }

    .skill {
        width: 90%;
    }

    .skill i {
        width: auto;
    }

    main>h1 {
        font-size: 3em;
    }

    section>h2,
    footer>h2 {
        font-size: 2em;
    }

    i {
        font-size: 2.5em;
    }

    #mobileNav {
        display: flex;
    }

    footer {
        align-items: flex-start;
        padding-bottom: 8vh;
        padding-left: 1em;
    }
    
    #contactBox{
        flex-direction: column;
        align-items: flex-start;
    }

    .contactElement{
        justify-content: space-between;
    }
}

@media screen and (max-width: 500px) {
    main>h1 {
        font-size: 2em;
    }

    i {
        font-size: 2em;
    }
}