/* General style */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  background: linear-gradient( #16222A, #2C5364, #16222A);
}

p {
  margin: 1px;
  font-weight: 300;
}

header{
  display: flex;
  color: #fff;
  justify-content: center;
  text-align: center;
}

/* Loader */
.loader-container {
  display: none;
}
.loader-container.is-active {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, .9);
}

.loader-item {
  position: fixed;
  top: 40%;
  left: 45%;
  border: 20px solid rgba(186, 185, 185, .7);
  border-radius: 50%;
  border-top: 20px solid #e0eb0b;
  width: 120px;
  height: 120px;
  animation: spin 1.3s linear infinite;
  -webkit-animation: spin 1.3s linear infinite; 
}

.loader-container.p {
  color: yellow;
  z-index: 100 !important;
  position: fixed;
  top: 60%;
  font-size: 90px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

/* Header style */
.title {
  margin: 30px;
  font-family: 'CoreCircus', sans-serif;
  font-size: 94px;
  text-align: center;
}

.flickering-letter {
  color: #ff0000;
  opacity: 1;
  animation: flicker 2s linear infinite;
  -webkit-animation: flicker 2s linear infinite; 
}

@keyframes flicker {
  0% {opacity: 0.4;}
  10% {opacity: 0.6;}
  15% {opacity: 0.85;} 
  25% {opacity: 0.5;}
  30% {opacity: 1;}
  35% {opacity: 0.1;}
  45% {opacity: 0.5;}
  60% {opacity: 1;}
  70% {opacity: 0.85;}
  80% {opacity: 0.4;}
  90% { opacity: 0.5;}
  100% { opacity: 1;}
}

@-webkit-keyframes flicker {
  0% {opacity: 0.4;}
  10% {opacity: 0.6;}
  15% {opacity: 0.85;} 
  25% {opacity: 0.5;}
  30% {opacity: 1;}
  35% {opacity: 0.1;}
  45% {opacity: 0.5;}
  60% {opacity: 1;}
  70% {opacity: 0.85;}
  80% {opacity: 0.4;}
  90% { opacity: 0.5;}
  100% { opacity: 1;}
}

.flickering-letter::after {
  content: "";  
  box-shadow: -39px 0px 75px 8px rgba(255,255,255,1);
  -webkit-box-shadow: -39px 0px 75px 8px rgba(255,255,255,1);
  -moz-box-shadow: -39x 0px 75px 8px rgba(255,255,255,1);
}

/* Card section style */
.cards {
  width: 90%;
  height: 500px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.cards p {
  background-color: #f5f5f5;
}

.deck {
  border: black 1px solid;
  box-shadow: 1px 1px 10px #c8d5db ;
}

.killer-deck {
  width: 250px;
  height: 400px;
  background: lightgray;
  text-align: center;
  padding-top: 30px;
  border-radius: 10px;
}

.weapon-deck {
  width: 250px;
  height: 400px;
  background: black;
  text-align: center;
  padding-top: 30px;
  border-radius: 10px;
}

.weapon-deck p {
  width: 100%;
  height: fit-content;
}

.weapon-deck img {
  margin-top: 30px;
}

.room-deck {
  width: 250px;
  height: 400px;
  background: rgb(240, 224, 207);
  text-align: center;
  padding-top: 30px;
  border-radius: 10px;
}

.room-deck img {
  margin-top: 35px;
}

/* Mystery section style */
.mystery {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mystery-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.mystery-text-container {
  display: none;
}


.mystery-text-container.is-active{
  background-color: rgba(255, 255, 255, .6);
  margin: 25px 0;
  border-radius: 10px;
  display: block;
}

.mystery-text-container h1 {
  text-align: center;
}

.mystery-text-container p {
  margin: 12px 6px;
}

.mystery-button {
  height: 135px;
  width: 135px;
  padding: 8px 16px;
  background: #ff0000;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  margin: 10px auto 50px;
}

.mystery-button:focus {
  display: block;
  outline: none;
  border: #0a2fc2 3px solid;
  box-shadow: 0 0 0 2px #fff;
}

.new-mystery-button {
 display: none;
}

.new-mystery-button.is-active {
  display: block;
  height: 90px;
  width: 90px;
  padding: 8px 16px;
  background: #ff0000;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  margin: 10px auto;
}

.new-mystery-button.is-active:focus {
  outline: none;
  border: #0a2fc2 3px solid;
  box-shadow: 0 0 0 2px #fff;
}

@media screen and (max-width: 1024px) {
  .cards {
    height: 500px;
  }
  
  .deck {
    height: 450px;
  }
}

@media screen and (max-width: 767px) {
  .cards {
    height: 450px;
  }
  .deck {
    height: 350px;
    margin: 20px 8px;
  }
}

