html,
body {
    height: 100%;
    min-height: 100%;
    overflow: unset;
    overflow-x: unset;
    overflow-y: unset;
}


.instruction {
    margin-bottom: 15px;
}

.instruction span {
    white-space: nowrap;
}

.correctAnswers {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.no_p {
    padding: 0;
}

#submit {
    width: 100%;
    font-size: 17px;
    min-width: 150px;
    padding: 10px 20px;
}

.y {
    position: absolute;
    margin-left: calc(50% + 15px);
    top: -3px;
    z-index: 3;
}

.y span {
    vertical-align: bottom;
}

.x {
    position: absolute;
    z-index: 3;
    right: 0;
    top: calc(50% - 15px);
}

.correct_answered .graph_wrapper {
    pointer-events: none;
}

.correct_answered .show_answer {
    display: none;
}

.correct_answered .graph_wrapper circle[fill="#32bf4c"] {
    fill: #7290e9;
}

.graph_wrapper {
    position: relative;
    flex-grow: 1;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media(max-width: 442px) {
    .graph_wrapper {
        position: relative;
        margin-left: -16px;
        margin-right: -16px;
    }
    .graph {
        text-align: center;
    }
}

@media(min-height: 492px) and (min-width: 492px) {
    .instruction,
    .x,
    .y {
        font-size: 21px;
    }
}

.toast {
    text-align: left;
    visibility: hidden;
    background-color: var(--white);
    position: absolute;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0.5rem;
    padding: 16px;
    right: 10px;
    margin-left: 10px;
    bottom: 80px;
    max-width: calc(100%-20px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#rightAnimWrapper {
    width: 300px;
    z-index: 5000;
    position: absolute;
    pointer-events: none;
    right: 15px;
    bottom: -80px;
}

.hide {
    visibility: hidden;
}

.darkmode .toast {
    box-shadow: 0px 1px 4px 0px rgb(255, 255, 255) !important;
}

.show_toast .toast {
    visibility: visible;
}

#toast_title {
    display: block;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

#toast_wrong_text,
#toast_right_text {
    font-size: 14px;
    display: inline-block;
    max-width: 230px;
}

.toast img {
    width: 64px;
    height: 64px;
    margin-right: 16px;
}

.toast .triangle {
    position: absolute;
    bottom: 0;
    right: 21%;
    transform: rotate(45deg);
    background-color: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    height: 14px;
    width: 14px;
    margin-bottom: -8px;
}

.darkmode .triangle {
    border-bottom: 1px solid rgb(199, 199, 199);
    border-right: 1px solid rgb(199, 199, 199);
}

#toast_wrong_text,
#wrong_img {
    display: none;
}

.wrong_answered .toast #toast_wrong_text,
.wrong_answered .toast #wrong_img {
    display: inline-block;
}

.wrong_answered .toast #toast_right_text,
.wrong_answered .toast #right_img {
    display: none;
}

#close_toast {
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    border: none;
}

#close_toast::before,
#close_toast::after {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    content: "";
    position: absolute;
    width: 2px;
    height: 16px;
    border-radius: 3px;
    background-color: var(--lightgray);
    transition: 0.3s;
}

#close_toast::before {
    transform: rotate(45deg);
}

#close_toast::after {
    transform: rotate(-45deg);
}

#close_toast:hover::before,
#close_toast:hover::after {
    background-color: var(--secondary);
}

.more_hint {
    display: none;
}

.showing_hint .first_time {
    display: none;
}

.showing_hint .more_hint {
    display: block;
}

.showing_answer .show_answer {
    display: none;
}

.hints div {
    display: flex;
    text-align: left;
}

.hintIndex {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    white-space: nowrap;
    padding: 0 16px 10px 5px;
    margin-right: 16px;
    text-align: center;
    border-right: 3px solid var(--lightgray);
}

.hints div p {
    margin: 0 0 16px 0;
}

.no_hint .use_hint {
    display: none;
}

.hints_wrapper {
    margin: auto;
    padding: 15px 0;
}

.showing_hint .hints_wrapper {
    border-bottom: 1px solid var(--lightgray);
}

.text-left {
    text-align: left;
}
