/*
    Matthew Cherry
    12/03/2023
*/

/* PAGE STRUCTURE _________________ */
html {
    font-size: 20px;
}

body {
    font-family: "Times New Roman", serif;
    color: rgb(212, 212, 212);
    background-color: black; /*prevents white flash as page loads
                                 problem might be with images*/
    background-image: url(../images/caligraphyAlt.png);
    background-position: top right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin-right: 2.5%;
    margin: 0 auto;
    /*Wasn't able to get footer and body gradients flush against
    the left side of the page without duplicate margin rules in 
    body and main*/
}

main {
    max-width: 95%;
    margin: 0 auto;
    border-top-right-radius: 25px;
    background-image: linear-gradient(to right,rgba(0, 0, 0, 0), rgb(0, 0, 0, 1));
}
/* PAGE STRUCTURE _________________ */


/* CONTENT____________________ */
header {
    text-align: center;
}

h1 {
    text-shadow: 0px 0px 10px red;
}

h2, h3 {
    color: rgb(178, 83, 83);
    padding-top: 0.5em;
}

p {
    margin: 1em 1em;
}
/* CONTENT____________________ */


/* FOOTER __________________________*/
footer {
    border-bottom-right-radius: 25px;
    padding: 0.5em 0em;
    background-image: linear-gradient(to right, rgba(255, 0, 0, 0.3), rgb(0, 0, 0));
    margin-right: 2.5%;
}

footer * {
    padding: 0.5em;
}

footer a {
    color: rgb(212, 212, 212);
}
/* FOOTER __________________________*/


/* NAV and LINKS ________________ */
nav {
    word-spacing: 1em;
}

a {
    color: rgb(178, 83, 83);
    text-shadow: 1px 1px 5px black;
}

nav a {
    color: rgb(212, 212, 212);
    text-shadow: 0px 0px 10px red;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

a:hover {
    color: red;
    text-decoration: underline;
}

a:visited {
    color: rgb(178, 83, 83);
}
/* NAV and LINKS ________________ */

@media screen and (max-width: 40em) {
    a {
        font-size: xx-large;
        text-shadow: none;
    }

    nav a {
        display: block;
        font-size: 30px; /*above 'a' media query wasn't working with nav a font already set to 24px*/
        padding: 0.25em;
        text-shadow: none;
    }

    body {
        font-family: Arial, sans-serif;
    }
}