@import url('https://fonts.googleapis.com/css2?family=Cabin&family=Cabin+Sketch:wght@700&display=swap');

@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359deg);
    }
}

@keyframes bob {
    from {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-200px);
    }

    60% {
        transform: translate(-10px, -200px);
    }

    70% {
        transform: translate(10px, -200px);
    }

    80% {
        transform: translate(-10px, -200px);
    }

    90% {
        transform: translate(0px, -200px);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes fruit-shop {
    0% {
        background-color: #764848;
    }

    10% {
        background-color: #765e48;
    }

    20% {
        background-color: #767448;
    }

    30% {
        background-color: #4c7648;
    }
    
    40% {
        background-color: #48766b;
    }

    50% {
        background-color: #486276;
    }

    60% {
        background-color: #494876;
    }

    70% {
        background-color: #694876;
    }

    80% {
        background-color: #764868;
    }

    90% {
        background-color: #764848;
    }

    100% {
        background-color: #764848;
    }
}

@keyframes confetti {
    0% {
        transform: skew(10deg, 10deg);
        scale: 1 1;
    }

    33% {
        transform: skew(-10deg, -10deg);
        scale: 1 0;
    }

    66% {
        transform: skew(10deg, 10deg);
        scale: 0 1;
    }

    100% {
        transform: skew(10deg, 10deg);
        scale: 1 1;
    }
}

:root {
    --ui-font: 'Cabin', sans-serif;
}

html {
    background-color: #354342;
    color: white;
}

body {
    font-family: var(--ui-font);
}

button {
    background-color: #0b6b64;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: var(--ui-font);
    margin: 0;
    padding: 10px;
}

button:active {
    background-color: #00b7d2;
}

button[disabled] {
    background-color: #4a6765;
    color: #8e9d9c;
}

input[type=text] {
    border-radius: 5px;
    border: none;
    background-color: #cde8e3;
    font-size: 20px;
    font-family: var(--ui-font);
    padding: 0px 10px;
}

input[type=text]:focus {
    outline: 1px solid black;
}

h1 {
    font-family: 'Cabin Sketch', cursive;
    font-size: 50px;
    text-align: center;
}

.players-table {
    font-size: 20px;
}

.throw-cubes-tray, .saved-cubes-tray {
    position: relative;
    width: calc(50% - 5px);
    height: 100%;
    background-color: #4a6765;
    border-radius: 5px
}

.cube {
    position: absolute;
    width: 35px;
    height: 35px;
    background-color: #d2d26a;
    overflow: hidden;
    top: 0px;
    left: 0px;
    color: black;
    border-radius: 5px;
    margin: 2.5px;
}

.pending-score-item:before {
    content: "● ";
}

.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00000078;
    transition: background-color 0.25s ease;
}

.modal {
    display: flex;
    background: black;
    width: 500px;
    max-width: calc(100% - 20px);
    flex-direction: column;
    transition: transform 0.25s ease;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    animation: fruit-shop infinite 10s;
}


.modal-header {
    font-family: 'Cabin Sketch', cursive;
    font-size: 50px;
}

.modal-content {}

.player-rows {
    display: flex;
    flex-direction: column;
}

.player-rows .player-row {
    display: flex;
    flex-direction: row;
    margin: 5px 100px;
    background-color: #126753;
    border-radius: 5px;
    font-size: 20px;
    align-items: center;
}

.player-rows .player-row:nth-child(1) {
    animation: fruit-shop infinite 10s;
}

.player-row .player-place {
    width: 50px;
    margin: 0 5px;
}

.player-row .player-name {

}

.player-row .player-score {
    margin-left: 10px;
}

.confetti {
    width: 20px;
    height: 20px;
    background-color: red;
    transform: skew(11deg, 10deg);
    scale: 1 1;
    /* animation: confetti infinite linear 5s; */
    position: fixed;
    top: 0;
    left: 0;
}