:root {
  /* variables */
    --body-bg-image: url('/assets/plastic_waves.png');
    --content: #89A6CF;
}

body {
    font-family: 'American Typewriter', 'Courier New', monospace;
    margin: 0;
    background-color: gainsboro;
    background-size: 512px;
    color: #121420;
    background-image: var(--body-bg-image); 
}

* {
    box-sizing: border-box;
}


/* the "container" is what wraps your entire website */
#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 */
}

/* the area below is for all links on your page
EXCEPT for the navigation */
#container a {
    color: #1b7dc3;
}

#header {
    width: 100%;
    background-color: #89A6CF;
    background: linear-gradient(0deg, #89A6CF 60%, #FFFFFF);
    /* height: 150px; */
    padding-top: 8%;
    position: relative;

    /* 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! */
    color: #121240;
    font-size: 8vh;
    font-family: 'American Typewriter', 'Courier New', monospace;
    text-align: center;
    background-size: 100%;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    
}

/* navigation section!! */
#navbar {
    height: 40px;
    background-color: #3e69B0;
    font-family: 'Courier New', monospace;
    width: 100%;

}

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

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

/* navigation links*/
#navbar li a {
    color: skyblue;
    font-weight: 800;
    text-decoration: none; /* remove underline */
}

/* navigation link when a link is hovered over */
#navbar li a:hover {
    color: lightseagreen;
    text-decoration: underline;
}

#flex {
    display: flex;
}

/* this colors BOTH sidebars
if you want to style them separately,
create styles for #leftSidebar and #rightSidebar */
aside {
    background-color: rgba(137, 166, 207, 0.75);
    width: 200px;
    padding: 0px 20px 0px 20px;
    opacity: 0.75;
    /* this makes the sidebar text slightly smaller */
}


/* this is the color of the main content area,
between the sidebars! */
main {
    background-color: rgba(245,245,245,0.75);
    flex: 1;
    padding: 0px 20px 0px 20px;
    order: 2;
}

/* 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;
}

#rightSidebar a {
    color: #121420;
}

footer {
    background-color: #3e69B0;
    /* background color for footer */
    width: 100%;
    padding: 10px;
    text-align: center;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: smaller;
    /* this centers the footer text */
}

#footer a {
    color: skyblue;
    text-decoration: none;
}

#footer a:hover {
    color: lightseagreen;
    text-decoration: underline;
}


h1,
h2,
h3 {
    color: #185f91;
    font-family: 'Courier New', monospace;

}

h1 {
    font-size: 25px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 18px;
}

strong {
    /* this styles bold text */
    color: #4089BC;
}

td {
    padding: 20px;
}

th.name {
    width: 30%;
}

th.description {
    width: 70%;
}

table {
    margin: 0 auto;
    width: 100%;
}

#teaser img {
    height: 200px;
    object-fit: contain;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* this is just a cool box, it's the darker colored one */
.box {
    /* background-color: #121420; */
    /* border: 1px solid #ED64F5; */
    padding: 10px;
}

/* CSS for extras */

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


/* 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) {
    table, thead, tbody, tr, th, td {
        display: block;   /* treat everything as block elements */
        width: 100%;      /* each cell takes full width */
    }


    #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;
    }
}
