@import url("https://fonts.googleapis.com/css2?family=Sulphur+Point:wght@300;400;700&display=swap");

/*
 * This serves as the base styling for all the pages in the app
*/

* {
    font-family: "Sulphur Point", sans-serif;
    font-style: normal;
}

html,
body {
    min-height: 100vh;
    /* Prevents tiling of background gradients or images */
    max-width: 100vw;
    /* Gets rid of unnecessary scroll bar that appeared on some screens */
}

body {
    background-color: #c8e7aa;
    padding: 100px 0px 50px;
    /* 100px top to give space for sticky header can be adjusted as needed, 0px on side to allow header to occupy full screen 50px on bottom because I felt like it */
    margin: 0px;
    /* There's a margin between html and body? */
    font-family: 'Courier New', Courier, monospace;
}

header {
    /*
    * This allows the header to lay the elements out depending on screen size and stretches header across the top of the screen
    */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    position: fixed;
    /* Keeps header at top of screen through scrolling top sets it to top of screen */
    top: 0;
    color: #275734;
    z-index: 1000;
    background-color: #c8e7aa;

    /* Heading at top of specific page */
    &>h1 {
        font-size: 3em;
        letter-spacing: 5px;
        margin: 5px;

    }

    /* This handles the class of "back" buttons in the headers. Home button on project.html and back button on notes.html */
    .back {
        &>i {
            font-size: 2em;
            font-weight: 700;
            letter-spacing: 5px;
            margin: 3px;
            margin-left: 8px;
            color: white;
        }

        &:hover {
            opacity: 60%;
        }
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 120px;
    }
}