*{margin: 0px; overflow: hidden;}

h1,p,td{
    font-family:czcionka;
}
h2,li{font-family: czcionka-italic}
@font-face {
    font-family: czcionka;
    src: url(czcionki/kanit/Kanit-SemiBold.ttf);
}
@font-face {
    font-family: czcionka-bold;
    src: url(czcionki/kanit/Kanit-ExtraBold.ttf)
}
@font-face {
    font-family: czcionka-italic;
    src: url(czcionki/kanit/Kanit-ExtraLightItalic.ttf)
}
@media (max-width: 420px) {
    div.content{
        display: none;  
    }
}
@media (max-width: 1000px) {
    .sidebar{
        display: none; 
    }
    div.mistrzowie li,h2,header, footer{font-size: smaller;}
    
}
@media print{}

table.tablica{
    border-spacing: 0px;
    position:relative;
    border: 1px, solid;
    margin: 10px;

}
td{
    padding: 4px;
    border-radius: 2%;
}

                /* sidebar - menu wysuwane od prawej */

img.figura{
    width: 2em;
    margin-bottom: 5px;
    height: auto;
    transition: transform 0.35s ease-in-out; /* animacja*/
}
img.figura:hover {
    transform: translateY(-5px); /* animacja */
}
img.figura_menu{
    width: 2em;
}
.sidebar {
    position: fixed;
    top: 35%;
    right: 0;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 10px;
    width: 30px;
    transition: all 0.6s ease;
    transition-timing-function: ease-in-out;
    border: 1px solid;
    border-color: #000000;
    max-width: 100%;
}
.sidebar ul {
    list-style-type: none;
    padding: 0px;
}
.sidebar li {
    margin: 20px 0;
}

.icon-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.icon {
    width: 2em;
    transition: transform 0.3s ease;
    background-color: white;
    padding: 0px;
    border-radius: 20%;
    margin-top: 10px;
    
}

.label {
    font-family:czcionka-bold;
    color:#357927;
    margin-left: 5px;
    margin-bottom: 10px;
    font-size: 19px;
    padding: 0px;
    opacity: 0;
    position: absolute;
    left: 60px;
    white-space: nowrap;
    transition: opacity 0.4s ease, left 0.4s ease;
    text-shadow:
    1px 1px 0px black,  /* Cień po prawej dolnej stronie */
    -1px -1px 0px black, /* Cień po lewej górnej stronie */
    1px -1px 0px black,  /* Cień po prawej górnej stronie */
    -1px 1px 0px black;  /* Cień po lewej dolnej stronie */
}


.sidebar li:hover .icon {
    transform: scale(1.05);
}

.sidebar li:hover .label {
    opacity: 1;
    visibility: visible;
    left: 60px;
}



.sidebar:hover {
    width: 16em; 
    max-width: 100%;
}

                /* sidebar - menu wysuwane od prawej */







.content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: auto;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.651);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1%;
    max-height: 100%;
    min-height: 60vh;
    

    
}
.content header{background-color:rgba(255, 255, 255, 0.164) ; border-radius: 16px; padding: 0.75%;}

.content footer{background-color:rgba(255, 255, 255, 0.164) ; border-radius: 16px; padding: 0.75%; bottom: 1%; position:fixed; width: 96%; display:flex; justify-content: center; gap: 1.5%;}
.content footer a{font-family: czcionka; text-decoration: none; color: black;}

div.mistrzowie li{margin: 0.2%;}
div.mistrzowie img{height: 200px; border: 0.5px, solid;}
div.mistrzowie ul{padding: 1%; padding-left: 1.5%;}

table.szachy{display: flex; flex-direction: row; flex-wrap: wrap;}

input, textarea{border-radius: 5%; background-color: rgb(176, 235, 176);}


input[type="submit"] {
    background: #4CAF50; /* zielony */
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

input[type="submit"]:hover {
    background: #45a049;
    transform: scale(1.03);
}

input[type="submit"]:active {
    transform: scale(0.98);
}
