/* import statement copied from Google Fonts; bundles 3 different fonts and their respective styles together */
@import url('https://fonts.googleapis.com/css2?family=Fondamento:ital@0;1&family=Grandiflora+One&family=Grenze+Gotisch:wght@100..900&display=swap');
header {
    width: 50%;
    text-align: center;
    border-bottom: 3px solid black;
    margin: auto;
}

/* 
    Some basic styling for the header + footer; wanted them to feel clean/separate from the section
    with absolutely no styling, but not as styled as the section with full styling.
*/
header p {
    text-align: left;
}

header ul {
    text-align: left;
}

header ol {
    text-align: left;
}

footer {
    text-align: center;
    margin: 1rem auto;
}

.nav-bar ul {
    margin: auto;
    text-align: center;
    list-style-position: inside; /* keeps the bullets next to the text when centered */
}

/*
    =================================
    Begins styling for styled section
    =================================
*/

/* 
    - Establishes some base styles;
    - Uses an imported Grandiflora One font; fallback is monospace
    - Uses the background property to establish a base background color for the section; decided
        to try and make a dark mode this time
*/
.pseudo-root {
    background: rgb(4, 11, 14);
    color: white;
    font-family: "Grandiflora One", monospace;
    padding: 2%;
}

/* 
    - Inspired by Aashiga's Module 4 project, wanted to make a card effect in dark mode by having a border
        and a subtle glow effect via box-shadow.
*/
.card {
    border: 1.5px solid rgb(77, 123, 123);
    border-radius: 15px;
    box-shadow: 0 0 5px rgba(99, 250, 255, 0.5);
    margin: 1.5rem auto;
    padding: 2rem;
    width: 50%;
    background: rgb(4, 18, 22);
}

/* 
    - Styling the h2 property; used a wavy text-decoration to give the vibe of "waves" since the photo
        on the page is of a fish
    - Used an imported Grenze Gotisch font, with a fallback of serif
    - Also centered text using the 'text-align' property
*/
.h2-styled {
    font-size: 3rem;
    font-weight: 600;
    font-family: "Grenze Gotisch", serif;
    text-align: center;
    text-decoration: underline wavy rgb(118, 220, 220);
    background: rgb(4, 18, 22);
    width: 25%;
    margin: auto;
    border: 1.5px solid rgb(77, 123, 123);
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(99, 250, 255, 0.5);
}

/* 
    - Another styled header property, this time h3;
    - Used another imported font, Fondamento, with 'serif' as a fallback 
    - Added a border-bottom property to simulate an underline
    - Changed the letterspacing, making every appear slightly further apart compared to the base style
    - Also adjusting padding-bottom so the border "underline" had a bit more space between the text
        and the border
*/
.h3-styled {
    font-family: "Fondamento", serif;
    letter-spacing: 0.25em;
    padding-bottom: 5px;
    border-bottom: 2px solid rgb(118, 220, 220);
}

/* Editing the line height so the text has larger spacing between lines */
.p-styled {
    line-height: 1.5rem;
}

.figure-styled {
    display: inline-block;
    text-align: center;
    border: 2px dashed rgb(118, 220, 220);
    border-radius: 10px;
    padding: 5px;
    background: rgb(4, 11, 14);
}

/* 
    In the unstyled portion, the image left alone took up almost the entire width of the page;
        with styling the width can be adjusted to a more managable size, and the corners can even
        be rounded with the "border-radius" property
*/
.img-styled {
    width: 75%;
    border-radius: 10px;
}

/*
    ====================================
    Transitions, Transforms, Animations
    ====================================
*/

/* 
    Transitions can help add visual interest to a page; in particular, it can prevent certain changes
    from looking too jarring, such as if an element changes color on hover
*/
.transition-box {
    background: gray;
    padding: 1rem;
    margin: auto;
    width: 25%;
    transition: background-color 0.5s ease
}

.transition-box:hover {
    background: rgb(111, 170, 209)
}

/* 
    - Transforms can alter the shape, position, or rotation of a character, among many
        other properties. Here, I use scale(x, y) to double the size of the box on hover.
    - I also use a transition here to keep the movement smooth, and target "all" so that it applies
        to both the background-color and transform properties
*/
.transform-box {
    background: gray;
    padding: 1rem;
    margin: auto;
    width: 25%;
    transition: all 0.5s ease
}

.transform-box:hover {
    background: pink;
    transform: scale(1.25, 1.25);
}

/* 
    - Animation can use the 'keyframes' at-rule to define which properties change, and at what moment;
    - The property itself can also define the duration, as well as whether the animation loops or stops after
        a certain amount of time
*/
.anim-box {
    color: black;
    padding: 1rem;
    margin: auto;
    width: 25%;
    animation: moving 4s infinite;
}
@keyframes moving {
    0% {
        background: white;
        transform: translate(0px, 0px);
    }
    25% {
        background: rgb(111, 170, 209);
        transform: translate(40px, 0px);
    }
    50% {
        background: pink;
        transform: translate(0px, 0px);
    }
    75% {
        background: rgb(111, 170, 209);
        transform: translate(-40px, 0px);
    }
    100% {
        background: white;
        transform: translate(0px, 0px);
    }
}