/* Definições de cor */
:root {
    --themeColor: #0000FF6f;
}
/* Tabuleiro */
#tabuleiro td {
    margin: 0;
    background-color: var(--backgroundColor);
    color: var(--textColor);
    border-radius: 50%;
    border: solid 2px #0000FF;
    color: black;
    text-align: center;
    transition-duration: 0.2s;
}
#tabuleiro {
    margin: 0;
    background-color: #0000FF;
    border-radius: 16px;
    border: solid 2px #0000FF;
    transition-duration: 0.2s;

}

/* Main (painel principal) */

#mainContent {
    position: fixed;
    top: 100px;
    bottom: 0;
    width: calc(100% - 400px);
    right: 0;
    margin: 0;
    align-content: center;
    text-align: center;
}

.hide #mainContent {
    width: calc(100% - 80px);
}

/* Log (painel lateral) */
code {
    background-color: #0000FF;
    padding: 5px;
    margin: 10px;
    border-radius: 5px;
    color: black;
}
code:nth-of-type(odd) {
    background-color: #FF0000;
}
    
code:nth-of-type(even) {
    background-color:#FFFF00;
}

/* Pedras */
#tabuleiro .none, .none {
    margin: 0;
    background-color: var(--backgroundColor);
    border-radius: 50%;
    border: solid 2px #0000FF;
    color: var(--textColor);
}
.none {
    background-color: white;
}
#tabuleiro .red, .red {
    margin: 0;
    background-color: #FF0000;
    border-radius: 50%;
    border: solid 2px #0000FF;
    color: black;
}
#tabuleiro .yellow, .yellow {
    margin: 0;
    background-color: #FFFF00;
    border-radius: 50%;
    border: solid 2px #0000FF;
    color: black;
}

/* Layout */
#version {
    color: var(--backgroundColor);
    font-size: 24px;
}

#version:before {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url(/assets/get?i=Info&p=%230000FF&s=%23FF0000);
    background-size: contain;
    display: inline-block;
}

#version:hover {
    color: var(--textColor);
}

/* Vitoria */
#win {
    position: absolute;
    inset: 0;
    background-color: #cccccc;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

#win .yellow, #win .red, #win .none {
    margin: 10% auto;
    aspect-ratio: 1;
    height: 20%;
}

#win button {
    background-color: #e0e0e06f;
    color: white;
}

#win button:hover {
    background-color: white;
    color: black;
}

@media screen and (max-width: 600px) {
    /* For mobile: */
    #mainContent {
        top: 100px;
        bottom: 100px;
        width: 100%;
    }
    .hide #mainContent {
        width: 100%;
    }
    #logo {
        top: 0;
        height: 20%;
        left: 0;
        width: 100%;
    }
    #right {
        top: 20%;
        bottom: 10%;
        right: 0;
        width: 100%;
        display: none;
    }
}