* {
  box-sizing: border-box;
  font-family: monospace;
}


body {
  background: #f4a6a6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.window {
  width: min(240px, 92vw);
  max-width: 100vw;
  border: 4px solid #d87a7a;
  background: #ffdede;
  box-shadow: 4px 4px #b95e5e;
  border-radius: 10px;
  overflow: hidden;
  font-size: clamp(10px, 2.5vw, 14px);
}

.scale {
    transform: scale(1.5);
    max-height: 100vh;
  }

.title-bar {
  background: #f1a1a1;
  border-bottom: 4px solid #d87a7a;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.content {
  padding: 10px;
  background:
    repeating-linear-gradient(
      45deg,
      #ffdede,
      #ffdede 4px,
      #f7bcbc 4px,
      #f7bcbc 8px
    );
  text-align: center;
  border-radius: 6px;
}

.hearts {
  color: #b44444;
  font-size: 12px;
  margin-bottom: 6px;
}

.question {
  font-size: 9px;
  margin: 6px 0 8px;
}

.pixel-art {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;     /* enough vertical room for animation */
  margin: 12px 0;
}


.main-gif {
  width: 180px;
  height: auto;
  display: block;
  transform: translateX(-12px);
}



.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

button {
  font-size: 9px;
  padding: 4px 10px;
  border: 3px solid #d87a7a;
  background: #ffdede;
  cursor: pointer;
  border-radius: 8px;
}

button:hover {
  background: #fff;
}

#noBtn {
  transition: transform 0.2s ease;
}

/* ENTRY SCREEN */
#letter-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

#letter {
  width: 80px;   /* base size */
  height: auto;
  cursor: pointer;
  animation: pulse 1.5s infinite ease-in-out;
  display: block;
  margin: 0 auto;
}


/* envelope flap */
#letter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 50%, #d87a7a 50%),
    linear-gradient(225deg, transparent 50%, #d87a7a 50%);
  background-size: 50% 100%;
  background-position: left, right;
  background-repeat: no-repeat;
}


.hint {
  margin-top: 10px;
  font-size: 10px;
  color: #b44444;
  text-align: center;
}


/* APP VISIBILITY */
.hidden {
  display: none;
}

/* PULSE */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.hearts {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 24px;
  justify-content: space-between;
  gap: 8px;
}



.pixel-heart {
  width: 24px;          /* base size */
  height: 24px;
  background-image: url("Assets/Heart.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* small gif above the question */
.yes-gif-top {
  max-width: 40%;     /* smaller */
  height: auto;
  margin: 4px auto;
}

/* main gif below the question */
.yes-gif-main {
  max-width: 90%;     /* bigger */
  height: auto;
  margin: 6px auto;
}

.question,
.yes-sub {
  font-family: "Pacifico", cursive;
}

@media (max-width: 600px) {
  .scale {
    transform: scale(1.5);
    width: 100%;
  }
  .window {
  width: min(240px, 92vw);
  max-width: 100%;
  border: 4px solid #d87a7a;
  background: #ffdede;
  box-shadow: 4px 4px #b95e5e;
  border-radius: 10px;
  overflow: hidden;
  font-size: clamp(10px, 2.5vw, 14px);
}
}
