html {
  height: 100%;
}
body {
  font-family: "lucida sans", arial, sans-serif;
  padding: 0px;
  margin: 0px;
  font-size: 0.78em;
  background: #f6f4f0;
  color: #635b53;
}
header {
  background: url("back.png") repeat-x;
}
p {
  margin: 0px;
  padding: 0px 0px 16px 0px;
  line-height: 1.7em;
}
h1,
h2,
h3,
h4 {
  font-size: 150%;
  padding: 7px 0px 5px 0px;
  margin: 0px 0px 12px 0px;
  font-weight: normal;
  color: #342f28;
  font-family: serif;
}
h1,
h3 {
  text-transform: uppercase;
  margin: 10px 0px 20px 0px;
  padding: 5px 20px 5px 0px;
  border-bottom: 1px solid #ccc6b4;
}
a,
a:hover {
  border-bottom: 1px dotted;
  color: #635b53;
  text-decoration: none;
}
a {
  outline: none;
}
a:hover {
  border-bottom: 1px solid;
  color: #a4aa04;
}
.noDecorate a {
  border-bottom: none;
}
.noDecorate img {
  margin-right: 6px;
  border: 1px solid #666;
}
img {
  border: 0px;
  margin: 0px;
  padding: 0px;
}
form {
  padding: 0;
  margin: 0;
}
.left {
  float: left;
  margin-right: 10px;
}
.right {
  float: right;
  margin-left: 10px;
}
.center {
  display: block;
  text-align: center;
  margin: 0 auto;
}
blockquote {
  margin: 20px 0px 20px 0px;
  padding: 10px 20px 0px 20px;
  border: 1px solid #e5e5db;
  background: #fff;
}
ul {
  margin: 2px 0px 18px 16px;
  padding: 0px;
}
ul li {
  list-style-type: square;
  margin: 0px 0px 6px 0px;
  padding: 0px;
}
ol {
  margin: 8px 0px 0px 24px;
  padding: 0px;
}
ol li {
  margin: 0px 0px 11px 0px;
  padding: 0px;
}

/* =========================== */
/* NEW CSS GRID LAYOUT STARTS  */
/* =========================== */

#page {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
}
/* Header grid for logo and menubar */
header {
  display: grid;
  grid-template-rows: auto auto;
}

/* Main content grid for section and aside */
main {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 10px;
  margin-top: 10px;
}

/* =========================== */
/* NEW CSS GRID LAYOUT ENDS    */
/* =========================== */
#logo {
  width: 980px;
  height: 127px;
  position: relative;
  background: transparent url("logo.png") no-repeat right;
}
#logo #logo_text {
  position: absolute;
  top: 0;
  left: 0;
}
#logo h1 {
  font-size: 300%;
  padding: 22px 0px 0px 0px;
  color: #777;
}
#logo h2 {
  font-size: 120%;
  padding: 4px 0px 0px 0px;
  color: #bbb;
}
#logo a {
  border: none;
}
#logo h1,
#logo h2 {
  font: normal 300% 'century gothic', arial, sans-serif;
  border-bottom: 0;
  text-transform: none;
  margin: 0;
  font-family: "century gothic", arial, sans-serif;
}
#logo_text h1,
#logo_text h1 a,
#logo_text h1 a:hover {
  padding: 22px 0 0 0;
  color: #777;
  letter-spacing: 0.1em;
  text-decoration: none;
}
#logo_text h1 a .logo_colour {
  color: #b8bd20;
}
#logo_text a:hover .logo_colour {
  color: #777;
}
#logo_text h2 {
  font-size: 120%;
  padding: 4px 0 0 0;
  color: #bbb;
}
#menubar {
  width: 980px;
  height: 46px;
  padding-top: 4px;
  padding-left: 4px;
}
ul#menu {
  float: right;
  margin: 0px;
}
ul#menu li {
  float: left;
  margin: 5px 0 0 0;
  padding: 0 0 0 6px;
  list-style: none;
}
ul#menu li a {
  letter-spacing: 0.1em;
  font-family: serif;
  font-size: 100%;
  display: block;
  float: left;
  height: 20px;
  text-decoration: none;
  padding: 9px 22px 5px 16px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
  border: none;
}
ul#menu li a:hover {
  color: #a4aa04;
}
ul#menu li.selected {
  margin: 7px 0 0 0;
  background: #635b53 url("tabs.png") no-repeat 0 0px;
}
ul#menu li.selected a {
  height: 20px;
  padding: 7px 22px 4px 16px;
}
ul#menu li.selected a,
ul#menu li.selected a:hover {
  background: #635b53 url("tabs.png") no-repeat 100% 0px;
  color: #fff;
} 
aside {
  padding: 20px 0 15px 10px;
}
aside ul {
  width: 190px;
  padding-top: 4px;
  margin: 4px 0px 30px 0px;
}
aside li {
  list-style: none;
  padding: 0px 0px 2px 0px;
}
aside li a,
aside li a:hover {
  text-decoration: none;
  padding: 4px 0px 4px 35px;
  display: block;
  background: transparent url("arrow.png") no-repeat left center;
  color: #555;
  border: none;
}
aside li a.selected,
aside li a:hover,
aside li a.selected:hover {
  color: #a4aa04;
}
section {
  text-align: left;
  padding: 20px 10px 15px 0px;
}
footer {
  font-family: sans-serif;
  font-size: 90%;
  height: 80px;
  padding: 20px 0px 4px 0px;
  margin-bottom: 20px;
  text-align: center;
  background: #313131;
  color: #a8aa94;
  border-top: 4px solid #a4aa04;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
footer a {
  color: #a8aa94;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: none;
}
.search {
  width: 122px;
  border: 1px solid #ccc6b4;
  padding: 4px;
  color: #635b53;
}
.form_settings {
  margin: 15px 0 0 0;
}
.form_settings p {
  padding: 0 0 4px 0;
}
.form_settings span {
  float: left;
  width: 200px;
  text-align: left;
}
.form_settings .submit {
  font: 100% arial;
  border: 1px solid;
  width: 99px;
  margin: 0 0 0 212px;
  height: 33px;
  padding: 2px 0 3px 0;
  cursor: pointer;
  background: #3b3b3b;
  color: #fff;
}
.form_settings select {
  width: 310px;
}
.form_settings .checkbox {
  margin: 4px 0;
  padding: 0;
  width: 14px;
  border: 0;
  background: none;
}
.form_settings input,
.form_settings textarea {
  padding: 5px;
  width: 299px;
  font: 100% arial;
  border: 1px solid #e5e5db;
  background: #fff;
  color: #47433f;
}
.form_settings textarea,
.form_settings select {
  font: 100% arial;
  width: 299px;
}
.separator {
  width: 100%;
  height: 0;
  border-top: 1px solid #d9d5cf;
  border-bottom: 1px solid #fff;
  margin: 0 0 20px 0;
}
table {
  margin: 10px 0 30px 0;
}
table tr td {
  background: #fff;
  color: #47433f;
  border-top: 1px solid #fff;
}
table tr th {
  background: #3b3b3b;
  color: #fff;
}
table tr th,
table tr td {
  padding: 7px 4px;
}
.attack {
  width: 21%;
}
.response {
  width: 38%;
}
.counter {
  width: 38%;
}
.number {
  width: 3%;
  text-align: center !important;
}
.cnt {
  text-align: center !important;
}
.albumPicture {
  float: left;
  width: 370px;
  border: 1px solid #ccc6b4;
  margin: 4px;
  line-height: 10px;
  background: #fff;
}
.albumPicture a {
  float: left;
  display: block;
  margin: 2px;
}
.albumPicture p {
  margin: 4px;
  line-height: 14px;
  padding: 0px;
}
.loader {
  font-size: 10px;
  margin: 5em auto;
  text-indent: -9999em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #fff;
  background: linear-gradient(to right, #fff 10%, rgba(255,255,255,0) 42%);
  position: relative;
  animation: load3 1.4s infinite linear;
  transform: translateZ(0);
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #b8bd20;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: #635b53;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
#stage {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  display: none;
}
#stagecontent {
  position: fixed;
  width: 640px;
  height: 480px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border: 2px solid #fff;
  background: rgba(0,0,0,0);
  z-index: 999;
}
#stageclose {
  position: absolute;
  left: 612px;
  top: -32px;
  height: 30px;
  width: 30px;
  background: rgba(0,0,0,0);
}

@keyframes load3 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================== */
/* RESPONSIVE IMPROVEMENTS     */
/* =========================== */
@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }
  
  aside {
    order: 2;
  }
  
  section {
    order: 1;
  }
}
