* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nova Square", roboto, system-ui, sans-serif;
    background: #f0f0f0;
    min-height: 100vh;
    padding: 1rem;
    font-weight: 400;
    font-style: normal;

    #timeline-container {
        max-width: 600px;
        margin: 0 auto;
        padding-bottom: 100%; /* Extra space to allow scrolling above the player's hand */

        .insertion-point {
            height: 40px;
            margin: 0.5rem 0;
            border: 2px dashed #ccc;
            border-radius: 8px;
            transition: all 0.2s;

            &.drag-over {
                border: 2px solid #4CAF50;
                background: rgba(76, 175, 80, 0.1);
            }
        }

        .insertion-point.active {
            border-color: #4CAF50;
            background: rgba(76, 175, 80, 0.1);
        }

        .card.wrong {
            border: 2px solid #f44336;
            background: rgba(244, 67, 54, 0.1);

            &::before,
            &::after {
                content: '';
                position: absolute;
                top: 20%;
                left: 20%;
                width: 60%;
                height: 60%;
                border-radius: 2px;
                background: red;
                opacity: 0.8;
                z-index: 3;
                pointer-events: none;
            }

            &::before {
                transform: rotate(45deg);
            }

            &::after {
                transform: rotate(-45deg);
            }
        }

        .card.back {
            padding-left: .5em;
            padding-bottom: .4em;

        }

        .card-image {
            border-radius: 10px;
        }
    }


    #playersArea-container {
        display: none;
        font-size: 80%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(127, 127, 255, 0.7); /* Mostly transparent */
        padding: .5rem;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        min-height: 160px;
        border-radius: 1rem;

        &.player-1-turn
        {
            background-color: rgba(255, 0, 0, 0.2);
        }

        &.player-2-turn
        {
            background-color: rgba(0, 0, 255, 0.2);
        }
        &.player-3-turn
        {
            background-color: rgba(0, 255, 0, 0.2);
        }
        &.player-4-turn
        {
            background-color: rgba(255, 255, 0, 0.2);
        }
        &.player-5-turn
        {
            background-color: rgba(255, 0, 255, 0.2);
        }
        &.player-0-turn
        {
            background-color: rgba(0, 255, 255, 0.2);
        }

        .player {
            font-weight: bold;
            border: solid black 1px;
            padding: 1px 3px;
        }

        .hand-cards {
            display: flex;
            gap: 1rem;
            overflow-x: scroll;

            display: none;
            &.active
            {
                display: flex;
            }
            .card {
                width: 30%;
                min-width: 30%;
                min-height: 140px;

                &.selected {
                    border: 2px solid #FFD700;
                    box-shadow: 0 0 16px 4px rgba(255, 215, 0, 0.4);
                    z-index: 1;
                }
            }
        }
    }

    #setupScreen {
        font-size: 100%;

        select {
            font-size: 125%;
        }

        select {
            margin: 1em 0;
        }

        .shareCode {
            font-size: 400%;
            background-color: white;
            border: 4px dashed red;
            border-radius: .2em;
            padding: .1em .3em;
            width: 80%;
            margin: .2em auto 0;
        }

        button {
            text-align: center;
            font-size: 200%;
            border-radius: 10px;
            padding: .1em .3em;
            margin: 1em;
        }
    }


    #header {
        div {
            border: 3px yellow dotted;
            padding: 3px 5px;
            border-radius: 10px;
            margin-top: -22px;
            text-align: center;
            background-color: red;
            color: white;
            font-weight: bold;
            font-size: 125%;
        }
    }


    .card {
        background: white;
        border-radius: 1rem;
        padding-top: .5rem;
        margin: 0.5rem 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s, box-shadow 0.2s;
        position: relative;
        animation: cardAppear 0.3s ease-out;

        div {
            padding: 2px;
            margin: 2px;
        }
    }

    .centered {
        text-align: center;
    }


    @keyframes cardAppear {
        from {
            transform: translateY(20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .slider-container {
        position: relative;
        xwidth: 300px;
        margin: 20px auto;

        .slider {
            position: absolute;
            width: 100%;
            pointer-events: none;
            -webkit-appearance: none;
            appearance: none;
            background: none;
        }

        .slider::-webkit-slider-thumb {
            pointer-events: all;
            width: 16px;
            height: 16px;
            background: #007bff;
            border-radius: 50%;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
        }

        .slider-track {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 4px;
            background: #ddd;
            transform: translateY(-50%);
        }

        .slider-track::before {
            content: '';
            position: absolute;
            height: 100%;
            background: #007bff;
            z-index: 1;
        }

        .slider-values {
            text-align: center;
            margin-top: 10px;
            font-size: 14px;
        }
    }


}



