* { margin: 0; padding: 0; }
html { overflow-y: scroll; }

body {
  font: 13px/1.5 Helvetica, sans-serif;
  background: #FFE6FF;
  color: #333;
}

/* clearfix */
.group:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}

.group {
  display: inline-block;
  clear: both;
}

/* old IE hack */
* html .group { height: 1%; }
.group { display: block; }

article, aside, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

a:focus { outline: 0; }

/* layout */
#page-wrap {
  width: 720px;
  margin: 40px auto 5px;
  background: #FFE6FF;
  padding: 8px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
}

footer {
  color: #999;
  margin: 0 auto;
  width: 720px;
}

/* links (fixed syntax) */
a:hover,
a:active {
  color: maroon;
}

/* ================================
   MEDIA: 992px
================================ */
@media screen and (max-width: 992px) {

  #page-wrap {
    width: 680px;
    margin: 40px auto 5px;
    background: #FFE6FF;
    padding: 8px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
  }


  footer {
    width: 680px;
  }

  a:hover,
  a:active {
    color: maroon;
  }
}

/* ================================
   MEDIA: 600px
================================ */
@media screen and (max-width: 600px) {

  #page-wrap {
    width: 300px;
    margin: 10px auto 5px;
    background: #FFE6FF;
    padding: 6px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
  }

  footer {
    width: 480px;
  }

  a:hover,
  a:active {
    color: maroon;
  }
}

/* lists */
ul.b {
  list-style-type: square;
}

/* popup */
#popup {
  width: 580px;
  margin: 10px auto 5px;
  background: #FFE6FF;
  padding: 8px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
}

#main-content { padding: 14px; }

/* hr (removed nbsp) */
hr {
  border: 0;
  width: 80%;
  color: #4642ad;
  background-color: #4642ad;
  height: 5px;
}

/* table text */
td {
  font: 12px/16px "Lucida Grande", "Verdana", sans-serif;
}

h1 {
  font: bold 32px Helvetica, Arial, sans-serif;
  letter-spacing: -1px;
  padding: 14px;
  color: #333;
  text-shadow: 1px 1px 1px white;
}

p { margin: 0 0 15px 0; }

/* nav */
nav ul {
  list-style: none;
  background: #3c0056;
  padding: 5px 20px;
  width: 90%;
  position: relative;
  left: -6px;
}

nav ul li { display: inline; }

nav ul li a {
  display: block;
  float: left;
  border-top: 1px solid #96d1f8;
  background: #3e779d;
  background: -webkit-gradient(linear, left top, left bottom, from(#65a9d7), to(#3e779d));
  background: -moz-linear-gradient(top, #65a9d7, #3e779d);
  height: 17px;
  padding: 0 10px;
  border-radius: 8px;
  -webkit-box-shadow: rgba(0,0,0,1) 0 1px 3px;
  -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
  text-shadow: rgba(0,0,0,.4) 0 1px 0;
  font: bold 11px/16px "Lucida Grande", "Verdana", sans-serif;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  margin: 0 5px 0 0;
}

nav ul li a:hover {
  border-top: 1px solid #4789b4;
  background: #28597a;
  background: -webkit-gradient(linear, left top, left bottom, from(#3d789f), to(#28597a));
  background: -moz-linear-gradient(top, #3d789f, #28597a);
}

nav ul li a:active,
nav ul li a.current {
  border-top-color: #245779;
  background: #1b435e;
  position: relative;
  top: 1px;
}

ul {
  padding-left: 20px;
}

/* logos */
#logo {
  position: absolute;
  top: 42px;
  right: 270px;
}

#popuplogo {
  position: absolute;
  bottom: 3px;
  right: 3px;
}

/* buttons */
.styled {
  border: 1px solid #000; /* FIXED */
  line-height: 2.5;
  padding: 0 20px;
  font-size: 1rem;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  border-radius: 10px;
  background-color: rgba(223, 182, 234, 1);
}

.button {
  background-color: #d7bde2;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}
