.hidden {
    display: none;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    margin: 0;
    background-image: url("Assets/Tlo.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    font-family: "Noto Serif", serif;

}
nav {
    height: 80px;
    background-color: #292d65;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;

}

.links-container{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

nav a{
    font-size: 20px;
    font-weight: 500;
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

nav a:hover{
    background-color: #4a4f8d;

}

nav a:active{
    color: #d3bc8f;
    background: none;
}

.menubar-logo {
    max-width:fit-content;
    box-sizing: border-box;
    margin-right: auto;
    margin-top: auto;
    display: flex;
    height: 100%;
    padding: 20px;
    text-decoration: none;
    white-space: nowrap;
}

#sidebar-active{
    display: none;
}

.open-sidebar-button, .close-sidebar-button{
    display: none;

}

.language-change{
    padding: 24px;
    display: flex;
    cursor: pointer;
    transition: 0.2s;
}

.language-change:hover{
    background-color: #4a4f8d;

}

.language-change:active{
    color: #d3bc8f;
    background: none;

}

@media(max-width: 800px){
    .links-container{
        
        justify-content: flex-start;
        flex-direction: column;
        align-items: start;
        display: flex;

        position: fixed;
        top: 0;
        right: 0;
        z-index: 10;
        width: min(300px, 100%);
        height: 100%;

        background-color: rgba(41, 45, 101, 0.55);
        backdrop-filter: blur(10px);
        box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;


    }
    nav a{
        width: 100%;
        padding: 20px 30px;
        white-space: nowrap;
        height: 30px;
        justify-self: flex-start;
 

    }



    .open-sidebar-button, .close-sidebar-button{
        padding: 20px;
        display: block;
        justify-content: flex-start;
    }

    #sidebar-active:checked ~ .links-container{
        
        transform: translateX(0);
        
    }

    #sidebar-active:checked ~ #overlay{
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }






}







.header {
    font-family: "Noto Serif", serif;
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
}



.demo-icon {
    font-size: 80px;
    padding: 10px;
}






#footer {
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.5rem;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: auto;
    align-self: center;
    bottom: 0;
}

/* pod telefony */
@media (max-width: 800px) {

    .section {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
    }

    .header {
        font-size: 26px;
        text-align: center;
    }

    p {
        font-size: 16px;
        margin: 12px 0;
    }

    .conventions {
        max-width: 100%;
        min-height: 320px;
    }

    .conventions a {
        font-size: 22px;
    }

    .demo-icon {
        font-size: 60px;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .task-button {
        font-size: 16px;
        padding: 12px;
    }

    .game-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* pod telefony mniejsze */

@media (max-width: 480px) {



    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .header {
        font-size: 22px;
    }

    p {
        font-size: 15px;
    }

    .task-button {
        font-size: 15px;
    }
}

