/*--SOME NOTES BELOW COPIED FROM SADGRL.ONLINE LAYOUT MAKER--*/
/* :root - these are variables that are being used in the code
these tended to confuse some people, so I only kept the images as variables */   
:root {
    --header-image: url('/img/fe4-css/shinitaixfe4-logo.png');
    --body-bg-image: url('/img/fe4-css/Jugdral.webp');
    /* colors */
    --content: #25256e;
}
/* user styles */
/* styles are what change the color and sizes of stuff on your site. */

@font-face {
    font-family: 'Times New Normal';
    src: url(/img/fe4-css/Times\ New\ Normal\ Regular.ttf);
}

body {
  font-family: 'Trebuchet MS', sans-serif; 
  background-color: #DFCA98;
  color: #2c1d04;
  background-image: var(--body-bg-image);
  background-size: 50%;
  margin: 0;
  cursor: url(https://file.garden/abDJeeaarWC7hFo2/paintcursor1.cur),auto;
}

#construction {
    display: table-footer-group;
    height: 1px;
    /*for some reason a border doesn't work anymore, idk y*/
}

.favicon {
    vertical-align: middle;
}

/*UNIVERSAL ELEMENTS*/

    a {
        cursor: url(https://file.garden/abDJeeaarWC7hFo2/paintcursorclicker.cur),pointer;
        text-decoration: none;
    }

    /*box-sizing defines how to calculate the width and height of an element: 
    should the calculation include padding and borders, or not. */
    * {
        box-sizing: border-box;
    }

    h1,
    h2,
    h3 {
        color:#660E00;
        font-family: 'Times New Normal'; 
    } 
        

    h1 {
        font-size: 25px;
    }

    strong {
        color: #660E00;
    }

    /* this is the box in the sidebar */
    .box {
        background-color: hsl(42, 53%, 74%, 0.3);
        border: 1px solid #660E00;
        padding: 10px;
    }

    .figure-div {
        text-align: center;
    }

/* CONTAINER
    the "container" is what wraps your entire website
    if you want something (like the header) to be Wider than
    the other elements, you will need to move that div outside of the container */
            
    #container {
        max-width: 900px;
        /* this is the width of your layout! */
        /* if you change the above value, scroll to the bottom
        and change the media query according to the comment! */
        margin: 0 auto;
        /* this centers the entire page */
    }

    /* use #container instead of main if you want for all 
    links on your page EXCEPT for the navigation */
            
            
    #container a:hover {
        text-decoration: underline;
    }

    aside a {
        color:black;
    }

/* #flex contains everything in the container. i think this part is for mobile adaptibility.*/
    #flex {
        display: flex;
    }    

/*HEADER*/    
    #header {
        width: 100%;
        height: 120px;
        /* this is only for a background image! */
        /* if you want to put images IN the header, 
        you can add them directly to the <div id="header"></div> element! */
        background-image: var(--header-image);
        background-position:60%;
        background-repeat: no-repeat;
    }

/* navigation section!! */
    #navbar {
        height: 44px;
        width: 100%;
        margin-bottom: 10px;
        font-family: 'Times New Normal';
        background-image: linear-gradient(180deg, #0b1e58,#163695);
        border: solid 10px;  
        border-image: url(/img/fe4-css/fe4frame.png) 8;
    }

    #navbar ul {
        display: flex;
        padding: 0;
        margin: 0;
        list-style-type: none;
        justify-content: space-evenly;
    }

    #navbar li {
        padding-top: 4px;
    }

    #navbar li a {
        color: #660E00;
        text-shadow: 
            -1px -1px 2px #e0cb9a,  
            1px -1px 2px #e0cb9a,
            -1px 1px 2px #e0cb9a,
            1px 1px 2px #e0cb9a;
        /* navbar text color */
        font-weight: bolder;
        text-decoration: none;
        /* this removes the underline */
    }

    #navbar li a:hover {
        color: #660E00;
        text-decoration: underline;
    }

/*SIDEBARS    
    aside colors BOTH sidebars, if you want to style them separately, 
    create styles for #leftSidebar and #rightSidebar */
    aside {
        background-color: #174725;
        width: 200px;
        padding: 20px;
        font-size: smaller;
        border: solid 10px;  
        border-image: url(/img/fe4-css/fe4frame.png) 8;
        background-image: url(/img/fe4-css/fe4-Chapter1-bg-compressed.png);
    }


/* MAIN CONTENT AND OBJECTS */
    main {
        background-color: #DFCA98;
        background-image: url(/img/fe4-css/fe4-parchment-tile.png);
        background-size: 20%;
        flex: 1;
        padding: 20px;
        order: 2;
        border: solid 10px;  
        border-image: url(/img/fe4-css/fe4frame.png) 8;
        display: table;
    }

    main a {
        color: #660E00;
    }

    table,th,td {
        border-collapse: collapse;
        border: 1px solid #660E00;
        padding: 5px;
    }

    figure {
        border: 2px solid #660E00;
        padding: 5px;
        margin: 0 auto;
        display: inline-block;
        background-color: hsl(42, 53%, 74%, 0.3);
    }
    
    figcaption {
        font-style: italic;
        text-align: center;
    }
    
    .term {
    border-bottom: solid #2c1d04 1px;
    }

    blockquote {
        font-style: italic;
        border: 1px solid;
        padding: 10px;
        font-size: small;
        background-color: hsl(42, 53%, 74%, 0.3);
    }

    .quote-attrib {
        font-size: small;
        display: flex;
        flex-direction: row-reverse;
    }

    div.quote-attrib div {
        width: 50%;
    }

/* what's this "order" stuff about??
    allow me to explain!
    if you're using both sidebars, the "order" value
    tells the CSS the order in which to display them.
    left sidebar is 1, content is 2, and right sidebar is 3! */

            */ #leftSidebar {
                order: 1;
            }

            #rightSidebar {
                order: 3;
            }
/*FOOTER*/
    footer {
        /* background color for footer */
        width: 100%;
        height: 40px;
        padding: 10px;
        text-align: center;
        /* this centers the footer text */
        margin-top: 10px;
        text-shadow: 
            -1px -1px 2px #e0cb9a,  
            1px -1px 2px #e0cb9a,
            -1px 1px 2px #e0cb9a,
            1px 1px 2px #e0cb9a;
    }

    footer a {
        color: #660E00;
    }

/* CSS for extras */

    #topBar {
        width: 100%;
        height: 30px;
        padding: 10px;
        font-size: smaller;
        background-color: #0b092d;
    }


/* BELOW THIS POINT IS MEDIA QUERY */

            /* so you wanna change the width of your page? 
            by default, the container width is 900px.
            in order to keep things responsive, take your new height,
            and then subtrack it by 100. use this new number as the 
            "max-width" value below
            */

            @media only screen and (max-width: 800px) {
                #flex {
                    flex-wrap: wrap;
                }

                aside {
                    width: 100%;
                }

                /* the order of the items is adjusted here for responsiveness!
                since the sidebars would be too small on a mobile device.
                feel free to play around with the order!
                */
                
                main {
                    order: 1;
                }

                #leftSidebar {
                    order: 2;
                }

                #rightSidebar {
                    order: 3;
                }

                #navbar ul {
                    flex-wrap: wrap;
                }
            }