html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #caf0f8 0%, #90e0ef 25%, #00b4d8 50%, #0077b6 75%, #03045e 100%);
  min-height: 100vh;
}

.main-header {
  background-color: rgba(3, 4, 94, 0.7);
  padding: 10px 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.title {
  flex: 1;
  text-align: center;
  margin: 0;
  padding: 10px 0;
  font-size: 3em;
  font-family: "Courier New", monospace;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #afeeff;
}

#card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  padding-bottom: 80px;
}

.card {
  width: 200px;
  flex-shrink: 0;
  background-color: #90e0ef;
  border: 2px solid #00b4d8;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(3, 4, 94, 0.3);
  margin: 8px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-content {
  padding: 12px;
  font-family: "Verdana";
  color: #03045e;
}

.card-content h2 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 18px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #03045e;
  border-bottom: 2px solid #0077b6;
  padding-bottom: 6px;
}

.card img {
  width: 80%;
  height: auto;
  display: block;
  margin: 8px auto;
}

.card .dexNum {
  font-size: 10px;
  font-family: "Courier New", monospace;
  color: #0077b6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 4px 0;
}

.card .classification {
  font-size: 11px;
  font-style: italic;
  color: #0077b6;
  margin: 2px 0 8px 0;
}

.card .height,
.card .weight {
  font-size: 12px;
  font-weight: bold;
  color: #03045e;
  margin: 3px 0;
  background-color: #caf0f8;
  border-radius: 4px;
  padding: 3px 6px;
}

#landing-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #caf0f8 0%, #90e0ef 25%, #00b4d8 50%, #0077b6 75%, #03045e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 500;
}

#landing-title {
  font-family: "Courier New", monospace;
  font-size: 4em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #03045e;
  text-align: center;
  margin-bottom: 16px;
}

#landing-sub {
  font-family: "Courier New", monospace;
  font-size: 1.1em;
  color: #0077b6;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

#filter-dropdown {
  position: relative;
  z-index: 150;
  flex-shrink: 0;
}

#sort-dropdown {
  position: relative;
  z-index: 150;
  flex-shrink: 0;
}

#reset-button {
  position: relative;
  z-index: 150;
  flex-shrink: 0;
}

#filter-menu,
#sort-menu {
  display: none;
  flex-direction: column;
  background-color: #03045e;
  border: 2px solid #00b4d8;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

#filter-menu.open,
#sort-menu.open {
  display: flex;
}

#sort-label,
#filter-label {
  color: #90e0ef;
  font-size: 11px;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 8px 12px 4px;
  padding: 0;
}

#filter-menu button,
#sort-menu button {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #0077b6;
  margin: 0;
  width: 100%;
  text-align: left;
}

#filter-menu button:last-child,
#sort-menu button:last-child {
  border-bottom: none;
}

#popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(3, 4, 94, 0.7);
  z-index: 200;
  justify-content: center;
  align-items: center;
}

#popup-overlay.active {
  display: flex;
}

#popup {
  background: #90e0ef;
  border: 2px solid #00b4d8;
  border-radius: 10px;
  padding: 24px;
  width: 280px;
  position: relative;
  text-align: center;
  color: #03045e;
  font-family: "Verdana";
  box-shadow: 0 8px 32px rgba(3, 4, 94, 0.4);
}

#popup-name {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #03045e;
  border-bottom: 2px solid #0077b6;
  padding-bottom: 6px;
  margin: 8px 0 4px 0;
}


#popup-size-label {
  font-size: 11px;
  font-family: "Courier New", monospace;
  color: #0077b6;
  margin-top: 10px;
  font-style: italic;
}

#popup-factoid {
  font-size: 12px;
  font-family: "Verdana";
  color: #03045e;
  margin-top: 12px;
  padding: 8px;
  background-color: #caf0f8;
  border-radius: 6px;
  border-left: 3px solid #0077b6;
  text-align: left;
}

#popup-sprite {
  width: 140px;
  height: auto;
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0077b6;
  color: #caf0f8;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
}


button {
  text-align: center;
  background-color: #0077b6;
  border: 2px solid #00b4d8;
  padding-left: 16px;
  padding-right: 16px;
  height: 44px;
  border-radius: 10px;
  color: #caf0f8;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin: 5px;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #00b4d8;
  color: #03045e;
}
