body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #282c34;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    margin: 20px;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #61dafb;
}

.board {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.column {
    display: flex;
    flex-direction: column-reverse;
    width: 80px;
    margin: 10px;
    border-radius: 10px;
    background-color: #444;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out; /* Dodata animacija rotacije */
}

.cell {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 5px auto;
    background-color: #666;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.cell:hover {
    border: 2px solid #fff;
}

.player1 {
    background-color: #f44336;
}

.player2 {
    background-color: #ffc107;
}

#status,
#randomNum {
    font-size: 24px;
    margin-top: 20px;
    font-weight: bold;
    color: #fff;
}

#randomNum {
    margin-bottom: 10px;
}

.game-over {
    font-size: 32px;
    color: #fff;
    margin-top: 50px;
}

.restart-btn {
    background-color: #61dafb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.restart-btn:hover {
    background-color: #3d8baf;
}

/* Define the CSS animation for spinning */
@keyframes spin {
    from {
        transform: rotateX(0deg);
    }
    to {
        transform: rotateX(180deg);
    }
}

/* Apply the animation to the column */
.rotate-animation {
    animation: spin 0.5s ease-in-out forwards;
}

.cell.winner {
    box-shadow: 0px 0px 10px 5px rgba(255, 255, 0, 0.8);
}

