@import url("https://webfontworld.github.io/gmarket/GmarketSans.css");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fdf5ea;
  animation: movebgc infinite 20s alternate;
  font-family: "GmarketSans";
  color: #222;
}

@keyframes movebgc {
  0% {
    background-color: #fdf5ea;
  }
  20% {
    background-color: #f7ebd9;
  }
  40% {
    background-color: #fff0da;
  }
  60% {
    background-color: #fbead1;
  }
  80% {
    background-color: #ffebcf;
  }
  100% {
    background-color: #ffeacd;
  }
}

button:hover {
  scale: 1.02;
}

button:active {
  scale: 1;
}
#container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background-color: #fdf5ea;
  padding: 20px 0;
}
h1 {
  text-align: center;
  line-height: 70px;
  font-size: 50px;
  margin-bottom: 20px;
}
header nav a {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  padding: 30px 0;
  text-decoration: none;
  display: flex;
  justify-content: center;
  color: #222;
}
main {
  width: 100%;
  max-width: 500px;
  height: 95vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#main-page p {
  text-align: center;
}
#main-page img {
  width: 85%;
  border-radius: 5px;
  margin: 30px auto 20px;
  display: block;
}
#start-btn {
  margin: 30px auto 0;
  width: 85%;
  display: block;
  border: none;
  padding: 20px 5px;
  font-size: 20px;
  text-align: center;
  color: #fff;
  background-color: #222;
  border-radius: 5px;
  cursor: pointer;
}
.hash-tags {
  display: flex;
  justify-content: space-between;
  margin: 20px auto 0;
  width: 85%;
  padding-bottom: 20px;
}
.hash-tags span {
  font-size: 12px;
  border: 1px solid #999;
  color: #999;
  border-radius: 10px;
  padding: 2px 4px;
}
#count-text {
  font-weight: 300;
  color: #666;
  font-size: 13px;
  margin-top: 20px;
}
#count-text__number {
  color: #dc143c;
  font-weight: 500;
  font-size: 14px;
}

/* 문제 페이지*/
.quiz-page {
  text-align: center;
  position: relative;
}
#user-score {
  position: absolute;
  top: 0;
  right: 15px;
}
#progress-bar {
  width: 85%;
  height: 27px;
  margin: 30px auto 20px;
  background-color: #dcdcdc;
  border-radius: 5px;
}
#progress {
  width: 0%;
  height: 27px;
  border-radius: 5px;
  background-color: #dc143c;
  transition: all 0.3s;
}
.hint {
  background-color: crimson;
  color: #fff;
  padding: 5px 9px;
  border-radius: 5px;
  display: inline-block;
  position: absolute;
  left: 37px;
  top: -32px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.shake {
  animation: hintanimation 0.5s ease-in-out;
}
@keyframes hintanimation {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
}
.quiz-page img {
  width: 85%;
  border-radius: 5px;
  margin: 0 auto 20px;
  display: block;
}
.quiz-page label {
  font-size: 18px;
}
.quiz-page input {
  padding: 5px;
  width: 85%;
  height: 46px;
  font-size: 22px;
  border: 1px solid #222;
  border-radius: 5px;
  background-color: transparent;
  text-align: center;
}
.quiz-page button {
  font-size: 18px;
  padding: 4px 15px;
  border: none;
  background-color: #222;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  width: 20%;
  height: 53px;
  margin-top: 17px;
}
.hint-modal {
  width: 85%;
  height: 100px;
  position: absolute;
  top: -33px;
  left: -1px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 3px 3px 10px #333;
}
.hint-modal p {
  margin-bottom: 35px;
  margin-top: 12px;
}
.hint-modal .okay,
.hint-modal .nope {
  color: #fff;
  background-color: #222;
  padding: 5px 10px;
  margin: 0 10px;
  cursor: pointer;
}
.hint-modal__hint-text {
  margin-top: 40px !important;
  font-size: 23px;
}

/* 로딩페이지 */
#loading-img {
  width: 85%;
  border-radius: 5px;
  margin: 0 auto;
  display: block;
}
#loading-page h2 {
  margin: 30px auto;
  text-align: center;
}

/* 결과페이지 */
#result-page {
  text-align: center;
  width: 85%;
  margin: 0 auto;
}

#result-score {
  font-size: 70px;
  color: crimson;
}

#result-img {
  border-radius: 10px;
  margin: 30px 0;
  width: 95%;
}

#result-text {
  font-size: 18px;
}

#share-link {
  margin: 30px auto 0;
  width: 100%;
  display: block;
  border: none;
  padding: 20px 5px;
  font-size: 20px;
  text-align: center;
  color: #fff;
  background-color: #222;
  border-radius: 5px;
  cursor: pointer;
}

#restart {
  margin: 30px auto 0;
  width: 100%;
  display: block;
  border: none;
  padding: 20px 5px;
  font-size: 20px;
  text-align: center;
  background-color: #fff;
  color: #222;
  border: 1px solid #222;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}

@media screen and (max-width: 460px) {
  .hash-tags span {
    font-size: 2.3vw;
  }
  .hint {
    font-size: 4vw;
  }
  .quiz-page button {
    font-size: 5vw;
  }
  .hint-modal p {
    margin-bottom: 20px;
    font-size: 14px;
  }
}
@media screen and (max-width: 232px) {
  .hint-modal p {
    margin-bottom: 5px;
  }
}
