* {
  font-family: "Ubuntu", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;
  background: #f4f4f4;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  border: 1px solid #ccc;
  border-radius: 5px;
}

header {
  background: #174F6F;
  color: white;
  padding: 50px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #ccc;
  border-radius: 5px;

}

.logo {
  margin-bottom: 30px;
  font-size: 4rem;
  font-weight: bold;
}

.logo img {
  width: 500px;
  height: 128px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 10px;
}

.hero {
  background: url('images/HT5.jpg') center/cover no-repeat;  
  color: white;
  text-align: center;
  padding: 100px 20px;
  background-color: #000000;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 1px;
}

.hero h1 {
  color: white;
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
  color: white;
  text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.8);
}

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #ffaa00;
  color: black;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.cta-button:hover {
  background-color: #e69900;
}

.services, .contact {
  padding: 40px 20px;
  text-align: center;
  background: white;
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.services h2, .contact h2 {
  font-family: "Ubuntu", sans-serif;
  margin-bottom: 10px;
}

.about {
  padding: 40px 100px;
  text-align: center;
  background: white;
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.about h2 {
  text-align: center;
  font-family: "Ubuntu", sans-serif;
  margin-bottom: 10px;
}

.service-boxes {
  font-family: "Ubuntu", sans-serif;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.box h4 {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
}  
  
.box h5 {
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
}  

.box {
  text-align: left;
  width: 45%;
  min-width: 250px;
  margin: 10px;
  background: #e6f2ff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

 .referencia {
  padding: 40px 20px;
  text-align: center;
  background: white;
  margin-top: 2px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.referencia h2{
  margin-bottom: 10px;
  text-align: center;
}

.scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 10px;
  cursor: grab;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-drag: none;
}

.scroll-row.active {
  cursor: grabbing;
}

.scroll-row img {
  height: 300px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.scroll-row img:hover {
  transform: scale(1.05);
}

/* Rejtett scrollbar (opcionális) */
.scroll-row::-webkit-scrollbar {
  display: none;
}
.scroll-row {
  -ms-overflow-style: none;  /* IE és Edge */
  scrollbar-width: none;     /* Firefox */
}

.modal {
  display: none; /* alapból rejtett */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 4px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

#caption {
  text-align: center;
  color: white;
  padding: 10px 0;
  font-size: 1.2rem;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  border: none;
  background-color: rgba(0,0,0,0.3);
  user-select: none;
  border-radius: 3px;
  transition: background-color 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.6);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

#scroll-progress-container {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}

#scroll-progress-bar {
  height: 100%;
  width: 0;
  background: #4caf50;
  border-radius: 4px;
  transition: width 0.2s ease;
}

#modal-caption-container {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 18px;
}

#custom-scrollbar {
  height: 8px;
  width: 100%;
  background-color: #ccc;
  position: relative;
  margin-top: 8px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
}

#custom-scrollbar-thumb {
  height: 100%;
  width: 0;
  background-color: #666;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0;
  cursor: grab;
}

footer {
  background: url('images/HT4.jpg') center/cover no-repeat;
  background-color: #174F6F;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Kapcsolat űrlap */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px;
}

.contact-form input,
.contact-form textarea { 
  font-family: "Ubuntu", sans-serif;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.contact-form button {
  font-family: "Ubuntu", sans-serif;
  background-color: #ffaa00;
  color: black;
  border: none;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #e69900;
}

.contact-info {
  text-align: center;
  margin-top: 20px;
}

.contact-info a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
}

/* Reszponzivitás */
@media (max-width: 768px) {
  .service-boxes {
    flex-direction: column;
    align-items: center;
	width: auto;
  }

  header {
    flex-direction: column;
    text-align: center;
	width: auto;
  }

  nav a {
    display: block;
    margin: 10px 0;
	width: auto;
  }

  .box {
    width: auto;
  }
  
  .logo img {
    width: 100%;
    height: auto;
  }
}
