/*** GENERAL STYLING ***/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@800&display=swap');

* {
  -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 20px;
  font-family: 'Cormorant Garamond', serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url('./assets/castlegermany.jpg');
  background-position: bottom;
  background-size: cover;
  background-repeat: no-repeat;
}

h1 {
  margin: 30px;
  padding: 20px;
  color: #000;
  font-family: 'Cinzel', serif;
  align-self: center;
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  background: rgba(237, 228, 228, 0.5);
  text-shadow: 1.5px 1px lightgray;
}

h2 {
  align-self: center;
  color: #fff;
  font-style: italic;
  text-align: center;
}

p {
  margin: 0px;
  font-weight: 300;
  background-color: #fff;
}

/*** Styling of the header ***/
header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

/*** Styling of the cards***/
.cards { /* Outerbox containing desription and then a section with the decks. */
  width: 90%;
  height: 600px;
  background: rgba(237, 228, 228, 0.3);
}

.cards-inner-box {
  margin: 20px auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.boldheading { /*Bold heading on the decks for 'Killer', 'Weapon', and 'Room'. */
  font-weight: bold;
}

/* Killer-card */
.killer-deck { 
  width: 250px;
  height: 440px;
  background: #010f14;
  text-align: center;
  padding-top: 30px;
  border-radius: 16px;
  cursor: pointer;
}

.killer-image {
  margin: 15px 0px;
  width: 150px;
  height: auto;
  border-radius: 16px;
}

/* Weapon-card */
.weapon-deck {
  width: 250px;
  height: 440px;
  background: #78786c;
  text-align: center;
  padding-top: 30px;
  border-radius: 16px;
  cursor: pointer;
}

.weapon-image {
  width: 100px;
  margin-top: 100px;
  height: auto;
  border-radius: 16px;
}

/* Room-card */
.room-deck {
  width: 250px;
  height: 440px;
  background: #434254;
  text-align: center;
  padding-top: 30px;
  border-radius: 16px;
  cursor: pointer;
}

.room-image {
  width: 150px;
  margin-top: 60px;
  height: auto;
  border-radius: 16px;
}

/* Styling of the loaders */
.killer-loader, .weapon-loader, .room-loader {
  margin-left: 90px;
  margin-top: 80px;
  width: 60px;
  height: 60px;
  border: 10px solid #fff;
  border-radius: 50%;
  border-top: 10px solid #8c8e91;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  display: none;
}

@-webkit-keyframes spin { /* The animation of the loader */
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin { /* The animation of the loader */
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/** Styling of button **/
.reveal-button {
  margin: 20px;
  padding: 8px 8px;
  background: #fff; 
  border: 1px solid #000;
  box-shadow: 3px 3px 8px 3px grey;
  font-size: 20px;
  border-radius: 8px;
  display: flex;
  margin: 0 auto;
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
}

.reveal-button p {
  padding: 12px;
}

.detectivepic {
  height: 35px;
  margin: 5px;
}

button:hover { /* When hovering the button */
  box-shadow: none;
}

/*** Styling of the footer ***/
footer {
  margin-top: 50px;
  align-self: center;
  width: 100vw;
  bottom: 0;
  padding: 15px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  color: #000;
  font-size: 16px;
  text-shadow: 1px 1px lightgray;
  text-transform: uppercase;
}

/*** MEDIA QUERIES ***/
@media (max-width: 888px)  {/* Choosed this measure becuase that's when the cards got to narrow and to close each other */
   .killer-deck, .weapon-deck, .room-deck {
    margin: 8px;
  }
}

@media (max-width: 667px) { /* Mobile devices */
  h1 {
    font-size: 30px;
  }

  h2 {
    text-align: center;
  } 

  .cards {
    height: auto;
    width: 90vw;
  }

  .cards-inner-box {
    flex-direction: column;
  }
}