@font-face {
  font-family: "clarendon"; /* set name */
  src: url("./fonts/Clarendon-Light.woff"); /* url of the font */
}
body {
  background-color: #eee; /*was #bb1133 */
  color: #111;
  font-family: clarendon,Times;
  margin:auto;
  font-size:1.3rem;
  background-image: url("./pics/overload.png");
  background-position: 95% 19%;
}

nav{
  background-color:#333;
  display:block;
  top: 0;
  position: sticky;
  border-radius: 0px 0px 0px 20px;
  overflow: hidden; /*this makes it so that when you hover over the first link item in nav, the background color doesnt turn the block into a box, instead it retains the curved shape of the border radius because the overflow of hover is hidden */
}
nav * { padding:0; }
nav ul li{ display:inline-block; list-style:none;}
nav ul li a {  color:#eee; text-decoration:none; padding: .9rem 1.3rem ;}
nav li a:hover{  background-color: #eee;  color:#111;  padding: 1.39rem 1.3rem;  overflow:hidden;}
textarea
{
  font-size:1.3rem;
  padding: 0.3rem;
}
main
{
  margin:auto;

}
h1
{
  background-color: #bb1133; color: white;padding:0;margin:0;
}
section
{
  width: 500px; display: inline-block; background-color:#111;color:#ffe;  float: right; margin: 0.3rem;


   } /* was margin: 0.3rem; */

marquee{display: none;}
#events
{
  width:300px;
  background-color:#111;
  color:#fee;
  float:left;
  margin: 0.3rem;

}
#events a
{
  color:#fee;
}
#about
{
  width: 333px;
  float:right;
  margin: 0.3rem;
  background-color:#bb1133;color:#fee;

}

footer{display:block;float:right; bottom:0;}
@media screen and (max-width: 799px) /*when the screen is 799px and below */
{
    body{width:100%;}
    marquee{display:block;}
    nav{width:100%; border-radius: 0;}
    nav ul li{display: inline;}
    header{width:100vw;}
    textarea{display: none;}

    main{padding: 0;margin: 0;}
}
@media screen and (max-width: 599px) /*when the screen is below 600px;*/
{
    nav{width:100%; border-radius: 0;}
    #about{width: 100vw;margin: 0; padding:0;}
    #events{width: 100vw;margin: 0; padding:0;}
    section{margin: 0; padding:0;}
}
