html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    overflow-x: hidden;
}

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

.fullscreen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.fullscreen p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.jspsych-display-element {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 0 8px;
    overflow: hidden;
}

.jspsych-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.jspsych-content canvas,
#test_canvas,
#egg-canvas {
    display: block;
    max-width: min(100%, 1200px);
    height: auto;
}

#jspsych-canvas-button-response-btngroup {
    margin-top: 4px;
}

.jspsych-btn {
    margin: 0.15rem;
}
