:root {
  --primary: #086838;
  --primary-dark: #03552c;
  --secondary: #91e048;
  --panel: #09380f80;
  --background: #edfff6;
  --text: #09380f;
  --accent: #ed4046;
  --accent-text: #edfff6;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
}

@keyframes swing {
  0%, 50%, 100% {
    rotate: 0;
  }
  25% {
    rotate: 15deg;
  }
  75% {
    rotate: -15deg;
  }
}

body {
  font-family: 'PMD', Fallback, sans-serif;
  background-color: #67af29;
  background-image: url('/assets/shrines/pokemon/landing/backgrounds/bulbasaur.webp');
  background-size: cover;
  background-position-y: -88px;
  background-position-x: center;
  padding: 32px;

  @media screen and (max-width: 767px) {
  background-position-y: top !important;
  }
}

p, a, span, button {
  font-family: 'PMD', Fallback, sans-serif;
  font-size: 20px;
  line-height: 100%;
}

#header {
  display: flex;
  width: 100%;
}

#sections {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: end;
  gap: 32px;

  @media screen and (max-width: 767px) {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

#sections > a {
  background: var(--accent);
  border-radius: 16px;
  padding: 8px;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 150px;
  border: 1px solid var(--primary-dark);
  border-bottom: 6px solid var(--primary-dark);
  height: 32px;
}

#sections > a:hover {
  filter: brightness(110%);
  border-bottom: 2px solid var(--primary-dark);
}

#sections > a:hover > img {
  animation: swing 1.5s linear infinite;
}

#theme {
  display: flex;
  position: relative;
}

#theme-menu-btn {
  background: var(--background);
  border: 2px solid var(--primary);
  display: flex;
  width: 48px;
  height: 48px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#theme-menu-btn:hover {
  cursor: pointer;
  background: var(--secondary);
}

#selected-theme-icon {
  position: absolute;
  top: 4px;
  z-index: 1;
}

#theme-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 1;
  background: var(--background);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 8px;
  height: 250px;
  width: 150px;
  overflow: auto;
  align-items: start;
  box-shadow: 0 0 4px var(--primary-dark);
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  gap: 8px;
  width: 100%;
}

.theme-btn.active {
  background: var(--secondary);
}

.theme-btn:hover {
  cursor: pointer;
  background: var(--secondary);
}

.theme-btn > span {
  align-self: center;
  padding-top: 8px;
  text-transform: capitalize;
}

#intro-container {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  bottom: 32px;
  width: 75%;
  max-width: 1000px;
  background: var(--panel);
  height: 200px;
  padding: 0 16px;
  border: 3px ridge var(--primary);
  border-radius: 16px;
  overflow: auto;

  @media screen and (max-width: 767px) {
    width: calc(100% - 64px);
  }
}

#intro-container p {
  color: var(--accent-text);
  text-align: center;
}

#intro-container .next-dialog-container {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: end;
}

#intro-container .arrow {
  border: 8px solid transparent;
  border-top: 8px solid var(--accent-text);
  border-bottom: none;
  width: 0;
  height: 0;
  animation: blinking 1s step-start infinite;
  margin-bottom: 8px;
}
