body {
    width: 100%;
    min-height: 100vh; /* Zapewnia, że body ma co najmniej wysokość ekranu */
    margin: 0;
    padding: 0;
    background-color: #0a0f1d; 
    background-image: url('../images/logo2.png');
    background-size: clamp(250px, 40vw, 500px); /* Płynny rozmiar z poprzedniego kroku */
    background-repeat: no-repeat;
    background-position: center 25%;
    
    /* KLUCZOWA ZMIANA: Tło stoi w miejscu, a treści nad nim scrollują się normalnie */
    background-attachment: fixed; 
    
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;            
    padding: 7px 20px;
    background-color: #111827;      
    position: relative;
}


#logo img {
    display: block;
    max-width: 120px;
    height: auto;
    margin-left: -20%;
}

#optionsContainer {
    display: flex;
    gap: 20px;                      
    align-items: center;
}


#optionsContainer > div {
    color: #9ca3af;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}


#optionsContainer > div:hover {
    color: #ffffff;                 /* Rozjaśnienie tekstu po najechaniu */
    background-color: rgba(31, 41, 55, 0.7)
}


#loginBox {
    background-color:  #111827!important;
    color: #ffffff !important;
    font-weight: bold !important;
    padding: 8px 16px !important;
    transition: background-color 0.2s ease !important;
}

#loginBox:hover {
    background-color: #e07b00 !important;
}


#line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #1f2937;    
}

.middle {
    min-height: 60vh;
}


.down {
    background-color: #111827;      
    border-top: 1px solid #1f2937;  
    color: #9ca3af;
    padding: 40px 40px 20px 40px;
    font-family: Arial, sans-serif;
}


.footer-container {
    display: flex;
    justify-content: space-between; 
    flex-wrap: wrap;                
    max-width: 1200px;
    margin: 0 auto 30px auto;       
}


.footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}


.footer h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: bold;
}


.footer a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}


.footer a:hover {
    text-decoration: underline;
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #111827;
    color: #6b7280;
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* --- RESPONSYWNOŚĆ DLA TELEFONU (poniżej 768px) --- */
@media (max-width: 768px) {
    .section.top, .top {
        position: relative; 
    }

    .menu-toggle {
        display: block; 
    }

  
    #optionsContainer {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #162235; /* Dopasuj kolor tła menu do swojego projektu */
        padding: 20px;
        box-sizing: border-box;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        gap: 10px;
    }

    /* Klasa dodawana przez JavaScript, która pokazuje menu */
    #optionsContainer.active {
        display: flex;
    }

    /* Opcjonalnie: żeby boksy w rozwijanym menu ładnie wypełniały szerokość telefonu */
    #optionsContainer > div {
        width: 100%;
        text-align: center;
        padding: 12px;
        box-sizing: border-box;
    }
}
