body {
  margin: 0;
  padding: 0;
  background-color: black;
  animation: rotateBoxShadow 4s infinite linear;
}

@keyframes rotateBoxShadow {
  0% {
    box-shadow: inset 0px 0em 15em #102d42;
  }
  33% {
    box-shadow: inset 0px 1em 20em #213f67;
  }
  66% {
    box-shadow: inset 0px 0.5em 20em #132b49;
  }
  100% {
    box-shadow: inset 0em 0em 15em #143852;
  }
}

header {
  background-color: #000000;
  color: #ffffff;
  text-align: center;
  padding-left: 1em;
  padding-bottom: 0.2em;
  padding-right: 1em;
  padding-top: 1em;
}

.header-content {
  display: flex;
  align-items: center; /* Center the items vertically */
  justify-content: space-between; /* Space between the logo and nav */
}

.header-content img {
  max-height: 3em;
  margin-right: 3em;
}

.header-buttons {
  display: flex;
  justify-content: space-between;
  background-color: #000000;
  padding: 0.5em;
  padding-left: 6em;
  padding-right: 6em;
  align-items: center;
  flex-grow: 1;
}

.header-buttons a {
  text-decoration: none;
  font-size: 14pt;
  color: #ffffff;
  padding: 0.5em 1em;
  transition: background-color 0.3s;
  background-color: #174867;
  text-decoration: none;
  margin-right: 0.9em;
  padding: 0.4em 0.8em; /* Smaller padding for a more compact button */
  border-radius: 0.8em; /* Make the buttons more rounded */
  white-space: nowrap; /* Prevent text from wrapping */
}

.header-buttons a:hover {
  background-color: #286aa7;
}

.page-title {
  display: flex;
  justify-content: center;
  margin-bottom: 2%;
  margin-top: 2%;
  padding: 0%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4em;
  font-weight: 700;
  font-style: normal;
  word-spacing: 0.2em;
  letter-spacing: 0.1em;
  color: transparent; /* Set initial text color to transparent */
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0),
    rgb(255, 255, 255)
  ); /* Adjust the colors and stops as needed */
  background-clip: text;
  -webkit-background-clip: text;
  animation: fadeIn 3s forwards; /* Set the duration of the animation */
}

@keyframes fadeIn {
  to {
    color: rgb(255, 255, 255);
    background-size: 200% 100%; /* Adjust the size of the gradient */
  }
}

section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 20px;
  align-items: stretch;
}

@keyframes rotateBoxShadow1 {
  0% {
    box-shadow: 0.1em 0.1em 1em rgba(24, 55, 68, 0.2); /* Adjust the opacity */
  }
  33% {
    box-shadow: 0.1em 0.2em 0.5em #305982; /* Adjust the spread and color */
  }
  66% {
    box-shadow: 0.1em 0.2em 0.4em #38557d; /* Adjust the spread and color */
  }
  100% {
    box-shadow: 0.1em 0.2em 0.5em rgba(36, 84, 117, 0.5); /* Adjust the spread and opacity */
  }
}

play-button {
  width: 10%;
  object-fit: cover;
}

h2 {
  font-family: 'MuseoModerno', sans-serif;
  font-weight: 500;
  color: white;
}

p {
  font-family: 'Space Grotesk', sans-serif;
  color: rgba(255, 255, 255, 0.91);
}

a {
  font-family: 'Space Grotesk', sans-serif;
}

footer {
  background-color: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
  background-color: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
  font-family: 'Space Grotesk', sans-serif;
}

.course-card {
  display: flex;
  flex-direction: column;
  width: 22rem;
  background-color: #0d0d0d;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 1.5rem rgba(0,0,0,0.6);
}

.course-card:focus-visible,
.course-card:focus {
  outline: 3px solid rgba(111, 219, 240, 0.95);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(111, 219, 240, 0.2);
}

.course-image {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  cursor: default; /* prevents image from looking like the link */
}
