@import "./fonts.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  height: 100svh;
  align-items: center;
  justify-content: center;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background-color: hsla(0, 0%, 0%, 0.3);
}

.quiz-modal[hidden] {
  display: none;
}

.quiz-modal-container {
  display: flex;
  min-height: 100%;
}

@media (min-width: 768px) {
  .quiz-modal-container {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
}

.quiz-modal-panel {
  display: flex;
  width: 100%;
  overflow: hidden;
}

/**
 * TODO: check min-height, we should probably go with 635px at most
 */
@media (min-width: 768px) {
  .quiz-modal-panel {
    max-width: 360px;
    min-height: 660px;
    border-radius: 16px;
  }
}

.quiz-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000000;
  border-radius: 16px;
  width: 340px;
  padding: 24px;
}

.quiz-teaser h3 {
  font-family: "SamsungSharpSans";
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 30px;
  text-align: center;
  color: #ffffff;
}

.quiz-teaser .field {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-teaser .field:first-of-type {
  margin-top: 10px;
}

.quiz-teaser .field label {
  width: 55px;
  flex-shrink: 0;
  font-family: "SamsungOne";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: #ffffff;
}

.quiz-teaser .field input {
  flex: 1;
  padding: 4px;
  background-color: #000000;
  appearance: none;
  border: none;
  font-family: "SamsungOne";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 16px;
  color: #ffffff;
}

.quiz-teaser .field input:focus {
  background: #374151;
  outline: none;
}

.quiz-teaser button {
  margin-top: 12px;
  height: 40px;
  padding: 11px 24px;
  background: #ffffff;
  border: none;
  border-radius: 9999px;
  font-family: "SamsungOne";
  font-weight: 700;
  font-size: 14px;
  line-height: 19px;
  color: #000000;
  cursor: pointer;
}
