.term-text {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    padding: 4px;
    overflow: auto;
    /* relevant on long tile */
    /* margin: 5px; */
}

.tile-innerdiv>p:not(.term-text) {
    margin: 0;
}

.container {

    display: flex;

}

#tiles {

    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;

    height: 75vh;
    width: 75vh;
    /* position: relative; */
    background-color: #fff;
    justify-content: space-around;
    align-content: space-around;
    padding: 1%;
    flex-direction: row;
    flex-wrap: wrap
}

.tile {

    position: relative;
    flex-basis: auto;
    height: 23%;
    /* dobar look ovisi o paddingu containera */
    /*bilo je 23% i bez margin */
    width: 23%;
    /* margin: 5px; */
    text-align: center;
    order: 2;

    pointer-events: none;


}

.tile-innerdiv {
    background-color: #EFEFE6;
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    user-select: none;

    transition: background-color 300ms;

}

.selected {
    background-color: #5A594E;
    color: #FFFFFF;

}

.tile-innerdiv:hover {
    cursor: pointer;
}

/* 
.tile-innerdiv:not(.selected):hover {
    background-color: #D8D3AD;
    cursor: pointer;
} */

.selectable:hover {
    background-color: #D8D3AD;
    cursor: pointer;
}


.solved {
    order: 1;
    /* flex-grow: 4; */
    flex-basis: 98%;
    animation: popin 400ms;
    cursor: default;
}

.tile.solved>.tile-innerdiv:not(.selected):hover {
    cursor: default
}


.invis {
    /* umjesto opacity da se ne transfera na djecu */
    background-color: rgba(0, 0, 0, 0);
}

.wrong {
    animation-name: wrongAnimation;
    animation-timing-function: linear;
    animation-duration: 400ms;
}