/* Set height to 100% for body and html to enable the background image to cover the whole page: */
body, html {
    height: 100%;
    background-color: rgb(20, 20, 52);
    background-image: url(img/bg.jpg);
    background-size: cover;
    font-family: "Courier New", Courier, monospace;
    font-size: 25px;
    color: white;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;  /* Układanie elementów w kolumnie */
    justify-content: center;  /* Wyśrodkowanie zawartości w pionie */
    background-attachment: fixed;
}



    /* Kontakt */

#kontakt {
    background: rgba(255, 255, 255, 0.663);
    width: auto;
    padding: 50px;
    padding-top: 0;
    height: auto;
    max-height: 80%;
    max-width: 70%;
    text-align: center;
    border-radius: 10px;
    margin: auto;
}

#kontakt a {
    color: white;
    text-decoration: none;
}

.kt{
    border-radius: 10px;
    border: 2px solid black;
    height: 30px;
    width: 300px;
    margin: 5px;
}

.kt:hover{
    cursor: pointer;
}

@media (max-width: 768px) {
    .kt{
        width: 200px;
    }
}


/* O Nas */

#content {
    background: rgba(255, 255, 255, 0.663);
    width: auto;
    padding: 50px;
    padding-top: 0;
    height: auto;
    max-width: 75%;
    max-height: 80%;
    text-align: center;
    border-radius: 10px;
    margin: auto;
    color: black;
    overflow: auto;
}

#content a {
    color: rgb(0, 102, 255);
    text-decoration: none;
}

@media (max-width: 768px) {
    #content{
        font-size: 14px;
        height: auto;
        padding: 20px;
        padding-top: 0px;
        max-height: 75%;
        max-width: 65%;
    }
}




    /* Menu */

/* Nawigacja */
.nav {
    position: fixed;
    top: 0;
    left: -250px;  /* Menu ukryte na początku */
    width: 250px;
    height: 100vh;  /* Menu zajmuje całą wysokość ekranu */
    background: rgba(0, 0, 0, 0.9);
    transition: 0.3s;
    padding-top: 50px;
    z-index: 1000;  /* Menu nad tekstem */
}

.nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px;
    font-size: 18px;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Styl otwartego menu */
.nav.open {
    left: 0;
}

/* Kontener logo */
.logo-container {
    position: fixed;  /* Zmienia pozycję na stałą, niezależną od przewijania */
    top: 20px;  /* W górze */
    left: 20px;  /* Z lewej */
    cursor: pointer;
    z-index: 1001;  /* Logo nad menu */
}

/* Styl loga */
.logo-container img {
    width: 20%; /* Początkowy rozmiar */
    transition: transform 0.3s ease; /* Płynne przejście transformacji */
    transform-origin: center;  /* Skalowanie od środka */
}

/* Nowy rozmiar loga po otwarciu menu */
.new-size {
    transform: scale(2.5);  /* Powiększenie logo */
    height: auto;  /* Utrzymanie proporcji */
    margin-left: 50px;
}

/* Tekst w środkowej części ekranu */
.middle {
    position: relative;
    top: 0;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);  /* Wyśrodkowanie w poziomie */
    z-index: 999;  /* Tekst poniżej menu */
    margin-top: 30px;  /* Odstęp od góry */
}

/* Styl <hr> */
hr {
    margin: auto;
    width: 40%;
}

/* Media query dla urządzeń mobilnych */
@media (max-width: 768px) {
    /* Zmiany na urządzeniach mobilnych */
    .middle {
        margin-top: 150px;  /* Zapewnienie większego odstępu od menu na telefonie */
    }
}

/* Ustawienie marginesu górnego dla .middle, gdy menu jest otwarte */
.nav.open + .main .middle {
    margin-top: 80px;  /* Zmniejszamy margines do 80px, aby tekst był wyżej */
}
