* {
    font-family: "Lexend", sans-serif;
    scroll-behavior: smooth;
    --sticky-top-height: 50px;
}

body {
    background-image: url(images/background.png);
    background-size: contain;
    margin: 0px;
}

/*affects the h1 and h2 classes broadly*/
h1, h2 {
    text-align: center;
}

h1 {
    font-size: 64px;
    margin-bottom: 0%;
}

h2 {
    font-size: 24px;
    padding-top: 0%;
    margin-bottom: 2em;
}

.mainpage-header, .subpage-header, .footer {
    background-color: #227aa7;
    color: white;
}

/*affects the h1 and h2 class, but only on subpages like within porfolio posts*/
.subpage-header {
    h1 {
    font-size: 32px;
    margin: 0%;
    padding: .5em;
    padding-bottom: 0;
    }

    h2 {
    font-size: 18px;
    margin: 0%;
    padding: .5em;
    }
}

/*affects the h1 and h2 class, but only on the main page*/
.mainpage-header {
    h1 {
    margin: 0%;
    padding: .5em;
    padding-bottom: 0;
    }

    h2 {
    margin: 0%;
    padding: .7em;
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-top: 100px;

    h1 {
        font-size: 28px;
        margin: 0%;
    }

    h2 {
        font-size: 18px;
        margin: 0%;
    }
}

.menu {
    background-color: #227aa7;
    color: white;
    height: var(--sticky-top-height);
    align-content: center;
    /*border-width: 0 0 5px 0;
    border-style: solid;
    border-color: #6aadd6;*/

}

.sidebar {
    /*this code lets the sidebar sit on top of other content*/
    height: 0px;
}

.sticky-top {
    position: sticky;
    top: 0;
    /*keeps the menu on top even when a hover effect is happening beneath*/
    z-index: 100;
}

.sticky-left {
    position: sticky;
    /*applies only on pc*/
    @media screen and (min-width: 1001px) {
            /*keeps the sidebar stuck below the top bar*/
           top: var(--sticky-top-height); 
           left: 0;
        }
    
    /*keeps the menu on top even when a hover effect is happening beneath*/
    z-index: 99;
}

.menu-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    font-size: 18px;
}

.sidebar-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    /*height: 70vh;*/
    height: 30vh;
    /*this code lets the sidebar sit on top of other content*/
    @media screen and (min-width: 1001px) { 
        position: relative;
        top: -100%; 
    }
    background-color: rgba(34, 123, 167, 0.7);
    color: white;
    max-width: 5%;
    padding-left: 1em;
    padding-right: 1em;
}

/*.section-container {
} */

.section-divider {
    border-bottom: solid;
    border-width: 1px;
}

.section-header {
    text-align: center;
    font-size: 42px;
    font-style: italic;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: .2em;

}

.section-header2 {
    text-align: center;
    font-size: 32px;
    font-style: italic;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 2em;
}

.pf-section {
    display: grid;
    grid-template-columns: auto auto;
    max-width: fit-content;
    margin: auto;
    column-gap: 100px;
    row-gap: 50px;
}

.pf-item-img {
    /*the thumbnail image for portfolio pieces
    the image should be large and square, minimum 500px*/
    width: 500px;
    height: 500px;
    background-color: white;
    overflow: hidden;
    /*ensures the transition plays when you stop hovering*/
    img {
        transition-duration: 500ms;
    }
}

.pf-item-img:hover {
    /*plays a pretty transition when you hover on an option*/
    img {
        transform: scale(110%);
        opacity: 0.6;
        transition-duration: 500ms;
    }
}

.pf-item-title {
    text-align: center;
    padding: 1em;
    font-size: 32px;
    font-weight: 600;
}

.pf-item-subtitle {
    text-align: center;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
}

.page-header {
    text-align: center;
    font-size: 42px;
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0em;
}

.page-container {
    /*container for content within the page*/
    margin: auto;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-body {
    max-width: 80%;
    margin: auto;
    padding: 2em;
}

.button-container {
    padding: .75em;
}

.button {
    background-color: #6aadd6;
    border-color: #addcf8;
    color: white;
    text-align: center;
    padding: 1em;
    border-radius: 30px;
    border-width: 10px;
    border-style: solid;
    max-width: fit-content;
    margin: auto;
}

.button:hover {
    color:#addcf8;
}

.sketchfab-embed-wrapper {
    width: 100%; /* Or any width you want */
    max-width: 100%;
}

.sketchfab-embed-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Set desired height, or use aspect-ratio trick */
    display: block;
}

.resume-container {
    text-align: center;
}

.social-icons-container {
    display: flex;
    justify-content: space-between;
    min-width: 70%;
    margin-top: 10px;
    img {
        max-height: 36px;
    }
}

.social-icon {
    margin: auto;
}


img {
    /*ensures that images fit nicely in their divs*/
    max-width: 100%;
    max-height: 100%;
}

a:link, a:visited {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #a7dcf8;
    /*img {
        transform: scale(110%);
        transition-duration: 500ms;
    }*/
}

/*changes for mobile*/

@media only screen and (max-width: 1000px) {

    * {
        --sticky-top-height: 112px;
    }

    body {
        /*background-color: white;*/
        background-image: url(images/backgroundmobile.png);

        font-size: 34px;
    }

    .sidebar {
        /*this code prevents the sidebar from sitting on top of other content*/
        height: auto;
    }

    .sticky-left {
        position: sticky;
        top:auto;
        left: auto;
        bottom:0;
        /*keeps the menu on top even when a hover effect is happening beneath*/
        z-index: 99;
    }

    .sidebar-container {
        flex-direction: row;
        flex-wrap: wrap;
        height: fit-content;
        max-width: 100%;
        
        padding: 0em;
        background-color: #a7dcf8;

        .menu-option {
            margin: auto 1em auto 1em;
        }
    }

    .menu-option {
        font-size: 36px;
        padding: .7em;
    }

    .pf-section {
        grid-template-columns: auto;
    }

    .pf-item-img {
        height: 700px;
        width: 700px;
    }

    .pf-item-title {
        font-size: 64px;
        padding: .5em 1em 1em 1em;
    }

    .pf-item-subtitle {
        font-size: 36px;
    }

    h1 {
        font-size: 112px;
    }

    h2 {
        font-size: 40px;
    }

    .subpage-header {
        h1 {
        font-size: 64px;
        }

        h2 {
        font-size: 36px;
        }
    }

    .page-header {
        font-size: 84px;
    }

    .page-container {
        max-width: 96%;
    }

    .page-body {
        max-width: 100%;
        padding: 2em 4em 2em 4em;
    }

    .section-header {
        margin-top: .7em;
        margin-bottom: .2em;
        font-size: 64px;
    }

    .section-header2 {
        font-size: 48px;
        margin: 1em;
    }

    .button {
        border-radius: 50px;
        border-width: 20px;
    }

    iframe {
        min-width: 700px;
        
    }

    .social-icons-container {
        img {
            max-height: 72px;
        }
    }

    .footer {
        margin-top: 200px;
        padding: 24px 12px 24px 12px;

        h1 {
            font-size: 56px;
        }

        h2 {
            font-size: 36px;
        }

        
    }

}