* {
    box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    background: transparent !important;
}

body {
    background-color: rgb(50, 20, 0);
    color: black;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

.adatok {
    border-radius: 20px;
    border: 1px solid black;
    padding: 10px;
    color: antiquewhite;
    text-align: center;
}

p {
    font-size: 20px;
}

#jatekmenu {
    display: flex;
    align-self: center;
    gap: 5px;
    width: 50%;
    height: 30px;
}

#alsomenu {
    display: flex;
    align-self: center;
    gap: 5px;
    width: 50%;
    height: 30px;
}

.jatekmenugomb,
.alsomenugomb {
    background-color: darkolivegreen;
    color: antiquewhite;
    font-size: 16px;
    height: 100%;
    padding: 10px;
    border: 0;
}

.jatekmenugomb {
    width: calc(100%/4);
}

.alsomenugomb {
    width: calc(100%/2);
}

.profil-container {
    max-width: 260px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

.stat-sor {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 5px;
    padding: 4px 0;
}

#main-content {
    text-align: center;
    padding: 0;
    gap: 0;
}

#jatekter {
    color: antiquewhite;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 1px solid whitesmoke;
    border-bottom: 1px solid whitesmoke;
}

.felsz-targy {
    position: relative;
    cursor: pointer;
}

.felsz-targy:hover::after {
    content: attr(data-tooltip);
    white-space: pre-line;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.85);
    color: antiquewhite;
    padding: 5px 8px;
    border-radius: 6px;
    z-index: 100;
    font-size: 0.9em;
}

.profil-container {
    text-align: left;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form {
    margin-bottom: 2rem;
    color: antiquewhite;
}

.auth-form h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    color: black;
    border: 1px solid antiquewhite;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.auth-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid antiquewhite;
    color: black;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.auth-form button {
    width: 100%;
    padding: 12px;
    background: #7a5000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-form button:hover {
    background: #764ba2;
}

.error-message {
    background: antiquewhite;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.game-section {
    padding: 2rem;
    background: #f5f5f5;
    min-height: 100vh;
}

/*------------------------------------------------------------Térkép--------------------------------------------------*/

#map {
    background-color: none;
    background: none;
    height: 100%;
    /* vagy 70vh, 400px - bármi konkrét */
    width: 100%;
    position: relative;
    /* ideiglenes, hogy lásd a határait */
}

/*------------------------------------------------------------Mobil stílus--------------------------------------------------*/

@media (max-width: 700px) {

    .adatok {
        padding-left: 3px;
        padding-right: 3px;
        font-size: 16px;
    }

    .auth-form input,
    .auth-form button {
        width: 100%;
    }

    .profil-container {
        text-align: left;
    }

    #jatekmenu,
    #alsomenu {
        position: fixed;
        display: flex;
        left: 0;
        right: 0;
        padding: 5px;
        gap: 5px;
        width: 100%;
        height: 60px;
    }

    #jatekmenu {
        top: 0;
        border-bottom: 1px solid antiquewhite;
    }

    #alsomenu {
        bottom: 0;
        border-top: 1px solid antiquewhite;
    }

    .jatekmenugomb,
    .alsomenugomb {
        background-color: darkolivegreen;
        color: antiquewhite;
        font-size: 16px;
        height: 100%;
        font-weight: bold;
    }

    #jatekter {
        position: fixed;
        margin-top: 60px;
        height: calc(100vh - 120px);
        width: 100%;
        padding: 10px;
        border: 0;
        overflow-y: auto;
    }

    .fejlesztesek {
        border: 0;
        text-align: center;
        width: 25px;
        height: 25px;
        font-size: 20px;
        color: antiquewhite;
        background-color: darkgreen;
    }

    .xp-bar-container {
        margin: 1px;
        padding: 1px;
        background: antiquewhite;
        border-radius: 10px;
        text-align: center;
    }

    .xp-szint {
        background-color: rgb(50, 20, 0);
        font-weight: bold;
        margin-bottom: 5px;
        border-radius: 10px 10px 0 0;
        color: antiquewhite;
    }

    .xp-bar {
        width: 100%;
        height: 20px;
        background: #ddd;
        overflow: hidden;
        position: relative;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .xp-kitoltott {
        height: 100%;
        background: linear-gradient(90deg, #5eff63, #2d8030);
        transition: width 0.5s ease-in-out;
        position: relative;
    }

    /* Opcionális: animált csík hatás */
    .xp-kitoltott::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: xp-shine 2s infinite;
    }

    @keyframes xp-shine {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }

    .xp-szam {
        background-color: rgb(50, 20, 0);
        margin-top: 5px;
        font-size: 0.9em;
        border-radius: 0 0 10px 10px;
        color: antiquewhite;
    }
}

/*------------------------------------------------------------Tablet stílus--------------------------------------------------*/