html {
  background: url("media/background.jpg") no-repeat center center fixed;
  background-size: cover;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  border-bottom: 1px solid #ccc;
  background-color: #143e1c;
  border-radius: 20px;
  border: black 2px solid;
}

header h1 {
  margin: 0;
  font-size: 3em;
  border: 2px solid black;
  padding: 15px 20px;
  background-color:rgb(209, 208, 208);
  border-radius: 20px;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  background-color: rgb(209, 208, 208);
  padding: 15px 25px;
  border: 2px solid black;
  border-radius: 6px;
  font-size: 1.2em;
  color: black;
  transition: background-color 0.2s;
}

nav a:hover {
  background-color: #ddd;
}

body {
  font-family: Arial, sans-serif;
  background-color: #bbb37c;
  color: #333;
  max-width: 1000px;
  margin: auto;
  border: black 2px solid;
  border-radius: 20px;
  padding: 5px;
}

main {
  display: grid;
  grid-template-columns: 1fr; /* Egy oszlopos elrendezés */
  gap: 30px;
  padding: 20px;
}

.center {
  grid-column: 1 / -1; 
  margin: auto;
  width: 100%;
  max-width: 1000px; /* vagy nagyobb */
  margin: 0 auto;
}

.video-buttons {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Két oszlop: bal videó, jobb gombok */
  gap: 30px;
  font-size: 120%;
  align-items: center;

}

.left iframe {
  width: 100%;
  height: 315px; /* Videó magassága */
}

.right-buttons {
  display: flex;
  flex-direction: column;
  gap: 30px;
  border: black 2px solid;
  border-radius: 20px;
  padding : 30px;
  background-color: #143e1c;
}

.right-buttons button {
  padding: 15px;
  font-size: 1em;
  border: 1px solid black;
  background-color: rgb(209, 208, 208);
  cursor: pointer;
  text-align: left;
  border-radius: 5px;
}

.right-buttons button:hover {
  background-color: white;
}


.content {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Két oszlop: bal szöveg, jobb kép */
  gap: 30px;
  color: white;
  margin: auto;

}

.left {
  padding: 20px;
}

.right {
  padding: 20px;
}

.border
{
  border: 2px solid black;
  padding: 20px;
  border-radius: 20px;
  background-color: #143e1c;
}

.title
{
  padding: 0;
  margin: 0;
}
img
{
  border-radius: 20px;
  border: black 2px solid;
}
table
{
  width: 100%;
  margin: auto;
  text-align: center;
  font-size: 150%;

}
table caption
{
  color: black;
}
th
{
  background-color: #143e1c;
  color: white;
  padding: 10px;
}
td
{
  background-color: rgb(209, 208, 208);
  color: black;
  padding: 10px;
}
a
{
  color:rgb(10, 169, 169);
  font-style: italic;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #ccc;
}

video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 20px 0;
}

video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

p {
  line-height: 1.6;
  font-size: 1.2em;
}

.jelentkezes-sor {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin: auto;
  background-color: #143e1c;
  border-radius: 20px;
  border: 2px solid black;
  color: white;
  font-size: 1.4em;
}

.jelentkezes-sor button {
  padding: 15px 30px;
  font-size: 1.2em;
  border: 2px solid black;
  border-radius: 10px;
  background-color: rgb(209, 208, 208);
  cursor: pointer;
}

.jelentkezes-sor button:hover {
  background-color: white;
}


@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
  }

  .video-buttons {
    grid-template-columns: 1fr; /* Egymás alá kerül a videó és a gombok */
  }

  .right-buttons {
    width: 100%;
    padding: 20px;
  }

  .content {
    grid-template-columns: 1fr; /* Szöveg és kép egymás alatt */
  }

  .jelentkezes-sor {
    flex-direction: column;
    text-align: center;
  }

  .jelentkezes-sor button {
    width: 100%;
  }

  table {
    font-size: 1em;
  }

  header h1 {
    font-size: 2em;
    text-align: center;
    width: 100%;
  }

  nav a {
    font-size: 1em;
    padding: 10px;
  }

  .right-buttons button {
    font-size: 1em;
  }

  .left, .right {
    padding: 10px;
  }

  body {
    padding: 10px;
  }
}

details summary {
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 0.5em;
  color: black;
}


.linkek-aside-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.linkek-aside-container > .left {
  flex: 1;
  color: black;  
}

.linkek-aside-container > .left a{
  color: #066666;
}

.linkek-aside-container > aside {
  flex: 0 0 300px; 
  border: 1px solid black;
  border-radius: 20px;
  padding: 15px;
  background: #143e1c;
}

nav a.active {
  background-color: #00c14d; 
  color: rgb(0, 0, 0);
  font-weight: bold;
  border-color: #066666;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  left: auto;
}

@media print {
  /* Rejtsd el a navigációt, videót, gombokat, fejlécet, láblécet, aside-okat */
  header,
  nav,
  footer,
  video,
  .video-buttons,
  .right-buttons,
  button,
  aside,
  .skip-link {
    display: none !important;
  }

  img {
    max-width: 150px;
    height: auto;
  }

  body {
    background: none;
    color: #000;
    font-size: 12pt;
    margin: 0;
    padding: 0;
  }

  main {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  table, th, td {
    border: 1px solid #000;
    border-collapse: collapse;
    padding: 4px;
  }

  .content, .center, .left, .right {
    float: none;
    width: 100%;
    display: block;
  }

  table img {
    display: block;
    margin: 4px auto;
  }
}


