#exercise {
    box-sizing: border-box;
    min-height: 100vh;
    padding: var(--unit) 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    line-height: 1.3;
}

#exercise-frame {
    max-width: 100%;
}

.control-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px;
    margin: 10px 5px;
}

#content.white-screen {
    background-color: white;
}

/***** WRITE-US *****/
@media screen and (min-width: 601px) {
    #exercise {
        margin-left: 50px;
        margin-right: 50px;
    }
}

/***** HEADER *****/
.exercise-header-dialog {
    background-color: white;

    margin: 15px 0;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 0 32px 0 rgba(0, 0, 0, .1);
}

/***** FINAL BOARD *****/
.finalboard {
    max-width: 600px;

    margin: 40px auto 60px;
    padding: 30px 20px;

    background-color: white;
    border: 1px solid #dfdfe1;
    border-radius: 2px;
    box-shadow: 0 0 32px rgba(0,0,0,0.1);
}

/***** ANIMATIONS *****/
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(6px);
    }
    75% {
        transform: translateX(-6px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

:root {
    --animation-shake: shake 150ms 2 ease-in-out;
    --animation-pulse: pulse 200ms ease-in-out;
    --animation-blink: blink 333ms 3 ease-in-out;
}
