/*********** Main container ******************/

html {
  margin: 0;
  padding: 0;
  background-image: url(/static/FauxColumns.png);
  background-repeat: repeat-y;
  background-size: 100%;
  height: 100%;
  z-index: -10;
}

body {
  font-family: "Montserrat", "Helvetica", sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
}

/********** General markers ******************/

.invisible {
  display: none;
}

.intext {
  float: left;
  padding-right: 2em;
  padding-bottom: 1em;
}

/********** Content **************************/

#content {
  width: 84%;
  margin-top: 2em;
  margin: 0;
  padding: 0;
  float: right;
}

#main {
  width: 72%;
  float: left;
  margin-left: 2%;
  margin-right: 2%;
}

#secondary {
  width: 72%;
  float: left;
  margin-left: 2%;
  margin-right: 2%;
}

#boxes {
  float: right;
  width: 24%;
}

.box {
  border: thin black solid;
  margin-top: 3em;
  margin-bottom: 2em;
  margin-right: 1em;
}

/*************** Header ***********************/

#logo {
  position:absolute;
  top: 0;
  left: 0;
  height: 220px;
  margin: -10px;
  margin-left: max(10px, calc(8% - 110px));
  padding: 0;
}

/* The header wrapper is useless, it only serves to create an override
 * background image to hide the faux columns that we have streaming down the
 * whole HTML. I could also probably try to put the faux columns on the 
 * content-and-menu part instead if there's problems with that. */
#headerwrapper {
  min-height: 200px;
  position: relative;
  margin: 0;
  padding: 0;
}

#headerwrapper:before {
  content: "";
  display: block;
  top: 0;
  left: 0;
  background-size: cover;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(#dddddd, #dddddd);
  position: absolute;
  z-index: -5;
}

#header {
  min-height: 200px;
  clear: both;
  position: relative;
}

/*
#header:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(/static/Narrow.jpg);
  background-size: cover;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity : 0.3;
}
*/

#headertitle {
  font-family: "Petit Formal Script", "Montserrat", "Helvetica", sans-serif;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

#loginWidget {
  margin: 1%;
  float: right;
}

#loginWidget a {
  margin: 0;
  padding: 2px;
  text-align: center;
  text-decoration: none;
  display: block;
  color: black;
  margin-top: 3px;
  border: 2px #777777 solid;
  border-top-color: #cccccc;
  border-left-color: #cccccc;
}

#loginWidget a:hover {
  background-color: #bbbbbb;
}
/************** Left Nav *********************/

#menu {
  margin-top: 2em;
  margin-left: 0.5%;
  margin-right: 1%;
  float: left;
  width: 14.5%;
  font-size: 0.9em;
}

#menu ul {
  padding: 0;
  margin: 0;
  margin-bottom: 1em;
}

#menu li {
  padding-left: 0.5em
  list-style: none;
  position: relative;
  margin-bottom: 0.4em;
}

#menu a {
  margin: 0;
  padding: 2px;
  text-align: center;
  text-decoration: none;
  display: block;
  color: black;
  border: 2px #777777 solid;
  border-top-color: #cccccc;
  border-left-color: #cccccc;
}

#menu a:hover {
  background-color: #bbbbbb;
}

/**************** Footer ******************/
#footer {
  position: fixed;
  left: 1%;
  bottom: 0;
  margin-bottom: 2em;
  border-style: solid;
  border-width: 5px;
  border-color: red;
  width: 97%;
  padding: 5px;
  text-align: left;
}

/**************** Modals ******************/
.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #ccffcc;
  margin: 15% auto;
  margin-top: 250px;
  padding: 20px;
  border: 1px solid #222;
  width: 40%;
}

.modal-footer {
  margin-top: 10px;
  text-align: right;
}

.modal-close {
  margin: 0;
  padding: 2px;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: 10px;
  margin-right: 10px;
  color: black;
  border: 2px #777777 solid;
  border-top-color: #cccccc;
  border-left-color: #cccccc;
  width: 30%;
}

.modal-close:hover {
  background-color: #bbbbbb;
}
