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

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


a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    outline: none;
    background-color: inherit;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

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

.main {
  display: flex;
  flex: 1 1 auto;
  position: relative;
  overflow-y: hidden;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 0 0 auto;
  padding: .5rem 1rem;
  font-size: .75rem;
  text-align: right;
  background-color: white;
  border-top: 1px solid var(--borderColor);
}

.footer a {
  opacity: .5;
}

.footer a:hover {
  opacity: 1;
}

.section {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-y: hidden;
}

.container.questions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 5;
}

.question {
    display: flex;
    align-items: baseline;
}

.question .type {
    width: calc(100% / 12 * 2);
    font-size: 1.5rem;
    font-weight: 700;
    color: #aaa;
    text-align: right;
    padding-right: 2rem;
}

.question .hint {
    width: calc(100% / 12 * 4);
    font-size: 2.5rem;
    font-weight: 700;
}

.question .answer {
    width: calc(100% / 12 * 6);
    display: flex;
    gap: 1rem;
}

.container.chips {
    height: 100%;
    flex: 0;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--backgroundColor2);
}

.grid.chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    place-items: center;
    align-content: start;
    width: max-content;
    height: auto;
    -ms-touch-action: none;
    touch-action: none;
    user-select: none;
}

.chip {
    font-family: "Ahn Sangsoo", sans-serif;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 0.5;
    font-weight: 700;
    font-size: 3.5rem;
    vertical-align: middle;
    border: 1px solid black;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    touch-action: none;
}

.chip.ja {
    width: 50px;
    height: 50px;
    padding-top: 1rem;
}

.chip.verMo {
    width: 25px;
    height: 75px;
    padding-top: 1rem;
}

.chip.horMo {
    width: 50px;
    height: 25px;
}

.chip:hover {
    cursor: grab;
}

.chip.dragging {
    opacity: 0.6;
    pointer-events: none;
    z-index: 1000;
    touch-action: none;
    user-select: none;
    cursor: grabbing;
}

.grid {
    display: grid;
    border-collapse: collapse;
    width: 100px;
    height: 125px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 1px;
    grid-row-gap: 1px;
}

.cell {
    font-family: "Ahn Sangsoo", sans-serif;
    border: 1px dotted red;
    border-collapse: collapse;
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cell.hovered {
    background-color: red;
    opacity: 0.5;
}

.cell-0 {
    grid-area: 1 / 1 / 3 / 3;
    padding-top: 1rem;
}

.cell-1 {
    grid-area: 1 / 3 / 4 / 4;
    padding-top: 1rem;
}

.cell-2 {
    grid-area: 1 / 4 / 4 / 5;
    padding-top: 1rem;
}

.cell-3 {
    grid-area: 3 / 1 / 4 / 3;
}

.cell-4 {
    grid-area: 4 / 3 / 6 / 5;
    padding-top: 1rem;
}

.grid[data-type="6"] .cell-4 {
    grid-area: 4 / 1 / 6 / 3;
}

@media screen and (max-width: 600px) {
    .main {
        font-size: 1rem;
    }
}

@font-face {
  font-family: Logo;
  src: url('../fonts/logo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-family: Logo;
  font-size: 1rem;
}

.logo span:last-child {
  display: none;
}

@media screen and (max-width: 899px) {
  .logo span:first-child {
    display: none;
  }
  .logo span:last-child {
    display: inline-block;
  }
}