*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-weight: normal;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  font-size: 16px;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

body {
  position: relative;
  min-height: 100svh;
  font-family: Pretendard, BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  word-break: keep-all;
  text-rendering: optimizeSpeed;
  cursor: default;
}

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

a:not([class]) {
  text-decoration-skip-ink: auto;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  display: block;
  border: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

code,
pre,
kbd,
samp {
  -moz-osx-font-smoothing: auto;
  -webkit-font-smoothing: auto;
  font-family: monospace;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

td:not([align]),
th:not([align]) {
  text-align: inherit;
}

details {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: none;
}

textarea:not([rows]) {
  min-height: 10rem;
}

:target {
  scroll-margin-top: 10rem;
}

[hidden] {
  display: none !important;
}

#asdf {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  user-select: none;
}

.title {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  font-weight: 500;
  color: blue;
  text-align: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

@media (orientation: portrait) {
  .title {
    font-size: 10vw;
  }
}

@media (orientation: landscape) {
  .title {
    font-size: 10vh;
  }
}

.list {
  display: flex;
  flex-wrap: wrap;
}

.list li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: calc(100% / 3);
  border: 1px solid blue;
  aspect-ratio: 1 / 1;
  background-color: white;
}

.show-form {
  position: fixed;
  top: .75rem;
  right: .75rem;
  width: 2rem;
  height: 2rem;
  background-color: blue;
  border: 0;
  border-radius: 50%;
}

.form {
  position: fixed;
  z-index: 888;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.form.is-hidden {
  display: none;
}

.form-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 2rem);
  width: 40rem;
  aspect-ratio: 1 / 1;
  padding: 1rem;
  border-radius: 50%;
  color: white;
  background-color: blue;
}

.form-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
}

.field {
  width: 100%;
  text-align: center;
}

.field:not(:last-child) {
  margin-bottom: 1rem;
}

.field.is-honeypot {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

.input {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: center;
  color: white;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.input::placeholder {
  color: white;
  opacity: .5;
}

.input:focus::placeholder {
  color: transparent;
}

#hyperlinks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
}

@media screen and (min-width: 900px) {
  #hyperlinks {
    transition: opacity .5s ease-in-out;
  }
}

.is-loaded #hyperlinks {
  opacity: 1;
}

#hyperlinks svg {
  display: block;
  width: 100%;
  height: 100%;
}

.link {
  transition: stroke-opacity 0.25s ease-in-out;
}

.node circle {
  transition: r .25s ease-in-out;
}

/* 모바일 성능 최적화 */
.is-mobile .link,
.is-mobile .node circle {
  transition: none;
}

.modal {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
}

.modal:not([open]) {
  display: none;
}

.modal::backdrop {
  background-color: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(1rem);
  backdrop-filter: blur(1rem);
}

.modal-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.modal-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 2rem);
  width: 40rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 888;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: white;
  background-color: blue;
  border-radius: 50%;
  padding: 1rem;
}

.modal-content > *:not(:last-child) {
  margin-bottom: 1rem;
}

.modal-actions {
  position: absolute;
  z-index: 999;
  bottom: 3rem;
  left: 0;
  width: 100%;
  padding: 0 25%;
  text-align: center;
}

.modal-actions .button {
  opacity: .5;
  transition: opacity .125s ease-in-out;
}

.modal-actions .button:hover {
  opacity: 1;
}

.modal-auth,
.modal-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  background-color: blue;
  border-radius: 50%;
}

.modal-auth.is-hidden,
.modal-edit.is-hidden {
  display: none;
}

.modal-edit {
  flex-direction: column;
}

.modal-edit .field {
  display: flex;
  gap: 0.5rem;
}

.modal-edit .field:last-child {
  justify-content: center;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.buttons .button {
  flex: 1 1 0;
  text-align: center;
}

.button {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  font: inherit;
  text-align: center;
  color: white;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
}

/* Loading Spinner Styles */
#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.75);
}

#loading-spinner.is-hidden {
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 255, 0.2);
  border-top-color: blue;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 999;
  bottom: 0;
  left: 0;
  width: 100%;
  
  padding: .5rem 1rem;
  font-size: .75rem;
  text-align: right;
}

.footer a {
  color: blue;
  opacity: .5;
}

.footer a:hover {
  opacity: 1;
}

@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;
  }
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 999;
}

.preloader.is-hidden {
  display: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 255, 0.2);
  border-top-color: blue;
}