﻿.centered-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    border: 2px solid var(--bs-primary);
    border-radius: 15px;
    padding: 4rem;
    background-color: rgba(0, 0, 0, 0.85);
}

/* Container that wraps heading and button */
.header-wrapper {
    display: inline-block; /* shrink to heading width */
    text-align: center;
}

    /* Make button take full width of the wrapper */
    .header-wrapper .btn {
        width: 100%;
    }


.msgbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.msgbox-container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    text-align: center;
    border: 2px solid #2196F3;
}

.msgbox-header {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1rem;
}

.msgbox-body {
    margin-bottom: 20px;
}

.msgbox-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.msgbox-btn {
    padding: 6px 16px;
    background-color: #0d6efd; /* primary color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .msgbox-btn:hover {
        background-color: #0b5ed7;
    }



/* =========================
   PLAYER CONTAINERS
   ========================= */

.player-container-vertical,
.player-container-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    flex-direction: column;
}

/* =========================
   PLAYER STATUS
   ========================= */

.player-active {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(255, 165, 0, 0.3);
    border: 0.15em solid rgb(255, 165, 0);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease;
}

    /* Only active player animates */
    .player-active.active {
        opacity: 1;
        animation: playerPulse 1.2s infinite ease-in-out;
    }

@keyframes playerPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.6);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0.8rem 0.4rem rgba(255, 165, 0, 0.8);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.6);
    }
}


/* =========================
   PLAYER LABEL
   ========================= */

.player-label {
    color: white;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    font-size: 1rem;
}
/* =========================
   PLAYER CARDS
   ========================= */

.player-pair {
    display: flex;
    gap: clamp(0.4rem, 1vw, 1rem);
    margin-bottom: 0.5rem;
}

.player-pair-horizontal-left,
.player-pair-horizontal-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.4rem, 1vw, 1rem);
    position: absolute;
    top: 50%;
    transform-origin: center;
}

.player-pair-horizontal-left {
    left: 1.5rem;
    transform: translateY(-50%) rotate(-90deg);
}

.player-pair-horizontal-right {
    right: 1.5rem;
    transform: translateY(-50%) rotate(90deg);
}


.card-spot {
    height: 100%;
    padding: 0.2rem;
    border-radius: 0.8rem;
    border: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}




  