* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: lightblue;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    position: relative;
    font-family: "Artifakt Element", sans-serif;
}

/*body > div.main-container > section.solution-container > div.sol-details > p > mjx-container > mjx-math > mjx-mtable > mjx-table > mjx-itable > mjx-mtr > mjx-mtd:nth-child(3) > mjx-mtext {*/
/*    color: yellow;*/
/*    font-size: 0.8rem;*/
/*    font-style: italic;*/
/*}*/

/*body > div.main-container > section.problem-container > div > div > div.question > div > mjx-container > mjx-math {*/
/*    font-size: 1.2rem;*/
/*}*/

.main-container {
    width: 80%;
    min-height: 100vh;
    border: solid grey; /* to be removed*/
    background-color: cadetblue;
}

.problem-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: solid red;
}

h3 {
    /*font-family: cursive;*/
    color: darkmagenta;
    background-color: burlywood;
    padding: 2px 8px;
    display: inline-block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 1rem 0;
    font-weight: 520;
}

.instructions ul, .sol-comments ul {
    list-style: square;
    margin-left: 0;
    padding-left: 40px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.instructions ul li, .sol-comments ul li {
    padding-bottom: 10px;
}

.question-answer-wrapper {
    margin: 1rem 3rem;
    /*border: solid red;*/
}

.question-answer {
    padding-left: 1rem;
    padding-bottom: 1rem;
    /*border: solid green;*/
}

/*.answer-form form{*/
/*    text-align: center;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*}*/

.table {
    display: table;
    border-spacing: 5px;
}

.row {
    display: table-row;
}

.row > * {
    display: table-cell;
    text-align: center;
}

.answer-form input, button {
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    background-color: aliceblue;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.4s ease;
}

.answer-form label {
    font-size: 1.2rem;
}

/*.answer-form .fa-check {*/
/*    margin-left: 0.5rem;*/
/*}*/

.answer-form input {
    max-width: 12rem;
}

.answer-form input:hover, button:hover {
    background-color: lightgrey;
}

.answer-form img {
    vertical-align: middle;
    margin-left: 0.5rem;
}

.level-container {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    margin-top: 35px;
    margin-right: 40px;
    /*border: solid crimson;*/
}

.level-container div {
    margin: 4px 20px 12px;
}

.level-container label {
    background-color: green;
    padding: 5px 14px;
    /*border-radius: 18px;*/
}

input[type='radio']:checked + label {
    background: #0096FF;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.level-container input {
    appearance: none;
}

/* 2nd section */
.solution-container {
    /*border: solid blue;*/
    margin-left: 3rem;
    visibility: visible;
}

.solution {
    /*font-family: cursive;*/
}

.sol-shortAnswer {
    /*margin-bottom: 0;*/
}

.short-answer {
    display: flex;
    align-items: center;
}

.short-answer p {
    margin: 0 2rem;
}

.short-answer p:nth-child(2) {
    margin-left: 0.2rem;
    margin-right: 0.8rem;
}

.short-answer p:last-child {
    margin-left: 0;
}

.fa-check {
    font-size: 1.5rem;
    color: green;
}

.sol-tips p {
    background-color: aliceblue;
    padding: 0.6rem 2rem;
    border-radius: 10px;
    color: #333;
    display: block;
    font-size: 0.8rem;
    margin-left: 2rem;
    width: 80%;
}

.sol-tips ol li {
    padding: 5px;
}
.sol-details {
    margin: 1rem 3rem 5rem auto;
}

.sol-details h3{
    margin-left: 2rem;
}

.collapse-btn {
    width: 1.4rem;
    height: 1.4rem;
    padding: 0.6rem;
    position: relative;
    transform: rotate(90deg);
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.fa-greater-than {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.greater-than-btn {
    display: flex;
    align-items: center;
}

.greater-than-btn h3 {
    margin-left: 10px;
}

.next-btn-wrap {
    display: none;
    text-align: center;
    position: fixed;
    top: 50vh;
    right: 10%;
    transform: translateY(-50%);
    transition: transform 0.5s ease-in-out;
}

#next-btn {
    font-size: 1.5rem;
    padding: 6px 10px;
    border-top-left-radius: 15px;
    background-color: lightpink;
}

#next-btn:hover {
    background-color: #DB7093;
    transition: transform 0.4s ease;
}

.inputError {
    display: none;
    color: red;
    margin-top: 1rem;
}

/* the cartoon animation flyout*/
.flyoutBox {
    width: 15rem;
    height: 20rem;
    position: absolute;
    margin: 0;
    top: 50vh;
    left: 50vw;
    animation: cartoon 3s 1;
    transform: translate3d(-100vw, -50%, 0) scale(1, 1) rotate(360deg);
}

.flyoutBox img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

@keyframes cartoon{
    0% {
        transform: translate3d(-100vw, -50%, 0) scale(0.2, 0.2) rotate(360deg);
    }
    30% {
        transform: translate3d(-50%, -50%, 0) scale(0.5, 0.5) rotate(0deg);
    }
    50% {
        transform: translate3d(-50%, -50%, 0) scale(1.2, 1.2) rotate(0deg);
    }
    70% {
        transform: translate3d(-50%, -50%, 0) scale(0.5, 0.5) rotate(0deg);
    }
    100% {
        transform: translate3d(-100vw, -50%, 0) scale(0.2, 0.2) rotate(360deg);
    }
}

.sol-check h3 {
    border: none;
    border-bottom-style: double;
    background-color: transparent;
    color: salmon;
    margin-left: 3rem;
}
.sol-details h4 {
    margin-bottom: 1.5rem;
    text-align: center;
    /*border-bottom: 1px solid white;*/
}

.check-detail {
    display: flex;
    justify-content: space-evenly;
}

.check-detail p {
    /*border: 1px solid red;*/
    /*padding: 10px;*/
}

.sol1, .sol2 {
    text-align: center;
}

.fa-circle-check {
    color: green;
    font-weight: 500;
    display: none;
}

.fa-circle-xmark {
    color: red;
    font-weight: 500;
    display: none;
}

.sol-details p {
    margin-left: 2rem;
    margin-right: 2rem;
    line-height: 2rem;
}

.question-answer-wrapper {
    position: relative;
}
.calculator-link {
    position: absolute;
    right: 0;
    bottom: 0;
}
.calculator-link button {
    font-size: 1.2rem;
    padding: 16px;
    border-radius: 15px;
}

.calculator-link button a {
    text-decoration: none;
}