#game{         
    height: 90vh;
    width: 90vw;
}
    #players{
        width: 100%;
        height: 33%;
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }   

        .profile{

        }
            .profile .avatar{
                width: 40px;
                height: 40px;
                padding: 5px;
                border: 2px solid #212121;
                border-radius: 50%;
                background-color: #fff;
            }

                .profile .turn{
                    border: 4px solid red;
                }

            .profile .username{
                font-size: 18px;
                font-weight: 500;
                -webkit-text-stroke-width: 1px;
                -webkit-text-stroke-color: #212121;
            }


        .deck{
            flex-wrap: nowrap;
            overflow: visible;
            padding: 10px;
        }

            .card{
                height: 70px;
                margin-left: -30px;
                z-index: 1;
                box-shadow: 3px -1px 14px #212121; 
            }
    
    #middle{
        width: fit-content;
        height: 33%;
        margin: 20px auto;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #middle img{
            height: 200px;
        }

        .card-group{
            position: absolute;
            display: flex;
        }

        .prev-group{
            transform: rotate(-9deg);
            opacity: 0.45;
            z-index: 1;
            transition: opacity 0.2s, transform 0.2s;
        }

        .current-group{
            z-index: 2;
        }

        #middle:hover .prev-group{
            z-index: 3;
            opacity: 1;
            transform: rotate(0deg);
            cursor: pointer;
        }

    #playerPanel{
        height: 33%;
        display: flex;
        flex-direction: column;
        bottom: 0;
    }   

        #deck{
            margin-top: auto;
        }

            #deck .card{
                height: 110px;
                cursor: pointer;
            }

                #deck .card:hover, .selected{
                    transform: translateY(-10px);
                    z-index: 10;
                    border: 2px solid #212121;
                    border-radius: 6px;
                }
            #deck #controls{
                display: flex;
                justify-content: space-between;
                margin: 10px auto;
                width: 30%;
            }

                #controls button{
                    width: 100%;
                    height: 50px;
                    font-size: 20px;
                    font-weight: 500;
                    background-color: #212121;
                    color: #fff;
                    border-radius: 6px;
                    border: none;
                    margin: 0px 5px;
                    cursor: pointer;
                }

                #controls button:hover{
                    background-color: #424242;
                }

        #profile .avatar{
            width: 50px;
            height: 50px;
        }

        #profile .username{
            font-size: 20px;
        }

#game-over-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

    #game-over-popup {
        background-color: #212121;
        color: #fff;
        padding: 40px 60px;
        border-radius: 8px;
        text-align: center;
        min-width: 300px;
    }

        #game-over-popup h2 {
            margin: 0 0 24px;
            font-size: 28px;
        }

        .ranking-entry {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #444;
            font-size: 20px;
            gap: 40px;
        }

            .ranking-entry:last-child {
                border-bottom: none;
            }

            .rank-role {
                color: #aaa;
                font-size: 16px;
            }

#toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #9d1313;
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 18px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    #toast.show {
        opacity: 1;
    }

    

    


