html,
body {
    /* color-scheme: dark; */
    height: 100dvh;
    width: 100dvw;
    margin: 0;
    padding: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.bottom {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: stretch;
    padding: 10px;
    gap: 10px;
    
    flex-grow: 1;
}

.left {
    width: 20dvw;
    height: 100%;
    min-width: 20rem;

    display: flex;
    flex-direction: column;
    justify-content: stretch;
}

.top {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: left;
    flex-grow:0;
    padding: 10px;
    gap: 10px;
}

button {
    padding: 7.5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
}

button:hover {
    background-color: #e0e0e0;
}

.monaco-wrapper {
    flex-grow: 1;
}

.right {
    flex-grow: 1;
}

.monaco-wrapper,
.murmel-wrapper {
    height: 100%;
    width: 100%;
}

.murmel-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding-top: 4rem;
    /max-height: calc(100dvh - 4rem);
    /* display: grid; */
    /* grid-template-columns: repeat(4, minmax(5rem, 1fr)); */
}

.becher {
    height: 7rem;
    width: 5rem;
    margin: 1rem;
    background-color: red;
    flex-shrink: 1;
    user-select: none;
    z-index: 2;
}

.becher.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.isRunning {
    background-color: color-mix(in srgb, lightblue 50%, transparent);
}

.becher>.label {
    font-size: 4rem;
    line-height: 5.5rem;
    width: 100%;
    text-align: center;
}

.becher>.amount {
    font-size: 1rem;
    line-height: 1rem;
    width: 100%;
    text-align: center;
}

.marble {
    position: absolute;
    height: 3rem;
    width: 3rem;
    background-color: orange;
    border-radius: 50%;

    visibility: hidden;
    pointer-events: none;
    z-index: 1;

    translate: 1rem 0rem;
}

.marble.active {
    visibility: visible;
}

.marble.active.topdown {
    animation: topdown 0.5s;
}

.marble.active.bottomup {
    animation: bottomup 0.5s;
}

@keyframes topdown {
    0% {
        opacity: 0;
        transform: translateY(-7rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0rem);
    }
}

@keyframes bottomup {
    0% {
        opacity: 1;
        transform: translateY(0rem);
    }

    
    10% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-7rem);
    }
}