@import url("https://fonts.googleapis.com/css2?family=Indie+Flower&family=Merienda:wght@300..900&display=swap");

*,
*:before,
*:after {
  box-sizing: border-box;
  user-select: none;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-family: "Indie Flower", monospace;
  background-color: #d52e2e;
  background-image: url("https://www.svgeez.com/content/1-projects/13-valentine-hearts-svg-background/valentine-hearts-background-pattern-svg.jpg");
  background-size: cover;
  background-repeat: repeat;
  background-size: 250px 250px;
  scroll-behavior: smooth;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  max-width: 80%;
  padding: 10px 20px;
  border-radius: 15px;
  font-family: "Merienda", cursive;
  color: #fff;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.384);
  filter: drop-shadow(0 0 0.5rem rgb(0, 0, 0));
  font-size: 30px;
}

#paper {
  width: 85vw;
  max-width: 600px;
  min-height: 20vh;
  position: relative;
  padding-top: 50px;
  padding-bottom: 12px;
  background-color: white;
  background-image: repeating-linear-gradient(white 0px, white 34px, teal 35px);
  box-shadow: 0px 8px 5px 5px #0000007e;

  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;

  &:before {
    content: "";
    width: 2px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 40px;
    background-color: rgba(255, 0, 0, 0.836);
  }
}

#letter {
  padding-top: 30px;
  padding-left: 55px;
  padding-right: 16px;
  line-height: 35px;
  letter-spacing: 1px;
  word-spacing: 5px;
  font-size: 24px;
  font-weight: bold;

  .answer {
    font-size: 30px;
    display: flex;
    width: fit-content;
    margin-top: 20px;
    padding: 0 4px;
    border-top-left-radius: 225px 20px;
    border-top-right-radius: 22px 218px;
    border-bottom-right-radius: 225px 15px;
    border-bottom-left-radius: 15px 255px;
  }

  .answer.si {
    background: rgba(114, 226, 9, 0.4);
  }

  .answer.no {
    background: rgba(226, 9, 9, 0.4);
  }

  .sendAnswer {
    display: flex;
    width: fit-content;
    margin-top: 25px;
    flex-grow: 1;
    padding: 6px 18px;
    margin: 26px 6px 6px 0;
    background: transparent;
    font-family: "Indie Flower", monospace;
    font-size: 20px;
    font-weight: bold;
    background: #000;
    color: #ffffff;
    border: 3px solid #000000;
    border-top-left-radius: 255px 15px;
    border-top-right-radius: 15px 255px;
    border-bottom-right-radius: 125px 15px;
    border-bottom-left-radius: 5px 255px;
    cursor: pointer;
  }
}

#options {
  display: flex;
  flex-wrap: wrap;
  padding: 15px 15px 0 55px;
  margin-top: 20px;

  button {
    flex-grow: 1;
    padding: 6px 8px;
    margin: 0 6px 6px 0;
    background: transparent;
    font-family: "Indie Flower", monospace;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    border: 3px solid #000000;
    border-top-left-radius: 255px 15px;
    border-top-right-radius: 15px 255px;
    border-bottom-right-radius: 125px 15px;
    border-bottom-left-radius: 5px 255px;
    cursor: pointer;
  }
}

@media screen and (max-width: 720px) {
  .title {
    font-size: 20px;
  }
  #paper {
    background-image: repeating-linear-gradient(white 0px, white 24px, teal 25px);
    box-shadow: 0px 8px 5px 5px #0000007e;

    &:before {
      left: 28px;
    }
  }
  #letter {
    line-height: 25px;
    font-size: 15px;
    padding-top: 8px;
    padding-left: 40px;
    padding-right: 20px;
  }

  #options {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 15px 0 55px;
    margin-top: 5px;

    /* button {
      font-size: 16px;
      font-weight: bold;
      color: #000000;
      border: 2px solid #000000;
    } */
  }
}
