/* ============================
   ROBOT – PANEL (LEDKOCKA STÍLUS)
   ============================ */

/* A panel teljes háttere és kerete */
#robot-panel-tartalom {
    position: relative;
    width: 600px;
    margin: 40px auto;
    padding: 40px; /* a panel belső margója */
    border-radius: 12px;
    background: #001A33;
    box-shadow:
        0 0 20px rgba(0, 80, 160, 0.25),
        inset 0 0 25px rgba(0, 80, 160, 0.35);
    z-index: 1;

    /* FIX MAGASSÁGOK ELTÁVOLÍTVA */
    min-height: auto;
    height: auto;
}

/* Felső és alsó fénycsík */
#robot-panel-tartalom::before,
#robot-panel-tartalom::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(120,180,255,0.9),
        rgba(180,220,255,1),
        rgba(120,180,255,0.9),
        transparent
    );
    box-shadow:
        0 0 6px rgba(150,200,255,0.6),
        0 0 12px rgba(150,200,255,0.4);
}

#robot-panel-tartalom::before { top: 0; }
#robot-panel-tartalom::after  { bottom: 0; }

/* A panel doboza (LED-kocka stílus) */
.panel-box,
.panel-box-rovid {
    background: #001A33;
    border: 2px solid #00aaff;
    border-radius: 12px;
    padding: 40px;
    box-shadow:
        0 0 20px rgba(0, 80, 160, 0.25),
        inset 0 0 25px rgba(0, 80, 160, 0.35);

    /* FIX MAGASSÁGOK ELTÁVOLÍTVA */
    min-height: auto;
    height: auto;
}

/* A belső tartalom – NINCS többé külön scroll */
.alkatresz-panel-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

/* A panel címe LED-kocka stílusban */
#robot-panel-cim {
    width: 100%;
    text-align: center;
    font-family: "Times New Roman", serif;
    font-size: 34px;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    margin-top: -20px;
    margin-bottom: 20px;
}

/* Kapcsolási rajz panel */
.kapcsolasi-belso {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kapcsolasi-belso img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

/* Szerelés panel */
.szereles-belso p {
    color: white;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.szereles-belso a {
    color: #7ec8ff;
    text-decoration: none;
    font-size: 20px;
}

.szereles-belso a:hover {
    text-decoration: underline;
}

/* Programozás panel */
.programozas-belso p {
    color: white;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.programozas-belso a {
    color: #7ec8ff;
    text-decoration: none;
    font-size: 20px;
}

.programozas-belso a:hover {
    text-decoration: underline;
}
/* ============================
   ALKATRÉSZEK PANEL – EGYEDI SCROLL
   ============================ */

/* Csak az alkatrészek panel görgethető */
#robot-panel-tartalom.alkatreszek-scroll {
    max-height: 1020px;       /* ne érjen le a háttér aljáig */
    overflow-y: auto;        /* belső görgetés */
    overflow-x: hidden;
    padding-right: 12px;     /* hogy a scrollbar ne takarja a szöveget */
}

/* A többi panel ne görgessen */
#robot-panel-tartalom:not(.alkatreszek-scroll) {
    overflow: visible;
    max-height: none;
}
