body  {
    background-color: #cfcfd0;
    background-image:url(backgroundgradient.jpg);
    background-repeat: repeat-x;
    font-family: 'Open Sans', sans-serif;
   
}

div#wrapper {
    background-color: #fff;
    margin: 40px auto;
    width: 80%;
    max-width: 1100px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px; /* future proofing */
    -moz-box-shadow:    3px 3px 5px 3px #302f59;
    -webkit-box-shadow: 3px 3px 5px 3px #302f59;
    box-shadow:         3px 3px 5px 3px #302f59;
    min-width: 540px;
    
    
    }

#wrap p {
    margin: 0 90px 0 70px;
    line-height: 120%;
   }

   
.group:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0;}
.group {display: inline-block; clear: both;}
/* start commented backslash hack\*/* html .group { height: 1% } .group { display: block;} /*close commented backslash hack */

nav {
	margin-left: 10%;
    background: white; padding: 0em; font-size: 130%;}
nav a {text-decoration: none; padding-left: 1rem; padding-right: 1rem; border-right: 1px solid black;}
nav a:last-child {border-right: none;}
nav a:hover {text-decoration: underline;}
main {display: block; padding: 1rem; font-size: 1.6rem;}
h1,h2 {margin: 5%; color: #312c7a;}

ul {margin-left: 50px;
padding-bottom: 20px;}

a {
    text-decoration: none;
    color: #000000;
    font-weight: bolder;
}

a:hover {
    text-decoration: underline;
}

#buttons {
    margin-top:-30px;
    margin-left: 100px; }

#right-but {height: 15%; width: 15%;}
#left-but {height: 15%; width: 15%;}



footer  {
    width: 600px;
    margin: 10px 20%;
    font-size: x-small;
}


div#carousel1 {
    width:500px;
    float: right;
    height:400px;
    overflow:scroll;
    margin: -50px auto;
    padding-bottom: 100px;
}



@media screen and (min-width: 800px) {
    div#carousel1 {
    width:550px;
    
    }

ul {margin-left: 0px;}

img.cloudcarousel {
	border: none;
    }
    
h1 {
    color: #312c7a;
    margin-top: 300px;
}
h1.mainpage {
    margin-top: 0px;
}


nav {
    float: right;
    font-size: 100%;
    padding-right: 5%;
}


#right-but {height: 5%; width: 5%;}
#left-but {height: 5%; width: 5%;}
#buttons {
    margin-top:-40px;
    margin-left: 0px; }


div#wrap {
    margin: 0 0 0 90px;
    padding: 0 0 50px 0;

}



#courses li{
font-family: 'Open Sans', sans-serif;
font-size: 12pt;
    margin-left: 220px;
    line-height: 120%
}

.link {
    margin-right: 40px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px; /* future proofing */
    -moz-box-shadow:    3px 3px 5px 3px #302f59;
    -webkit-box-shadow: 3px 3px 5px 3px #302f59;
    box-shadow:         3px 3px 5px 3px #302f59;
 }
 
 .caption {
    font-size: 80%;
    }


@media screen and (min-width: 900px) {
    div#carousel1 {
    width:700px;
    
    }
    
   
    /*  This is what was sort of working at one point. 
    
    @media screen and (max-width: 900px) {

    div#wrapper {
       margin-top: 10px;
       width: 95%;}
    	
    h1 {
    font-size: medium;}
    
    h2 {
	margin-left: 0px;
    }

    div#wrap {
    margin: 0 0 0 30px;
    padding: 0 0 20px 0;
}

   
   #wrap ul {
    list-style-type: circle;
    margin-left: 0px;
   }
   
   #buttons {
    margin:-40px 0 0px 0px;
   }
   
   footer {
    margin-left: 10px;
   }
 
  
  
  }
  
  /* This was the drop-down menu for mobiles
  @media screen and (max-width: 800px) {
	nav a, nav a:first-child {display: block; border-right: none; font-size: large;}
	nav {padding: 0; height: 3.2rem; overflow: hidden; -webkit-transition: .6s height ease-in-out; margin-left: 0em; }
	nav a:hover {background-color: #3a4076; color: #fff;}
	nav a:first-child: {background-color: #fff;}
	nav:hover {height: 17rem; }
}
*/



  
  