.menu {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 10;
}
#Tytul
{
    font-size: 50px;
    margin: 0;
    text-align: center;
}

.nazwa
{
    margin: 0;                         
    font-size: 24px;                 
    text-align: left;                  
    padding-bottom: 10px;               
    border-bottom: 2px solid #a855f7;    
}

h1
{
font-family: "Bitcount Ink", sans-serif;
  font-weight: 400;
  margin: 0;
  color: #f3e8ff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  -webkit-text-stroke: 1.5px #1a0033;
  paint-order: stroke fill;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8),
               0 0 12px rgba(168, 85, 247, 0.5);
justify-content: flex-end;
align-items: flex-end;
text-align: right;
font-size: 20px;
margin-top: 40%;
}

.Kontener {
    flex: 0 0 350px;
    height: 200px;
    width: 200px;
    border: 2px solid rgba(124, 58, 237, 0.8);
    background-color: rgba(26, 0, 51, 0.6);
    border-radius: 8px;
    display: flex;
    justify-content: flex-start; 
    align-items: flex-start;     
    padding: 15px;              
    text-align: left;           
    box-sizing: border-box;     
    position: relative;
    color: #f3e8ff;
    font-weight: bold;
    font-size: 28px;
}

#osoba1 {
    border-color: #a855f7;
    text-align: top;
}

.hud {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10vh;
    padding: 0 3vw;
    background-color: #1a0033;
    border-bottom: 2px solid rgba(124, 58, 237, 0.6);
    box-shadow: 0 4px 20px #7c3aed66;
    box-sizing: border-box;
    z-index: 10;
    position: relative;
}

.hud .przycisk {
    position: absolute;
    color: blueviolet;
    left: 2vw;
    top: 0;
    bottom: 0;
    margin: auto;
    height: fit-content;
}

.przycisk {
color: blueviolet;
    text-decoration: none;
    border: 0.15cqw solid #7c3aed;
    border-radius: 0.8cqw;
    padding: 0.5cqh 1cqw;
    font-size: 1.2cqw;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5cqw;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.przycisk:hover {
    background-color: rgba(124, 58, 237, 0.8);
    color: white;
    transform: translateY(-0.1cqw);
}


body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #120b1c;
    color: #f3e8ff;
    isolation: isolate;
    font-family: sans-serif;
}


.kod-tlo {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #120b1c;
}

.kod-tlo-kolumny {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    height: 100%;
    padding: 0 28px;
    opacity: 0.18;
    mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}

.kod-tlo-kolumna {
    min-width: 0;
    overflow: hidden;
}


.kod-tlo-sciezka {
    display: flex;
    flex-direction: column;
    animation: kod-do-gory 28s linear infinite;
}

.kod-tlo-kolumna:nth-child(2) .kod-tlo-sciezka {
    animation-duration: 28s;
}

.kod-tlo-blok {
    flex: none;
    margin: 0;
    padding: 0;
    color: #c3a0dc;
    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 28px;
    white-space: pre-wrap; 
    word-break: break-all;
}

@keyframes kod-do-gory {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@media (max-width: 600px) {
    .kod-tlo-kolumny {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 16px;
    }
    .kod-tlo-kolumna:nth-child(2) { display: none; }
    .kod-tlo-blok { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .kod-tlo-sciezka { animation: none; }
}

.Kontener {
    z-index: 0;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                background-color 0.3s ease, border-color 0.3s ease;
}


.Kontener.aktywny,
.Kontener:focus-visible {
    transform: translateY(-8px) scale(1.05);
    z-index: 2;
    border-color: #bd91df;
    background-color: rgba(42, 15, 66, 0.95);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4),
                0 0 14px rgba(168, 85, 247, 0.15);
}
.Kontener:focus-visible {
    outline: 2px solid #d8b4fe;
    outline-offset: 4px;
}


@media (hover: hover) {
    .Kontener:hover {
        transform: translateY(-8px) scale(1.05);
        z-index: 3;
        border-color: #bd91df;
        background-color: rgba(42, 15, 66, 0.95);
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4),
                    0 0 14px rgba(168, 85, 247, 0.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .Kontener { transition: none; }
}
