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;
  font-size: 1.2rem;
  font-weight: bold;
}

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: 2rem;
  margin: 0;
  font-weight: bold;
}

nav a {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
  margin-right: 5px;
  border: 2px solid #ffcc00;
  transition: all 0.2s ease;
  font-weight: bold;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffcc00;
}

nav a.active {
  background-color: #ffcc00;
  color: black;
}

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.7rem;
  max-width: 700px;
  margin: 30px auto;
  font-weight: bold;
}

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.2rem;
  font-weight: bold;
}

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: 1.1rem;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-weight: bold;
}

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;
  font-weight: bold;
}

legend {
  font-weight: bold;
  color: #001f3f;
  padding: 0 10px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}

button {
  background-color: #ffcc00;
  border: none;
  color: #001f3f;
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #e6b800;
  color: black;
}

footer {
  border-top: 3px solid #ffcc00;
  padding: 15px 30px;
  margin-top: 40px;
  font-size: 1.1rem;
  font-weight: bold;
}

.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);
}

@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;
  }
}
