/* Red : #d02700 */

body * {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 23px;
  color: white;
  text-decoration: none;
}
body {
  background-color: #586e7b;
}

.flex-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.flex-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

#modal-target {
  min-height: 400px;
  min-width: 300px;
  /*border: solid 1px red;*/
}

.boxzone {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 45px;
}

.width-limited {
  /*max-width: 1240px;*/
  margin: auto;
}
.margin10 {
  margin: 10px;
}

.intro {
  max-width: 80%;
  margin: 30px auto;
}
@media (max-width: 800px) {
  .intro {
    max-width: 100%;
    margin: 10px auto;
  }
}

.minisep {
  width: 110px;
  height: 1px;
  background-color: white;
  margin: 30px 0;
}

/******************/
/***** Titles *****/
/******************/

p {
  font-size: 16px;
  line-height: 23px;
  font-weight: 400;
  color: white;
  margin: 10px;
  text-align: center;
}

h1 {
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 20px;
}

h2 {
  font-size: 26px;
  line-height: 40px;
  font-weight: 700;
  margin: 20px;
  text-transform: uppercase;
}

h3 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  margin: 10px;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  h1 {
    font-size: 18px;
    margin: 10px;
  }
  h2 {
    font-size: 18px;
    margin: 10px;
  }

  h3 {
    font-size: 18px;
    margin: 10px;
  }
}

/*******************/
/***** xbutton *****/
/*******************/

.xbutton {
  background-color: rgba(255, 255, 255, 0);
  border: solid 1px rgba(255, 255, 255, 0.4);
  display: inline-block;
  transition: border-color 0.3s;
  margin: 10px;
  cursor: pointer;
  pointer-events: all;
}
.xbutton:hover {
  border-color: white;
}
.xbutton p {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  font-style: normal;
  color: white;
  margin: 12px 20px;
}
.xbutton-icon,
.xbutton-icon img {
  width: 50px;
  height: 50px;
}

.o-header .xbutton {
  background-color: #b02500;
  border: solid 1px rgba(0, 0, 0, 0.4);
}
.o-header .xbutton:hover {
  border-color: white;
}

.xbutton-pager {
  width: 30px;
  height: 30px;
  margin: 10px 2px;
}
.xbutton-pager a {
  margin: 0;
}
.xbutton-pager p {
  font-size: 20px;
  margin: 2px;
}
.xbutton-pager-done {
  cursor: auto;
  background-color: white;
}
.xbutton-pager-done:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
.xbutton-pager-done p {
  color: #b02500;
}

/*******************/
/***** Buttons *****/
/*******************/

.button-link {
  display: inline-block;
  width: 100%;
  text-align: center;
}
.button-link span {
  text-decoration: underline;
  text-align: center;
}
.tool-selected {
  background-color: #b02500;
  border-color: #b02500;
  cursor: auto;
}
.tool-selected:hover {
  border-color: #b02500;
}
.button-disabled {
  pointer-events: none;
  user-select: none;
  opacity: 0.3;
}
.button-help {
  width: 30px;
  height: 30px;
  background-image: url("../img/button-help.png");
  background-size: contain;
}
.button-help:active {
  background-image: url("../img/button-help-hover.png");
}

.button-googlelogin p:before {
  content: " ";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../img/google_logo.png");
  background-size: contain;
  margin-right: 10px;
  transform: translateY(3px);
}

.button-mini p {
  margin: 4px 10px;
}
.button-mini span {
  font-size: 14px;
}

/******************/
/***** Header *****/
/******************/

.o-header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100px;
  background-color: #b02500;
  z-index: 10;
  display: none; /* shown after home */
}
.header-bg-bottom {
  position: absolute;
  width: 100%;
  height: 50px;
  bottom: 0;
  background-color: black;
  opacity: 0.1;
}
.header {
  position: relative;
  top: 0;
  height: 100px;
  z-index: 3;
}
.header-logo {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.header-logo h2 {
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 30px;
  user-select: none;
}
#header-title {
  display: none;
}
.header-logo a {
  max-height: 100px;
  max-width: 50vw;
}
.header-buttons {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  padding: 0 35px;
}
.header-buttons > * {
  visibility: hidden;
}
.header-logo-img {
  height: 50px;
  margin-top: 5px;
}

@media (max-width: 800px) {
  .o-header,
  .header {
    height: 60px;
  }
  .header-logo-img {
    height: 50px;
  }
}

@media (max-width: 650px) {
  .header-buttons {
    padding: 5px;
  }
}
#menu-back {
  margin-right: auto;
}
#menu-account {
  visibility: visible;
  width: 60px;
  height: 60px;
  margin-right: 20px;
  cursor: pointer;
  pointer-events: all;
}
@media (max-width: 450px) {
  #menu-account {
    display: none;
  }
}

/****************/
/***** Menu *****/
/****************/

#o-menu {
  display: none;
  /*display: block;*/
  position: absolute;
  width: 100%;
  z-index: 2;
}
#o-menu > div {
  position: relative;
}
.menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #9e2100;
  width: 20vw;
  max-width: 20vw;
  min-width: 300px;
  position: absolute;
  right: 0;
  top: 100px;
}
@media (max-width: 800px) {
  .menu-content {
    top: 60px;
  }
}

@media (max-width: 500px) {
  .menu-content {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
  }
}
.menu-content a {
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 40px);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
  font-size: 20px;
  font-weight: 500;
  color: white;
}
@media (max-width: 800px) {
  .menu-content a {
    height: 60px;
    font-size: 18px;
  }
}
.menu-content a:last-child {
  border-bottom: none;
}
.menu-content a:hover {
  font-weight: 700;
}
#o-menu-bg {
  position: absolute;
  top: 0;
  left: 0;
  background-color: black;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}
/*******************/
/***** Content *****/
/*******************/

#o-content {
  z-index: 1;
}

/*****************/
/***** Scene *****/
/*****************/

#o-scene {
  width: 100%;
}
#scene-layout {
  position: relative;
  height: calc(100vh - 100px);
  width: 100%;
  /*max-width: 1240px;*/
  margin: auto;
}
#scene-layout > div {
  position: absolute;
  top: 100px;
  width: 100%;
  /*max-width: 1240px;*/
  margin: auto;
}
@media (max-width: 800px) {
  #scene-layout > div {
    top: 60px;
  }
}

/*****************/
/***** Modal *****/
/*****************/

.o-modal {
  position: relative;
  height: 100%;
}
.modal-scrollfull {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  height: 100%;
}
.modal-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.modal-nopadding {
  padding: 0;
}
@media (max-width: 650px) {
  .modal-body {
    padding: 10px 0;
  }
}

/***** Scrollbar *****/
.simplebar-vertical {
  transform: scale(0.9) translateX(-10px);
}

.simplebar-scrollbar::before {
  border-radius: 0 !important;
}
.simplebar-track.simplebar-vertical {
  /*background-color: rgba(0, 0, 0, 0.7);*/
  background-color: rgba(0, 0, 0, 0.1);
  width: 2px !important;
  cursor: pointer;
  pointer-events: all;
}
.simplebar-scrollbar::before {
  /*background-color: rgba(255, 255, 255, 1) !important;*/
  background-color: rgba(0, 0, 0, 1) !important;
  left: 0px !important;
  right: 0px !important;
}
.simplebar-scrollbar.simplebar-visible::before {
  opacity: 1 !important;
}
::-webkit-scrollbar {
  width: 0; /* Remove scrollbar space */
  background: transparent; /* Optional: just make scrollbar invisible */
}
/* Optional: show position indicator in red */
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0);
}

/*****************/
/***** Pages *****/
/*****************/
#homepage {
  position: relative;
  background-color: #9f2100;
}
.homepage-light {
  position: absolute;
  top: 0;
  background-color: #b02500;
  width: 100%;
  height: 50vh;
}
.homepage-intro {
  padding: 50vh 0;
}
.homepage-intro img {
  position: absolute;
  width: 15vw;
  top: 50vh;
  left: 50vw;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.homepage-page {
  padding: 60px;
  min-height: 500px;
}

#o-myaccount {
  padding: 20px 60px;
}
.myaccount-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
#o-myaccount h1 {
  font-size: 26px;
  line-height: 32px;
  margin-bottom: 10px;
}
#o-myaccount h3 {
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  margin: 0 auto 30px;
}

.avatar {
  border-radius: 50%;
}

/****************/
/***** Info *****/
/****************/

.o-info {
  font-size: 20px;
  line-height: 20px;
}
.o-info p {
  margin: 20px;
}

/****************/
/***** Form *****/
/****************/

.form-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.form-vertical input {
  text-align: center;
}
.form-vertical > * {
  margin: 10px;
}
.form-error {
  color: white;
  font-size: 16px;
  text-align: center;
  font-style: italic;
  padding: 0 20px;
}

input {
  /*all: unset;*/
}
input {
  outline: none;
}

input[type="text"],
input[type="password"],
textarea {
  font-size: 16px;
  background-color: white;
  color: black;
  padding: 10px 12px;
  border: none;
  resize: none;
  width: 250px;
  text-align: left;
}
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
form label {
  display: block;
  text-align: center;
  font-size: 20px;
  line-height: 5px;
  font-weight: 500;
}
@media (max-width: 700px) {
  .form-vertical > * {
    margin: 5px;
  }
  input[type="text"],
  input[type="password"],
  textarea {
    font-size: 16px;
    padding: 6px 10px;
    margin-bottom: 10px;
  }
  form label {
    font-size: 16px;
  }
}

#form-new-cadavre input,
#form-new-cadavre textarea {
  width: 500px;
}

/************************/
/***** Cadavre List *****/
/************************/

.cadavre-list {
  width: 400px;
  max-width: 100%;
}
.cadavre-list-line {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 20px;
  padding: 5px 10px;
  height: 60px;
  cursor: pointer;
}
.cadavre-list-line > div {
  text-align: center;
  line-height: 20px;
  width: 100%;
}
.cadavre-list-line > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cadavre-list-line:hover {
  background-color: khaki;
}
.cadavre-list-line p {
  margin: auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cadavre-list-line p:first-child {
  color: #666;
  font-size: 14px;
}

/************************/
/***** Cadavre Grid *****/
/************************/

.cadavre-grid-intro {
  max-width: 740px;
  margin: 20px;
}

.o-cadavre-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 20px 40px;
}

.cadavre-grid-menu {
  min-width: 200px;
}

.cadavre-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.cadavre-grid-card {
  position: relative;
  width: 200px;
  height: 240px;
  border: solid 1px #ccc;
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 10px;
  cursor: pointer;
  margin: 10px;
}
.cadavre-grid-card-running {
  /*border: solid 2px #d02700;*/
}
.cadavre-grid-card .minimap {
  height: 180px;
}
.cadavre-grid-card:hover {
  background-color: khaki;
}
.cadavre-grid-card-title {
  color: black;
  font-size: 14px;
  text-transform: uppercase;
  margin: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*
.cadavre-grid-card-desc {
  margin: 0 10px 10px;
  font-weight: 300;
  font-size: 13px;
  overflow: hidden;
  max-height: 3em;
}
*/
.cadavre-grid-pager a,
.cadavre-grid-pager span {
  margin: 10px 4px;
  font-size: 20px;
}
.cadavre-grid-pager a:hover {
  font-weight: 700;
}
.cadavre-grid-pager span {
  color: #d02700;
}
.cadavre-list-line-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}
.cadavre-list-line-icon img {
  width: 40%;
}

/***************/
/***** Map *****/
/***************/

#o-rendercontainer {
  /*border: solid 5px red;*/
  width: 100%;
  /*height: 100%;*/
  position: absolute;
  top: 70px;
  overflow: hidden;
  display: none;
}

#toolbar-render {
  position: absolute;
  top: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#o-map {
  position: relative;
  /*overflow: hidden;*/
}
.map-final {
  background-color: white;
  /*border: solid 2px #ccc;*/
  /*box-shadow: 0px 0px 2px black;*/
  border-radius: 1px;
}
.map-cell {
  position: absolute;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cell-done {
  background-color: #bebebe;
  width: 95%;
  height: 95%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cell-open {
  background-color: white;
  width: 95%;
  height: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 700;
}
.cell-open img {
  width: 65%;
  transition: all 0.3s;
}
.cell-open:hover img {
  transform: rotate(-30deg) translate(-23%, -28%);
}
.cell-avatar {
  width: 75%;
  height: 75%;
  background-size: contain;
  border-radius: 50%;
}

.cell-overlay {
  position: absolute;
  opacity: 0;
  background-color: rgba(244, 191, 42, 0.3);
}
.cell-overlay-active:hover {
  cursor: pointer;
  opacity: 1;
}
.cell-overlay-moderate {
  width: 20%;
  height: 20%;
  position: absolute;
  top: 5%;
  left: 5%;
  margin: 0;
}
.cell-overlay-moderate img {
  position: absolute;
  width: 100%;
  height: 100%;
}
#cell-infos {
  position: absolute;
  top: 0;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 2px;
  width: 150px;
  height: 150px;
}
#cell-infos img {
  width: 60%;
  border-radius: 50%;
}
#cell-infos h4 {
  color: white;
  font-size: 16px;
  margin-top: 10px;
}

/*******************/
/***** Minimap *****/
/*******************/

.minimap {
  position: relative;
  width: 100%;
}
.minimap > div {
  margin: auto;
}
.minimap .cell-done {
  background-color: #3c3c3c;
  border: none;
}
.cadavre-grid-card-running .cell-done {
  background-color: #bebebe;
}
.minimap .cell-open {
  background-color: #b02500;
  border: none;
}

/*******************/
/***** Big Map *****/
/*******************/

.o-bigmap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 20px 40px;
}

.cadavre-sideinfo {
  width: 250px;
}
.cadavre-sideinfo h1 {
  text-align: left;
  text-transform: none;
  margin-left: 0;
}
.cadavre-sideinfo p {
  text-align: left;
  margin-left: 0;
}

/****************/
/***** Draw *****/
/****************/

.o-draw-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: calc(100vh - 180px);
}

#o-draw {
  position: relative;
  /*background-color: rgba(216, 209, 180, 0.8);*/
  width: 400px;
  height: 400px;
}
canvas {
  /*border: solid 1px red;*/
}
.canvas-draw {
  position: absolute;
  top: 0;
  left: 0;
}
.canvas-draw-front {
  z-index: 1;
}

#o-drawtools {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  width: 250px;
}
.draw-toolbar {
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5px;
}
.draw-toolbar a {
  margin: 5px;
}
.draw-toolbar-history {
  flex-direction: row;
}
.arrow-exit {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: left center;
}
.cursor-hide {
  cursor: none;
}
#o-cursor {
  position: absolute;
  display: none;
  pointer-events: none;
  transform-origin: left top;
  z-index: 100;
}

/******************/
/***** Msgbox *****/
/******************/

#msgbox {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 30;
}
#msgbox-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}
#msgbox-content {
  position: relative;
  padding: 14px 10px 6px 10px;
  background-color: #586e7b;
  border-radius: 2px;
  color: white;
  text-align: center;
  min-width: 300px;
  max-width: 600px;
}
#msgbox h3 {
  font-size: 22px;
  line-height: 24px;
  color: white;
}
#msgbox-content > p {
  font-size: 16px;
  margin: 22px 10px;
}
@media (max-width: 700px) {
  #msgbox-content {
    max-width: 90%;
  }
}
.msgbox-icon {
  width: 60px;
  height: 60px;
}

/********************/
/***** Tab Menu *****/
/********************/

.tabmenu {
  width: 275px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tabmenu a {
  text-decoration: none;
  width: 100%;
  text-align: center;
  font-size: 18px;
  line-height: 26px;
}
.tabmenu a:last-child {
  border-right: none;
}
@media (max-width: 500px) {
  .tabmenu a {
    font-size: 16px;
    line-height: 20px;
  }
}
.tabmenu a {
  text-decoration: underline solid white 2px;
  text-underline-offset: 5px;
}
.tabmenu a.tabmenu-selected {
  text-decoration: none;
  pointer-events: none;
}
.tabmenu a:first-child {
  text-align: left;
}
.tabmenu a:last-child {
  text-align: right;
}

/*************************/
/**** Specific views *****/
/*************************/

@media (max-width: 600px) {
  #o-login {
    width: 100vw;
  }
}

/*****************/
/***** Icons *****/
/*****************/
.bg-arrow_back {
  width: 50px;
  height: 50px;
  background: url("../img/css_sprites.png") -2px -2px;
}
.bg-arrow_front {
  width: 50px;
  height: 50px;
  background: url("../img/css_sprites.png") -56px -2px;
}
.bg-pencil {
  width: 50px;
  height: 50px;
  background: url("../img/css_sprites.png") -2px -56px;
}
.bg-quit {
  width: 50px;
  height: 50px;
  background: url("../img/css_sprites.png") -56px -56px;
}
.bg-rubber {
  width: 50px;
  height: 50px;
  background: url("../img/css_sprites.png") -110px -2px;
}
.bg-save {
  width: 50px;
  height: 50px;
  background: url("../img/css_sprites.png") -110px -56px;
}
