@font-face {
  font-family: "Miraero";
  src: url("/assets/fonts/MiraeroNormal.ttf") format("truetype");
}

:root {
  --background-color: #1b1b1b;
  --shadow-color: #111111;
  --z-index: 9;
  /* --transition: all 2s ease-in-out; */
  /* --transition-fast: none; */
  --transition-fast: all 0.5s ease-in-out;
  --transition-slow: all 2s ease-in-out;  
  /* --transition-slow: none;   */
  --body-font-size: clamp(13px, 1.5vw, 100px);
  --font-small: calc(var(--body-font-size) * 0.8);
  --font-medium: calc(var(--body-font-size) * 1.2);
  --font-large: calc(var(--body-font-size) * 1.5);
  --padding: 10px;
  --padding-half: calc(var(--padding) / 2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-decoration: none;
  -moz-osx-font-smoothing: grayscale;
  -ms-overflow-style: none;
  scrollbar-width: none;
  text-decoration: none;
  box-sizing: border-box;
  scrollbar-width: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: "Miraero";
  font-size: var(--body-font-size);
  /* letter-spacing: 0.04em; */
  /* font-weight: 500; */
  list-style: none;
  color: white;
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  display: none;
}

a[href^="mailto:"],
a[x-apple-data-detectors] {
  text-decoration: none !important;
  color: inherit !important;
}

a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--background-color);
  /* font-family: "Miraero" serif !important; */
}

.logo{
  width: 250px;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  z-index: var(--z-index);
  /* box-shadow:  2px 2px 10px var(--shadow-color);  */
}

.logo svg{
  animation: bright 5s linear infinite;
}

.logo svg:hover{
  filter: drop-shadow(0px 0px 8px white);
  transform: scale(1.1);
  transition: var(--transition-fast);
  cursor: pointer;
  /* box-shadow: 2px 2px 10px var(--shadow-color); */
}


#loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
  /* visibility: hidden; */
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}


@keyframes bright {
  0% {
    filter: drop-shadow(0px 0px 10px white);
  }
  50% {
    filter: drop-shadow(0px 0px 1px white);
  }
  100% {
    filter: drop-shadow(0px 0px 10px white);
  }
}


.mascot-container {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mascot-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: grab;
  opacity: 0;
  /* animation: fadeIn 1s ease forwards; */
  /* transition: var(--transition-slow); */
  background: blue;
}

#mascot-canvas {
  display: block;
}

/* .mascot-canvas-cover{
  position: absolute;
  width: 100%;
  height: 100%;
} */

canvas {
  display: block;
}

.mascot {
  /* font-size: var(--body-font-size); */
  /* transition: var(--transition-slow); */
  transform-origin: center center;  /* 중앙을 기준으로 작아지게 설정 */
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  /* position: absolute; */
  flex-direction: column;  
  will-change: all;
  /* transform: translate3d(0, 0, 0); */
}

.mascot-gradient {
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  flex-direction: column;
  background: white;
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 70%);
  /* mask-image: radial-gradient(circle, black 20%, transparent 70%); */
}

.mascot img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  /* backdrop-filter: blur(20px); */ 
  background-position: center;
  background-size: cover;
  position: absolute;
}

.mascot .mascot-svg {
  position: absolute;
  width: 100%;
  fill: white;
  /* opacity: 1; */
  z-index: var(--z-index);
  /* font-size: var(--font-small); */
}

.mascot:hover img {
  transform: scale(1.1);
  transition: var(--transition-fast);
  /* box-shadow: 2px 2px 10px var(--shadow-color); */
}

.mascot:hover .mascot-svg {
  transform: scale(1.05);
  transition: var(--transition-fast);
  /* opacity: 1 !important; */
  /* display: block; */
}

.menu-summary{
  display: grid;
  grid-template-columns: 1fr;
  /* padding: var(--padding); */
  position: fixed;
  /* width: 100%; */
  /* gap: var(--padding-half); */
  z-index: var(--z-index);
  /* display: none; */
  /* z-index: var(--z-index); */
  /* display: flex; */
  padding: var(--padding-half) var(--padding);
  margin: var(--padding);
  background-color: var(--background-color);
  border-radius: var(--padding);
  box-shadow: 2px 2px 5px var(--shadow-color), -2px -2px 5px var(--shadow-color);
  cursor: pointer;
  justify-content: center;
  align-items: center;
}

/* .menu-summary:active {
  display: none;
} */
.mascot-filter-words {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: var(--padding);
  position: fixed;
  width: 100%;
  gap: var(--padding-half);
  z-index: var(--z-index);
  display: none;
}

.mascot-filter-words-exit{
display: none;
}

.mascot-filter-words-exit {
  background-color: var(--background-color);
  border: none;
  border-radius: var(--padding);
  box-shadow: 2px 2px 5px var(--shadow-color), -2px -2px 5px var(--shadow-color);
  padding: var(--padding-half) var(--padding);
  /* margin-right: 2px; */
  /* margin-top: 2px; */
  cursor: pointer;
}

.mascot-filter-words-exit:hover {
  box-shadow: 2px 2px 10px var(--shadow-color), -2px -2px 10px var(--shadow-color);
  background-color: var(--shadow-color);
}

.mascot-filter-words-exit:active {
  box-shadow: inset 2px 2px 10px var(--shadow-color),
    inset -2px -2px 10px var(--shadow-color);
  background-color: var(--background-color);
  /* display: none; */
}

/* .mascot-img {
	display: none;
} */

/* .mascot-img.active {
	display: block;
} */

.mascot-ui-guide {
  position: fixed;
  bottom: var(--padding);
  right: var(--padding);
  display: flex;
}

.mascot-ui-guide .center {
  display: flex;
}

.mascot-ui-guide .center svg {
  width: calc(var(--padding) * 2);
}
button {
  /* font-family: "Miraero" serif !important; */
  background-color: var(--background-color);
  border: none;
  border-radius: var(--padding);
  box-shadow: 2px 2px 5px var(--shadow-color), -2px -2px 5px var(--shadow-color);
  padding: var(--padding-half) var(--padding);
  margin-right: 4px;
  margin-top: 4px;
  cursor: pointer;
}

button:hover {
  box-shadow: 2px 2px 10px var(--shadow-color), -2px -2px 10px var(--shadow-color);
  background-color: var(--shadow-color);
}

button:active {
  box-shadow: inset 2px 2px 10px var(--shadow-color),
    inset -2px -2px 10px var(--shadow-color);
  background-color: var(--background-color);
  /* display: none; */
}

.details{
  display: block;
  position: fixed;
  width: 95%;
  height: 80%;
  overflow-y: scroll;
  z-index: calc(var(--z-index)* 2);
  padding-bottom: 5rem;
  pointer-events: none;
}

.details button{
  pointer-events: auto;
}

details > summary {
  display: flex;
  padding: var(--padding-half) var(--padding);
  background-color: var(--background-color);
  border-radius: var(--padding);
  box-shadow: 2px 2px 5px var(--shadow-color), -2px -2px 5px var(--shadow-color);
  cursor: pointer;
  justify-content: left;
  align-items: center;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary:hover {
  box-shadow: 2px 2px 10px var(--shadow-color), -2px -2px 10px var(--shadow-color);
}

details > summary:active {
  background-color: var(--shadow-color);
}

details[open] .direction {
  transform: rotate(90deg);
}


@media only screen and (max-width: 767px) {
  :root{
  --body-font-size: clamp(13px, 1.3vh, 100px);
  }
  .mascot-filter-words {
    grid-template-columns: 1fr 1fr;
  }
}

@media only all and (min-width: 768px) and (max-width: 1280px) {
  .mascot-filter-words {
    grid-template-columns: 1fr 1fr 1fr;
  }
}