:root {
    --invest-primary-500: rgb(197, 222, 244);
    --invest-primary-300: rgb(235, 244, 251);
    --invest-primary-200: rgb(245, 249, 253);

    --invest-secondary-500: rgb(239, 46, 36);
    --invest-tertiary-500: rgb(0, 54, 98);

    --invest-gradient: linear-gradient(225deg, var(--invest-primary-500), white);

    --invest-true: rgb(61, 174, 72);
    --invest-false: var(--invest-secondary-500);
    --invest-half-true: rgb(252, 204, 0);
}

*, *::after, *::before {
    box-sizing: border-box;
}

.invest {
    color: var(--invest-tertiary-500);
    margin-inline: auto;
}

.invest-icon-text {
    height: 2rem;
    width: 2rem;
    background: var(--invest-gradient);
}

.invest-true {
    color: var(--invest-true);
}

.invest-false {
    color: var(--invest-false);
}

.invest-game-tutorial {
    font-style: italic;
}

.invest-grid-indent {
    grid-column: 2/-1;
}

.invest-game-container,
.invest-imitate-gameboard {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
}

.invest-game-block {
    height: 6rem;
    width: 100%;
    min-width: 0;

    padding: 0.5rem;

    text-align: center;
    display: grid;
    align-content: center;
}

.invest-game-block-header {
    padding-inline: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--invest-primary-300);
}

.invest-game-block-header.invest-even {
    background-color: var(--invest-primary-200);
}

.invest-game-block-selection {
    background: var(--invest-gradient);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    place-content: center;
}

.invest-game-block-selection-value {
    width: 100%;

    > svg {
        height: 100%;
        width: 100%;
    }
}

.invest-game-block-selection-value:empty {
    display: none;
}

.invest-game-block-selection-selected {
    opacity: 25%;
}

[option="ABGEDECKT"] {
    color: var(--invest-true);
}

[option="NICHT_ABGEDECKT"] {
    color: var(--invest-false);
}

.invest-align-center {
    text-align: center;
}

.invest-button-container {
    display: grid;
    place-content: end;
}

.invest-button {
    cursor: pointer;
    margin-top: 0.5rem;
    border: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: bold;
    font-family: inherit;
    color: white;
    background: var(--invest-secondary-500);
    padding: 0.5rem 1.5rem;
}

.invest-button:disabled {
    background: var(--gray);
    cursor: not-allowed;
    color: lightgray;
}

.invest-game-endscreen {
    margin-block: 1rem;

    > * {
        margin: 0;
        padding: 0;
    }
}

.invest-game-endscreen-header {
    color: var(--invest-secondary-500);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.invest-text-red {
    color: var(--invest-secondary-500);
}

.invest-imitate-gameboard[hidden] {
    display: none;
}

.invest-result,
.invest-result-level {
    margin-inline: auto;
}

.invest-result-level {
    max-width: 20rem;

    animation: ease-in-out wiggle 250ms forwards;
}

.invest-result-level > * {
    display: none;
}

.invest-result-level[data-level="STARTER"] > .invest-level-starter,
.invest-result-level[data-level="CHECKER"] > .invest-level-checker,
.invest-result-level[data-level="STAR"] > .invest-level-star,
.invest-result-level[data-level="HERO"] > .invest-level-hero {
    display: block;
}

.invest-result-text {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-top: 0;
}

@media (max-width: 576px) {
    .invest-grid-indent {
        grid-column: 1/-1;
    }

    .invest-game-block-header {
        font-size: 1rem;
        writing-mode: sideways-lr;
        min-height: 6rem;
        height: auto;
    }

    .invest-game-block {
        justify-content: center;
        text-align: center;
        height: 100%;
        flex-direction: column;
        min-height: 6rem;
    }

    .invest-game-block-header {
        white-space: break-spaces;
    }
}

@media (max-width: 736px) {
    .invest-game-block-header {
        font-size: 1rem;
    }
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}