body {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  background: #cedeff url("sky_tile.png") fixed;
	color: #4B0082;
	}
	
h1, h2, h3, h4 {
  color: #7014b4;
}
	
a {
  color: #8A2BE2;
  text-decoration: none;
  }
  
a:hover {
  color: #b82be2;
  text-decoration: underline;
}

/*the note says it's overqualified but it's not.*/
a.menu {
  color: #4B0082;
  text-decoration: none;
  display: block;
}

/*Main text section*/
.main { 
  border-radius: 10px;
  /*rgba colors. all 255s means white. last number is opacity*/
  background: rgba(255, 255, 255, 0.6);
  width: 600px;
  padding:15px;
  margin: 20px 25px 25px 400px;
  }
  
/*Prevent overflow of large images*/
.main img, .sidebar-left img {
  max-width: 100%;
  height: auto;
  }
  
/*Sidebar*/
.sidebar-left {
  border-radius: 0 0 20px 20px;
  background: rgba(255, 255, 255, 0.4);
  width: 250px;
  margin-left:75px;
  padding:15px;
  margin-top:-25px;
  position:fixed;
  overflow:auto;
  text-align:center;
  }
  
.sidebar-left:hover {
  background: rgba(255, 255, 255, 0.6);
}
  
/*Use with <ul> to create a button section in the sidebar.*/
.buttons {
  list-style-type: none;
  padding: 3px;
  }
  
/*Use with <li> for individual buttons.*/
.button { 
  text-align: center;
  border-radius: 5px;
  border: 1px solid  #9fa8e0;
  background-color: #cedeff;
  padding: 10px;
  margin:5px;
  margin-top:10px;
  margin-bottom:10px;
  }
  
.button:hover {
  background-color:  #9fa8e0;
}
  
.sideimage { /*optional*/
  right: 0px;
  bottom:-20px;
  float: right;
  position: fixed;
  max-width: 450px;
  }
  
.sideimage img {
  max-width: 100%;
  height: auto;
  }

  
@media(max-width: 1440px) {
    .sideimage {
      max-width: 0%;
      /*if this can be executed, override the previous rule, otherwise hide the side image*/
      max-width: calc(100% - 975px);
      }
  }
  
@media(max-width: 1200px) {
    .sidebar-left {
      margin-left: 25px;
      }
    
    .main {
      margin-left: 350px;
      }
  
    .sideimage {
      right: 5px;
      max-width: 0%;
      /*if this can be executed, override the previous rule, otherwise hide the side image*/
      max-width: calc(100% - 900px);
      }
  }
  
@media(max-width: 1000px) {
  
    .sidebar-left {
      margin-left: 5px;
      }
    
    .main {
      margin-left: 330px;
      }
  
    .sideimage {
      /*don't even bother at this point*/
      display: none;
      }
  }

  
/*Tentative mobile support.*/
@media(orientation:portrait) {
  .sidebar-left {
    min-height:0px;
    width: 100%;
    margin: 0 auto;
    top:0;
    left: 0;
    padding: 0;
    font-size: 0.9em;
    position: relative;
    border-radius: 5px;
    }
    
  .main {
    width: 90%;
    margin: 0 auto;
    margin-top: 1em;
    }
    
  .sideimage {
    /*don't even bother*/
    display: none;
    }
  }