/* ---- Alap beállítások ---- */
body {
  font-family: Arial, sans-serif;
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background: url('képek/bevzeto.jpg') no-repeat center center fixed;
  background-size: cover;
}

/* ---- Fejléc ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #ffcc00;
  padding: 20px 0;
  margin-bottom: 3px;
  flex-wrap: wrap;
}

header h1 {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #001f3f;
  font-size: 1.8rem;
  margin: 0;
}

/* ---- Navigáció ---- */
nav a {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  margin-right: 5px;
  border: 2px solid #ffcc00;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffcc00;
}

nav a.active {
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ffcc00;
  color: black;
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* ---- Kontraszt váltó gomb ---- */
button.contrast-toggle {
  background-color: white;
  color: #001f3f;
  font-size: 0.9rem;
  font-weight: normal;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* ---- Címsor ---- */
main h2 {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  color: #001f3f;
  font-size: 1.5rem;
  max-width: 700px;
  margin: 30px auto;
}

/* ---- Űrlap stílus ---- */
form {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 40px auto;
  font-size: 1.1em;
}

form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #ffcc00;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
  outline: none;
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

fieldset {
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  margin: 25px 0 15px;
  background-color: #fff;
}

legend {
  font-weight: bold;
  color: #001f3f;
  padding: 0 10px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

/* ---- Gombok ---- */
button {
  background-color: #ffcc00;
  border: none;
  color: #001f3f;
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e6b800;
  color: black;
}

/* ---- Lábléc ---- */
footer {
  border-top: 3px solid #ffcc00;
  padding: 15px 30px;
  margin-top: 40px;
  font-size: 16px;
}

.footer-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-links a {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 6px 12px;
  margin: 4px;
  text-decoration: underline;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* ---- Reszponzibilitás ---- */
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
  }

  nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }
}

/* ---- Nyomtathatóság ---- */
@media print {
    body {
        background: none;
        color: black;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    header, footer, nav, .contrast-toggle, .skip-link {
        display: none;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    form, main, .footer-content {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }

    form label,
    form input,
    form textarea {
        font-size: 1rem;
    }

    video {
        display: none;
    }
    
    input[type="submit"], 
    input[type="reset"], 
    button {
        display: none;
    }
}

