* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffe6e9;
  font-family: "Quicksand", sans-serif;
  padding: 1.5rem;
  min-height: 100dvh;
}


.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}


.question-container {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  transition: opacity 0.3s ease;
}

.local-gif {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 2rem auto;
  pointer-events: none;
}

.question {
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  margin-bottom: 2rem;
  line-height: 1.3;
}


.button-container {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  width: 100%;
  position: relative;
}

.btn {
  position: relative;

  border: none;
  border-radius: 50px;
  padding: clamp(8px, 2vw, 12px) clamp(18px, 4vw, 28px);
  font-family: "Poppins", sans-serif;
  font-size: clamp(14px, 3.5vw, 18px);
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ff6b81;
  color: white;
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(255, 107, 129, 0.5);
  white-space: nowrap;
}

.btn:hover {
  background-color: #ffa4b1;
  transform: scale(1.1);
  box-shadow: 0px 6px 20px rgba(255, 107, 129, 0.7);
  text-shadow: 1px 1px 5px rgba(255, 182, 193, 0.8);
}


.yes-btn {
  right: auto;
}

.no-btn {
  left: auto;
}


.result-container {
  display: none;
  /* position: relative; */
  top: auto;
  left: auto;
  transform: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
  text-align: center;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}

.result-container.visible {
  display: flex;
}

.gif-result {
  border-radius: 12px;
  margin-bottom: 2rem;
  max-width: 100%;
  width: 260px;
}

.result-container h2 {
  font-size: clamp(1.6rem, 5.5vw, 3.2rem);
  text-align: center;
  line-height: 1.3;
}


.cssload-main {
  display: none;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 2rem auto;
  text-align: center;
}

.cssload-main {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 3rem 0;
  position: relative;
}

.cssload-heart {
  position: relative;
  width: 1em;
  height: 1em;
  font-size: 62px;
  margin: 0 auto;
}

.cssload-heartL {
  width: 1em;
  height: 1em;
  border: 1px solid #ff0000;
  background-color: #ff0000;
  position: absolute;
  display: block;
  border-radius: 100%;
  animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
  transform: translate(-28px, -27px);
}

.cssload-heartR {
  width: 1em;
  height: 1em;
  border: 1px solid #ff0000;
  background-color: #ff0000;
  position: absolute;
  display: block;
  border-radius: 100%;
  transform: translate(28px, -27px);
  animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}

.cssload-square {
  width: 1em;
  height: 1em;
  border: 1px solid #ff0000;
  background-color: #ff0000;
  position: relative;
  display: block;
  transform: scale(1) rotate(-45deg);
  animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}

.cssload-shadow {
  position: relative;
  top: auto;
  left: auto;
  margin: 8px auto 0 auto;
  width: 1em;
  height: 0.24em;
  font-size: 62px;
  background-color: rgb(215, 215, 215);
  border: 1px solid rgb(215, 215, 215);
  border-radius: 50%;
  animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}




@media (max-width: 360px) {
  body {
    padding: 1rem;
  }

  .local-gif,
  .gif-result {
    max-width: 200px;
    width: 200px;
  }

  .button-container {
    gap: 0.8rem;
  }
}


@media (min-width: 768px) {

  .local-gif,
  .gif-result {
    max-width: 300px;
    width: 300px;
  }

  .btn {
    padding: 12px 32px;
  }

  .button-container {
    gap: 2rem;
  }
}


@media (min-width: 1024px) {
  .question {
    font-size: 3.5rem;
  }

  .result-container h2 {
    font-size: 3.2rem;
  }
}


@keyframes cssload-square {
  50% {
    border-radius: 100%;
    transform: scale(0.5) rotate(-45deg);
  }

  100% {
    transform: scale(1) rotate(-45deg);
  }
}

@keyframes cssload-heart {
  50% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(720deg);
  }
}

@keyframes cssload-heartL {
  60% {
    transform: scale(0.4) translate(-28px, -27px);
  }
}

@keyframes cssload-heartR {
  40% {
    transform: scale(0.4) translate(28px, -27px);
  }
}

@keyframes cssload-shadow {
  50% {
    transform: scale(0.5);
    border-color: rgb(228, 228, 228);
  }
}