@import url("https://fonts.googleapis.com/css2?family=Nanum+Gothic&display=swap");

:root {
  color-scheme: light only;
  --fs-600: 2rem;
  --fs-500: 1.35rem;
  --fs-400: 1rem;
  --col-whr: #e2e1e1;
  --col-whp: #f7e4f2;
  --col-rd: #3a063e;
  --col-rdw: #7d6080;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body,
form,
fieldset,
p,
div,
h1,
h2,
h3,
h4,
a,
span {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  font-size: 13px;
  font-family: "Nanum Gothic", sans-serif;
  color: var(--col-whr);
  background-color: #000;
  margin: 0;
  padding: 0;
  max-width: 100%;
  height: auto;
  font-weight: bolder;
}

.header-logo {
  border-radius: 3em;
  padding: 0.4em;
  margin-left: 1.5em;
}

.topnav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: var(--col-rd);
  position: fixed;
  width: 100%;
  top: 0;
  opacity: 0.9;
}

.nav-link_2 {
  /* padding: 1.5em; */
  font-size: 1.1em;
  margin: 1em;
  margin-right: 3em;
  text-align: right;
  color: var(--col-whr);
  text-decoration: none;
}

.nav-link_2:hover {
  /* background: var(--col-rdw); */
  color: var(--col-rdw);
}

.topnav h1 {
  text-align: center;
  font-size: var(--fs-400);
  letter-spacing: 0.6em;
  margin: 0.3em 1em;
  padding: 0.3em;
}

.main-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 1.1em;
  width: 65%;
  min-height: 100vh;
  margin: 0 auto;
}

.item {
  display: block;
  padding: 0.3em;
  text-align: center;
  /* width: 65%; */
}

.item a:hover {
  letter-spacing: 0.8em;
  -webkit-transition: 1.1s;
  -o-transition: 1.1s;
  transition: 1.1s;
  color: var(--col-rd);
  text-shadow: 4px 1px var(--col-whr);
}

.item:nth-child(1),
.item:nth-child(5) {
  -ms-flex-item-align: start;
  align-self: flex-start;
}

.item:nth-child(4) {
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: flex-end;
}

.item_img {
  width: 11vw;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  margin: 1em;
}

.item:nth-child(2),
.item:nth-child(6) {
  -ms-flex-item-align: end;
  align-self: flex-end;
}

.item a {
  font-size: var(--fs-400);
  text-decoration: none;
  color: var(--col-whr);
  line-height: 1.2rem;
  letter-spacing: 0.6em;
  text-shadow: 4px 1px var(--col-rd);
  -webkit-animation: movingWords 11s infinite alternate;
  animation: movingWords 11s infinite alternate;
}

@-webkit-keyframes movingWords {
  50% {
    font-size: 1rem;
    color: var(--col-rd);
    text-shadow: -4px -1px var(--col-whr);
  }
}

@keyframes movingWords {
  50% {
    font-size: 1rem;
    color: var(--col-rd);
    text-shadow: -4px -1px var(--col-whr);
  }
}

footer {
  background-color: var(--col-rd);
  opacity: 0.9;
  padding: 0.3em;
  margin: 0;
  bottom: 0;
  position: fixed;
  width: 100%;
}

.footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: var(--fs-400);
}

.footer a {
  padding: 0.5em;
  text-decoration: none;
  color: var(--col-whp);
}

@media screen and (max-width: 800px) {
  .nav-link_1 {
    /* -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1; */
    margin-left: 0.7em;
  }

  .topnav h1 {
    text-align: center;
    width: 45%;
    font-size: 0.9em;
  }

  .main-container {
    width: 100%;
    height: auto;
    gap: 1.6em;
  }

  .item {
    width: 100%;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .item a {
    font-size: 0.8rem;
  }

  @-webkit-keyframes movingWords {
    50% {
      font-size: 0.9rem;
      color: var(--col-rd);
      text-shadow: -4px -1px var(--col-whr);
    }
  }

  @keyframes movingWords {
    50% {
      font-size: 0.9rem;
      color: var(--col-rd);
      text-shadow: -4px -1px var(--col-whr);
    }
  }
  .item_img {
    width: 32vw;
    margin: 0.5em;
  }
  .footer {
    font-size: 1.1em;
  }
}

@media screen and (max-device-width: 480px) {
  body {
    -webkit-text-size-adjust: none;
  }
}
