html,
body {
    margin: 0;
    height: 96%;
    width: 100%;
    position: relative;
}

body {
    background: snow;
    color: rgb(64, 64, 64);
    font-family: 'Titillium Web', sans-serif;
    user-select: text;
}

main {
    width: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

* {
    user-select: none;
}

.textInput {
    display: block;
    font-family: inherit;
    font-size: 18px;
    padding: 5px;
    padding-left: 10px;
    box-sizing: border-box;
    width: 100%;
    border-radius: 5px;
    border: 1px solid lightgray;
    background: white;
    transition: border-color 0.15s;
}

.textInput:focus {
    outline: none;
    border-color: rgb(64, 64, 64);
}

.textarea {
    display: block;
    font-family: inherit;
    font-size: 18px;
    padding: 5px;
    padding-left: 10px;
    box-sizing: border-box;
    width: 100%;
    border-radius: 5px;
    border: 1px solid lightgray;
    background: white;
    transition: border-color 0.15s;
    resize: none;
    font-size: 14px;
    height: 150px;
}

.textarea:focus {
    outline: none;
    border-color: rgb(64, 64, 64);
}

button {
    background: white;
    font-family: inherit;
    font-size: 18px;
    border-radius: 50px;
    border: 1px solid lightgray;
    padding: 5px 15px;
    transition: background 0.15s, transform 0.15s;
    cursor: pointer;
    margin-bottom: 5px;
}

/*button:focus {
    outline: none;
}*/

button:hover {
    background: rgb(240, 240, 240);
}

button:active {
    transform: scale(1.05);
}

.centeredButton {
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
}

#login {
    display: none;
}

#login button {
    display: block;
    margin: auto;
    margin-top: 30px;
}

#openAdminSettings {
    padding: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    /*opacity: 0.5;*/
}

.clickableImage {
    transition: opacity 0.15s, transform 0.15s;
    cursor: pointer;
    opacity: 0.5;
}

.clickableImage:hover {
    opacity: 0.75;
    transform: scale(1.15);
}

.subcontainer {
    margin: auto;
    /* max-width: 600px; */
    max-width: 70%;
    /* margin-top: 50px; */
    padding: 10px;
    /* padding-top: 50px; */
    display: none;
    height: 100%;

    box-sizing: border-box;
    user-select: text;
}

.subcontainerInner {
    max-width: 800px;
    margin: auto;
}

#templateEditor>div>textarea {
    margin: 5px 0;
}

h1 {
    font-weight: normal;
    margin: 0;
    margin-bottom: 20px;
    line-height: 25px;
    user-select: text;
}

.tex h1 {
    font-weight: normal;
    margin: 0;
    margin-bottom: 20px;
    line-height: 25px;
    user-select: text;
}

@keyframes surveyFlash {
    from {
        background-color: #ccffcc;
    }

    to {
        background-color: white;
    }
}

.survey {
    padding: 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
    background-color: white;
}

.survey:not(:last-of-type) {
    margin-bottom: 5px;
}

.survey ._name {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.survey ._id {
    color: gray;
    font-size: 12px;
    margin: 0;
    font-weight: bold;
}

.survey ._createdDate {
    color: gray;
    font-size: 12px;
    margin: 0;
}

.survey ._top * {
    user-select: text;
}

.survey ._bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.075);
    padding-top: 5px;
    margin-top: 5px;
    text-align: right;
    margin-bottom: -5px;
}

#surveyList {
    margin-top: 5px;
}

.buttonPositive {
    background: #ccffcc;
}

.noContentNotice {
    font-size: 12px;
    color: gray;
    text-align: center;
    margin: 0;
    margin-top: 30px;
}

.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.disabledExtra {
    opacity: 0.15;
    pointer-events: none;
}

#edit>textarea {
    margin: 5px 0;
}

.dropdownContainer {
    height: 100%;
    width: 100%;
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.dropdown {
    width: 250px;
    background: white;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.20);
    border-radius: 5px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

/*.dropdown>._group {}*/

.dropdown>._group:not(:last-of-type) {
    margin-bottom: 5px;
}

.dropdown>._groupHeading {
    margin: 0;
    font-size: 12px;
    /*padding-left: 15px;*/
    margin-bottom: -3px;
    text-align: center;
}

.dropdown>._group>div {
    padding: 2px 5px;
    padding-left: 15px;
    cursor: pointer;
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
    font-size: 14px;
}

.dropdown>._group>div:not(:last-of-type) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

.dropdown>._group>div:last-of-type {
    margin-bottom: 3px;
}

.dropdown>._group>div:hover {
    background: rgba(0, 0, 0, 0.05);
}

#editQuestions {
    margin-top: 5px;
    margin-bottom: 10px;
}

.editQuestion {
    padding: 5px 10px;
    background: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding-bottom: 10px;
    position: relative;
}

.editQuestion:not(:last-of-type) {
    margin-bottom: 5px;
}

.editQuestion ._type {
    margin: 0;
    font-size: 12px;
    color: #5c9ecd;
    font-weight: bold;
    margin-bottom: 5px;
}

.editQuestion ._text {
    font-size: 14px;
    margin-bottom: 10px;
}

.editQuestion ._actions {
    position: absolute;
    top: 0;
    left: 0;
    text-align: right;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

.editQuestion ._actions img {
    display: inline-block;
    height: 20px;
}

.checkbox {
    margin: 0;
    height: 30px;
    width: 30px;
    /* background: rgba(0,0,0,0.15); */
    vertical-align: top;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid lightgray;
    /* background-color: white; */
    box-sizing: border-box;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
    position: relative;
}

.checkbox[type="radio"] {
    border-radius: 1000px;
}

.checkbox:hover {
    background: rgb(240, 240, 240);
}

.checkbox:after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    height: 14px;
    width: 14px;
    display: block;
    /*border: 9px solid rgb(64,64,64);*/
    overflow: hidden;
    background: rgb(64, 64, 64);
    box-sizing: border-box;
    border-radius: 0px;
    opacity: 0;
    transform: scale(1.25);
    transition: all 0.15s;
}

.checkbox:checked:after {
    transform: scale(1);
    opacity: 1;
    border-radius: 1000px;
}

.checkbox:focus {
    outline: none;
}

.checkbox:active {
    transform: scale(1.1);
}

.checkboxLabel {
    height: 30px;
    display: inline-block;
    line-height: 30px;
    padding-left: 10px;
    cursor: pointer;
}

.question {
    padding: 5px 10px;
    background: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding-bottom: 10px;
    position: relative;
}

.question:not(:last-of-type) {
    margin-bottom: 5px;
}

.question ._text {
    margin: 0;
    font-size: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
    padding-bottom: 5px;
}

.question .checkboxContainer:not(:last-of-type) {
    margin-bottom: 5px;
}

.question._heading {
    background: transparent;
    border: none;
    padding-bottom: 0;
}

.question._heading ._text {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 5px;
    /* text-align: center; */
}

.question._label {
    background: transparent;
    border: none;
    padding-bottom: 0;
}

.question._label ._text {
    margin: 0;
    margin-bottom: 30px;
    font-size: 14px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 5px;
    /* padding-top: 5px; */
}

#questions {
    margin-top: 5px;
    margin-bottom: 10px;
}

#surveyDescription {
    margin: 0;
    margin-bottom: 30px;
    font-size: 14px;
}

.requiredField {
    color: rgb(255, 0, 76);
}

#questionAssessments {
    margin-top: 5px;
    margin-bottom: 10px;
}

.questionAssessment {
    padding: 5px 10px;
    background: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding-bottom: 10px;
    position: relative;
}

.questionAssessment:not(:last-of-type) {
    margin-bottom: 5px;
}

.questionAssessment ._text {
    margin: 0;
    font-size: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
    padding-bottom: 5px;
}

.questionAssessment ._meta {
    margin: 0;
    font-size: 12px;
    text-align: center;
    margin-bottom: 5px;
    /* text-decoration: underline; */
    /* font-weight: bold; */
}

.questionAssessment._heading {
    background: transparent;
    border: none;
    padding-bottom: 0;
}

.questionAssessment._heading ._text {
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 5px;
    /* text-align: center; */
}

.spectrumAssessment {
    width: 100%;
    display: flex;
}

.spectrumAssessment>div {
    flex-basis: 100%;
    text-align: center;
    font-size: 12px;
    padding: 0px 5px;
    box-sizing: border-box;
    font-weight: bold;
}

.spectrumAssessment._bars {
    border-top: 1px solid rgb(64, 64, 64);
}

.spectrumAssessment._bars>div {
    flex-basis: 100%;
    text-align: center;
    font-size: 12px;
    /* padding: 0px 5px; */
    margin: 0px 5px;
    box-sizing: border-box;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background: #5e9bd0;
    position: relative;
    padding: 0;
    margin-bottom: 20px;
}

.spectrumAssessment._bars>div p {
    margin: 0;
    /* display: inline-block; */
    width: 100%;
    /* vertical-align: bottom; */
    position: absolute;
    left: 0;
    bottom: -20px;
    font-weight: bold;
}

.spectrumAssessmentLine {
    margin: auto;
    width: calc(100% - 20%);
    margin-top: 10px;
    position: relative;
    height: 34px;
}

.spectrumAssessmentLine ._line {
    height: 5px;
    width: 100%;
    background: rgb(64, 64, 64);
    border-radius: 1000px;
}

.spectrumAssessmentLine ._marker {
    position: absolute;
    width: 5px;
    top: -10px;
    transform: translateX(-2.5px);
    left: 40px;
}

.spectrumAssessmentLine ._marker div {
    width: 5px;
    height: 25px;
    border-radius: 1000px;
    background: #5e9bd0;
}

.spectrumAssessmentLine ._marker p {
    margin: 0;
    font-size: 12px;
    text-align: center;
    display: inline-block;
    /* width: 100%; */
    /* direction: rtl; */
    transform: translateX(calc(-50% + 2.5px));
    color: #5e9bd0;
    font-weight: bold;
}

.questionAssessment ._entries {
    background: #f1f1f1;
    border-radius: 5px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 200px;
}

.questionAssessment ._entries>div {
    font-size: 12px;
    padding: 5px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.questionAssessment ._entries>div:not(:last-of-type) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
}

.questionAssessment ._entries>div:hover {
    background: #e0e0e0;
}

.questionAssessment ._entries>div.open {
    white-space: pre-wrap;
    background: #5e9bd0;
    color: white;
    padding: 10px;
    font-size: 14px;
}

#assessmentMeta {
    margin: 0;
    margin-bottom: 30px;
    font-size: 14px;
}

#useCodesDescription {
    margin: 0;
    margin-bottom: 30px;
    font-size: 14px;
}

#useCodes {
    margin-top: 10px;
    margin-bottom: 10px;
}

.useCode {
    display: inline-block;
    background: white;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 0px 5px;
    user-select: text;
    margin-right: 5px;
    margin-bottom: 5px;
    font-family: monospace;
}

.useCode.used {
    opacity: 0.5;
    text-decoration: line-through;
}

hr {
    margin: 0;
    border: none;
    height: 1px;
    width: 100%;
    background: rgba(0, 0, 0, 0.075);
}

.container {
    overflow: hidden;
}

#openMenu {
    position: absolute;
    left: 5px;
}