:root {
    --textColor: black;
    --backgroundColor: whitesmoke;
    --backgroundColor2: whitesmoke;
    --borderColor: gainsboro;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--backgroundColor);
    box-sizing: border-box;
    font-family: "Pretendard Variable", Pretendard, sans-serif;
}

#app {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  position: relative;
  overflow-y: hidden;
}

.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5rem;
}

.section.main {
  opacity: 1;
  transition: opacity 1s ease;
  overflow-y: auto;
}

.section.main.result {
  justify-content: center;
  gap: 0rem;
}

.section.main.fade-out {
  opacity: 0;
}

.section.main.fade-in {
  opacity: 1;
}

.container.info {
  max-width: 75%;
}

.content {
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  word-break: keep-all;
  white-space: pre-line;
  text-align: center;
  line-height: 1.4;
}

.container.buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.container.result:not(.buttons) {
  position: relative;
  display: flex;
  flex-direction: column;
  /* max-width: 80%; */
  width: 80%;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
  gap: .75rem;
  padding-top: 1.5rem;
}

.container.result.scrolled {
  justify-content: flex-start;
  height: auto;
  overflow-y: auto;
}

.container.result.scrolled::-webkit-scrollbar {
  display: none;
}

.container.result .content {
  text-align: center;
  font-size: clamp(1rem, 3vw, 2rem);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.container.result .content.visible {
  opacity: 1;
  transform: translateY(0);
}

.container.buttons.result {
  display: flex;
  flex-direction: row;
  padding-top: 1rem;
  padding-bottom: 1rem;
  width: 100%;
  background-color: transparent;
}

.container.buttons.result .button {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.container.buttons.result .button.visible {
  opacity: 1;
  transform: translateY(0);
}

.input {
  border: none;
  outline: none;
  border-bottom: 4px solid #888;
  background-color: transparent;
  width: calc(clamp(200px, 30vw, 400px) - clamp(1rem, 2vw, 2rem) * 2);
  padding-bottom: 0.25rem;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 2rem);
  text-align: center;
  border-radius: 0;
}

.input:focus {
  border-bottom: 4px solid black;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(200px, 30vw, 400px);
  height: clamp(50px, 8vw, 75px);
  background-color: whitesmoke;
  color: black;
  border: 3px solid black;
  border-radius: 3em;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 2rem);
  transition: opacity 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background-color: black;
    color: whitesmoke;
  }
}

.button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.list.buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}

.progress-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: transparent;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: black;
  transition: width 0.3s ease;
}

@media screen and (max-width: 600px) {
  .section {
    gap: 2rem;
  }

  .container.result {
    max-width: 90%;
  }

  .container.buttons {
    gap: 0.75rem;
  }

  .container.result:not(.buttons) {
    padding-top: 1rem;
  }

  .container.buttons.result {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media screen and (max-height: 600px) {
  .section {
    gap: 1.5rem;
  }
  
  .content {
    font-size: 1.5rem;
  }
  
  .button {
    width: 200px;
    height: 50px;
  }
}

@media print {
  body {
    background-color: white;
  }
  .container.result .content {
    font-size: 1rem;
  }
  .section.main.result {
  justify-content: center;
  }
  .container.buttons.result {
    display: none;
  }
  .noprint {
    display: none;
  }
  .footer {
    display: none;
  }
}