/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: #fffff1;
  color: black;
  font-family: Georgia;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Stacks elements vertically */
  }

#container {
                max-width: 700px;
                /* 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 {
      text-decoration:none;
            }


h1{text-align: center;
    color: #b4b4e3;}
    
h2 {text-align: justify;
  color: #b4b4e3;}

div{color: black;
}


a:link { color: grey; }    /* Unvisited */
a:visited { color: #b4b4e3; }                        /* Visited */
a:hover { color: red;} /* Hover */
a:active { color: yellow; }                       /* Active */

aside {
                width: 200px;
                padding: 10px;
                font-size: smaller;
                /* this makes the sidebar text slightly smaller */
            }


            /* this is the color of the main content area,
    between the sidebars! */
            main {
                flex: 1;
                padding: 24px;
                order: 2;
            }

main {
   margin-left:20px;
  margin-right:20px;
}


#navbar {
                width: 100%;
            }

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

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


header, nav {
  max-width:100%;
}


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

@media only screen and (max-width: 800px) {
  .flex {
    flex-wrap:wrap;
    padding: 20;
  }
  aside {
    display:flex;
    width:100%;
    margin-left:20px;
    margin-right:20px;
  }
  aside > section {
    margin-right:10px;
  }
  .nav {
    margin-left:0 !important;
    margin-right:50px;
  }
  .nav li {
    padding-bottom:5px;
  }
}