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

.main {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    min-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;
    height: 10%;
    text-align: center;
}

section {
    display: flex;
    width: 80%;
    min-height: 70vh;
    align-items: center;
}

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

.stawka {
    width: 30%;
    min-height: 70vh;
    color: white;
    padding: 10px;
}
.stawka_div1{
    width:70%;
    background-color: #1c2631;
    margin:0 auto;
    margin-top:50px;
    border-radius: 10px;
    padding:10px;
}


.siatka {
    display: grid; 
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 10px; 
    width: 70%;
    min-height: 70vh;
    padding: 10px;
}

.siatka > div {
    background-color: rgb(64, 76, 81);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 100%; 
    height: 100%; 
    transition: background-color 0.3s; 
    border-radius: 5px;
    margin:5px;
}


.siatka > div:hover {
    background-color: rgb(51, 60, 63);
}

button {
    background-color: gray;
    border: 4px solid rgb(50, 48, 48);
    border-radius: 10px;
    padding: 10px;
    color: white;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}

button:hover{
    background-color: rgb(90, 90, 90);
    transition: background-color 0.3s; 
}
form{
    text-align: center;
}
input {
    background-color: rgb(171, 171, 171);
    border: 4px solid rgb(50, 48, 48);
    border-radius: 10px;
    padding: 5px;
    max-width: 100%;
    width: 90%;
    margin-bottom: 10px;
}

input:focus {
    outline: none;
    border-color: rgb(100, 100, 100);
}

::placeholder {
    color: white;
}

.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) {
    nav {
        width: 100%;
        height: auto;
        margin-top: 100px;
    }

    .gry {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    section{
        width: 100%;
        flex-direction: column;
        display: flex; 
        margin: 0;
        padding: 0;
        background: rgb(51,60,64);
        background: linear-gradient(90deg, rgba(51,60,64,1) 0%, rgba(41,48,51,1) 36%);
    }

    .siatka {
        width: 90%;
        margin: 0 auto;
    }
    .stawka{
        width: 90%;
        margin: 0 auto;
        margin-bottom: -40px;
    }

    .stawka_div1 {
        width: 90%;
    }

    .siatka {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 5px;
    }

    button {
        font-size:15px;
    }

    input {
        font-size:15px;
        width: 90%;
    }
    form{
        text-align: none;
    }

    footer {
        text-align: center;
    }

    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;
    }

    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;
    }
}
