/* Globalne ustawienia */
* {
    box-sizing: border-box;
    padding: 0;
}

body {
    width: 80%;
    background: #ff5e00;
background: linear-gradient(90deg, rgba(255, 94, 0, 1) 0%, rgba(235, 184, 19, 1) 14%, rgba(235, 184, 19, 1) 85%, rgba(255, 94, 0, 1) 99%);
    margin: auto;
    font-family: 'Trebuchet MS';
}

/* Banner */
.banner {
    height: 20%;
    width: 100%;
}

.banner img {
    width: 100%;
    float: left;
}

/* Nawigacja */
nav {
    background-color: rgb(0, 0, 0);
    font-size: 17px;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    display: flex;
    align-items: center;
}

nav .redirect a {
    color: rgb(214, 120, 13);
    margin-right: 20px;
    font-size: 19px;
    
}



.bookmarks a {
    color: white;
    margin: 10px;
    text-transform: uppercase;
    text-decoration: none;
}

.bookmarks a:hover {
    color: rgb(105, 224, 68);
    transition: background-color 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
}

.bookmarks a.active {
    color: green;
    
}

.redirect a {
    text-transform: uppercase;
}

.redirect a:hover {
    color: white;
}

main {
    float: left;
    background-color: #fcfbf9;
    text-align: justify;
    width: 100%;
    
}
/* Stopka */
footer {
    clear: both;
    background-color: rgb(28, 2, 2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    height: 50px;
    font-size: 16px;
    
}

/* Linki globalnie */
a {
    text-decoration: none;
}



/* Przycisk przewijania do góry */

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100; 
    background-color: #245c0c;
    color: white;
    border: none;
    outline: none;
    padding: 12px 17px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 1px 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    background-color: #23cf2c;
    transform: scale(1.1);
}

/* Hamburger menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bookmarks {
    display: flex;
    align-items: center;
}

/* --- MEDIA QUERIES --- */

/* TABLET: poniżej 992px */
@media screen and (max-width: 1100px) {
    body {
        width: 90%;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav .redirect a {
        font-size: 18px;
    }
    nav .redirect  {
    color: rgb(214, 120, 13);
    margin-right: 20px;
    font-size: 19px;
    background-color: #0a0905;
    width: 100%;
    padding: 4px;
    
    
}

    .bookmarks a {
        font-size: 17px;
    }
}

/* TELEFON: poniżej 768px */
@media screen and (max-width: 790px) {
    body {
        width: 100%;
        margin: 0;
        padding: 0 10px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        
    }
    
    nav{
        display: flex;
        flex-direction: row;
        
    }
    
nav .redirect  {
    color: rgb(214, 120, 13);
    margin-right: 20px;
    font-size: 19px;
    background-color: black;
    
}
    .bookmarks {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: 0;
        width: 200px;
        background-color: black;
        padding: 20px;
        z-index: 999;
    }

    .bookmarks.show {
        display: flex;
    }

    .bookmarks a {
        color: white;
        margin: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid gray;
        text-align: center;
    }

    .bookmarks a:hover {
        color: #23cf2c;
    }

    footer {
        font-size: 14px;
        text-align: center;
    }

    #scrollTopBtn {
        padding: 10px 12px;
        font-size: 16px;
    }
}

/* MAŁE TELEFONY: poniżej 480px */
@media screen and (max-width: 480px) {
    nav .redirect a {
        font-size: 16px;
    }

    .bookmarks a {
        font-size: 16px;
    }

    footer {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .text {
        font-size: 15px;
    }
}