@import url(./font.css);

/* utils */
.a11y-hidden {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

/* 공통 */
:root {
  --primary: #5b2386;
  --accent: #fcee21;

  --text-yellow: #f5df4d;
  --text-white: #fff;
  --text-grey: #babcbe;
}

* {
  box-sizing: border-box;
  line-height: 1;
}

html {
  font-size: 10px;
}

button {
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
}

body {
  font-family: "GmarketSansMedium", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--text-white);
}

.container {
  background-color: var(--primary);
  min-height: 100vh;
  padding-top: 12rem;
  font-size: min(2.4rem, 2.9vw);

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* header */
.header__img {
  width: 56.4rem;
  aspect-ratio: 564/265;
}

.header__desc {
  font-family: "OTEnjoystoriesBA", serif;
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--text-yellow);
  margin-top: 5.2rem;
}

/* main */
.main {
  margin-top: 8rem;
}

/* main - cont__desc */
.cont__desc {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.cont__desc::before,
.cont__desc::after {
  content: "";
  display: inline-block;
  width: 3.6rem;
  height: 3.2rem;
  background: url(../images/quotes-open.png) no-repeat center / contain;
}

.cont__desc::after {
  background-image: url(../images/quotes-close.png);
}

.cont__text {
  font-size: 1.8rem;
  line-height: 1.6;
}

.cont__text dfn {
  font-family: "GmarketSansBold", sans-serif;
  font-size: 2.4rem;
  font-weight: 500;
}

/* main - form */
.form {
  margin-top: 10rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.form__text {
  word-break: keep-all;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.form__input {
  font-family: "GmarketSansMedium", sans-serif;
  font-size: 2.4rem;
  padding: 1.6rem 2rem;
  border-radius: 0.8rem;
  width: 22.8rem;

  display: flex;
  align-items: center;
  text-align: center;
}

.form__input::placeholder {
  color: var(--text-grey);
}

.form__btn {
  font-family: "GmarketSansBold", sans-serif;
  margin-top: 12rem;
  padding: 2rem 5rem;
  background-color: var(--accent);
  border-radius: 1.2rem;

  flex-basis: content;

  color: var(--primary);
  font-weight: 500;

  position: relative;
}

.form__btn::after {
  content: "";
  display: inline-block;
  width: 6.4rem;
  height: 7.2rem;
  background: url(../images/click.png) no-repeat center / contain;

  position: absolute;
  top: 1.4rem;
  left: calc(100% + 0.7rem);
}

/* main - result */
.result {
  margin-top: 14.2rem;
}

.result__cont {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result__text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.result__text strong {
  font-size: 7.2rem;
  font-weight: 700;
}

.result__btns {
  margin-top: 12rem;

  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.result__btn {
  padding: 2rem 5rem;
  background-color: var(--accent);
  border-radius: 1.2rem;

  font-family: "GmarketSansBold", sans-serif;
  color: var(--primary);
}

.result__btn--white {
  background-color: var(--text-white);
}

/* footer */
.footer {
  margin-top: 12rem;
  margin-bottom: 10.6rem;
}

.logo__img {
  aspect-ratio: 168/36;
}

.footer__copyright {
  margin-top: 2rem;

  font-family: "Noto Sans KR", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

/* modal */
.modal__wrap {
  display: none;

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.modal {
  width: min(80rem, calc(100% - 120px));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background-color: var(--text-white);
  padding: min(8rem, 8vh) 4.5rem;
  border-radius: 2rem;
  box-shadow: 4px 4px 30px 0 rgba(0, 0, 0, 0.15);

  color: var(--primary);
  text-align: center;
}

.modal-show {
  display: block;
}

.modal__text {
  font-family: "OTEnjoystoriesBA", sans-serif;
  font-weight: 500;
}

.modal__text--large {
  font-size: 9.6rem;
}

.modal__text--small {
  font-size: 3.6rem;
}

.modal__img {
  width: 100%;
  height: min(34.2rem, 40vh);
  aspect-ratio: 438/342;
  object-fit: contain;

  margin-top: min(4rem, 2vh);
}

.modal__btn {
  margin-top: min(6rem, 3vh);
  padding: 2rem 4.8rem;
  background-color: var(--accent);
  border-radius: 1.2rem;
  box-shadow: 2px 4px 10px 0 rgba(0, 0, 0, 0.15);

  font-family: "GmarketSansBold", serif;
  font-weight: 500;
  color: var(--primary);
}
