body {
  font-family: 'Dancing Script', cursive;
  background: linear-gradient(rgba(243,182,196,0.5), rgba(243,182,196,0.5)),
              url('360_F_1029971297_pyEjXeWSTUDuQMI3O2kl4okYSbiWqcA5.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  overflow-x: hidden;
  padding: 20px;
}
#gameContainer {
  margin: 500px auto 0 auto; /* 100px from top, auto left/right centers it */
  text-align: center;        /* center text and images inside */
  max-width: 800px;          /* optional: keeps the game area from stretching too wide */
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background: rgba(255, 240, 245, 0.8);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
h1 {
  font-size: 4rem;
  color: #E75480;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Welcome Overlay */
#welcomeOverlay {
  position: fixed;
  inset: 0;
  background: rgba(255,182,193,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#welcomeBox {
  background: #fff0f5;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 300px;
}

#welcomeBox input {
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #E75480;
  margin-bottom: 10px;
}

#welcomeBox button {
  background: #E75480;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
}

h2 {
  font-size: 3rem;
  color: #6f1d46;
}

/* Hearts */
#userHearts { color: #E75480; font-size: 1.5rem; }
#computerHearts { color: #6f1d46; font-size: 1.5rem; }

/* Choice images */
.choice-img {
  width: 120px;
  margin-top: 10px;
}

/* Clickable images */
.play-choice {
  width: 120px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-choice:hover {
  transform: scale(1.1);
}

/* Off canvas */
.how-panel {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  background: #E75480;
  color: white;
  border-radius: 0 10px 10px 0;
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1050;
}

.how-panel.open {
  width: 320px;
}

.handle {
  writing-mode: vertical-rl;
  background: none;
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
}

.content {
  background: #fff0f5;
  color: #6f1d46;
  padding: 15px;
  display: none;
  width: 270px;
}

.how-panel.open .content {
  display: block;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  float: right;
  color: #6f1d46;
}
.how-panel .inner img,
.how-panel img {
  width: 100%;
  max-width: 220px;   /* ← controls how small it gets */
  height: auto;
  margin: 10px auto;
  display: block;
}
.how-panel .inner p {
  font-size: 1.1rem;
  line-height: 1.4;
}
.how-panel .inner h3 {
  margin-top: 15px;
  margin-bottom: 5px;
}   
.how-panel img {
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(231, 84, 128, 0.3);
}
/* Result display */
#resultDisplay {
  font-size: 2rem;
  color: #6f1d46;                   
    margin-top: 20px;
    min-height: 60px;


    font-weight: bold;

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);

}