/* ---- Alapbeállítások ---- */
body {
    color: black;
    font-family: 'Arial', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1.6;
    background: white;
    margin: 0;
}

/* ---- Layout és elrendezés ---- */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 600px;
    flex-shrink: 0;
}

.sidebar img {
    width: 100%;
    height: 100%s;
    object-fit: cover;
    display: block;
}

.main-page {
    flex-grow: 1;
    padding: 20px;
    background: white;
}

/* ---- Fejléc ---- */
header {
    width: 100%;
    padding: 10px 0;
    border-bottom: 2px solid #ffcc00;
    box-sizing: border-box;
}

/* ---- Navigáció ---- */
nav a {
    color: black;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 5px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.7);
    color: #ffcc00;
}

nav a.active {
    background-color: #ffcc00;
    color: black;
}

/* ---- Szöveg és bekezdések ---- */
main p {
    max-width: 60ch;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
}

/* ---- Táblázatok ---- */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 100px;
}

th, td {
    padding: 8px;
    text-align: left;
}

thead th {
    border-bottom: 2px solid #ffcc00;
}

caption {
    font-weight: bold;
    margin-bottom: 10px;
}

/* ---- Mobil nézet ---- */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .sidebar img {
        height: auto;
    }

    .main-page {
        padding: 10px;
    }

    nav a {
        display: inline-block;
        margin-bottom: 5px;
    }
}
