#active-game {
    text-align: center;
    margin: 2rem 0 5rem 0; /* top right bottom left */
    display: none;

}

#game-over {
    width: 90%;
    max-width: 40rem;
    margin: auto; /* poravna */
    padding: 1rem 2rem;
    background-color: rgb(50, 5, 87);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: none;
}

#game-over h2 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}


#active-player-name {
    font-weight: bold;
    color: rgb(50, 5, 87);
}

#game-board {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: grid;
    /* grid-template-columns: 6rem 6rem 6rem; */
    grid-template-columns: repeat(3, 6rem); /* alternativno, CSS funkcija dodaje 3x repeat 6rem 6rem 6rem*/
    grid-template-rows: repeat(3, 6rem);
    justify-content: center;  /* to grid items be centered */
    gap: 0.5rem;  /* gap izmedju boxova - slobodan prostor alternativno dodaje se margina izmedju li itemsa*/
}

#game-board li {
    background-color: rgb(215, 187, 247);
    border-radius: 2px;
    cursor: pointer;  /* to indicate the items are clickable */
    display: flex; /* koristi se zbog simbola X i O koji ce biti centrirani pomocu flexbox-a */
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: bold;
}

#game-board li:hover {
    background-color: rgb(112, 13, 204);
}

#game-board li.disabled {  /* target klase disabled u #game-board li elementu */
    background-color: rgb(112, 13, 204);
    color: white;
    cursor: default;
}