/* 
Notes!!!!! <3 :D yippee!!!!

USE THIS LATER
https://stackoverflow.com/questions/44446671/my-position-sticky-element-isnt-sticky-when-using-flexbox
^ display sticky and display block in one div with flex

*/



:root {
    --midnight: #211f20;
    --midgrey: #2a2a2a;
    --lightgrey: #373737;
    --skyblue: #0088cc;
    --white: #ffffff;
    --purple: #be59f1;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    /* font-weight: <weight>; */
    font-style: normal;

    box-sizing: border-box;
}

h3 {
    margin-top: 0;
    font-size: 24px;
}

p {
    line-height: 1.5;
}

button {
    border: 0;
}

body {
    background-color: var(--lightgrey);
    color: var(--white)
}

/*HEADER ELEMENTS*/
header {
    background-color: var(--midnight);

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    height: 100px;
    width: 90%;

    padding-left: 5%;
    padding-right: 5%;

    top: 0;
    position: fixed;

    z-index: 1000;
}

#resumebutton {
    /*Colors and nice frills*/
    background-color: var(--purple);
    border-radius: 10px;

    /*Sizing*/
    width: 200px;
    height: 65px;

    /*Aligned Items*/
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

#resumebutton:hover {
    mix-blend-mode: difference;
}

#headerbuttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 25%;
    gap: 10px;

}

.headerlink:hover {
    filter: brightness(90%);
}

header a {
    text-decoration: none;
    color: var(--white);
}

#modalswitch {
    display: none;
}


/*MASTER DIV + STICKY*/
#masterdiv {
    display: flex;
    justify-content: space-between;
    margin-top: 135px;
    margin-bottom: 35px;
    margin-left: 5%;
    margin-right: 5%;
}

nav {
    position: -webkit-sticky;
    /* for Safari */
    position: sticky;
    top: 135px;
    align-self: flex-start;
}

/*NAV ELEMENTS*/

nav {
    background-color: var(--midnight);
    border-radius: 10px;

    height: 460px;
    width: 25%;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

}

nav a {
    background-color: var(--white);
    color: var(--midnight);
    border-radius: 10px;
    text-decoration: none;

    width: 80%;
    height: 15%;

    font-size: 20px;
    font-weight: 400;


    display: flex;
    justify-content: center;
    align-items: center;

    transition-duration: .5s;
}

nav a:hover {
    background-color: var(--purple);
    color: var(--white);

    border: 2px solid white;

    box-shadow: inset 0px 0px 5px #000;

    font-size: 22px;
    font-weight: 500;

    transition-duration: .3s;
}

#main-content {
    width: 70%;
}

/*ITEM BOXES!!*/

.boxwrap {
    /*just a placeholder value in case i use this class later*/
    margin: 0;
}

.top {
    background-color: var(--midgrey);
    border-radius: 10px;

    padding: 35px;
    height: fit-content;
}

.thumbnail {
    margin-right: 35px;
    margin-bottom: 35px;

    border: 2px solid var(--white);
    border-radius: 10px;

    float: left;
}

.bottom {
    border: 2px solid var(--white);
    background-color: var(--midnight);
    border-radius: 10px;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;

    padding-bottom: 15px;
    padding-top: 15px;
    width: 100%;

    height: 115px;

    position: relative;
    margin-bottom: 12.5%;
}

.bottom a {
    background-color: var(--purple);
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;

    width: 42.5%;
    height: 56.5%;

    transition-duration: .5s;
}

.bottom a:hover {
    background-color: var(--purple);
    color: var(--white);

    border: 2px solid white;

    box-shadow: inset 0px 0px 5px #000;

    font-size: 18px;
    font-weight: 500;

    transition-duration: .3s;
}

/* CSS for glide stuff */

.glidecontainer {
    height: 100vh;
}

/*Items contiained by glide.css*/

#UIUX {
    min-height: 100vh;
    height: fit-content;
    scroll-margin-top: 135px;
}

#graphic {
    min-height: 100vh;
    height: fit-content;
    scroll-margin-top: 135px;
}

#frontend {
    min-height: 100vh;
    height: fit-content;
    scroll-margin-top: 135px;
}

.slideboxwrap {
    min-height: 80%;
}

.slidetop {
    background-color: var(--midgrey);
    border-radius: 10px;

    padding: 35px;

    height: min-content;
    min-height: 325px;
}

.slidebottom {
    background-color: var(--midnight);

    border: 2px solid var(--white);
    background-color: var(--midnight);
    border-radius: 10px;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    height: 125px;
}

.slidebottom a {
    background-color: var(--purple);
    color: var(--white);
    border-radius: 10px;
    text-decoration: none;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;

    width: 42.5%;
    height: 56.5%;

    transition-duration: .5s;
}

.slidebottom a:hover {
    background-color: var(--purple);
    color: var(--white);

    border: 2px solid white;

    box-shadow: inset 0px 0px 5px #000;

    font-size: 18px;
    font-weight: 500;

    transition-duration: .3s;
}

.glide__arrows {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;

    border: 2px white;

    margin-top: 20px;
}

.glide__arrows button {
    background-color: var(--lightgrey);
}

/*MODALS*/
#modal {
    z-index: 999;
    position: fixed;
    top: 50px;
    width: 100vw;
    height: 100vh;
    background-color: var(--midgrey);

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.modalanchor {
    background-color: var(--white);
    color: var(--midnight);
    border-radius: 10px;
    font-size: 26px;
    text-decoration: none;

    width: 60%;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#modalbuttons {
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/*MEDIA QUERIES*/

@media (max-width: 1026px) {

    /*Intended for shrunk windows on desktop*/
    nav {
        display: none;
    }

    #main-content {
        width: 100%;
    }

    #headerbuttons {
        width: 40%;
    }

}

@media (max-width: 800px) {

    /*Intended for mobile and tablets*/
    a {
        font-size: 12px;
    }

    .thumbnail {
        float: none;
        align-self: center;
        width: 100%;
    }

    #headerbuttons {
        display: none;
    }

    #modalswitch {
        display: block;
    }

    #resumebutton {
        width: 60%;
        height: 70px;
        font-size: 24px;
    }
}