* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #000;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.app {
  background: url(./images/bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.qt {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60%;
  position: relative;
}

.answer {
  width: 50%;
  height: 16%;
  position: absolute;
  bottom: 13%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 3rem;
  border: none;
  outline: none;
  gap: 20px;
}

.answer img {
  width: 40%;
}

.answer img:hover {
  opacity: 0.4;
  cursor: pointer;
}

input::placeholder {
  color: #8aa482;
  font-weight: bold;
}

.btn {
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@keyframes scaleAnimation {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.toast {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 3rem;
  z-index: 9999;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

/* .btn a img {
  animation: scaleAnimation 1.5s infinite ease-in-out;
} */

.qt-mb {
  display: none;
}

@media screen and (max-width: 768px) {
  .app {
    background: url(./images/bg-mb.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
  }

  .qt {
    display: none;
  }

  .content {
    width: 90%;
  }

  .qt-mb {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .qt-mb img {
    height: 45vh;
  }

  .answer {
    bottom: 20%;
    display: grid;
    grid-template-columns: repeat(2, 126px);
    grid-template-rows: repeat(2, 52px);
    gap: 20px 5px;
    place-content: center;
  }

  .answer img {
    width: 100%;
    height: 100px;
    object-fit: contain;
  }

  .input {
    font-size: 1.2rem;
  }

  .toast {
    font-size: 1.5rem;
  }

  .btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 90%;
  }
}
