.topnav {
  position: relative;
  overflow: hidden;
  background-color: #333;
  border-radius: 15px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
  padding: 5px;
  z-index: 99999999;

}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 12px;
}

.topnav a:hover {
  border-radius: 15px;   
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  border-radius: 15px;  
  background-color: #86c232;
  color: white;
}

.topnav-centered a {
  float: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.topnav-right {
  float: right;
}

/* Responsive navigation menu (for mobile devices) */
@media screen and (max-width: 600px) {
  .topnav a, .topnav-right {
    float: none;
    display: block;
  }
  
  .topnav-centered a {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }
}
@import url(https://fonts.googleapis.com/css?family=Dancing+Script);
#card_samples {
  position: relative;
  height: 450px;
  width: 800px;
  margin: 0 auto;
}
#card_samples .title {
  position: absolute;
  left: 20px;
  top: 20px;
  color: #D07700;
  font-family: "Dancing Script", cursive;
  font-size: 36px;
  font-weight: bold;
  text-decoration: underline;
}
#card_samples .caption {
  display: none;
  position: absolute;
  right: 22px;
  bottom: 20px;
  max-width: 400px;
  text-align: center;
  background: #FFECC3;
  color: #915700;
  padding: 5px;
  border-radius: 5px;
  font-family: "Lora", Times, serif;
  font-size: 18px;
  border: 2px solid #915700;
  box-shadow: 2px 2px 0px #915700;
}
#card_samples img {
  position: absolute;
  width: 200px;
  height: 270px;
  transition: all 0.5s ease;
  opacity: 1;
  border-radius: 15px;
  box-shadow: 0 0 5px #000;
}
#card_samples img:nth-of-type(1) {
  left: 60px;
  bottom: 40px;
  transform: rotate(-34deg);
}
#card_samples img:nth-of-type(2) {
  left: 57px;
  bottom: 45px;
  transform: rotate(-22deg);
}
#card_samples img:nth-of-type(3) {
  left: 55px;
  bottom: 50px;
  transform: rotate(-35deg);
}
#card_samples img:nth-of-type(4) {
  left: 35px;
  bottom: 50px;
  transform: rotate(-40deg);
}
#card_samples img:nth-of-type(5) {
  left: 40px;
  bottom: 45px;
  transform: rotate(-25deg);
}
#card_samples.spread img:nth-of-type(1) {
  left: 60px;
  bottom: 65px;
  transform: rotate(-45deg);
}
#card_samples.spread img:nth-of-type(2) {
  left: 160px;
  bottom: 115px;
  transform: rotate(-30deg);
}
#card_samples.spread img:nth-of-type(3) {
  left: 260px;
  bottom: 135px;
  transform: rotate(-15deg);
}
#card_samples.spread img:nth-of-type(4) {
  left: 360px;
  bottom: 125px;
  transform: rotate(0deg);
}
#card_samples.spread img:nth-of-type(5) {
  left: 460px;
  bottom: 95px;
  transform: rotate(15deg);
}
#card_samples.spread img:hover {
  transform: rotate(0) scale(1.25) !important;
  z-index: 5;
  box-shadow: 0 0 25px #000;
}

html, body, div, p, h1, h2, h3 {
  margin: 0;
  padding: 0;
}

html, body {
  background: #000;
  min-width: 900px;
  font-family: "Lora", "Times", serif;
}
a {
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
}

canvas {
  position: fixed;
}

h1, h2, h3 {
  font-family: "Alegreya", "Times", serif;
}

h1 {
  letter-spacing: 0.07em;
}

header {
  padding: 50px;
  height: 100vh;
  color: #FFECC3;
  background: url("/images/jest.png") no-repeat bottom right fixed, #2a2a2a;
  background-size: contain;
}
header #intro {
  position: fixed;
  width: 600px;
  left: 50%;
  margin-left: -400px;
}
header #intro h1 {
  margin-bottom: 15px;
  border-bottom: 2px solid #FFECC3;
  color: #D07700;
  text-shadow: 1px 1px 0px #FFECC3;
  font-size: 28px;
}
header #intro p {
  padding: 10px 0;
  text-align: justify;
  font-size: 17px;
  text-shadow: 0 0 2px #000;
  line-height: 25px;
}
header #intro p span {
  color: white;
}
header #intro a.more {
  font-family: "Alegreya", "Times", serif;
  display: inline-block;
  float: right;
  margin-top: 10px;
  margin-right: 2px;
  border-radius: 10px;
  width: 150px;
  height: 35px;
  background: linear-gradient(to top, #D07700, #9d5a00);
  color: #FFECC3;
  line-height: 35px;
  vertical-align: middle;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 2px 2px 0px #915700;
  transition: all 0.25s ease;
}
header #intro a.more:hover {
  background: linear-gradient(to top, #FFECC3, #ffdc90);
  color: #D07700;
}
header #intro a.more:active {
  box-shadow: none;
  margin-left: 0px;
  margin-top: 12px;
}

#content {
  position: relative;
  background: #20344A;
  box-shadow: 0 -5px 5px #000;
}

#gameplay {
  background-color: #770003;
  color: #FFECC3;
  padding: 50px;
}
#gameplay h2 {
  color: #FFECC3;
  font-size: 24px;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.75);
  margin-bottom: 15px;
  border-bottom: 2px solid #D07700;
}

#card_samples {
  margin-top: 50px;
}

#closing {
  padding: 50px;
}