body {
  font-family: 'Montserrat', sans-serif;
}

header {
  background-color: green;
  color: white;
  padding: 1em;
}

header h1 {
  margin: 0;
}

nav {
  background-color: white;
  padding: 1em;
  display: flex;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-right: 1em;
}

nav a {
  display: inline-block;
  padding: 10px 20px;
  color: black;
  text-decoration: none;
  position: relative;
  transition: color 0.5s ease-in-out;
}

nav a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 2px;
  background-color: red;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.5s ease-in-out;
}

nav a:hover {
  color: red;
  transition: color 0.5s ease-in-out;
}

nav a:hover:after {
  transform: scaleX(1);
  right: 0;
}

section {
  padding: 1em;
}

footer {
  background-color: red;
  color: white;
  padding: 1em;
  text-align: center;
}

.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s;
}

.carousel img.active {
  opacity: 1;
}