@font-face {
  font-family: "SpoqaHanSansNeo";
  font-weight: 700;
  src: url("public/fonts/SpoqaHanSansNeo-Bold.ttf") format("truetype");
  font-display: fallback;
}

@font-face {
  font-family: "SpoqaHanSansNeo";
  font-weight: 400;
  src: url("public/fonts/SpoqaHanSansNeo-Regular.ttf") format("truetype");
  font-display: fallback;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
  font-family: "SpoqaHanSansNeo", "sans-serif";
}
*,
:after,
:before {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
a {
  text-decoration: none;
}
input:focus {
  outline: none;
}

:root {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  cursor: default;
  line-height: 1.5;

  --white: #ffffff;
  --black: #000000;
  --gray: #f2f2f2;
  --silver: #bebebe;
  --whiteSmoke: #eeeeee;
}
h1 {
  font-size: 1.5em;
  font-weight: 700;
  white-space: nowrap;
}

.background {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--whiteSmoke);
  padding: 40px 80px;
  overflow: auto;
  position: relative;
  z-index: 1;
}

.qrcode-wrapper {
  display: flex;
  align-items: center;
  margin-top: 60px;

  label {
    margin-right: 20px;
    white-space: nowrap;
  }
}

.hidden {
  width: 420px;
  text-align: center;
  border: 0;
  border-bottom: 1px solid var(--silver);
  caret-color: transparent;
  background-color: transparent;
  font-size: 1.2em;
}

.hidden:focus {
  outline: none;
}

.container {
  max-width: 1400px;
  padding: 40px 80px;
  margin-top: 20px;
  border-radius: 20px;
  background: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 1.2em;
  align-items: center;
  max-height: 724px;
}

.area-wrapper {
  width: 100%;
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 32px;
}

#ticket-data {
  width: 800px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  margin-top: 28px;

  > div {
    padding-right: 20px;
  }

  > div > div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
  }

  .red {
    color: red;
  }

  .blue {
    color: blue;
  }

  .bold {
    font-weight: 700;
  }

  .no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
}

.enter-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  width: 100%;
}

.enter {
  border: 1px solid var(--silver);
  border-radius: 8px;
  width: 320px;
  height: 48px;

  &:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
}

#modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  > div {
    position: absolute;
    width: 320px;
    height: 200px;
    background: var(--white);
    border: 1px solid var(--silver);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.modal_show {
  z-index: 2;
  animation: fadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.modal_hidden {
  animation: fadeOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeIn {
  0% {
    background: transparent;
  }
  100% {
    background: rgba(0, 0, 0, 0.3);
  }
}

@keyframes fadeOut {
  0% {
    background: rgba(0, 0, 0, 0.3);
  }
  100% {
    background: transparent;
  }
}
