/* ============================
   RGB LED KOCKA – OLDAL SPECIFIKUS
   ============================ */

/* Középső oszlop tagolása */
.kozep {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Dinamikus panel konténer – átlátszó */
#panel-tartalom {
    padding: 0;
    background: none;
}

/* Cím – egyezzen az etalon .alcim stílussal */
.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: -60px;
    margin-bottom: 10px;
}

/* Panel-box – középre igazítás */
.panel-box {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ============================
   KAPCSOLÁSI RAJZ PANEL
   ============================ */

.kapcsolasi-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.kapcsolasi-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.kapcsolasi-img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(150,200,255,0.4);
    transform: translateX(0%);
    opacity: 1;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

/* Lapozó gombok */
.lapozo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    padding: 8px 18px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lapozo:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.05);
}

.lapozo.bal { left: 10px; }
.lapozo.jobb { right: 10px; }

/* Animációk */
.slide-out-left  { transform: translateX(100%); opacity: 0; }
.slide-out-right { transform: translateX(-100%); opacity: 0; }
.start-right     { transform: translateX(100%); opacity: 0; }
.start-left      { transform: translateX(-100%); opacity: 0; }
.slide-in-left   { transform: translateX(0%); opacity: 1; }
.slide-in-right  { transform: translateX(0%); opacity: 1; }

/* ============================
   SZERELÉSI LÉPÉSEK
   ============================ */

/* A régi grid teljes kikapcsolása */
.szereles-lepes,
.szereles-grid {
    display: block !important;
}

/* Csík az egyes lépések között (A verzió) */
.alkatresz-sor {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Minden szöveg legyen fehér */
body, p, h1, h2, h3, h4, h5, h6, div, span {
    color: #ffffff;
}

/* Képsor – a képek a SZÖVEG ALATT jelenjenek meg */
.szereles-kepsor {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;      /* fontos: a szöveg alatt legyen tér */
    justify-content: center;
}

.szereles-kepsor img {
    width: 180px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}

/* 1–4. lépés képeinek kisebb méret, hogy elférjenek egy sorban */
.szereles-lepes:nth-of-type(-n+4) .szereles-kepsor img {
    width: 130px;
}
.kapcsolasi-letoltesek {
    text-align: center;
    margin-top: 20px;
}

.kapcsolasi-sor {
    color: #ffffff;
    font-size: 18px;
    margin: 6px 0;
}

.kapcsolasi-sor a {
    color: #7fc8ff;
    text-decoration: none;
}

.kapcsolasi-sor a:hover {
    text-decoration: underline;
}
.programozas-panel {
    text-align: center;
    margin-top: 10px;
}

.prog-cim {
    font-size: 22px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.prog-sor {
    color: #ffffff;
    font-size: 18px;
    margin: 6px 0;
}

.prog-kod {
    background: rgba(255,255,255,0.08);
    padding: 10px;
    border-radius: 6px;
    color: #ffffff;
    font-family: monospace;
    font-size: 16px;
    width: 90%;
    margin: 10px auto;
    text-align: left;
    white-space: pre;
}

.prog-sor a {
    color: #7fc8ff;
    text-decoration: none;
}

.prog-sor a:hover {
    text-decoration: underline;
}
