/**
 * CSS Reset & Normalize
 * ClassGame 프로젝트 기본 리셋 스타일
 */

/* ============================================
   기본 리셋
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-behavior: smooth;
}

body,
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
}

body {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* ============================================
   제목 & 텍스트
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

p {
  margin: 0;
}

/* ============================================
   링크
   ============================================ */
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
}

/* ============================================
   리스트
   ============================================ */
ol,
ul {
  list-style: none;
}

/* ============================================
   테이블
   ============================================ */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  padding: 0;
  text-align: left;
}

/* ============================================
   폼 요소
   ============================================ */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
  background-color: transparent;
  border: none;
  -webkit-appearance: button;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
  cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

textarea {
  overflow: auto;
  vertical-align: top;
  resize: vertical;
}

/* ============================================
   기타 요소
   ============================================ */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

svg {
  height: auto;
}

progress {
  vertical-align: baseline;
}

summary {
  display: list-item;
  cursor: pointer;
}

template {
  display: none;
}

/* ============================================
   숨겨진 요소
   ============================================ */
[hidden] {
  display: none !important;
}

/* ============================================
   Print 스타일
   ============================================ */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
