.GamePage {
    width: 100%;
    /* max-width: 500px; */
    height: 100%;
    display: none;
    z-index: 99;
    background-color: #3E79D5;
    gap: 10px;
    grid-template-rows: minmax(310px, 40vh) 60%;

}

.Scoreboard {

    grid-row: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 20px;
    row-gap: 30px;
    width: calc(100% - 40px);
    background-color: #4872C4;
    border-radius: 0 0 40px 40px;
}

.Diceboard {
    grid-row: 2;
    display: grid;
    row-gap: 30px;
    grid-template-rows: minmax(60px, 60px) minmax(180px, 50%);


}

.DiceFieldContainer {

    grid-row: 2;
    display: grid;
    grid-template-columns: 0.3fr 1fr 0.3fr;
    align-self: center;
    height: auto;

}

.DiceCups,
.PointsContainer {

    display: grid;
    grid-template-rows: minmax(75px, auto) minmax(75px, auto) minmax(75px, auto);
    align-items: center;
}

.DiceCups {
    width: 100%;
}

@keyframes cupShake {
    0% {
        transform: translate(0, 0);
    }

    5% {
        transform: translate(-5px, 0);
    }

    10% {
        transform: translate(-5px, -5px);
    }

    15% {
        transform: translate(0px, -5px);
    }

    20% {
        transform: translate(5px, -5px);
    }

    25% {
        transform: translate(5px, 0px);
    }

    30% {
        transform: translate(5px, 5px);
    }

    35% {
        transform: translate(0px, 5px);
    }

    40% {
        transform: translate(-5px, 5px);
    }

    45% {
        transform: translate(-5px, 0px);
    }

    50% {
        transform: translate(0, 0);
    }

    55% {
        transform: translate(5px, 0);
    }

    60% {
        transform: translate(5px, 5px);
    }

    65% {
        transform: translate(0px, 5px);
    }

    70% {
        transform: translate(-5px, 5px);
    }

    75% {
        transform: translate(-5px, 0px);
    }

    80% {
        transform: translate(-5px, -5px);
    }

    85% {
        transform: translate(0px, -5px);
    }

    90% {
        transform: translate(5px, -5px);
    }

    95% {
        transform: translate(5px, 0px);
    }

    100% {
        transform: translate(0, 0);
    }
}

.DiceCupShake {
    animation: cupShake 0.5s 1;
}

.DiceCup {

    border: 0;
    background: url(../assets/DiceCup.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 70px;

}

.PlayerAvatar {


    text-align: center;
    border-radius: 50%;
    padding: 0 !important;
    margin: 0 !important;
    width: 45px;
    height: 45px;
    border: 3px solid black;
    background-color: #88B2FF;
    color: ghostwhite;
    font-size: 25px;


}


.FieldTopBar {
    /* background-color: transparent */
    width: 100%;
    height: auto;
    display: flex;
    gap: 10px;
    justify-content: space-evenly;

    .PlayerAvatar {
        cursor: auto;
        font-size: 1.2rem;
        display: grid;
        grid-template-rows: 45px auto;
align-items: end;
        gap: 5px;
        border-radius: 0;
        width: 100%;

        height: 100%;
        border: 0;
        background-color: transparent;
        color: ghostwhite;

        .fa-user {
            cursor: pointer;
            grid-row: 2;
            font-size: 20px;
            margin: auto;
            width: calc(45px - 6px) !important;
            height: calc(45px - 6px) !important;
            align-content: center;
            border-radius: 50%;
            border: 3px solid black;
            background-color: #88B2FF;
        }
    }

}

.FieldBottomBar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #F68525;
    width: calc(100% - 20px);
    height: 40px;
    padding: 10px;

}


.PlayerField {
    grid-row: 3;
    display: grid;
    grid-template-rows: 1fr;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    gap: 5px;
    height: auto;

}


.FieldLeft,
.FieldRight {
    display: flex;
    gap: 10px;

    .PlayerAvatar {

        font-size: 30px;
    }

    .PlayerAvatar:nth-child(2) {
        font-size: 25px;
        transform: rotateY(180deg);
    }
}

.fa-user {
    width: 45px !important;
    height: 45px !important;
}



.FieldMiddle {}

.FieldRight {
    justify-content: end;

    .PlayerAvatar {
        font-size: 20px;
    }

}




.PointsClass {
    grid-column: 1;
    font-size: 22px;
    font-weight: 100;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 100%;

    margin: auto;
    padding: 5px;
    color: ghostwhite;

}

.DiceFieldCanvas {
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 5px 10px #3E79D5;
}

.BtnCollection {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    height: 90px;
    column-gap: 25px;
    row-gap: 10px;
    /* background-color: #28303f; */
    color: #5679b9;

}

.BtnSaveDice,
.BtnSetPoint {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 5px;
    border: 0;
    margin: 0;
    padding: 4px;
    height: 40px;

    width: 100%;
    background-color: #88B2FF;

}

.BtnSaveDice {

    grid-row: 1;
    margin: auto;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    height: 60px;

    width: calc(100% - 80px);

}

.SaveDiceCollection {

    margin: auto;
    height: 45px;

    background-color: #4872C4;
    border-radius: 5px;
}

.Kniffel {
    display: grid;
    grid-column: auto auto 100%;
    margin: auto;
    width: calc(100% - 140px);
    gap: 8px;

    .SetPointText {
        grid-column: 2;
        text-align: center;
        width: 100%;
        line-height: 32px;

        font-size: 25px;
        color: red;
        font-weight: 800;
        /* text-shadow: 0 0px 10px black; */
        -webkit-text-stroke: 0.3px ghostwhite;
        letter-spacing: -3px;
    }

    .SetPointValue {
        grid-column: 3;
        align-self: flex-end;
        width: 80px;
    }

}

.SetPointValue {
    width: 100%;
    height: 100%;
    background-color: #4872C4;
    border-radius: 3px;
    color: ghostwhite;
    font-size: 16px;
    font-weight: 500;
    line-height: 32px;

}


.SetPointText,
.DiceCollection {
    margin: auto;
    width: 32px;
    height: 32px;
}

.SetPointText {
    line-height: 32px;
    font-weight: 400;
    font-size: 20px;
    color: ghostwhite;
}



/* 
.DotOne {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: ghostwhite;
    width: 6px;
    height: 6px;
    border-radius: 100%;

}

.DotSix,
.DotFive,
.DotFour,
.DotThree,
.DotTwo {

    .DotOne:nth-child(1) {
        top: calc(100% - 5px);
        left: 12px;
    }

    .DotOne:nth-child(2) {
        top: 0;
        left: calc(100% - 15px);
    }
}

.DotThree {

    .DotOne:nth-child(3) {
        top: 5px;
        left: calc(50% - 1px);
    }
}

.DotSix,
.DotFive,
.DotFour {

    .DotOne:nth-child(3) {
        top: -6px;
        left: 12px;
    }

    .DotOne:nth-child(4) {
        top: calc(100% - 23px);
        left: calc(100% - 15px);
    }
}

.DotFive {
    .DotOne:nth-child(5) {
        top: -8px;
        left: calc(50% - 1.5px);
    }
}

.DotSix {
    .DotOne:nth-child(5) {
        top: -7.5px;
        left: 12px;
    }

    .DotOne:nth-child(6) {
        top: -14px;
        left: calc(100% - 15px);
    }
}

*/


.KniffelDice {
    position: relative;
    /* Stelle sicher, dass .Dice relativ positioniert ist */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-color: #293241;
    border-radius: 20px;
}


.KniffelDice {
    grid-column: 1;
    margin: 20px;
    position: absolute;
    width: auto;
    background-color: ghostwhite;
    height: 14px;
    border-radius: 2px;
}


.KniffelDice:nth-child(1) {
    left: 50%;
    transform: translate(calc(-50% - 125px), -20px) rotate(-15deg);
}

.KniffelDice:nth-child(2) {
    left: 50%;
    transform: translate(calc(-50% - 105px), -3px) rotate(15deg);
}