@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@500&family=Great+Vibes&family=Kaushan+Script&family=Satisfy&display=swap");

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Character Css*/
.character-body {
  background-color: #0b0c10;
  margin: 0;
}

.character-container {
  position: relative;
  min-height: 100vh;
}

.character-header {
  background-image: url(./images/5196310.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 250px;
  padding: 25px;
}

.glow-text {
  font-family: "Get Schwifty", "Luckiest Guy", cursive;
  font-size: 4rem;
  text-align: center;
  color: #ff3fa4;
  animation: glow 2s infinite alternate ease-in-out;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #ff3fa4 0 0 20px #ff3fa4;
  }
  to {
    text-shadow: 0 0 20px #fff, 0 0 30px #ff3fa4, 0 0 60px #ff3fa4;
  }
}

.sub-head {
  color: white;
  text-align: center;
  font-size: 1.9rem;
  margin-top: -30px;
}

.char-img {
  & img {
    max-width: 500px;
    margin: 1rem auto;
    display: block;
  }
}

.link-2 {
  text-align: center;
  margin: 1.5rem 0;
}

.link-2 a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  background: linear-gradient(90deg, #00ff9d, #00c2ff);
  color: #0b0c10;
  font-family: "Luckiest Guy", cursive;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 10px #00ff9d, 0 0 20px #00c2ff;
}

.link-2 a:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 0 20px #00ff9d, 0 0 40px #00c2ff, 0 0 60px #8e44ff;
}

.form-info {
  margin: 20px;
  color: white;

  & ul {
    list-style-type: none;
    & .one {
      color: #00c2ff;
    }
    & .two {
      color: #ff3fa4;
    }
    & .three {
      color: #8e44ff;
    }
  }
}

.error-container {
  display: none; /* Hide by default */
  border: 3px solid crimson; /* Border appears when active */
  background-color: rgba(220, 20, 60, 0.1); /* Light background */
  color: crimson;
  margin-top: 15px;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
}

.error-container.active {
  display: block; /* Show when active */
}

.form {
  display: flex;
  flex-direction: column; /* default: stack vertically */
  align-items: center;
  gap: 20px;
  margin: 2rem auto;
  padding: 20px;
  max-width: 800px;
}

/* Style for each form section */
.form1, .form2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1; /* allow equal space when side-by-side */
  min-width: 250px;
}

.form p {
  color: #00ff9d;
  font-family: "Luckiest Guy", cursive;
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 0 5px #00c2ff;
}

.form input,
.form select {
  width: 100%;
  padding: 10px 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #0b0c10;
  color: white;
  box-shadow: 0 0 10px #8e44ff inset;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.form input:focus,
.form select:focus {
  box-shadow: 0 0 15px #00ff9d, 0 0 25px #00c2ff;
  transform: scale(1.02);
}

.form button {
  margin-top: 2rem;
  margin-left: 2rem;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(90deg, #ff3fa4, #8e44ff);
  color: white;
  font-family: "Luckiest Guy", cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 15px #ff3fa4, 0 0 30px #8e44ff;
}

.form button:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 0 25px #ff3fa4, 0 0 50px #8e44ff;
}

/* 📱 Mobile-first (stacked layout is default) */

/* 💻 Larger screens: place forms side-by-side */
@media (min-width: 768px) {
  .form {
    flex-direction: row; /* side-by-side */
    justify-content: center;
    align-items: flex-start;
  }

  .form1, .form2 {
    max-width: 350px;
  }

  .form p {
    text-align: center;
  }
}


.characterInfo {
  padding-bottom: 5rem;
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 1em;
  justify-items: center;
}

.characterInfo article {
  background: #1c1c24; /* Dark sci-fi background */
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 250px;
  margin: 20px auto;
}

.characterInfo article:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 0 20px var(--glow), 0 0 40px var(--glow);
}

.characterInfo article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 3px solid var(--glow);
}

.characterInfo article h2 {
  font-family: "Get Schwifty", "Luckiest Guy", cursive;
  font-size: 1.5rem;
  margin: 10px 0;
  color: var(--glow);
  text-shadow: 0 0 5px var(--glow);
}

.characterInfo article p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #f0f0f0;
}

footer {
  width: 100%;
  height: 6rem;
  padding: 30px 0 30px 0;
  text-align: center;
  color: aliceblue;
  background-image: url(./images/Screenshot\ 2023-07-11\ at\ 10.15.54\ PM.png);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (max-width: 1293px) {
  .characterInfo {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}

@media (max-width: 970px) {
  .characterInfo {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

@media (max-width: 540px) {
  .characterInfo {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
