* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Lexend", sans-serif;
}

.main {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    background: rgb(51,60,64);
    background: linear-gradient(90deg, rgba(51,60,64,1) 0%, rgba(41,48,51,1) 36%);
}

header {
    width: 100%;
    height: 10vh;
    background-color: #1c2631;
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srodki {
    margin: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

nav {
    width: 20%;
    height: 70vh;
}

nav > a {
    color: white;
    text-align: center;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav_link {
    background-color: #293033;
    width: 75%;
    height: 20%;
    margin: 5px auto;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav_link > img {
    height: 70px;
    transform: none;
}

.nav_link:hover {
    background-color: rgb(90, 90, 90);
    transition: background-color 0.3s;
}

.gry {
    color: white;
    text-align: center;
    height: 10%;
}
footer {
    background-color: #1c2631;
    min-height: 20vh;
    width: 100%;
    color: white;
    text-align: center;
}
.h2Footer{
    height: min-content;
    text-align: center;
    padding-top: 5px;
}

section {
    display: flex;
    width: 80%;
    height: 70vh;
}

.lewo {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 50%;
    text-align: center;
    color: white;
}

.prawo {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.ziutek {
    width: 80%;
    object-fit: cover;
}

.poradnik {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50%; 
}

.poradnik_link {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.poradnik a {
    width: 100%;  
    height: 100%; 
}

.poradnik_link > a > img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.poradnik_link > a > img:hover {
    transform: scale(1.1);
    transition: transform 0.3s;
}
.divFooter{
    color:white;
    display:flex;
    text-align: center;
    justify-content: center;
    background-color: #1c2631;
}
.divGry1{
    margin:30px;
    width:10%;
    margin-top:35px;
    padding:20px;
    height:100%;
    background-color: #0f141a;
    border-radius: 10px;
    -webkit-box-shadow: inset 0px 0px 20px -10px rgba(247, 3, 3, 1);
    -moz-box-shadow: inset 0px 0px 20px -10px rgba(247, 3, 3, 1);
    box-shadow: inset 0px 0px 20px -10px rgba(247, 3, 3, 1);
}
.divGry2{
    margin:30px;
    width:10%;
    margin-top:35px;
    padding:20px;
    height:100%;
    background-color: #0f141a;
    border-radius: 10px;
    -webkit-box-shadow: inset 0px 0px 20px -10px rgba(0, 255, 41, 1);
    -moz-box-shadow: inset 0px 0px 20px -10px rgba(0, 255, 41, 1);
    box-shadow: inset 0px 0px 20px -10px rgba(0, 255, 41, 1);
}

@media (max-width: 768px) {
    .main {
        flex-direction: column;
        height: auto;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        z-index: 100;
    }

    .srodki {
        position: static;
        margin: 10px 0;
        text-align: center;
        font-size: 20px;
        text-decoration: none;
        color: white;
    }

    nav {
        width: 100%;
        height: auto;
        margin-top: 100px;
    }

    section {
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .lewo {
        width: 100%;
        height: auto;
    }
    .prawo {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .text {
        padding: 20px;
    }

    .ziutek {
        width: 80%;
        margin: 0 auto;
    }

    .poradnik {
        height: auto;
        margin-top: 20px;
    }

    footer {
        height: auto;
        text-align: center;
        padding: 10px;
    }
    header > a {
        text-decoration: none;
    }
    footer{
        height: fit-content;
    }
    .divFooter{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 90%;
        flex-direction: column;
        margin: 0 auto;
    }
    .divGry1{
        width: 100%;
        padding: 10px;
        margin: 7px 0;
    }
    .divGry2{
        width: 100%;
        padding: 10px;
        margin: 7px 0;
    }
}
