body {
  margin: 0;
}

* {
  font-family: Arial, Helvetica, sans-serif;
}

#container {
  background: rgba(0, 0, 0, 0);
  text-align: center;
  margin: 0 auto;
  width: 80%;
  border-radius: var(--borderRadius);
}

.cards-container {
  display: flex;
  flex-direction: column;
}

.card {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1em;
  border: 2px solid var(--mainColor);
  border-radius: var(--borderRadius);
  background-color: white;
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.6s ease;
}

.card:hover {
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.45);
}

.card-text {
  width: 60%;
  padding: 1.5em;
  text-align: left;
}
.card h2 {
  font-size: 2em;
  color: var(--mainColor);
  margin-bottom: 0.5em;
}

.card p {
  color: var(--backgroundColor);
  line-height: 1.8;
}

.card-image img {
  width: 60%;
  max-width: 100%;
  border: 2px solid darkblue;
  border-radius: var(--borderRadius);
  float: right;
  transition: transform 0.3s ease-out;
}

.card-image:hover img {
  transform: scale(1.2);
}

.card-image {
  width: 30%;
  padding: 1.5em;
  display: flex; /* Enables flexbox */
  align-items: center; /* Vertically center the image */
}
.card-controls p {
  display: inline;
  background-color: var(--backgroundColor);
  border: 2px solid var(--fontColor);

  color: var(--fontColor);
  padding: 1em;
  font-size: large;
  font-weight: bold;
}

.control {
  display: flex;
  text-align: center;
  justify-content: left; /* Horizontally center the image */
  align-items: center; /* Vertically center the image */
  width: 50%;
  gap: 1em;
}
.control:nth-child(odd) {
  background-color: gainsboro;
}
