:root {
  --maxWidth: 1440px;
  --primaryColor: #3574bd;
  --secondaryColor: #c58320;
  --darkColor: #4a4a4a;
  --lightColor: #f5f5f5;
  --whiteColor: #ffffff;
  --blackColor: #000000;
  --fontSize: 16px;
}

body {
  /* font-family: Helvetica, sans-serif; */
  font-family: sans-serif;
  font-size: var(--fontSize);
  color: var(--blackColor);
  width: 100%;
  margin: auto;
  background-image: url("../images/background.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

@media (orientation: portrait) {
  body {
    background-image: url("../images/background/portrait@900x1200.jpg");
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

@media (orientation: landscape) {
  body {
    background-image: url("../images/background/landscape@1200x900.jpg");
    background-color: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.main-container {
  max-width: var(--maxWidth);
  width: 100%;
  margin: auto;
}

header {
  color: white;
  min-height: 50vh;
  position: relative;
  top: 0;
  z-index: 1000;
  padding: 20px;
  text-align: center;
  align-content: center;
}

main {
  background-color: white;
  min-height: 120vh;
  border-radius: 16px;
  padding: calc(max(20px, 5%));
}

main > div {
  margin: 0 auto;
  max-width: var(--maxWidth);
}

footer {
  color: white;
  min-height: 5vh;
  position: relative;
  bottom: 0;
  text-align: center;
}

h2 {
  margin-top: 1em;
}

h4 {
  margin-bottom: 0;
}

.card-container {
  position: relative;
  width: 100%;
  margin-top: 25px;
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  align-items: stretch;
}

.card {
  background-color: var(--whiteColor);
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-width: 300px;
  max-width: 400px;
  flex: 1 1 300px;
  box-sizing: border-box;
}

.card img {
  width: calc(100% + 40px);
  margin: -20px;
  border-radius: 16px 16px 0 0;
  margin-bottom: 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
