:root {
    --main-bg-color: #dfddd2;
    --light-bg-color: white;
    --main-strong-color: #990000;
    --second-light-color: #dacab3;
    --strong-color: #315c82;
    --small-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    --male-color: #0048D0;
    --female-color: #CC0000;
    --good-color: #9adc9a;
    --bad-color: #ff4040;
    --darken: #00000010;
    --darken-more: #00000020;
    --lighten: #FFFFFF70;
    --card-color: floralwhite;
    --info-color: #efe590;
}

body {
    display: grid;
    justify-items: center;
    background-color: var(--main-bg-color);
}

header {
    width: 100%;
    border-bottom: grey solid 1px;
}

a {
    color: var(--strong-color);
    text-decoration: none;
}

ul li.menu a {
    color: #333;
    font-size: 1.2rem;
    font-variant: small-caps;
    text-decoration: none;
}

ul li.menu a:hover,
a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
    text-decoration: none;
    font-weight: lighter;
    grid-column: 1/-1;
    margin: 0;
    padding: 0.5rem 0 0.5rem 0;
    width: 100%;
}

h2 {
    text-align: center;
    text-decoration: none;
    font-variant: small-caps;
    font-weight: lighter;
    font-size: 2.2em;
    grid-column: 1/-1;
    margin: 0;
    padding: 0.5rem 0 0.5rem 0;
    width: 100%;
}

#mainContainer {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
    height: 90vh;
    position: relative;
}

#schoolContainer {
    overflow: auto;
    background-color: var(--main-bg-color);
    width: 80%;
    height: 100%;
    right: 0;
    position: absolute;
}

#profLists {
    position: absolute;
    background-color: var(--light-bg-color);
    height: 95%;
    width: 20%;
    padding-left: 15px;
    overflow: scroll;
}

#mainContainer.no-sidebar {
    display: block;
    height: auto;
}

#mainContainer.no-sidebar #schoolContainer {
    position: relative;
    width: 100%;
    height: auto;
    right: auto;
}

div.info {
    background-color: var(--info-color);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 4px solid #d8b986;
    border-radius: 15px;
    max-width: 800px;
}

div.info h3 {
    font-size: 1.6rem;
    margin: 5px 0;
    color: var(--strong-color);
}

div.info p {
    font-size: 1rem;
}

div#privateOrder {
    background-color: var(--light-bg-color);
    margin: 20px 10px;
    border-color: #315c828c;
}

div#regInfo {
    background-color: var(--info-color);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 8px solid white;
    border-radius: 30px;
}

div#linkToSchools {
    width: 100%;
}

div.prof {
    font-size: 0.8em;
    padding: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    width: 105px;
    float: left;
    margin: 5px;
    border-radius: 10px;
    background-color: var(--card-color);
}

div.prof.age-recent {
    background-color: #9adc9a;
}

div.prof.age-mid {
    background-color: #ffffff;
}

div.prof.age-old {
    background-color: #ffdede;
}

div.old {
    background-color: var(--bad-color);
}

div.new {
    background-color: var(--good-color);
}

.used {
    background-color: #ADD68F;
}

div.blank {
    background-color: var(--light-bg-color);
}

div.prof td {
    padding: 0;
    border: 0;
    margin: 0;
}

div.prof img {
    width: 100px;
    border-radius: 10px;
}

div.school {
    overflow: auto;
    background-color: var(--main-bg-color);
    padding: 2px;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.teacher-survey-panel {
    margin: 12px 8px 22px;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 900px;
}

.teacher-survey-panel h3 {
    margin: 0 0 10px;
    color: #333;
}

.teacher-survey-form {
    display: grid;
    gap: 10px;
}

.teacher-survey-meta {
    display: grid;
    gap: 6px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.teacher-survey-meta label {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

.teacher-survey-row {
    display: grid;
    gap: 6px;
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.teacher-survey-group {
    display: grid;
    gap: 8px;
}

.teacher-survey-group-title {
    margin: 4px 0 2px;
    font-size: 1rem;
    color: #2f3b4a;
}

.teacher-survey-row.q-priority-missing {
    border-color: #dc2626;
    background: #ffe5e5;
}

.teacher-survey-row.q-priority-oldest {
    border-color: #f97316;
    background: #fff1e6;
}

.teacher-survey-row.q-priority-less-old {
    border-color: #facc15;
    background: #fffbe6;
}

.teacher-survey-row.no-come {
    border-color: #8a8a8a;
    background: #ececec;
}

.teacher-survey-row.no-come .teacher-survey-name,
.teacher-survey-row.no-come .teacher-survey-reason {
    color: #4b4b4b;
}

.teacher-survey-name {
    font-weight: bold;
}

.teacher-survey-reason {
    font-size: 0.85em;
    color: #b04a4a;
}

.teacher-survey-row select,
.teacher-survey-meta input,
.teacher-survey-row input,
.teacher-survey-meta textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-highlight {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #e8f1fb;
    border: 2px solid #315c82;
    text-align: center;
}

.contact-label {
    font-size: 0.9rem;
    color: #315c82;
    margin-bottom: 6px;
}

.contact-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f3550;
    line-height: 1.3;
}

.contact-phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f4c81;
    margin-top: 4px;
}

.teacher-survey-form button {
    justify-self: start;
    border: 0;
    background: #315c82;
    color: #fff;
    border-radius: 4px;
    padding: 7px 12px;
    cursor: pointer;
}

table {
    margin: 1rem;
    border: 3px solid var(--lighten);
    background-color: var(--lighten);
    box-shadow: var(--shadow);
}

th,
td {
    padding-left: 6px;
    padding-right: 6px;
}

div.prof table {
    padding: 0;
    margin: 0;
    border: 0;
    background: var(--light-bg-color);
}

table.content th {
    padding-top: 5px;
    padding-bottom: 5px;
}

table.ordertable tr:hover {
    background-color: var(--main-bg-color);
    box-shadow: var(--shadow);
}

table tr#firstRow {
    height: 40px;
}

tr.diakRow {
    box-shadow: var(--small-shadow);
}

tr:nth-child(4n+1) {
    background-color: #FFFFFF60;
}

table.ordertable td,
table.ordertable th {
    padding: 0;
}

td.name,
td.student {
    font-size: 1rem;
}

td.M textarea {
    color: var(--male-color);
}

td.M {
    color: var(--male-color);
    padding: 0;
}

td.F textarea {
    color: var(--female-color);
}

td.F {
    color: var(--female-color);
    padding: 0;
}

td.nopic {
    background-color: var(--bad-color);
}

tr.diakRow textarea {
    resize: none;
    background-color: transparent;
    font-size: 1.1rem;
    text-align: center;
    border: 0;
    height: 25px;
}

textarea.state {
    resize: none;
    background-color: transparent;
    font-size: 1.5rem;
    text-align: center;
    border: 0;
    height: 32px;
}



textarea.namearea {
    min-width: 250px;
}

textarea.payPack {
    width: 85px;
}

tr.facebook {
    background-color: #DEE;
}

tr.google {
    background-color: #EED;
}

td.profToSchool {
    padding-left: 2px;
    padding-right: 2px;
}

td.paid {
    background-color: var(--good-color);
}

td.unPaid {
    background-color: var(--bad-color);
}

p#preview p {
    margin-top: 2px;
    margin-bottom: 2px;
    padding: 2px;
    background-color: #CCC;
}

#preview {
    position: absolute;
    border: 1px solid #ccc;
    background: #FFF;
    padding: 5px;
    display: none;
    color: #fff;
}

#preview img {
    max-height: 500px;
}

p#preview {
    position: absolute;
    border-radius: 10px;
    background: #FFFFFFD0;
    padding: 10px;
    text-align: center;
    z-index: 2;
    box-shadow: var(--shadow);
    color: #333;
}

div#previewPics::after {
    content: attr(data-theme);
    box-shadow: var(--shadow);
    border-radius: 15px;
    display: block;
    background-color: var(--main-bg-color);
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--strong-color);
    background-size: contain;
}

div#previewPics img {
    max-height: 160px;
    border-color: var(--light-bg-color);
    border-radius: 10px;
    border-width: 4px;
    margin: 10px;
}

label.error {
    background: url("/images/unchecked.png") no-repeat;
    background-size: 14px 14px;
    padding-left: 20px;
    padding-bottom: 2px;
    font-weight: bold;
    color: var(--bad-color);
}

label.checked {
    background: url("/images/checked.png") no-repeat 0px 0px;
    padding-left: 20px;
    padding-bottom: 2px;
    font-weight: bold;
    color: var(--good-color);
}

.inErrorValue {
    background-color: var(--bad-color);
}

.inCorrValue {
    background-color: var(--good-color);
}

img.facebookIcon {
    width: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

div#allPics {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

div.picThumb {
    display: grid;
    box-shadow: var(--shadow);
    justify-items: center;
    align-items: baseline;
    overflow: hidden;
    min-height: fit-content;
    padding: 0;
    border: none;
}

div.picThumb div {
    padding: 5px;
    background-color: transparent;
}

div.picThumb img {
    max-width: 100%;
    max-height: 165px;
    border-radius: 5px;
    border: none;
    padding: 0;
    margin: 0;
}

div.picThumb .student-card-photos {
    display: flex;
    width: 100%;
    gap: 4px;
    align-items: flex-start;
}

div.picThumb .student-card-photo {
    width: 50%;
    min-width: 0;
}

div.picThumb .student-card-photo span {
    display: block;
    font-size: 0.75em;
    text-align: center;
}

div.picThumb p {
    margin: 5px 0;
}

button {
    margin: 10px 5px;
    padding: 10px;
    border-radius: 4px;
    background-color: darkseagreen;
}

button.delete {
    background-color: var(--info-color);
}

button.overwrite {
    background-color: var(--bad-color);
    color: var(--light-bg-color);
}

.error {
    background-color: var(--bad-color);
    color: var(--light-bg-color);
}

input#stand {
    opacity: 0.1;
}

img.small {
    height: 60px;
}

input#totalPrice {
    width: 80px;
}

#footer {
    padding: 2em 0;
    background-color: var(--darken);
    margin-top: 2em;
    width: 100%;
    text-align: center;
}

img.retT {
    border-bottom: 10px solid yellow;
}

img.retCR {
    border-bottom: 10px solid orange
}

img.ret {
    border-bottom: 10px solid cyan;
}

#modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding: 50px 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}


/* Modal Content */

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

#modal img.fullScreen {
    max-height: 90vh;
    max-width: 90vw;
}


/* The Close Button */

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#modal table {
    background-color: floralwhite;
}

tr.oldUser {
    background-color: gold;
}

div.video {
    display: grid;
    justify-items: center;
    margin: 25px;
    width: 70%;
}

img.videoPreview {
    width: 90%;
}

td.stage1 {
    background-color: white;
}

td.stage2 {
    background-color: rgba(222, 154, 28, 0.306);
}

td.stage3 {
    background-color: rgba(241, 234, 101, 0.703);
}

td.stage4 {
    background-color: rgba(0, 128, 128, 0.306);
}

td.stage5 {
    background-color: rgba(0, 128, 21, 0.306);
}

img#info {
    max-width: 800px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}