:root {
    --clr-background:#171618;
    --clr-primary100:#ffffff;
    --clr-secondary100:#ffffff;
    --clr-accent100:#7b4bff;
    --clr-alert:#e92a2a;
}
.lightmode {
    --clr-background:#ffffff;
    --clr-primary100:#ffffff;
    --clr-secondary100:#1C1C1C;
    --clr-accent100:#4200FF;
    --clr-alert:#e92a2a;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    /*outline: 1px solid red;*/          /*This outlines everything*/
}

body {
    min-height: 100vh;
    width: 100vw;
    font-family: 'Montserrat', sans-serif;
    color: var(--clr-secondary100);
    background-color: var(--clr-background);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}

/* Fonts */
h1 {
    font-size: 4rem;
}
h2 {
    font-size: 3rem;
}
h3 {
    font-size: 1.25rem;
}
p1 {
    font-size: 1.5rem;
}
p2 {
    font-size: 1.25rem;
}
p3 {
    font-size: 1.125rem;
}

@media only screen and (max-width: 600px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.75rem;
    }
    h3 {
        font-size: 1rem;
    }
    p1 {
        font-size: 1.25rem;
    }
    p2 {
        font-size: 1.15rem;
    }
    p3 {
        font-size: 1rem;
    }
}

.italic {
    font-style: italic;
}

.black {
    font-weight: 900;
}
.bold {
    font-weight: 700;
}
.semibold {
    font-weight: 600;
}
.medium {
    font-weight: 500;
}

a, href {
    text-decoration: none;
}

/* Modifiers */
.accent-color {
    color: var(--clr-accent100);
}

.white-color {
    color: var(--clr-primary100);
}

.underline {
    text-decoration: underline;
}

/* Margins */
.margin-top-100 {
    margin-top: 100px;
}
.margin-top-75 {
    margin-top: 75px;
}
.margin-top-50 {
    margin-top: 50px;
}
.margin-top-25 {
    margin-top: 25px;
}
.margin-top-15 {
    margin-top: 15px;
}

.margin-bottom-100 {
    margin-bottom: 100px;
}
.margin-bottom-75 {
    margin-bottom: 75px;
}
.margin-bottom-50 {
    margin-bottom: 50px;
}
.margin-bottom-25 {
    margin-bottom: 25px;
}
.margin-bottom-15 {
    margin-bottom: 15px;
}

/* Buttons */
.button-primary {
    border: 2px solid var(--clr-accent100);
    border-radius: 6px;
    padding: 0.6em 1.2em;
    color: var(--clr-primary100);
    background-color: var(--clr-accent100);
    transition: 200ms;
}
.button-primary:hover {
    background-color: transparent;
    color: var(--clr-accent100);
}

.button-secondary {
    border: 2px solid var(--clr-accent100);
    border-radius: 6px;
    padding: 0.6em 1.2em;
    color: var(--clr-accent100);
    background-color: transparent;
    transition: 200ms;
}
.button-secondary:hover {
    background-color: var(--clr-accent100);
    color: var(--clr-primary100);
}

/* Alert Banner */
#alertbanner {
    width: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 15px 50px;
    background-color: var(--clr-alert);
    color: var(--clr-primary100);
}

/* Nav */
#nav {
    width: inherit;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

#nav-cont {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

#nav-logo {
    height: 70px;
}

@media only screen and (max-width: 600px) {
    #nav {
        width: inherit;
        display: flex;
        flex-direction: row;
        gap: 25px;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 15px 25px;
    }
}

/* ~~ Main Container ~~ */
#main-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    gap: 75px;
}

/* Hero */
#hero-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

@media only screen and (max-width: 600px) {
    .word-break {
        word-break: break-all;
    }
}

/* Portfolio */
#portfolio-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#portfolio-row {
    display: flex;
    flex-direction: row;
    flex-flow: wrap;
    justify-content: center;
}

.portfolio-item {
    margin: 5px;
    width: 300px;
    height: 300px;/*
    object-fit: cover;*/
    display: flex;
    justify-content: center;
    align-items: center;
    transition: ease-in-out 250ms;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
@media only screen and (max-width: 600px) {
    .portfolio-item {
        width: 250px;
        height: auto;
    }
}
.portfolio-item img {
    border-radius: 6px;
    transition: 250ms;
    width: inherit;
    height: auto;
}
.portfolio-item img:hover {
    width: 350px;
    height: auto;
}
/*.portfolio-item::before {
    content: '';
    top: 100%;
    width: 100%;
    height: 5px;
    position: absolute;
    border-radius: 5px;
    transition: ease-in-out 250ms;
    z-index: -1;
}
.portfolio-item:hover::before {
    background-color: var(--clr-accent100);
    top: 102%;
}*/

.portfolio-item>* {
    width: 100%;
    height: auto;
}

/* About */
#about-cont {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-flow: wrap;
    gap: 50px;
}

#about-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 60ch;
}

#about-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about-image {
    max-width: 325px;
    height: 425px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}
@media only screen and (max-width: 600px) {
    #about-image {
        max-width: 275px;
        height: 375px;
    }
}

#about-image>* {
    width: auto;
    height: 100%;
}

/* Contact */
#contact-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer */
#footer-cont {
    width: 100%;
    padding: 25px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--clr-accent100);
}

#footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

#footer-inner>* {
    padding: 10px;
}