body {
  font-family: 'Orbitron', sans-serif;
  background-image: url('images/halloween.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.game-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 60px;
  color: #490701;
  text-align: center;
  margin-top: 50px;
  width: 100%;
}

#rps_buttons {
  background-color: transparent;
  border-radius: 0;
  padding: 0; 
  box-shadow: none;
  
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: auto; 
  margin-top: 100px;
  flex-wrap: wrap;
}

.rps_btn {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 


  width: 220px;
  height: 220px;
  background-size: 85%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  
  display: block; 
  border: none; 
}

.rps_btn:hover {
  transform: rotateY(180deg); 
  transition: transform 1.2s;
  box-shadow: 0 0 18px rgba(73, 7, 1, 0.6); 
 }

.btn_cat {
  background-image: url('images/cat.png');
}
.btn_dog {
  background-image: url('images/dog.png');
}
.btn_mouse {
  background-image: url('images/mouse.png');
}

#rps_result {
  display: flex;
  flex-direction: row; 
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 60px;
  color: #490701;
  min-width: 600px; 
  flex-wrap: wrap; 
}

.choice-img {
  width: 180px; 
  height: auto;
  margin: 15px;
  background-color: transparent !important; 
  border: none !important; 
}

#rps_result > div:not(:has(img)) {
    width: 100%;
    margin: 5px 0;
}
#rps_result > div:has(img) {
    display: flex;
    justify-content: center;
    align-items: center;
}
#rps_result > div:nth-child(2) {
    align-self: flex-start; 
    margin: 50px 20px 0;
    font-size: 30px;
    font-weight: bold;
    color: #8b0000;
}


#main_controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

#rules_btn,
#reset_btn,
#rps_result button {
  background-color: #fff0f5;
  color: #490701;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 18px;
  transition: all 0.3s;
}

#rules_btn:hover,
#reset_btn:hover,
#rps_result button:hover {
  background-color: #ff4081;
  color: white;
}

@media (max-width: 768px) {
  .game-title {
    font-size: 42px;
    margin-top: 30px;
  }

  #rps_buttons {
    gap: 30px;
    margin-top: 60px;
  }

  .rps_btn {
    width: 160px;
    height: 160px;
    padding: 10px;
  }

  .choice-img {
    width: 120px;
  }

  #rps_result {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 40px;
  }
}