body {
  margin: 0;
  background: #121212;
  font-family: "Courier New", Courier, monospace;
}

h1 {
  margin: 30px 0 40px 0;
  color: crimson;
  font-size: 50px;
  font-family: "Nosifer", cursive;
  text-shadow: 2px 2px #fff;
  text-align: center;
  transform: translate(-4px, 15px) rotate(0deg);
}

h1:hover {
  animation: shake 0.16s infinite alternate;
}

h2 {
  font-size: 40px;
  font-family: "Nosifer", cursive;
  background: #2c2c2c;
  width: 100%;
  text-align: center;
}

h3 {
  font-size: 32px;
  margin: 20px 0 5px 0;
  background: rgba(18, 18, 18, 0.5);
  width: 100%;
  text-align: center;
}

h2,
h3 {
  color: #121212;
  text-shadow: 1px 1px gold;
  border-top: 1px solid gold;
  border-bottom: 1px solid gold;
}

p,
.name-age-container {
  margin: 0 0 10px 0;
  padding: 1px 5px;
  background-color: #fff;
}

img {
  max-width: 200px;
}

/* LOADER ANIMATION */

.loader {
  display: none;
  justify-content: center;
  align-items: center;
  height: 50%;
}

.loader > span {
  display: inline-block;
  background-color: crimson;
  width: 0;
  height: 0;
  border-radius: 50%;
  margin: 0 8px;
  transform: translate3d(0);
  animation: bounce 0.6s infinite alternate;
}

.loader > span:nth-child(2) {
  background-color: gold;
  animation-delay: 0.2s;
}

.loader > span:nth-child(3) {
  animation-delay: 0.4s;
}

/* COMMON FOR ALL DECKS */

.cards {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.deck {
  margin: 15px;
  width: 300px;
  height: 480px;
  border: 10px solid gold;
  border-style: ridge;
  border-radius: 3px;
}

.deck:hover {
  cursor: pointer;
}

.front {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.information-container {
  width: 100%;
  padding: 10px;
}

.back {
  display: flex;
  height: 75%;
  flex-direction: column;
  align-items: center;
}

.back-header {
  margin-top: 100px;
}

/* SPECIFIC FOR KILLER DECK */

.killer-label {
  padding: 0 4px;
  font-size: 12px;
  color: #333;
  display: block;
}

.killer-name,
.killer-age {
  display: inline;
  padding-left: 0;
}

.killer-info-container {
  width: 100%;
  padding: 10px;
}

/* SPECIFIC FOR WEAPON & ROOM DECK */

.weapon-label,
.room-label {
  padding: 0 5px;
  font-size: 12px;
  color: #fff;
}

.weapon-deck .front {
  background-image: url("img/seamless-2033674_640.jpg");
  background-size: cover;
}

.room-deck .front {
  background-image: url("img/moonlight-3468090_640.jpg");
  background-size: cover;
}

/* REVEAL MYSTERY */

.reveal {
  margin-top: 50px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

button {
  width: 205px;
  margin: 0 0 50px 0;
  padding: 15px 25px;
  background-color: #960e29;
  background-image: linear-gradient(#960e29, #ef4e6e);
  color: #fff;
  font-size: 20px;
  border-radius: 3px;
  box-shadow: 0 1px 4px -2px #333;
  text-shadow: 0 -1px #333;
}

button:hover {
  background: linear-gradient(#ad102f, #f37db2);
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

button::after {
  background: linear-gradient(
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.2)
  );
}

button:focus,
[type="submit"]:focus {
  outline: none;
}

.mystery-reveald-container {
  display: flex;
  width: 300px;
  height: 100px;
  padding: 10px;
  border: 10px solid gold;
  border-style: ridge;
}

.mystery-reveald {
  font-size: 20px;
  color: gold;
}

/* FOOTER */

.footer {
  width: 100%;
  margin-top: 100px;
  padding: 10px;
  color: crimson;
}

.footer p {
  background: #121212;
}

.footer a {
  text-decoration: none;
  color: crimson;
}

/* KEYFRAMES */

@keyframes bounce {
  to {
    width: 16px;
    height: 16px;
    transform: translate3d(0, -16px, 0);
  }
}

@keyframes shake {
  0% {
    transform: translate(-3px, 14px) rotate(-1deg);
  }
  33% {
    transform: translate(-3px, 16px) rotate(1deg);
  }
  66% {
    transform: translate(-5px, 16px) rotate(-1deg);
  }
  100% {
    transform: translate(-5px, 14px) rotate(1deg);
  }
}

@keyframes blink {
  0% {
    background-color: #ccc;
  }
  49% {
    background-color: #ccc;
  }
  50% {
    background-color: transparent;
  }
  99% {
    background-color: transparent;
  }
  100% {
    background-color: #ccc;
  }
}

/* MEDIA QUARIES */

@media (min-width: 700px) {
  h1 {
    font-size: 80px;
  }
  .mystery-reveald-container {
    width: 630px;
    height: 75px;
  }
}

@media (min-width: 1070px) {
  .mystery-reveald-container {
    width: 980px;
    height: 50px;
  }
}
