/* Start with a clean slate. */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
} 

/* Basic elements */
body {
  background-color: black; 
  font-family: Lucida Grande, Lucida Sans Unicode, Calibri, Arial, 
  sans-serif;
  letter-spacing: 1px; 
}
header, footer, nav {display: block;}
header, footer {
  font-size: 1.5em; 
  text-transform: uppercase;
  letter-spacing: 3.5px; 
  background-color: darkslategrey;
  padding: 3em 2.5em;
}
header button, footer button {
  vertical-align: super;
  border: thin solid black;
  margin-right: 10px;
}
header button:hover, footer button:hover {
  border: thin solid lightgrey;
}
footer button {font-size: 0.5em; font-weight: normal;}
h1 {
  display: inline; 
  vertical-align: bottom;
  padding: 0 16px;
  margin-right: 15px;
  font-size: 1.5em; 
  background-color: black;
  color: lightgrey;
}
h2 {color: #365252; font-size: 2em; text-decoration: underline;}
canvas {background-color: black;}
table, #directions, #topten {border-radius: 7px;}
main {
  margin: 0 auto 15px auto; 
  width: 956px; 
  background-color: lightgrey; 
  padding: 20px;
}
button {
  color: #f3f3f3;
  font-weight: bold;
  letter-spacing: 1px;
  background-color: darkslategrey; 
  border-radius: 5px;
  border: none;
  padding: 7px 10px;
  cursor: pointer;
}
button:hover {background-color: black;}
legend {
    margin-bottom: 1em; 
    font-size: 1.25em;
    text-decoration: underline;
}
fieldset {border-radius: 5px;}
input[type=text], input[type=password], input[type=email] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid lightgrey;
  border-radius: 5px;
  box-sizing: border-box;
}
input[type=checkbox] {float: left;}
p {font-size: 1.2em; line-height: 1.2;}
a {color: black;}
a:hover {color: #669999;}
ul {
  list-style-type: disc; 
  list-style-position: inside; 
  margin: 0; 
  padding: 10px; 
	border-radius: 5px;
  font-size: 1.1em;
	line-height: 1.5em;
  color: darkslategrey;
	background-color: #AAC0AA; 
}
li {padding: 3px;}
div {box-sizing: border-box;}
span.forgot {float: left; padding-top: 8px; font-size: 0.75em;}
table {
  background-color: lightgrey; 
  color: white;
  border-spacing: 3px; 
}
th, td {text-align: center; padding: 15px 5px;}
th {
  font-variant: small-caps; 
  font-weight: bold; 
  font-size: 1.2em; 
  color: lightgrey;
}
tr:nth-child(odd), th {background-color: lightslategrey;}
tr:nth-child(even) {background-color: darkslategrey;}

/* Elements with an id. */
#container {margin: 0 auto; width: 996px;}
#greeting {
  width: 100%;
  margin: 30px 0px;
  background-color: black;
  color: white;
}
#greet {
  padding: 40px; 
  font-size: 1.4em; 
}
#greet button {
  background-color: black;
  color: white;
  font-size: 1em;
  font-weight: normal;
  border-radius: 0;
  border: none;
  text-decoration: underline;
  padding: 0;
  cursor: pointer;
}
#greet button:hover {color: #669999;}
#col-1 {float: left; width: 50%;}
#col-1 b {font-size: 1.5em;}
#col-2 {float: left; width: 50%;}
#directions, #topten {
  width: 96%; 
  margin: auto;
  padding: 30px; 
}
#topten {background-color: #AAC0AA;} 
#topten h2 {margin-bottom: 20px;}
#directions {background-color: #669999;} 
#objective {
  color: lightgrey;
  padding: 20px 0px; 
  font-family: Verdana;
  font-size: 1.25em; 
  letter-spacing: 0.25px;
}
#game-end:hover {animation: none; color: #669999;}
#game-end {
  animation: attention 20s infinite;
}
#home {
  font-size: 0.75em;
  text-decoration: none;
}
#home:hover {
  color: lightgrey;
}

/* Elements with a class. */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0); /* Fallback */ 
  background-color: rgba(0,0,0,0.6);
  padding-top: 60px;
}
.modal-content {
  background-color: #f3f3f3;
  min-width: 140px;
  margin: 5% auto 15% auto;
  padding: 16px;
  border: thin solid lightgrey;
  border-radius: 5px;
  width: 30%;
}
.tryagain {
  min-width: 140px;
  margin: 20px 16px;
  padding: 16px;
  width: 30%;
  border: thin solid darkslategrey;
  border-radius: 5px;
}
.close {
  position: absolute;
  right: 35px;
  top: 15px;
  color: lightgrey;
  font-size: 35px;
  font-weight: bold;
}
.close:hover, .close:focus {
  color: darkslategrey;
  cursor: pointer;
}
.modal button, .tryagain button {
  margin-top: 8px;
  width: 46%;
  float: left;
}
.cancelbtn {background-color: rgb(255, 52, 0); margin-right: 8%;}
.cancelbtn:hover {background-color: red;}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
.heading {color: lightgrey; text-decoration: none;}
.heading:hover {color: white; text-decoration: none;}
.form-response {padding: 20px; background-color: lightgrey;}
.errormsg {color: red; padding-left: 16px;}
.error-link {margin: 20px;}
.wrap {padding-left: 16px;}

/* keyframes for animations */
@keyframes attention {
  5% {color:red; text-decoration:none;}
  10% {color:yellow; text-decoration:underline;}
  15% {color:green; text-decoration:none;}
  20% {color:orange;text-decoration:underline;}
  25% {color:darkcyan; text-decoration:none;}
  30% {color:yellow; text-decoration:underline;}
  35% {color:forestgreen; text-decoration:none;}
  40% {color:orange; text-decoration:underline;}
  45% {color:red; text-decoration:none;}
  50% {color:goldenrod; text-decoration:underline;}
  55% {color:palegreen; text-decoration:none;}
  60% {color:gold; text-decoration:underline;}
  65% {color:darkorchid; text-decoration:none;}
  70% {color:green; text-decoration:underline;}
  75% {color:deeppink; text-decoration:none;}
  80% {color:aqua; text-decoration:underline;}
  85% {color:lawngreen; text-decoration:none;}
  90% {color:royalblue; text-decoration:underline;}
  95% {color:coral; text-decoration:none;}
  100% {color:orange; text-decoration:underline;}
}
