/* Main.css */

/* HTML tag styles */
body * { max-height:1000000px; color: #000; } /* Chrome mobile: make font static size + Black font for all alement to prevent IOS blue */

body { /* Chrome mobile: no marking/select */
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

body {
  overscroll-behavior: none; /* contain or "none" */ /* Trying to prevent IOS rubber scroll */

  margin: 0; 
  height: 100vh; 
  width: 100%; 
  background-color: aliceblue; 
  font-family: sans-serif; 
  font-size: 16px;
  overflow:hidden
}

img { /* disable image drag */
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  /*user-drag: none;*/
  pointer-events: none; /* prevent image menu for mobile/tablet */
}

.textarea {
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: inherit;
  padding: 1px 6px;
  background-color: whitesmoke;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  resize: both;
  min-height: 20px;
  line-height: 20px;
}
.textarea[contenteditable]:empty::before {
  content: "Aa";
  color: gray;
}

input, select, div, span {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

input:read-only {
  background-color: transparent;
  outline: none;
  border:none
}

input[type=text], input[type=button], button[type=button] { /* Remove Default Button and Form Styling on Safari / iOS */
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}
input[type=text]:disabled, input[type=button]:disabled, button[type=button]:disabled { /* Remove Default Button and Form Styling on Safari / iOS */
  pointer-events: none;
}

input[type="number"] {
  -moz-appearance: textfield;
appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


input.booleanInput[type=checkbox] {
  position: relative;
  cursor: pointer;
  transform: scale(1.3);
}

input.booleanInput[type=checkbox]:before {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: -1px;
  left: 0;
  border-radius: 3px;
  background-color: white;
  border: 1px solid gray;
}

input.booleanInput[type=checkbox]:checked:after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  border: solid #1971ff;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  position: absolute;
  top: 1px;
  left: 6px;
}


/* GENERAL app styles */
.normalButton {
  cursor: pointer;
  display: inline-block;
  padding: 4px;
  background-color: whitesmoke;
  border-radius: 5px;
  border: 1px solid gray;
  text-align: center;
  color: #1971ff
}

.header {
  position: absolute;
  height:34px;
  background: linear-gradient(to left, rgb(105, 169, 241), whitesmoke);
}
.container {
  position: absolute;
  height: calc(100% - 34px);
  margin-top: 34px;
  background-color: dimgrey;
}
.bottom {
  position: absolute;
  bottom: 0;
  height: 34px;
  font-size: 24px;
  text-align: center;
  background: linear-gradient(to right, darkgray, whitesmoke);
  z-index: 8;
}

.footerButton, .headerButton {
  font-family: sans-serif;
  cursor: pointer;
  display: inline-block;
  padding: 4px;
  background-color: whitesmoke;
  border-radius: 5px;
  border: 1px solid gray;
  width: 58px;
  text-align: center;
  color:#1971FF;
}

.isActive {
  background-color: lightgray !important;
}
.isDisabled {
  pointer-events: none !important;
  opacity: 0.5;
  text-decoration: none;
}

.isDisabledMask {
  pointer-events: none;
  opacity: 0.5;
  text-decoration: none;
  color: #000 !important;
}
.isDisabledMask > div {
  background-color: grey !important;
}

.roundButton {
  cursor: pointer;
  display: inline-block;
  background-color: whitesmoke;
  border: 1px solid gray;
  text-align: center;
  height: 30px;
  width: 30px;
  border-radius: 50%;
}

.menuButton {
  font-family: sans-serif;
  font-size: 16px;
  width: 60%;
  margin-top: 8px;
  line-height: 20px;
  cursor: pointer;
  display: inline-block;
  padding: 4px;
  background-color: whitesmoke;
  border-radius: 5px;
  border: 1px solid gray;
  text-align: center;
  color:#1971FF;
}

.boxWhite:nth-child(even) {
  background: whitesmoke;
}
.boxWhite:nth-child(odd) {
  background: white;
}

.box:nth-child(even) {
  background: whitesmoke;
}
.box:nth-child(odd) {
  background: #ddd;
}

.box_selected {
  background: darkgray;
}

.box_marked {
  background: #ffe9ec;
}

label.selectButton {
  background-color: whitesmoke;
  color: #1971FF;
  line-height: 18px;
  border: 1px solid gray;
  border-radius: 4px;
  padding: 4px;
  margin: 1px;
  min-width: 94px;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}


/* MOBILE styles */
.mobile-scrollbar::-webkit-scrollbar { /* User defined scrollbars are NOT supported from iOS 14 */
  -webkit-appearance: none;
  width: 4px;
  height: 4px;
  -webkit-overflow-scrolling: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: paleturquoise;
  box-shadow: 0 0 1px lightcyan;
}

.mobile-scrollbar::-webkit-scrollbar-corner {
  background: transparent;
}

.rotate-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  background: rgba(169,169,169,0.95);
  -webkit-transform: translateX(100%);
            transform: translateX(100%);
  will-change: transform;
}
.rotate-panel > div {
  position: absolute;
  top: 50%;
  text-align: center;
  font-size: 22px;
  color: darkred;
  width: 100%;
  margin: auto;
  -webkit-transform: translateX(-50%);
          transform: translateY(-50%);
}

/* MEDIA styles */
@media only screen and (max-width: 9999px) {
  .fontSize18px { font-size: 18px; }
}
@media only screen and (max-width: 360px) { /* Adjustet for mobile devices */
  .fontSize18px { font-size: 15px; }
}
