
:root {
    --policko-dark-bg: #090909;
    --policko-light-bg: #4a4a4a;
    --color-souradnice: #bababa;
    --settings-bgc: #000;
    --boxShadow-settings: #fff;
    --txt-color: #fff;
}

[data-theme="light"] {
    --policko-dark-bg: #287100;
    --policko-light-bg: #e4e4e4;
    --color-souradnice: #000000;
    --settings-bgc: #e4e4e4;
    --boxShadow-settings: #000;
    --txt-color: #000;
}

body{
    height: 100vh;
    background-color: #121212;
    margin: 0;
}


/* div ve kterym je ta ikonka pro zobrazeni infa */
.settingsButton{
    position: absolute;
    width: 100%;
    margin-top: 15px;
    margin-left: -10px;
    display: flex;
    flex-direction: row-reverse;
}
/* ikona na kterou kdyz kliknu -> zobrazi se info */
.settingsIcon{
    color: #e8e8e8;
    font-size: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.settingsIcon:hover{
    scale: 1.15;
    color: #ffffff;
    rotate: 90deg;
}
.chessSettingsDiv{
    height: 640px;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chessSettings{
    width: 350px;
    position: absolute;
    text-align: center;
    padding: 25px;
    box-shadow: 0 0 20px 5px var(--boxShadow-settings);
    background-color: var(--settings-bgc);
    border-radius: 10px;
    z-index: 100;
}
.settingsRadek{
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.settingsTxt{
    color: var(--txt-color);
}

/* div aby byla ikona krizku na spravnem miste*/
.toVcemJeCrossIcon{
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
}
/* ikonka krizku - na zavreni divu s infem */
.closeInfoCross{
    font-size: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    color: #fff;
}
.closeInfoCross:hover{
    scale: 1.15;
}


.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.toggle-ball {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: left 0.3s ease;
}
.toggle-switch.on {
    background-color: #4caf50;
}
.toggle-switch.on .toggle-ball {
    left: 33px;
}




.chessToCely{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vCemJeChessBoard{
    height: 720px;
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.chessBoard{
    border-spacing: 0;
    position: absolute;
    z-index: 5;
}

.chessBoardForPieces{
    position: relative;
    height: 720px;
    width: 720px;
}

.chessBoardPolicko{
    position: relative;
    height: 88px;
    width: 88px;
    vertical-align: bottom;
    text-align: right;
    color: var(--color-souradnice);
    padding: 1px;
}

.move-target-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.6); /* white with lower opacity */
    font-size: 1.5em; /* adjust size as needed */
    pointer-events: none; /* so it doesn’t block clicks */
    z-index: 50;
}

.canMoveHereDiv {
    height: 90px;
    width: 90px;
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 50;
}



.polickoDark{
    background-color: var(--policko-dark-bg);
}

.polickoLight{
    background-color: var(--policko-light-bg);
}



.hidden{
    display: none;
}