*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background: #dfcfbe;
  font-family: Calibri, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0;
}

header {
  margin: 0;
  padding: 0;
}

p {
  color: #dfcfbe;
  font-size: 1.25rem;
  margin-left: 5%;
}

textheader {
  color: #dfcfbe;
  font-size: 1.75rem;
  font-weight: 900;
  margin-left: 5%;
}

.image-wrapper {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.layout {
  display: flex;
  height: 70vh;
  width: 100%;
}

.left-panel {
  width: 50%;
  height: 70vh;
  text-align: left;
  color: #dfcfbe;
  font-size: 1.25rem;
  background-color: #2C2723;
  padding: 2rem;
}

ul {
  margin-left: 4%;
  font-size: 1.25rem;
}

li {
  margin-bottom: 1em;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 2rem;
  color: #2C2723;
  font-size: 1.1rem;
}

.footerleft,
.footerright {
  width: auto;
  flex: 0 1 auto;
  padding: 0;
  color: #2C2723;
}

@media (max-width: 1080px) {
  .left-panel {
    font-size: 1rem;
    padding: 1.3rem;
  }

  p, ul {
    font-size: 1rem;
  }

  textheader {
    font-size: 1.4rem;
  }

  .footer {
    font-size: 1rem;
  }

  .dots {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    height: auto;
  }

  .left-panel {
    width: 100%;
    height: auto;
    padding: 1rem;
    font-size: 0.95rem;
  }

  .slider {
    width: 100%;
    height: auto;
    padding: 1rem;
  }

  p, ul {
    font-size: 0.95rem;
    margin-left: 0;
    text-align: center;
  }

  .textheader {
    font-size: 1.2rem;
    margin-left: 0;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .footerleft,
  .footerright {
    text-align: center;
    width: 100%;
  }

  ul {
    margin-left: 1.5rem;
  }
}
a{color: #000;
text-decoration: none;
outline: none;
}

.slideshow {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: fade 15s infinite;
}

.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 5s; }
.slideshow img:nth-child(3) { animation-delay: 10s; }

@keyframes fade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  30%  { opacity: 1; }
  35%  { opacity: 0; }
  100% { opacity: 0; }
}
