/* CSS Code by Eggramen.neocities.org*/

body {
  font-family: "Comic Sans", Comic Sans MS;
  font-size: 15px;
  background-image: url(Images/grandma2.png);
	color: #ffb030
	}
	
a {
  color: #ffb030;
  }

/*Main text section*/
.main { 
  background-image: url(Images/b2.gif);
  border: 3px solid #ffb030;
  width: 500px;
  padding:15px;
  margin: 10px 14px 11px 291px;
  }
  
/*Prevent overflow of large images*/
.main img, .sidebar-left img {
  max-width: 100%;
  height: auto;
  }
  
/*Sidebar*/
.sidebar-left {
  background-image: url(Images/pattern%20212.gif);
  border: 3px solid #ffffff;
  width: 202px;
  margin-left: 21px;
  padding:15px;
  margin-top:17px;
  min-height:7%;
  position:fixed;
  overflow:auto;
  text-align:center;
  }
  
/*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 { 
  background-image: url(Images/b2.gif);
  text-align:center;
  border-radius: 5px;
  border: 1px solid #ffffff;
  padding: 10px;
  margin:5px;
  margin-top:10px;
  margin-bottom:10px;
  }
  
.sideimage { /*optional*/
  right: -5px;
  bottom:0px;
  float: right;
  position: fixed;
    margin: 0px -39px 0px -8px 
  }
  
.sideimage img {
  max-width: auto;
  height: auto;  
  }

.sideimage:hover{
    
    background-image: url(Images/updateshover.png)
}

  
@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(50% - 75px);
      }
  }
  
@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(50% - 75px);
      }
  }
  
@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;
    }
  }