/* === Banner kép parallax effektussal === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-image: url(media/background2.jpg);
    background-size: cover;
    font-size: 16px; /* Alapértelmezett betűméret */
}
.character-title  {
    text-align: center;
}

.header-container {
    position: relative;
    height: 60vh; /* 60% képernyőmagasság */
    overflow: hidden;
}

.header-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    object-fit: cover;
    z-index: -1;
}

.header-title {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.7);
    width: 100%;
    font-size: 3rem; /* Alapértelmezett betűméret */
}

/* Tartalom ami rácsúszik */
.main-content {
    position: relative;
    background: lightslategray;
    margin-top: -6.25rem; /* -100px */
    padding-top: 6.25rem; /* 100px */
    border-radius: 1.5625rem 1.5625rem 0 0; /* 25px */
    box-shadow: 0 -0.3125rem 0.9375rem rgba(0, 0, 0, 0.1); /* 5px */
    z-index: 1;
}

table {
    border: 0.125rem solid #1a1a2e; /* 2px */
    border-collapse: collapse;
}

th, td {
    border: 0.0625rem solid #ddd; /* 1px */
}

table img {
    width: 100%;
    height: 100%;
}

/* Fix cellaméret beállítása */
td:has(img) {
    width: 5rem; /* 80px */
    height: 5rem; /* 80px */
}

/* === A többi stílus megtartása === */
nav {
    background-color: #1a1a2e;
    padding: 1rem 0; /* 15px */
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
    margin: 0 0.625rem; /* 10px */
    transition: color 0.3s;
    font-size: 1.125rem; /* 18px */
}

section {
    background-color: white;
    padding: 1.25rem; /* 20px */
    margin: 1.25rem auto; /* 20px */
    max-width: 62.5rem; /* 1000px */
    border-radius: 0.5rem; /* 8px */
    box-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.1); /* 2px 5px */
}

/* Reszponzív beállítások */
@media (max-width: 48em) { /* 768px */
    .header-container {
        height: 50vh;
    }
    
    .header-image {
        height: 50vh;
    }
    
    .main-content {
        margin-top: -3.125rem; /* -50px */
        padding-top: 3.125rem; /* 50px */
    }
}

@media (max-width: 30em) { /* 480px */
    .header-container {
        height: 40vh;
    }
    
    .header-image {
        height: 40vh;
    }
    
    .header-title {
        font-size: 1.5rem; /* 24px */
        bottom: 15%;
    }
}

section.dark-mode {
    background-color: black;
    color: white;
}

section.dark-mode a {
    color: #66ccff; /* világoskék */
}

section.dark-mode a:visited {
    color: #ffcc66; /* világossárga */
}
.build-icon {
    width: 100%;
    max-width: 9.375rem; /* 150px */
    height: auto;
}

.navbar {
    background-color: #1a1a2e;
    padding: 1rem; /* 15px */
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem; /* 20px */
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links a {
    color: #e94560;
    text-decoration: none;
    font-weight: bold;
    padding: 0.625rem; /* 10px */
    font-size: 1.125rem; /* 18px */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* --- Mobilra egymás alá rendezés --- */
@media (max-width: 37.5em) { /* 600px */
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}
