@import url("https://cdn.jsdelivr.net/npm/galmuri@latest/dist/galmuri.css");
.container {
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.loading {
  position: absolute;
  top: 0;
  z-index: 1000;

  width: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  max-width: 500px;

  background-color: #79c9f9;
}

@keyframes turn-around {
  0% {
    transform: rotateY(0);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(0);
  }
}

.loading__img {
  width: 50px;
  animation: turn-around 1.5s ease-in-out infinite;
}
.loading__text {
  margin: 1rem 0;
  font-weight: 600;
}
/* 인덱스 페이지 배경화면 */
.index-bg {
  width: 100%;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-grow: 1;
  max-width: 500px;

  background-image: url(../img/background/main_bg.jpg);
  background-position: bottom;
  background-size: cover;
}

/* 로고 */
.title-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;

  padding: 1rem;
  margin-bottom: 2rem;
  background-color: aliceblue;
  border-radius: 10px;
}

.title-logo__img {
  width: 70px;
}

.title-logo__text {
  font-weight: 600;
}

.title-logo--nav {
  background-color: var(--poke-dex-red);
  padding: 0.5rem;
  margin-left: 1rem;
  margin-bottom: 0;
}

.title-logo--nav .title-logo__img {
  width: 50px;
  background-color: white;

  padding: 0.2rem;
  border-radius: 10px;
  box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
}

.title-logo--nav .title-logo__text {
  padding: 0.5rem;
  color: white;
  text-shadow: 2px 2px black, -1px -1px black;
}

.index__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--flex-gap--big);
}

/* 인덱스 페이지 버튼 */
.index__button {
  width: 400px;
  background-color: var(--ice);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 1rem;
  border: none;
  border: 2px solid var(--water);
  border-radius: 10px;

  font-size: 1.2rem;
  color: white;
}

.index__button:hover {
  background-color: aliceblue;
  color: var(--font-color--black);
  transition: 0.2s;
  cursor: pointer;
}

/* PC버전일때 배경화면  */
.page-bg {
  background-color: #f3f3f3;
}

header {
  width: 100%;
  background-color: var(--poke-dex-red);

  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  max-width: 500px;

  position: relative;
  position: sticky;
  top: 0;

  padding: 0.5rem 0;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.header__nav {
  position: absolute;
  top: 100%;
  width: 100%;
}

.header__list {
  background-color: var(--flying);
  border-bottom: 2px solid var(--water);
}

.header__item {
  padding: 1rem;
}

.header__item a {
  display: flex;
  align-items: center;
  gap: var(--flex-gap--small);
  font-weight: 600;
  padding: 0.5rem;
  border-bottom: 1px dashed var(--water);
}

.header__item:hover {
  background-color: #94cfff;
  transition: 0.2s;
}

.header__icon {
  width: 35px;
  height: 35px;
  background-color: white;

  padding: 0.1rem;
  border-radius: 5px;
}

main {
  width: 100%;

  background-color: #79c9f9;
  background-image: url(../img/background/all_bg.png);
  background-position: bottom;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  max-width: 500px;
}

section {
  width: var(--mobile-width);

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: var(--flex-gap--big);

  margin-bottom: 2rem;
}

.h2 {
  margin-top: 2rem;

  font-size: var(--font-size--big);
  font-weight: var(--font-weight--bold);
  text-shadow: 1px 1px rgb(255, 255, 255), -1px -1px rgb(255, 255, 255);
}

.footer {
  width: 100%;
  margin-top: auto;
  background-color: var(--poke-dex-red);

  display: flex;
  flex-grow: 1;
  max-width: 500px;
}

.footer__text {
  padding: 1rem;

  font-size: 0.7rem;
  color: rgb(255, 132, 132);
  line-height: 1rem;
}
