body,
html {
  font-family: "Noto Serif", sans-serif;
  background-color: #787045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%23b6b394' fill-opacity='0.4' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.head {
  background-color: #795548;
  color: #fff;
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
}

.head h1 {
  font-size: 3em;
  margin-bottom: 20px;
  border-bottom: none;
}

.head p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto;
}

/* Card Carousel Styles */
.card-carousel {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  height: 400px;
  perspective: 1000px;
  margin: 30px auto;
  padding: 20px;
  overflow: visible;
}

.card {
  background-color: #dcdad1;
  display: flex;
  flex-direction: column;
  height: 300px;
  width: 300px;
  border-radius: 10px;
  box-shadow: -1rem 0 3rem #85837d;
  padding: 20px;
  position: absolute;
  left: 50%;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.title {
  color: #795548;
  font-weight: 300;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
}

.card p {
  flex: 1;
  margin: 15px 0;
  overflow: auto;
}

.card .btn {
  align-self: center;
  margin-top: auto;
  background-color: #b71c1c;
  color: #fff;
  padding: 10px 15px;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.card .btn:hover {
  background-color: #d32f2f;
}

/* Carousel Position Styles */
.card[data-pos="0"] {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 5;
}

.card[data-pos="-1"] {
  transform: translateX(-90%) scale(0.9);
  opacity: 0.7;
  z-index: 4;
  filter: blur(1px);
}

.card[data-pos="1"] {
  transform: translateX(-10%) scale(0.9);
  opacity: 0.7;
  z-index: 4;
  filter: blur(1px);
}

.card[data-pos="-2"] {
  transform: translateX(-120%) scale(0.8);
  opacity: 0.4;
  z-index: 3;
  filter: blur(2px);
}

.card[data-pos="2"] {
  transform: translateX(20%) scale(0.8);
  opacity: 0.4;
  z-index: 3;
  filter: blur(2px);
}

.card[data-pos="-3"] {
  transform: translateX(-150%) scale(0.7);
  opacity: 0.2;
  z-index: 2;
  filter: blur(3px);
}

.card[data-pos="3"] {
  transform: translateX(50%) scale(0.7);
  opacity: 0.2;
  z-index: 2;
  filter: blur(3px);
}

.card[data-pos="-4"] {
  transform: translateX(-180%) scale(0.6);
  opacity: 0.1;
  z-index: 1;
  filter: blur(4px);
}

.card[data-pos="4"] {
  transform: translateX(80%) scale(0.6);
  opacity: 0.1;
  z-index: 1;
  filter: blur(4px);
}

/* Footer Styles */
footer {
  margin-top: auto;
  background-color: #795548;
  color: #fff;
  text-align: center;
  border-top: 1px solid #a1887f;
  padding-top: 20px;
  font-size: 1em;
}

footer .validation {
  margin-top: 10px;
}

footer .validation a {
  margin: 0 10px;
  font-size: 0.8em;
  color: #fff;
}

/* Media Queries */
@media (max-width: 1400px) {
  .card-carousel {
    padding: 20px;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .head h1 {
    font-size: 2em;
    padding: 0 20px;
  }

  .head p {
    padding: 0 20px;
  }

  .card-carousel {
    height: auto;
    perspective: none;
    flex-direction: column;
    padding: 20px;
  }

  .card {
    position: relative;
    left: auto;
    width: 90%;
    max-width: 300px;
    margin: 0 0 20px 0;
    height: auto;
    min-height: 250px;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

@media (max-width: 480px) {
  .head h1 {
    font-size: 1.5em;
  }

  .card {
    width: 95%;
    padding: 15px;
  }

  .head {
    padding: 20px 0;
  }

  footer {
    padding: 15px;
  }

  footer .validation {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

html {
  scroll-behavior: smooth;
}

@media (hover: none) {
  .card {
    touch-action: pan-x pan-y;
  }
}
