/* 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-image: url("Pics/space.jpg");
  /* background-color: #631D76; */
  color: black;
  font-family: Verdana;
}

.main { background-color:white;
  float: left;
  margin: 15px;
  padding: 5px;
  border: 5px solid green;
  font-size: 20px; 
  
}
body {
  margin-top: 70px;
  padding: 0;
}

h1, h2, h3, h4, p {
  margin: 15px;
}

.topnav {
  margin: 0;
  padding: 0px;
  overflow: hidden;
  background-color: #9E4770;
  position: fixed;
  top: 0px;
  width:100%;
}

.topnav a {
  color: #ECE8EE;
  font-size: 20px;
  display: block;
  float:left;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  border-right: 3px solid green; 
}

.topnav a:hover {
  background-color: #622D46;
}

#flex {
    display: flex;
}

main {
    order: 2;
    float:right;
    width:80%;
    height:10%;
    /* other details etc */
}

#leftSide {
    order: 1;
    width: 30%;
    /* other details etc */
}

#rightSide {
    order: 3;
    /* other details etc */
}

@media only screen and (max-width: 900px) {
  #flex {
    flex-wrap: wrap;
  }
  main {
    order: 1;
    width:70%;
    float:right;
  }
  
  image {
    width:70%;
  }
  aside {
    
  }
  #leftSidebar {
    order: 2;
    height: auto;
    width:20%;
    float:left;
  }
  #rightSidebar {
    order: 3;
    height: auto;
  }
  body {
    width:100%;
  }
}