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

body {
  height: 100%;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
  padding-top: 50px;
  --light: rgba(60, 168, 255, 0.5);
  --dark: rgba(7, 98, 228, 0.5);
  background:
    repeating-linear-gradient(45deg,
      var(--light) 0 7px,
      var(--dark) 25px 50px),
    repeating-linear-gradient(-45deg,
      var(--light) 0 7px,
      var(--dark) 25px 50px);
  background-size: 70px 70px;
  animation-name: moveBG;
  animation-timing-function: linear;
  animation-duration: 32s;
  animation-iteration-count: infinite;
}

@font-face {
  src: url("BACK\ TO\ SCHOOL.otf");
  font-family: "Dex";
}

.testBound {
  border: solid red 2px;
}

/* Navbar Header */
.navbar-header {
  background-color: rgb(255, 238, 187);
  border-bottom: solid 12px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-color: rgb(247,156,71);
  padding: 8px 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 50px;
  display: flex;
  align-items: center;
}

main {
  height: calc(100vh - 50px);
  margin-top: 0;
  padding-top: 0;
}

#sprite {
  display: block;
}

.spriteTitle {
  font-size: 65px;
  color: transparent;
  background: linear-gradient(rgba(207, 71, 31), rgba(255, 225, 59));
  background-clip: text;
  filter: drop-shadow(1px 1px 3px black);
  /*font-family: "Dex";*/
  font-family: "Saira", sans-serif;
  font-weight: 700;
  -webkit-text-stroke: 1px black;
  animation: shine 5s ease-in-out 1s infinite;
}

.Region_Title {
  font-size: 65px;
  color: transparent;
  background: linear-gradient(rgba(207, 71, 31), rgba(255, 225, 59));
  background-clip: text;
  /*font-family: "Dex";*/
  font-family: "Saira", sans-serif;
  font-weight: 700;
  -webkit-text-stroke: 1px black;
}

@keyframes moveBG {
  from {
    background-position: 0 70px;
  }

  to {
    background-position: 70px 0;
  }
}

@keyframes shine {
  0% {
    filter: drop-shadow(1px 1px 3px black);
  }

  50% {
    filter: drop-shadow(1px 1px 3px black) brightness(1.2);
  }

  100% {
    filter: drop-shadow(1px 1px 3px black);
  }
}

#griding {
  margin: auto;
  width: 90%;
}

.instructFadeIn {
  animation: bob 3.5s ease-in-out infinite;
  display: block;
  margin-top: 8px;
  color: rgb(80, 80, 80);
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.grid-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  aspect-ratio: 1/1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/*
#list {
  height: 100%;
  background: red !important;
}
*/
.region-button {
  font-family: "Saira", sans-serif;
  font-weight: 700;
  background: linear-gradient(rgba(207, 71, 31), rgba(255, 225, 59));
  color: whitesmoke;
  /* margin: 3px; */
  filter: drop-shadow(1px 1px 2px black);
  border: none;
  border-radius: 5px;
  font-size: 20px;
  display: block;
  padding: 10px 15px;
  width: 100%;
  height: 50px;
}

.menu-icon {
  font-size: 30px;
  padding: 8px 12px;
  cursor: pointer;
  background-color: #333;
  color: white;
  border-radius: 5px;
  position: relative;
  z-index: 1001;
  border: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  line-height: 1;
}

.menu-icon:hover {
  background-color: #555;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -200px;
  /* Initially hidden off-screen */
  top: 50px;
  width: 200px;
  height: calc(100vh - 50px);
  background-color: rgb(255, 238, 187);
  border: solid 12px;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
  border-color: rgb(247,156,71);
  transition: left 0.5s ease-in-out;
  /* Smooth transition */
  z-index: 999;
  overflow-y: auto;
}

/* Sidebar visible when 'open' class is applied */
.sidebar.open {
  left: 0;
  /* Sidebar slides in */
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0, 0, 0, 0.40);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.page-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.page-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.sidebar ul {
  list-style: none;
  padding: 20px 0;
}

.sidebar ul li {
  padding: 15px;
  text-align: center;
}

.sidebar ul li a {
  color: white;
  text-decoration: none;
  display: block;
}

.sidebar .Region_Title {
  font-size: 24px;
  padding: 15px 10px;
  color: white;
  background: transparent;
  -webkit-text-stroke: none;
}

.sidebar .Region_Title h1 {
  margin: 0;
  padding: 0;
  font-size: 24px;
}

#filterSettings {
  background-color: rgb(255, 238, 187);
  position: fixed;
  height: 450px;
  aspect-ratio: 3/4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 20px;
  border: solid 12px;
  border-radius: 10px;
  border-color: rgb(247,156,71);
  color: rgb(28, 48, 48);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  gap: 16px;
}

.closeSettingsButton {
  margin-top: auto;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff6b6b, #ff9f43);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}

.closeSettingsButton:hover {
  filter: brightness(1.1);
}

/* SLIDER */
.switch {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.settingIcon {
  width: 36px;
  margin-left:10px;
}
.settingIcon:hover {
  filter: brightness(1.1);
  cursor: pointer;
  background-color: #555;
}

.closeSettingsButton {
  font-family: "Saira", sans-serif;
  font-weight: 700;
  background: linear-gradient(rgba(207, 71, 31), rgba(255, 225, 59));
  color: whitesmoke;
  filter: drop-shadow(1px 1px 2px black);
  border: none;
  border-radius: 5px;
  font-size: 20px;
  padding: 10px 15px;
}

#openPokedexButton,
.closeSettingsButton {
  font-family: "Saira", sans-serif;
  font-weight: 700;
  background: linear-gradient(rgba(207, 71, 31), rgba(255, 225, 59));
  color: whitesmoke;
  filter: drop-shadow(1px 1px 2px black);
  border: none;
  border-radius: 5px;
  font-size: 20px;
  padding: 10px 15px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

#openPokedexButton:hover,
.closeSettingsButton:hover {
  transform: translateY(-2px);
  background: linear-gradient(rgba(255, 135, 0, 0.95), rgba(255, 220, 110, 0.95));
  filter: brightness(1.08) drop-shadow(1px 1px 2px black);
}

#openPokedexButton {
  cursor: pointer;
}
.versionSite{
  font-family: "Saira", sans-serif;
  font-weight: 700;
  color: rgb(28, 48, 48);
  margin-left: auto;
  margin-right: 10px;
}
.Sort-Icon{
  width: 50px !important;
  border:black 1px solid !important;
  border-radius: 100% !important;
}
.MegigaButton{
  background: transparent  !important;
  border: none !important;
  padding: 0 !important;
}