/* VARS */

:root {
   --colA: #FFE600;
   --colB: #FFB717;
   --colC: #FF8B22;
   --colD: #FF7D12;
   --colE: #FF0055;
   --colF: #F74DD3;
   --colG: #E85115;
   --colH: #BF3297;
   --colI: #BC354F;
   --colJ: #8E9DA0;
   --colK: #8073FF;
   --colL: #6E6299;
   --colM: #6B7375;
   --colN: #4545FF;
   --colO: #3A3AA5;
   --colP: #188484;
   --colQ: #0A517C;
   --colR: #00DD5E;
   --colS: #00BAB1;
   --colT: #00A500;
   --colU: #009E44;
   --colV: #007EAF;
   --colW: #007BE0;
   --colX: #006600;
   --colY: #0054A8;
   --colZ: #333333;

   --bg: #FEFEFE;
   --bgA: #ebebeb;
   --bgB: #BBB;
   --bgC: #707070;

   --black: #000;
   --red: rgb(203, 36, 36);
   --green: #00A500;
   --blue: rgb(32, 142, 210);
   --grey: #666;
   --border-radius: 0px;
}

@font-face {
   font-family: Narkiss-light;
   src: url(fonts/Narkiss/NarkissBlock-Thin-TRIAL.otf);
}

@font-face {
   font-family: Narkiss;
   src: url(fonts/Narkiss/NarkissBlock-Regular-TRIAL.otf);
}

@font-face {
   font-family: Narkiss-medium;
   src: url(fonts/Narkiss/NarkissBlock-Medium-TRIAL.otf);
}

@font-face {
   font-family: Narkiss-bold;
   src: url(fonts/Narkiss/NarkissBlock-Bold-TRIAL.otf);
}


/* RESET */

html {
   box-sizing: border-box;
}

*,
*:before,
*:after {
   box-sizing: inherit;
}


body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
   margin: 0;
   padding: 0;
   font-weight: normal;
}

ol,
ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}


/* LAYOUT */

html,
body {
   height: 100%;
}

body {
   background-color: #F0F0F0;
   font-size: 16px;
   font-family: Narkiss, sans-serif;
   direction: rtl;
   display: flex;
   flex-direction: column;
}

header {
   background-color: white;
   position: fixed;
   top: 0;
   right: 0;
   width: 100%;
   height: 64px;
   display: flex;
   flex-direction: row;
   border-bottom: 1px solid #999;
   z-index: 10000;
}


header>.logo {}

header>.logo img {
   width: 64px;
}

header>div {
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 16px;
}

header>div.headerSpacer {
   flex-grow: 1;
}

header h1 {
   font-size: 21px;
   font-family: Narkiss-medium;
}

header h2 {
   font-size: 21px;
   font-family: Narkiss-light;
}

@media (pointer: coarse) {
   header>div {
      margin: 0 8px;
   }
   header h1 {
      font-size: 18px;
   }

   header h2 {
      font-size: 18px;
   }
   
}

.container {
   width: 100%;
   max-width: 800px;
   margin: 0 auto;
   margin-top: 80px;
   padding: 16px;
   flex: 1 0 auto;
}

footer {
   flex-shrink: 0;
   padding: 32px;
}



#logo {
   display: flex;
   align-items: center;
   justify-content: center;
   /* margin-bottom: 32px; */
}

.center {
   justify-content: center;
}

#logo img {
   width: 180px;
}

#logo img.small {
   width: 90px;
}

#loginForm {
   margin-top: 44px;
   width: 320px;
}

#loginForm>div {
   margin: 14px auto;
}

.huge {
   font-size: 96px;
}



.modal {
   position: fixed;
   top: 0;
   left: 0;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   height: 100%;
   background-color: rgba(32, 32, 32, 0.5);
}

.modal>div {
   position: relative;
   width: 80%;
   max-height: 80%;
   background-color: #FFF;
   border-radius: var(--border-radius);
   border: 1px solid #666;
   padding: 8px;
   padding-top: 32px;
   display: flex;
   flex-direction: column;

}

#modalHeading {
   margin: 0px 2px 24px 2px;
}

#modalContent {
   flex-grow: 1;
   overflow-y: auto;
}


.englishInput {
   direction: ltr;
}

.clink {
   text-decoration: none;
   cursor: pointer;
   color: #111;
}

.clink:hover {
   text-decoration: underline !important;
}

.clink h3 {
   color: #000;
   letter-spacing: 0.05em;
   font-size: 18px;
}



.clink :active {
   font-weight: bold;
}

.infoText {
   margin-top: 4px;
   font-size: 14px;
   color: #666;
}

.field {
   margin: 16px 0 4px 0;
}

.field>p {
   font-size: 14px;
   color: #666;
   margin-bottom: 4px;
}


.subframe {
   margin: 32px 32px;
   padding: 16px;
   border: 1px solid #999;
   border-radius: var(--border-radius);
   background-color: #bebfc0;
}

.flexList {
   display: flex;
   flex-wrap: wrap;
   column-gap: 4px;
   /* justify-content: center; */
   margin: 0 0 16px 0;
}


.listIcon{
   width: 70px !important;
   flex-grow: 0;
}

.flexList>div,
.flexList>input {
   flex-grow: 1;
   width: auto !important;
   flex-basis: 32%;
}

.flexList>.halfCol {
   width: calc(50% - 4px);
}

.flexList.scheduleItem>.field {
   flex-basis: auto !important;
}


.flexGrid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 10px;
   /* Adjust spacing between items */
}

.flexGrid>* {
   height: 100%;
}

input[type="button"],
input[type="submit"],
button {
   width: 100%;
   font-size: 16px;
   border-radius: var(--border-radius);
   border: 1px solid #999;
   height: 32px;
   padding: 4px;
   margin-bottom: 2px;
   background-color: white;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="time"],
input[type="date"],
input[type="email"] {
   width: 100%;
   font-size: 16px;
   border-radius: var(--border-radius);
   border: 1px solid #999;
   height: 32px;
   padding: 4px;
   margin-bottom: 2px;
   background-color: white;
}

input[type="number"] {
   font-size: 24px;
}

input[type="range"] {
   height: 32px;
   width: 100%;
   margin-bottom: 16px;
}

.input-error {
   border: 2px solid red !important;
}




.field>input[type="file"] {
   font-size: 14px;
}

.inputImageThumbnail {
   max-height: 240px;
   width: auto;
   margin: 8px 0;
   display: block;
}

.field>input.small {
   font-size: 14px;
}

.field>input.bold {
   font-weight: bold;
   font-size: 18px;
}

.field>input[type="checkbox"] {
   font-size: 16px;
   height: 16px;
   width: 16px;
   padding: 4px;
   accent-color: rgb(32, 142, 210);
   border-radius: var(--border-radius);
   display: inline-block;
}

.field>input[type="checkbox"]+p {
   /* display: inline-block; */
   /* line-height: 16px; */
   font-size: 16px;
   margin: 0px 4px 0 0;
   vertical-align: middle;
   line-height: 100%;
}

.field>select {
   width: 100%;
   font-size: 18px;
   border-radius: var(--border-radius);
   border: 1px solid #999;
   height: 32px;
   padding: 4px;
   margin-bottom: 2px;
}

.field textarea {
   width: 100%;
   font-size: 14px;
   border-radius: var(--border-radius);
   border: 1px solid #999;
   /* height: 120px; */
   resize: none;
   margin-bottom: 2px;
   /* resize: vertical;
   min-height: 42px;
   max-height: 480px; */
   font-family: Arial;
   padding: 4px;
}

.field>h4 {
   display: flex;
   align-items: end;
   height: 100%;
   padding-bottom: 4px;
   color: #666;
   justify-content: center;
   font-size: 24px;
   /* margin-left: 20%; */
}

.btn {
   font-size: 18px;
   margin-top: 16px;
   background-color: var(--blue) !important;
   color: #FFF;
   border: none;
   cursor: pointer;
}

.btn2 {
   font-size: 18px;
   margin-top: 16px;
   background-color: var(--colG) !important;
   color: #FFF;
   border: none;
   cursor: pointer;
}


.btn:active {
   border: 2px inset #999 !important;
   background-color: rgb(25, 109, 162) !important;
}

.btn2:active {
   border: 2px inset #999 !important;
   background-color: rgb(100, 30, 0) !important;
}



.btn.disabled{
   background-color: var(--colJ) !important;
}

.fieldBtn {
   margin-top: 0px !important;
}



.toggleBtnContainer{
   display: flex;
}

.toggleBtn{
   font-size: 18px;
   margin-top: 16px;
   background-color: #a1a1a1 !important;
   color: #FFF;
   border: none;
   cursor: pointer;
   margin-top: 0px !important;
}

.toggleBtn:active {
   border: 2px inset #999 !important;
   /* background-color: rgb(25, 109, 162) !important; */
}

.toggleBtn.ON{
   background-color: #14b73a !important;
}

.toggleBtn.OFF{
   background-color: #b91515 !important;
}

.toggleBtn.ON.disabled{
   background-color: #93b09a !important;
}

.toggleBtn.OFF.disabled{
   background-color: #b47878 !important;
}


.autoToggleContainer{
   margin: 0px;
   cursor: pointer;
   display: flex;
   background-color: #EEE;
   border: 1px solid #AAA;
   height: 32px;
   width: 36px;
}




.centerAlign {
   display: flex;
   align-items: center;
   justify-content: center;
}


.rightAlign {
   display: flex;
   flex-direction: row-reverse;
}


.spacer {
   height: 32px;
}

.frame {
   margin: 16px 0;
   padding: 16px;
   border: 1px solid #999;
   border-radius: var(--border-radius);
   background-color: #f9f9f9;
}

.kioskToggle {
   width: auto !important;
   padding: 4px 4px 4px 6px;
   border: 1px solid #999;
   border-radius: var(--border-radius);
   background-color: #f9f9f9;
}

.kioskToggle.field {
   margin: 2px 0 !important;
}

.flexFit {
   flex: 1 1 auto !important;
   display: flex;
   align-items: center;
}

.red {
   background-color: var(--red) !important;
}

.green {
   background-color: var(--green) !important;
}

.blue {
   background-color: var(--blue) !important;
}

.grey {
   background-color: var(--grey) !important;
}

.frameList {
   overflow-y: auto;
   height: 240px;
   max-height: 640px;
   min-height: 120px;
   resize: vertical;
}

.itemRef {
   border: 1px solid #999;
   margin-bottom: 4px;
   padding: 12px;
   font-size: 12px;
   border-radius: var(--border-radius);
   direction: rtl;
   display: flex;
   position: relative;
}

.itemRef>div {
   flex-grow: 2;
   margin-right: 8px;
}

.itemRef h1 {
   margin-bottom: 4px;
}

.itemRef img,
.itemRef .imageDummy {
   display: block;
   width: 128px;
   height: 128px;
   background-color: #666;
   flex-grow: 0 !important;
}

.itemRef .btn {
   width: 96px;
   margin-top: auto;
}

.itemRef .tagList {
   margin-top: auto;
   overflow: hidden;
   background: none;
   border: none;
   outline: none;
   width: 100%;
   color: #666;
}

.signItem {
   position: relative;
}

.selectedItem {
   background-color: #73a2d0;
}

.missionRef {
   border: 1px solid #999;
   margin-bottom: 4px;
   cursor: pointer;
   padding: 8px;
   font-size: 12px;
   border-radius: var(--border-radius);
   /* width: 360px; */
   background-color: #FFF;
   position: relative;
}

#missions {
   min-height: 120px;
   padding-bottom: 120px;
}

.closeBtnSmall {
   width: 20px;
   height: 20px;
   background-image: url(img/close_FILL0_wght300_GRAD200_opsz20.svg);
   display: block;
   position: absolute;
   top: 5px;
   left: 5px;
   cursor: pointer;
}

.closeBtn {
   width: 32px;
   height: 32px;
   background-image: url(img/closeBtn.svg);
   display: block;
   position: absolute;
   top: 4px;
   left: 4px;
   cursor: pointer;
   background-position: -6px -6px;
}

.closeBtn:hover,
.closeBtnSmall:hover {
   background-color: var(--red);
   border-radius: var(--border-radius);
}

#missions>.missionRef {
   width: 200px;
}

#missions .tagList,
#missions .missionID {
   display: none;
}


.gameStep {
   position: relative;
   justify-content: flex-start;
   padding-left: 40px;
   background-color: #EEE;
   flex-direction: column;
   margin-bottom: 16px;
   cursor: move;
}

.gameStep .stepTools {
   display: flex;
   flex-direction: row;
   align-items: center;
}

.gameStep h2 {
   font-size: 24px;
   margin: 7px;
}

.gameStep select {
   min-width: 120px;
   margin: 8px;
   height: 28px;
   border-radius: var(--border-radius);
   outline: none;
   border: 1px solid #666;
}

.gameStep input[type="button"] {
   margin: 8px;
   min-width: 120px;
   height: 32px;
}

.stepMissionContainer {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   background-color: #FFF;
   cursor: auto;
}

.stepMission {
   width: fit-content;
   position: relative;
   margin: 4px !important;
   padding: 5px;
   padding-left: 40px;
   flex-grow: 0 !important;
}

.stepMission .closeBtn {
   top: 3px;
   left: 3px;
}

/* .missionRef .closeBtn{
   display: none;
} */


#result>div {
   padding: 16px;
   border-radius: var(--border-radius);
}

#result>div h3 {
   font-size: 32px;
}


#loginFeedback {
   margin-top: 24px;
   height: 32px;
}

#loginFeedback p {
   color: var(--red);
   text-align: center;
}



.arrow {
   padding: 8px;
   cursor: pointer;
   border: 1px solid #999;
   border-radius: var(--border-radius);
   background-color: #FFF;
}

.arrow i {
   border: solid black;
   border-width: 0 2px 2px 0;
   display: inline-block;
   padding: 6px;
}

.right i {
   transform: rotate(-45deg);
   -webkit-transform: rotate(-45deg);
}

.left i {
   transform: rotate(135deg);
   -webkit-transform: rotate(135deg);
}

.up i {
   transform: rotate(-135deg);
   -webkit-transform: rotate(-135deg);
}

.down i {
   transform: rotate(45deg);
   -webkit-transform: rotate(45deg);
}

/* Basic table styling */
table {
   text-align: right;
   width: 100%;
   border-collapse: collapse;
   table-layout: fixed;
   /* Ensures borders are not doubled */
   margin-bottom: 4px;
   /* Adds some space below the table */
}

/* Table borders */
table,
th,
td {
   border: 1px solid #ddd;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

/* Header styling */
th {
   background-color: #f2f2f2;
   /* Light gray background for header */
   font-weight: bold;
   /* Bold header text */
   text-align: center;
   /* Align text to the left */
   padding: 10px;
}

/* Table body cells */
td {
   text-align: center;
   padding: 4px;
}

.clickTD {
   /* background-color: var(--blue); */
   cursor: pointer;
}


/* Alternating row background */
tbody tr:nth-child(odd) {
   background-color: #f9f9f9;
   /* Slightly different background for alternating rows */
}

tbody tr:nth-child(even) {
   background-color: #ffffff;
   /* White background for even rows */
}

/* Add hover effect */
tbody tr:hover {
   background-color: #f1f1f1;
   /* Light gray when row is hovered */
}

.flexList2 {
   display: flex;
   flex-wrap: wrap;
   column-gap: 14px;
   justify-content: left; 
   margin: 0 0 16px 0;
}
