body {
    background-color: #6699CC;
    margin: 0;
}


#logged-out-notif {
    position: absolute;
    display: flex;
    justify-self: center;
    align-items: center;
    width: 35rem;
    height: fit-content;
    background-color: peachpuff;
    margin-top: 1rem;
    border-radius: 2rem;
    gap: 1.5rem;
    border: .35rem solid rgba(237, 172, 116, 0.743);
    padding: 0.75rem 2.5rem 0.75rem .75rem;
    visibility: hidden;
}

#logged-out-notif-exclamation {
    width: 6rem;
    height: 6rem;
    /* border: .5rem solid red; */
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 6rem;
    text-align: center;
    font-size: 5.5rem;
    font-weight: 900;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: rgb(237, 173, 116);
    color: rgb(108, 52, 23);
}

#logged-out-notif-text p {
    width: fit-content;
    height: fit-content;
    flex: 1;
    text-wrap: wrap;
    font-family: Arial, Helvetica, sans-serif;
}

#logged-out-notif-text-main {
    color: rgb(108, 52, 23);
    margin: 1.5rem 0 0 0;
    font-size: 1.5rem;
    font-weight: bold;
}

#logged-out-notif-text-secondary {
    color: rgb(151, 72, 32);
    margin: 0 0 0 0;
}

#logged-out-notif-x {
    position: relative;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

#logged-out-notif-x::before, #logged-out-notif-x::after {
    content: "";
    position: absolute;
    height: 8px;
    width: 2rem;
    top: 50%;
    left: 0;
    margin-top: -4px;
    background: rgb(151, 72, 32);
    border-radius: 5px;
}

#logged-out-notif-x::before {
    transform: rotate(45deg);
}

#logged-out-notif-x::after {
    transform: rotate(-45deg);
}

#logged-out-notif-x:hover::before, #logged-out-notif-x:hover::after {
    background: rgb(108, 52, 23);
    transition: 1s;
}

.problem {
    margin: 5rem auto 5rem auto;
    padding: 0 1rem 0 1rem;
}

.problem-container {
    display: flex;
    flex-direction: column;
    /* margin: 5rem auto 0 auto; */
    justify-self: center;
    background-color: peachpuff;
    width: 100rem;
    max-width: 100%;
    min-height: 60rem;
}

#below {
    display: none;
    width: 100rem;
    max-width: 100%;
    justify-self: center;
    justify-content: flex-end;
    margin: 0;
}

#next_below {
    margin: 1rem 0 0 0;
}

.header {
    width: 100%;
    height: 4rem;
    background-color: rgb(108, 52, 23);
    color: rgb(237, 173, 116);
    display: flex;
    align-items: center;
    font-size: 3.75rem;
}

.header .lefthand {
    justify-content: left;
    margin-left: 1rem;
}

.header .divider {
    margin-left: auto;
    margin-right: auto;
}

.header .righthand {
    justify-content: right;
    margin-right: 1rem;
}

.subheader {
    width: 100%;
    min-height: 2.5rem;
    background-color: rgb(151, 72, 32);
    display: flex;
    align-items: center;
}

#final_feedback {
    color: white;
    font-size: 3rem;
    margin: .25rem auto .5rem 0;
    padding-left: 1rem;

}

#left_subheader {
    text-align: right;
    padding-right: 1rem;
    font-size: 1.5rem;
    color: white;
    margin-left: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;

}

#source, #tags {
    margin: 0 0 0 0;
}

.question {
    color: black;
    text-align: left;
    justify-content: flex-start;
    padding-left: 2rem;
    padding-right: 2rem;
    font-size: 2.5rem;
    margin-top: .75rem;
}

.solution-container {
    color: black;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: .75rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    margin-top: 0;
    display: none;
    background-color: rgb(255, 197, 146);
    /* background-color: rgba(151, 72, 32, 0.403); */ 
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: .75rem;
    
}

.space {
    margin-top: auto;
    margin-bottom: auto;
}

#answer-container {
    display: flex;
    justify-content: stretch;
    flex-wrap: wrap;
    width: calc(100% - 3rem);
    background-color: rgba(151, 72, 32, 0.403);
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    padding: .625rem 0.75rem;
    box-sizing: border-box;
    gap: .75rem;
    row-gap: .625rem;
}


#answer-form {
    display: flex;
    justify-content: flex-start;
    flex: 20;
    gap: .4rem;
}

#answer {
    flex: 2 1 auto;
    max-width: 50rem; /* TODO: if possible make this 40rem as it's kinda ugly so long, but make sure when decreasing screen width there is no empty space in answer-container*/
    min-width: 25rem;
    border: 0;
    height: 2.5rem;
    background-color: rgb(255, 197, 146);
    font-size: 1.25rem;
    padding: 1px 2px 1px .5rem;
    box-sizing: border-box;
}

#answer-buttons {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-evenly;
    gap: .75rem;
}

.button {
    cursor: pointer;
    border: 0;
    background-color: rgb(108, 52, 23);
    color: rgb(255, 205, 162);
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0 1.5rem;
    height: 2.5rem;
    text-wrap: nowrap;
}

#giveup {

}

#next {

}

#render {
    margin-right: auto;
    margin-left: 1.5rem;
    margin-bottom: 0;
    margin-top: 0;
    background-color: rgba(151, 72, 32, 0.403);
    padding-left: .5rem;
    padding-right: .5rem;

}


.popup-text {
    position: relative;
    cursor: pointer;
    display: inline-block;
    align-self: flex-start;
    font-size: 2rem;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: black;
    text-underline-offset: .3rem;
}

.popup-text .katex {
    border-bottom: .18rem dashed currentColor; /* yes, .18rem; any objects will be thoughtfully ignored */
}

/* removing the dashed underline for popuptext katex */
.popup-text .popup-definition .katex {
    border-bottom: none;
}


/* contains popup arrows and text */
.popup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    visibility: hidden;
    position: absolute;
    z-index: 1;
    top: auto;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* above arrow if the popup text is below, by default not displayed because popup text is above rather than below typically */
.popup-arrow-above {
    display: none;
    width: 0;
    height: 0;
    border-left: 1.4rem solid transparent;
    border-right: 1.4rem solid transparent;
    border-bottom: 1rem solid #555;
}

/* the actual definition text */
.popup-definition {
    display: inline-block;
    cursor: auto;
    white-space: normal;
    width: max-content;
    max-width: 50rem;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: .5rem .5rem;
    transform: translateX(var(--shift-x, 0px));
}

/* the arrow that points to the text, is hidden if definition is below the text */
.popup-arrow-below {
    width: 0;
    height: 0;
    border-left: 1.4rem solid transparent;
    border-right: 1.4rem solid transparent;
    border-top: 1rem solid #555;
}

/* if upside down, make definition below text, show above arrow, and hide below arrow */
.popup-container.upside-down {
    top: 100%;
    bottom: auto;
}
.popup-container.upside-down .popup-arrow-above {
    display: block;
}
.popup-container.upside-down .popup-arrow-below {
    display: none;
}

/* when popup is hovered over and when popup-container is part of "show" class, show the popup-container (w/ animation) */
.popup-text:hover .popup-container, .popup-text .popup-container.show{
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}


@-webkit-keyframes fadeIn {
    from {opacity: 0;}
    to {opactiy: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opactiy: 1;}
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50vh; /* can be changed to middle screen if wanted */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    background-color: rgb(255, 218, 185);
    margin: auto;
    padding: .5rem 1.25rem;
    padding-right: 2rem;
    border: .1rem solid #888;
    width: fit-content;
    min-width: 25rem;
    min-height: 15rem;
    min-height: fit-content;
    font-size: 2rem;
}


.close {
    color: rgb(151, 72, 32);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    margin-top: -1rem;
    margin-right: -1.75rem;
}

.close:hover, .close:focus {
    color: rgb(65, 31, 14);
    text-decoration: none;
    cursor: pointer;
}

.incorrect_modal_paragraphs {
    display: inline;
    margin: 1rem 0;
    color: black;
    font-weight: 500;
    
}

#incorrect_modal_paragraphs_1 {
    margin-top: .5rem;
    display: block;
    white-space: nowrap;
    width: auto;
    margin-bottom: .5rem;
}

#modal-content-line-2 {
    display: flex;
}

#incorrect_modal_paragraphs_2 {
    margin-top: 0;
    margin-bottom: 0;
}

#incorrect_modal_button {
    /* align-self: flex-end; */
    margin-left: auto;
}