/* rajdhani-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/rajdhani/rajdhani-v15-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rajdhani-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/rajdhani/rajdhani-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rajdhani-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/rajdhani/rajdhani-v15-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rajdhani-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/rajdhani/rajdhani-v15-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* rajdhani-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/rajdhani/rajdhani-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-condensed-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'RobotoSqueeze';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto/roboto-condensed-v25-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-condensed-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'RobotoSqueeze';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/roboto/roboto-condensed-v25-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-condensed-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'RobotoSqueeze';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto/roboto-condensed-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-condensed-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'RobotoSqueeze';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/roboto/roboto-condensed-v25-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-condensed-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'RobotoSqueeze';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto/roboto-condensed-v25-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-condensed-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'RobotoSqueeze';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/roboto/roboto-condensed-v25-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/roboto/roboto-v30-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100;
  src: url('../fonts/roboto/roboto-v30-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto/roboto-v30-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/roboto/roboto-v30-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto/roboto-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/roboto/roboto-v30-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto/roboto-v30-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/roboto/roboto-v30-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto/roboto-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/roboto/roboto-v30-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/roboto/roboto-v30-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* roboto-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 900;
  src: url('../fonts/roboto/roboto-v30-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* leckerli-one-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Leckerli';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/leckerli/leckerli-one-v16-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* thasadith-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Thasadith';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/thasadith/thasadith-v9-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* thasadith-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Thasadith';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/thasadith/thasadith-v9-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* thasadith-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Thasadith';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/thasadith/thasadith-v9-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* thasadith-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Thasadith';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/thasadith/thasadith-v9-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  /* Rot */
  --color-water: #3880be; 
}

body {
  /* background: #666; */
  font-family: 'Rajdhani', arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  margin: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-water);
  color: #fff; /* Setzt die Textfarbe auf Weiß für den Kontrast */
}

input, select, button {
  padding: 4px;
  border: solid 1px #fff;
  border-radius: 5px;
}

form {
  padding: 0;
  margin: 0;
}

.hidden {
  display: none !important;
}

#button {
  position: absolute;
  font-family: 'Thasadith';
  color: #000;
  right: 30px;
  top: 30px;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: solid 0px #000;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.33);
}
#button:hover {
  background: #000;
  color: #fff;
}
#canvas {
  position: relative;
  background: #b1b1b1;
  width: 1234px;
  height: 780px;
  overflow: hidden;
  background: var(--color-water);
}
  #canvas > .inner {
    /* pointer-events: auto;  */
    /* margin: -3px 0 0 -31px; */
  }

  #canvas > .inner > * {
    /* border: solid 1px #f00; */
    pointer-events: none;
  }

#footer {
  position: absolute;
  bottom: 0;
  border-top: solid 1px #fff;
  width: 100%;
  background: rgba(255, 255, 255, 0.33);
  opacity: 0.25;
  transition: opacity 0.5s ease;
}
#footer:hover {
  opacity: 1;
}
#gui {
  padding: 14px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.33);
}

.tile {
  position: absolute;
  width: 48px;
  height: 48px;
  /* border: solid 1px #000; */
}

.avatar {
  position: absolute;
}
.avatar .inner {
  position: relative;
  z-index: 2;
}

.avatar [data-id="name"] {
  z-index: 10000 !important;
  position: absolute;
  transform: translateX(-50%);
  margin-left: 50%;
  white-space: nowrap;
  border-radius: 5px;
  padding: 2px 20px 0 8px;
  font-family: 'Rajdhani';
  font-weight: 500;
  color: #fff;
  border: solid 1px rgba(255, 255, 255, 0.75);
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.avatar [data-id="name"]::before {
  border-radius: 4px;
  right: 7px;
  top: 9px;
  content: '';
  width: 8px;
  height: 8px;
  position: absolute;
}
.avatar [data-id="name"][data-status="0"]::before {
  background: #4d4;
}
.avatar [data-id="name"][data-status="1"]::before {
  background: #ee4;
}
.avatar [data-id="name"][data-status="2"]::before {
  background: #f44;
}
.avatar [data-id="name"][data-status="3"]::before {
  background: #666;
}

.avatar [data-id="meeting"] {
  z-index: 0;
  position: absolute;
  width: 100%;
  left: -0%;
  height: 30%;
  top: 80%;
  background: rgba(0, 255, 0, 0.5);
  border: solid 1px #fff;
  border-radius: 50%;
}
.avatar [data-id="meeting"].active {
}
.avatar [data-id="meeting"].offer {
  animation: pulse 0.5s ease-in-out infinite;
  border: dashed 3px #fff;
}
@keyframes pulse {
  0%, 100% {
    width: 90%;
    left: +5%;
  }
  50% {
    width: 110%;
    left: -5%;
  }
}

.button.red {
  background: #fbb !important;
}
.button.green {
  background: #bfb !important;
}

iframe.meeting {
  width: calc(100% - 22px);
  height: calc(100% - 22px);
}


/* MODAL */

.modal {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.fullscreen {
  position: fixed;
}
.modal > * {
  border-radius: 10px;
  border: solid 2px #fff;
  padding: 40px 50px 0 50px;
  background: linear-gradient(to left bottom, #30ced0, #15278c);
  min-width: 250px;
}
.modal > .spread-animation {
  animation: modal_spread 1.5s ease-in-out infinite;
}
@keyframes modal_spread {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 40px rgba(255, 255, 255, 0);
  }
}
.modal.fullscreen > * {
  position: fixed;
  animation: none;
  border: solid 1px #fff;
  left: 10px;
  top: 10px;
  bottom: 10px;
  right: 10px;
  padding: 0;
}
.modal .footer {
  font-family: 'Thasadith';
  font-weight: 700;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.modal .footer > .button {
  flex: 1 1 auto;
  background: #fff;
  color: #000;
  padding: 10px;
  border: solid 1px #000;
  border-bottom-width: 0;
  text-align: center;
}
.modal .footer > .button:hover {
  background: #000;
  color: #fff;
  cursor: pointer;
}
.modal .footer > .button:first-child {
  border-top-left-radius: 10px;
}
.modal .footer > .button:last-child {
  border-top-right-radius: 10px;
}
.modal .body {
  display: block;
}
.modal .body input {
  border: none;
  padding: 10px;
}
.modal .body > * {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}
.modal .body label {
  display: block;
  margin-bottom: 5px;
}
.modal [data-id="info"]:empty {
  display: none;
}
.modal [data-id="info"].error {
  margin-top: 30px;
  background: #fcc;
  padding: 5px;
  color: #f00;
  border-radius: 5px;
}


/* AVATAR TELEPORT */

.avatar > .inner {
  width: 100%;
  height: 100%;
}
.avatar.beam-out > [data-id="name"] {
  display: none;
}
.avatar.beam-out > .inner {
  animation: beam-out 0.2s ease-in-out;
  opacity: 0;
}
@keyframes beam-out {
  0% {
    background-color: rgba(255, 255, 255, 0.25);
    border-top: solid 2px #000;
    border-bottom: solid 2px #000;
    margin-top: -2px;
    height: 100%;
    background-position-y: 0;
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    background-color: rgba(255, 255, 255, 0.5);
    border-top: solid 2px #000;
    border-bottom: solid 2px #000;
    margin-top: -2px;
    height: 0;
    background-position-y: -36px;
    transform: translateY(36px);
    opacity: 0.5;
  }
}
.avatar.beam-in > .inner {
  animation: beam-in 0.2s ease-in-out;
  opacity: 1;
}
@keyframes beam-in {
  0% {
    background-color: rgba(255, 255, 255, 1);
    border-top: solid 2px #000;
    border-bottom: solid 2px #000;
    margin-top: -2px;
    height: 0;
    background-position-y: -36px;
    transform: translateY(36px);
    opacity: 0;
  }
  100% {
    background-color: rgba(255, 255, 255, 0);
    border-top: solid 2px #000;
    border-bottom: solid 2px #000;
    margin-top: -2px;
    height: 100%;
    background-position-y: 0;
    transform: translateY(0);
    opacity: 1;
  }
}


/* MINIMAP + CANVAS */

#canvas {
  /* width: 1000px;
  height: 700px; */
  /* border: solid 1px #000; */
  overflow: hidden;
  position: relative;
}
#canvas > .inner {
  position: absolute;
}
#canvas > .inner > canvas {
  position: absolute;
}


/* NEW CSS */

/* GLOBAL */

:root {
  --color-lightblue: #9cc0df; 
  --color-blue: #3880be; 
  --color-darkblue: #2a608e; 
  --color-darkestblue: #1c405f; 
}

body > * {
  user-select: none;
}

h2 {
  font-family: 'Rajdhani';
  font-weight: 700;
  margin: 0 0 10px 0;
  font-size: 16px;
}


.bg-lightblue {
  background-color: var(--color-lightblue);
}
.bg-blue {
  background-color: var(--color-blue);
}
.bg-darkblue {
  background-color: var(--color-darkblue);
}
.bg-darkestblue {
  background-color: var(--color-darkestblue);
}
.border-lightblue {
  border: solid 1px var(--color-lightblue);
}
.border-white50 {
  border: solid 1px rgba(255, 255, 255, 0.5);
}
.border-radius {
  border-radius: 12px;
}
.shadow10 {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.33);
}
.no-padding-bottom {
  padding-bottom: 0 !important;
}

/* OVERRIDE */

.box {
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.33);
  color: #000;
}

/* APP */

#app {
  overflow: hidden;
}


/* MINIMAP */

#minimap {
  position: relative;
  width: 200px;
  overflow: hidden;
  cursor: pointer;
}
#minimap .frame {
  position: absolute;
  box-sizing: border-box;
  border-radius: 10px;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 0 500px rgba(0, 0, 0, 0.33);
}
