html {
  background-image: url(../media/hatterek/hatter3.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-size: 100%; /* Base size = 16px if not overridden */
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  background-color: var(--szín1);
  margin: 6.25em 10%; /* 100px = 6.25em */
  padding: 3.125em; /* 50px */
  color: var(--szín3);
  border-radius: 0.625em;
  box-shadow: 0.3125em 0.625em 0.625em 0;
}

.introduction {
  background-color: #fdfdfd;
  padding: 1.875em 3.75em; /* 30px 60px */
  border-radius: 1em;
  box-shadow: 0.125em 0.25em 0.375em rgba(95, 74, 28, 0.2);
  margin: 2.5em auto 0 auto;
  max-width: 56.25em; /* 900px */
  text-align: left;
}

.introduction h1 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
  color: #2c2c2c;
  font-weight: 500;
}

.introduction p, .introduction li {
  font-size: 1rem;
  color: #2c2c2c;
  margin: 0.4em 0;
}

.introduction ul {
  list-style-type: disc;
  padding-left: 1.5em;
}

.gallery-container {
  max-width: 62.5em; /* 1000px */
  margin: 0 auto;
  padding-top: 6.25em;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  height: 18.75em; /* 300px */
  border: 0.25em solid var(--szín3);
  border-radius: 0.5em;
}

.image-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  transition: opacity 1s ease-in-out, transform 8s ease-in-out;
  opacity: 0;
  z-index: 1;
}

.image-wrapper img.active {
  opacity: 1;
  transform: scale(1.1);
}

.image-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.625em 1.25em;
  border-radius: 0.625em;
  z-index: 1;
  text-align: center;
  font-size: 2rem;
  line-height: 1.5;
  text-decoration: none;
}

.image-title:hover {
  background-color: rgba(100, 100, 100, 0.6);
}

.kiallitas {
  background-color: #fdfdfd;
  border: 0.0625em solid #ccc;
  border-radius: 0.5em;
  margin: 1em 0;
  padding: 1em;
  box-shadow: 0.125em 0.125em 0.375em rgba(0, 0, 0, 0.05);
}

.kiallitas .hely {
  font-weight: bold;
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 0.25em;
}

.kiallitas .datum {
  font-style: italic;
  color: #666;
  margin-bottom: 0.5em;
}

.kiallitas .cim {
  font-size: 1.4rem;
  font-weight: bold;
  color: #756107;
  margin: 0.5em 0;
  border-bottom: 0.125em solid #ccc;
  padding-bottom: 0.2em;
}

.velemeny {
  background-color: #f4f4f4;
  border-left: 0.25em solid #888;
  margin: 0.5em 0 1em;
  padding: 0.75em 1em;
  font-style: italic;
  color: #444;
  border-radius: 0.25em;
}

.submit-button {
  display: inline-block;
  padding: 0.625em 1.25em;
  background-color: var(--szín16);
  color: rgb(0, 0, 0);
  text-decoration: none;
  border-radius: 0.5em;
  font-weight: bold;
  transition: background-color 0.2s;
}

.submit-button:hover {
  background-color: var(--szín4);
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .introduction {
    padding: 3.75em 1.25em 1.25em;
  }
  body {
    padding: 1.25em;
    margin: 0;
  }
}

@media screen and (max-width: 768px) {
  .introduction {
    padding: 3.125em 0.625em 0.625em;
  }
  body {
    padding: 0.625em;
    margin: 0;
  }
}
