/* Általános reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Body alap */
body {
    background-color: #111;
    /* háttér a főoldalnak */
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header és fő konténer közös szélessége */
header,
.container {
    width: 90%;
    max-width: 800px;
    /* asztali gépen kb. 50% egy fullHD-n */
    margin-left: auto;
    margin-right: auto;
}

header.container {
    height: 100px;
    border-radius: 50px;
}

/* Header stílus */
header {
    text-align: center;
    position: relative;
    background-color: #002244;
    color: white;
    display: flex;
    align-items: center;
    height: 100px;
    border-radius: 50px;
    margin-bottom: 40px;
    /* pontosan 40px távolság a konténertől */
}

.logo img {
    width: 100px;
    height: 100px;
    border-radius: 50px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 arány */
    padding-top: 25px;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    background-color: #000;
    margin: 1rem 0;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

figcaption {
    font-size: 0.5em;
}

nav {
    display: flex;
    gap: 20px;
    margin-left: 0; /* ezt betesszük, hogy jobbra tolódjon szépen */
    overflow: visible; /* vagy egyszerűen nincs overflow */
    align-items: center;
    margin-top: -10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

nav ul li {
    flex: 1; /* Az egyes menüpontok a rendelkezésre álló helyet egyenletesen osztják meg */
    display: flex;
    justify-content: center;
    align-items: center;/* A lehetőségek a rendelkezésre álló helyet egyenletesen felosztják */
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: white;
    background-color: #555; /* szürke háttér */
    padding: 10px 0; /* Függőleges paddingot adunk, hogy az elemek belső terjedelme egyforma legyen */
    border-radius: 25px; /* Lekerekített szélek */
    display: block; /* blokk típusú elem, hogy a szélesség 100%-ot vegyen fel */
    text-align: center;
    width: 120px; /* Az egész szélesség kitöltése */

}

nav ul li a:hover {
    background-color: #777; /* világosabb szürke hover-re */
}

/* Fő konténer */
.container {
    background-color: #222;
    /* sötét háttér */
    border-radius: 20px;
    /* lekerekítve csak alul */
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* szekciók között */
}

/* Szekciók */
.section {
    background-color: #333;
    border-radius: 15px;
    text-align: justify;
    line-height: 1.5;
    padding: 30px;
}

.section .top {
    border-radius: 20px 20px 0 0;
    padding: 10px;
    background-color: #555;
    text-align: center;
}

.logo {
    position: absolute;
    left: 0;

    top: 52%;
    transform: translateY(-50%);
}

a.game-title:link{
    color: #ffffff;
    text-decoration: underline;
}
a.game-title:visited{
    color: #d6d6d6
}
a.game-title:hover{
    color: #797979;
}
a.game-title:active {
    color: #c7c7c7;
}

.current {
    background-color: #500a5a;
}

.current:hover {
    background-color: #9214a3;
}

.section div img {
    max-width: 100%;
    height: auto;
    bottom: 0;
}

.section .mid {
    border-radius: 0px;
}

.mythology-bg {
    background-image: url('../media/otletek/mythologies.png');
    background-size: cover;
    background-position: center;
    height: 300px; /* vagy amekkora képméretet szeretnél */
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.section .bottom {
    border-radius: 0 0 10px 10px;
}

.section p {
    margin: 10px;
}

.btn {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    background-color: #555; /* szürke háttér */
    padding: 10px 0; /* Függőleges paddingot adunk, hogy az elemek belső terjedelme egyforma legyen */
    border-radius: 10px; /* Lekerekített szélek */
    width: 200px; /* Fix szélesség beállítása */
    text-align: center; /* Középre igazítja a szöveget */
    margin: 20px auto; /* Középre igazítja a gombot a szülő elemén belül */
}

/* A gomb hover állapota */
.btn:hover {
    background-color: #777; /* világosabb szürke hover-re */
}

/* Táblázatok, űrlapok */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table,
th,
td {
    border: 1px solid #555;
}

th,
td {
    padding: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

input[type="text"]{
    margin: auto;
    width: 30em;
}

input[type="text"],
textarea {
    padding: 10px;
    border-radius: 10px;
    border: none;
    background-color: #444;
    color: white;
    resize: none;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
    float: left;
}

button,
input[type="submit"],
input[type="reset"] {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background-color: #b82dae;
    color: white;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #87009e;
}



/* Gombok egymás mellett */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Rádiógombok igazítása */
input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 oszlop */
    gap: 0.5rem 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
    display: inline;
}

/* Alternatíva a közös stílushoz: */
label input[type="checkbox"],
label input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
}

.title {
    text-align: center;
}

/*Light mode */
button.lightmode {
    max-width: 180px;
}


body.light-mode {
    background-color: #f4f4f4;
    color: #000;
}

body.light-mode .container{
    background-color: #fff;
    color: #000;
}

body.light-mode header {
    background-color: #cce0ff;
    color: #000;
}

body.light-mode .container .section .top {
    background-color: #b8b8b8;
}
body.light-mode .container .section .mid,
body.light-mode .container .section .bottom,
body.light-mode .container .section {
    background-color: #e6e6e6;
}

body.light-mode nav ul li a {
    background-color: #ddd;
    color: #000;
}

body.light-mode a.game-title:link{
    color: #2e2e2e;
    text-decoration: underline;
}

body.light-mode a.game-title:visited{
    color: #1b1919
}
body.light-mode a.game-title:hover{
    color: #656565;
}
body.light-mode a.game-title:active {
    color: #000000;
}

body.light-mode nav ul li a:hover {
    background-color: #bbb;
}

body.light-mode input[type="text"],
body.light-mode textarea {
    background-color: #eee;
    color: #000;
}

body.light-mode button,
body.light-mode input[type="submit"],
body.light-mode input[type="reset"] {
    background-color: #0077cc;
    color: white;
}

body.light-mode button:hover,
body.light-mode input[type="submit"]:hover,
body.light-mode input[type="reset"]:hover {
    background-color: #005999;
}

body.light-mode .video-wrapper {
    box-shadow: 0 0 10px rgba(100, 100, 100, 0.3);
}
/* Reszponzivitás */
@media (max-width: 600px) {
    form {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }
}

/* Mobilnézet */
@media (max-width: 768px) {

    header,
    .container {
        width: 90%;
        /* mobilon is 90% */
    }
}

/* Extra reszponzivitás - mobil és tablet nézet */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .logo {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }

    nav {
        justify-content: center;
        float: none;
        overflow: visible;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul li {
        float: none;
        margin: 0;
    }

    .container {
        width: 95%;
        padding: 20px;
    }

    .section {
        padding: 10px;
    }

    .section .top h1,
    .section .top h2 {
        font-size: 1.5em;
    }

    .btn {
        font-size: 1em;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 18vw;
        height: auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    input[type="text"],
    textarea {
        width: 100%;
    }

    button,
    input[type="submit"],
    input[type="reset"] {
        width: 100%;
    }
}

.hamburger {
    display: none;
    font-size: 1em;
    cursor: pointer;
}

/* Mobil nézetben látható legyen a hamburger */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #002244;
        position: absolute;
        top: 100px;
        right: 0;
        width: 200px;
        border-radius: 0 0 10px 10px;
    }

    nav ul.active {
        display: flex;
    }
}

@media screen and (max-width: 750px) {
    iframe {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    .radio-group {
        grid-template-columns: 1fr; /* Egy oszlop mobilnézetben */
    }
}

@media print {
    header, nav, aside, footer, video, iframe{
      display: none !important;
    }

    body {
      color: black !important;
      background: white !important;
      font-size: 11pt;
      line-height: 1.4;
      margin: 1cm;
    }

    img {
      max-width: 50% !important;
      height: auto !important;
    }

    a {
      color: black !important;
      text-decoration: none;
    }
  }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #222;
    color: #fff;
    padding: 10px 15px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}