/* Base styles */
:root {
  --primary-dark: rgba(10, 10, 10, 0.85);
  --secondary-dark: #1a1a1a;
  --accent-color: #2f2f2f;
  --highlight: #17aa87;
  --text-light: #f0f0f0;
  --text-dim: #888888;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background */
html {
  min-height: 100%;
  height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100%;
  background-image: url("images/black-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* Content container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Navigation */
nav {
  background-color: rgba(26, 26, 26, 0.9);
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--accent-color);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: var(--highlight);
  color: var(--text-light);
  transform: translateY(-2px);
}

nav a.active {
  background-color: var(--highlight);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Main content */
main {
  min-height: 70vh;
  padding: 2rem;
  background-color: rgba(26, 26, 26, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--shadow-color);
  border: 1px solid var(--accent-color);
}

h1 {
  color: var(--text-light);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Form styles */
form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--text-light);
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--primary-dark);
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.radio-group,
.checkbox-group {
  margin: 1rem 0;
}

.radio-group label,
.checkbox-group label {
  display: inline-block;
  margin-right: 1rem;
  font-weight: normal;
  color: var(--text-dim);
}

button {
  background-color: var(--highlight);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px var(--shadow-color);
}

button:hover {
  background-color: #1e643d;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--shadow-color);
}

/* Error styles */
.error {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background-color: rgba(26, 26, 26, 0.9);
  border-radius: 8px;
  box-shadow: 0 -2px 10px var(--shadow-color);
  border: 1px solid var(--accent-color);
}

footer a {
  color: var(--highlight);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1e643d;
  text-decoration: underline;
}

/* Checkbox and radio styling */
input[type="checkbox"],
input[type="radio"] {
  margin-right: 0.5rem;
  accent-color: var(--highlight);
}

nav,
main,
footer {
  background-image: linear-gradient(
    to bottom,
    var(--secondary-dark),
    var(--accent-color)
  );
}

/* Map Styles */

#map {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  margin: 2rem 0;
  border: 1px solid var(--accent-color);
}

#location-status {
  color: var(--text-light);
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Pokemon List Styles */
.pokemon-list {
  list-style: none;
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  padding: 0;
}

.pokemon-list li {
  background-color: rgba(26, 26, 26, 0.9);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 4px 15px var(--shadow-color);
  background-image: linear-gradient(
    to bottom,
    var(--secondary-dark),
    var(--accent-color)
  );
  transition: transform 0.3s ease;
}

.pokemon-list li:hover {
  transform: translateY(-5px);
}

.pokemon-list h3 {
  color: var(--highlight);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-transform: capitalize;
  text-align: center;
}

.pokemon-list img {
  display: block;
  margin: 1rem auto;
  background-color: rgba(47, 47, 47, 0.5);
  border-radius: 50%;
  padding: 1rem;
  border: 1px solid var(--accent-color);
  transition: transform 0.3s ease;
}

.pokemon-list img:hover {
  transform: scale(1.1);
}

.pokemon-list p {
  color: var(--text-light);
  margin: 0.5rem 0;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(47, 47, 47, 0.5);
}

.pokemon-list p:last-child {
  border-bottom: none;
}

.loading-message,
.error-message {
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
}

.error-message {
  color: #e74c3c;
}

@media screen and (min-width: 768px) {
  .pokemon-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .pokemon-list li {
    padding: 1.5rem;
  }

  .pokemon-list h3 {
    font-size: 1.25rem;
  }

  .pokemon-list p {
    font-size: 1rem;
  }
}
