body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    margin: 0;
    background-color: #ADD8E6;
    width: 100%;
    box-sizing: border-box;
}

.high-contrast {
    background-color: #000;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

header {
  background-color: #1E90FF;
  padding: 10px 0;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #4682B4;
  transition: background-color 0.3s;
}

.navbar ul li a:hover {
  background-color: #6495ED;
}

.header-image-container {
  justify-self: center;
}

.header-image-container img {
  max-height: 60px;
  height: auto;
  width: auto;
}

.button-container {
  justify-self: end;
}

#betumeretGomb {
  background-color: white;
  color: #1E90FF;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .header-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
  }

  .navbar ul {
    justify-content: center;
  }

  .button-container {
    justify-self: center;
    margin-top: 10px;
  }

  .video-section {
    flex-direction: column;
    align-items: center;
  }

  .sidebar,
  .video-container {
      max-width: 100%;
  }
}
  
main h1 {
    font-size: 2rem;
    padding: 20px;
    text-align: center;
}

main h3 {
    font-size: 1.5rem;
    padding: 20px 0px;
    text-align: left;
}

main p {
    font-size: 1rem;
    padding: 0 5%;
    text-align: left;
}

.content {
    margin-bottom: 30px;
}

.content h1 {
    font-size: 2rem;
    color: #333;
}

.content h3 {
    font-size: 1.25rem;
    text-align: justify;
    padding: 0 10%;
}

.content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    padding: 0 10%;
}

.video-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.video-container {
    flex: 2;
    width: 100%;
    max-width: 840px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    object-fit: cover;
}

footer {
    flex-shrink: 0;
    background-color: #1E90FF;
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    position: static;
    bottom: 0;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

a:link {
    color: blue;
}

a:visited {
    color: purple;
}

.navbar a {
    color: white;
}

.navbar a:visited {
    color: white;
}

/*második oldal spec*/

table {
    width: 70%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.image-container2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.thumbnail {
    display: block;
    margin: 1rem 0;
    border: 0.0625rem solid #ccc;
    padding: 0.3125rem;
    transition: transform 0.2s;
    text-align: center;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0.625rem rgba(0,0,0,0.2);
}

.image-container2 img {
    max-width: 80%;
    max-height: 20vh;
    object-fit: cover;
}

.image-vertical {
    height: 20vh;
    width: auto;
}

.image-horizontal {
    width: 80%;
    height: auto;
}

.bottom-content p {
    line-height: 1.6;
    color: #555;
    text-align: justify;
    padding: 0 10%;
}

/*harmadik oldal spec*/

.image-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}

form > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-column {
    display: flex;
    flex-direction: column;
}

.checkbox-container {
    justify-content: center;
}

.buttons-container {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.buttons-container button {
    padding: 10px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.buttons-container button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}

.buttons-container button[type="reset"] {
    background-color: #f44336;
    color: white;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="radio"],
form input[type="checkbox"] {
    margin-right: 5px;
}

form input[type="text"],
form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

form textarea {
    height: 100px;
}

.image-container-bottom {
    margin-top: 20px;
    text-align: center;
}

.image-container-bottom img {
    max-width: 40%;
    height: auto;
}

@media screen and (max-width: 600px) {
    form {
        grid-template-columns: 1fr;
    }

    .buttons-container {
        grid-column: 1;
        align-items: center;
    }

    .image-container-bottom img {
        max-width: 80%;
    }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
    form {
        grid-template-columns: 1fr 1fr;
    }

    .buttons-container {
        grid-column: 2 / 3;
        align-items: flex-end;
    }

    .image-container-bottom img {
        max-width: 60%;
    }
}

@media screen and (min-width: 1025px) {
    form {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .buttons-container {
        grid-column: 3 / 4;
        align-items: flex-end;
    }

    .image-container-bottom img {
        max-width: 40%;
    }
}