@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  text-decoration: none;
  transition: .2s linear;
}

html,
body {
  height: 100%;
}

.header,
.footer {
  position: fixed;
  left: 0;
  right: 0;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  color: #fff;
  z-index: 1000;
}

.header {
  top: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header .logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px #000000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .logo span {
  color: orangered;
  font-size: 1.5rem;
  vertical-align: middle;
  margin-left: .5rem;
  text-align: center;
}

.footer {
  bottom: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.footer a img {
  width: 4rem;
}

body {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
}

.container {
  flex: 1;
  align-items: center;
  justify-content: center;
}


.card {
  background: #fff;
  border-radius: 0.625rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-header {
  position: relative;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#image {
  width: 100%;
  object-fit: cover;
  display: block;
}

.card-header h1 {
  position: absolute;
}

.card-content {
  padding: 20px 20px;
}

.part2 {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  border: .5px solid gainsboro;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  display: flex;
  height: 150px;
}



.consonants {
  display: flex;
  gap: 1rem;
}

.letter-box {
  width: 100px;
  height: 100px;
  border: .5px solid #333;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 98%);
  flex-direction: column;
  overflow: hidden;
  display: flex;
  margin: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: #000;
}

#imageReveolver {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



#imageRevolverCylinder {
  position: relative;   
  display: block;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: center center; 
}

#blood-overlay {
  position: fixed;  
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;     
  visibility: hidden;
}

#blood-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}









.part4 {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: .5px solid gainsboro;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  height: 80px;
}

.player {
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.player1,
.player2 {
  font-size: 18px;
  font-weight: bold;
  padding: 5px 10px;
  transition: all 0.3s ease;
}

.player1 {
  background-color: rgba(255, 0, 0, 0.8);
}

.player2 {
  background-color: rgba(0, 106, 255, 0.8);
}


.player1.active {
  animation: redGlow 1s infinite alternate;
}

@keyframes redGlow {
  from {
    box-shadow: 0 0 10px red;
  }

  to {
    box-shadow: 0 0 30px red;
  }
}

.player2.active {
  animation: blueGlow 1s infinite alternate;
}

@keyframes blueGlow {
  from {
    box-shadow: 0 0 10px blue;
  }

  to {
    box-shadow: 0 0 30px blue;
  }
}





.card-footer {
  background: #fff;
  padding: .5rem;
  text-align: center;
  border-top: .5px solid #ddd;
  box-shadow: 0px -1px 10px rgba(0, 0, 0, 0.1);
}

.card-footer button {
  display: inline-block;
  margin: .5rem;
  padding: .5rem 1.2rem;
  font-size: 1.3rem;
  color: #fff;
  background: orangered;
  cursor: pointer;
}

.card-footer button:hover {
  opacity: .85;
}

.card .card-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3rem;
  color: orangered;
}


@keyframes shake {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  20% { transform: translate(-10px, 0px) rotate(-2deg); }
  40% { transform: translate(10px, 0px) rotate(2deg); }
  60% { transform: translate(-10px, 0px) rotate(-2deg); }
  80% { transform: translate(10px, 0px) rotate(2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

.shake {
  animation: shake 0.5s;
}















/* MEDIA QUERIES  */


@media screen and (max-width: 480px) {

  .card {
    width: 95%;
    border-radius: 8px;

  }

  #image {
    height: 25px;
  }

  .card-content {
    padding: 10px;
  }

  .part2 {
    height: 350px;
    padding: 0.5rem;
  }

  .letter-box {
    width: 280px;
    height: 280px;
  }

  #imageRevolverCylinder {
  width: 100%;
  height: 100%;
}

  .part4 {
    height: 60px;
    padding: 0.5rem;
  }

  .player {
    gap: 20px;
    margin-top: 10px;
  }

  .player1,
  .player2 {
    font-size: 14px;
    padding: 4px 8px;
  }

  .card-footer button {
    font-size: 1rem;
    padding: 0.4rem 1rem;
    margin: 0.3rem;
  }


}

@media screen and (min-width: 481px) and (max-width: 767px) {
  .card {
    width: 90%;
    border-radius: 10px;
  }

  #image {
    height: 50px;
  }

  .card-content {
    padding: 15px;
  }

  .part2 {
    height: 350px;
    padding: 0.8rem;
  }

  .letter-box {
    width: 280px;
    height: 280px;
  }

    #imageRevolverCylinder {
  width: 100%;
  height: 100%;
}




  .part4 {
    height: 70px;
    padding: 0.8rem;
  }

  .player {
    gap: 30px;
    margin-top: 15px;
  }

  .player1,
  .player2 {
    font-size: 16px;
    padding: 5px 10px;
  }

  .card-footer button {
    font-size: 1.1rem;
    padding: 0.5rem 1.1rem;
    margin: 0.4rem;
  }



}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .card {
    width: 85%;
    border-radius: 12px;
  }

  #image {
    height: 80px;
  }

  .card-content {
    padding: 18px;
  }

  .part2 {
    height: 360px;
    padding: 1rem;
  }

  .letter-box {
    width: 300px;
    height: 300px;
  }

  #imageRevolverCylinder {
  width: 100%;
  height: 100%;
}




  .part4 {
    height: 75px;
    padding: 1rem;
  }

  .player {
    gap: 35px;
    margin-top: 15px;
  }

  .player1,
  .player2 {
    font-size: 17px;
    padding: 6px 12px;
  }

  .card-footer button {
    font-size: 1.2rem;
    padding: 0.6rem 1.3rem;
    margin: 0.5rem;
  }


}

@media screen and (min-width: 1025px) and (max-width: 1440px) {
  .card {
    width: 75%;
    border-radius: 14px;
  }

  #image {
    height: 90px;
  }

  .card-content {
    padding: 20px;
  }

  .part2 {
    height: 365px;
    padding: 1.2rem;
  }

  .letter-box {
    width: 320px;
    height: 320px;
  }

    #imageRevolverCylinder {
  width: 100%;
  height: 100%;
}



  .part4 {
    height: 85px;
    padding: 1rem;
  }

  .player {
    gap: 40px;
    margin-top: 20px;
  }

  .player1,
  .player2 {
    font-size: 18px;
    padding: 8px 14px;
  }

  .card-footer button {
    font-size: 1.3rem;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
  }


}

@media screen and (min-width: 1441px) {
  .card {
    width: 70%;
    border-radius: 16px;
  }

  #image {
    height: 90px;
  }

  .card-content {
    padding: 25px;
  }

  .part2 {
    height: 365px;
    padding: 1.5rem;
  }

  .letter-box {
    width: 330px;
    height: 330px;
  }

      #imageRevolverCylinder {
  width: 100%;
  height: 100%;
}





  .part4 {
    height: 90px;
    padding: 1.2rem;
  }

  .player {
    gap: 50px;
    margin-top: 25px;
  }

  .player1,
  .player2 {
    font-size: 20px;
    padding: 10px 16px;
  }

  .card-footer button {
    font-size: 1.4rem;
    padding: 0.8rem 1.6rem;
    margin: 0.6rem;
  }


}