/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Merriweather", serif;
}

body {
  max-width: 100%;
  background-color: black;
}

header h1 {
  color: whitesmoke;
  font-size: 2.5rem;
}

header p {
  color: whitesmoke;
  font-size: 2rem;
}

/* Container Styles */
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Card Styles */
.card {
  width: 350px;
  border: 2px solid black;
  border-radius: 15px;
  background-color: rgba(83, 80, 80, 0.395);

  margin-bottom: 2rem;
}

.card img {
  height: 300px;
  width: 350px;
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 8px solid rgba(245, 245, 245, 0.311);
}

.card:hover {
  border-radius: 19px;
  border: 3px solid rgba(245, 245, 245, 0.516);
}

/* Details Styles */
.details {
  text-align: center;
}

.details h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 6px;
  color: whitesmoke;
}

.details span,
.details time {
  color: whitesmoke;
  display: block;
  padding: 10px;
  font-size: 1.2rem;
  width: 30%;
  margin-left: 7.5rem;
  border: 2px solid whitesmoke;
  border-radius: 25px;
  margin-bottom: 20px;
  margin-top: 20px;
  font-size: 18px;
}

.details time:hover,
.details span:hover {
  transform: scale(1.1);
  background-color: whitesmoke;
  transition: background-color 0.5s;
  color: black;
}

/* Header Styles */
header p {
  margin-bottom: 20px;
}

/* Menu Button Styles */
#menu button:hover {
  background-color: whitesmoke;
  transition: background-color 0.5s;
  color: black;
}

/* Selected Artist Styles */
#selected-artist :nth-child(1),
#selected-artist :nth-child(2) {
  color: whitesmoke;
}

/*Forms CSS Newletter*/
.music-newsletter-form {
  background-color: #2e2e2e;
  /* A lighter shade of black (dark gray) */
  border: 1px solid lightblue;
  padding: 20px;
  margin: 20px auto;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.music-newsletter-form h2 {
  color: lightblue;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 15px;

  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.music-newsletter-form p {
  color: #ccc;
  /* Light gray to contrast with dark background */
  text-align: center;
  font-size: 1em;
  margin-bottom: 15px;
}

.music-newsletter-form .input-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.music-newsletter-form .email-field {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid lightblue;
  border-radius: 5px;
  font-size: 1em;
  background-color: #444;
  /* Slightly lighter background for the input */
  color: white;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.music-newsletter-form .email-field:hover,
.music-newsletter-form .email-field:focus {
  border-color: #ccc;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  /* Slightly enlarge the input on hover */
}

.music-newsletter-form .subscribe-button {
  padding: 10px 20px;
  background-color: #3679cb;
  /* Slightly darker blue for the button */
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.music-newsletter-form .subscribe-button:hover {
  background-color: #0f5bb3;
  /* Darker blue on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.music-newsletter-form .footer-note {
  color: #999;
  /* Slightly lighter gray for better readability */
  text-align: center;
  font-size: 0.85em;
}

/*Add new artist Css*/

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
}

/* Button styles */
.artist-info-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: whitesmoke;
  color: black;
  border-radius: 5px;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.artist-info-link:hover {
  background-color: #87cefa;
  /* Light blue on hover */
  color: black;

  box-shadow: 0 6px 12px rgba(135, 206, 250, 0.3);
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .card {
    width: 100%;
  }

  .card img {
    width: 100%;
  }

  .details h2 {
    font-size: 1.5rem;
  }

  .details span,
  .details time {
    font-size: 1rem;
    padding: 8px;
  }
}

.details time {
  background-color: rgba(83, 80, 80, 0);
  color: white;
}

@media (max-width: 480px) {
  .details h2 {
    font-size: 1.2rem;
  }

  .details span,
  .details time {
    font-size: 0.9rem;
    padding: 5px;
  }

  header p {
    margin-bottom: 10px;
  }
}
