@import url('https://fonts.googleapis.com/css2?family=Flow+Rounded&family=IBM+Plex+Mono:wght@100;200;300;400;500;600;700&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Kodchasan:wght@200;300;400;500;600;700&family=Noto+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  /* --- General Colors --- */
  --white: 255, 255, 255;
  /* #fff */
  --off-white: 240, 241, 241;
  /* #F0F1F1 */
  --black: 0 0 0;
  /* #000 */
  --grey: 51, 51, 51;
  /* #333 */
  --blue: 0, 207, 205;
  /* #00CFFF */
  --green: 0, 255, 133;
  /* #00FF85 */
  --red: 255, 92, 120;
  /* #FF5E78 */
  --purple: 102, 92, 230;
  /* #665CE6 */
  --yellow: 255, 211, 0;
    /* #FFD300 */

  /* --- Color Scheme based on usage type --- */
  --lowlight-text: var(--grey);
  --lowlight-bg: var(--off-white);
  --text: var(--black);
  --bg: var(--white);
  --highlight-text: var(--white);
  --highlight-bg: var(--blue);

  /* --- Default Colors of Document --- */
  background-color: rgb(var(--bg));
  color: rgb(var(--text));

  /* --- Pop Shadows --- */
  --default-shadow: drop-shadow(5px 5px 0px rgb(var(--black)));
  --left-shadow: drop-shadow(-5px 0px 0px rgb(var(--black)));
  --right-shadow: drop-shadow(5px 0px 0px rgb(var(--black)));
  --top-shadow: drop-shadow(0px -5px 0px rgb(var(--black)));
  --bottom-shadow: drop-shadow(0px 5px 0px rgb(var(--black)));
}

/* --- Main-Sheet Styling --- */

body {
  background: rgb(var(--bg));
  display: flex;
  flex-direction: column;
  place-items: center;
  margin: 0;
  font-family:
  'Poppins', sans-serif;
  height: 100vh;
  overflow: hidden;
}

li {
  list-style: none;
}

a {
  color: inherit;
}

/* --- Background Map --- */

#bg-map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  filter: grayscale(10%) contrast(1.5);
  /* Apply grayscale and blur */
}

#bg-map canvas {
  filter: contrast(1) saturate(10%) invert(1);
}

#bg-map .ol-control {
  display: none;
}

/* --- Nav + Auth --- */
nav {
  position: fixed;
  top: 2%;
  right: 2%;
}

body nav #auth {
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

body[data-signed="true"] nav #auth {
  display: none;
}

body[data-signed="false"] nav #avatar {
  display: none;
}

body nav #avatar {
  --avatar-size: 3rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;

  width: var(--avatar-size);
  aspect-ratio: 1/1;
  border-radius: calc( var(--avatar-size) / 2);
  overflow: hidden;
}

body nav #avatar img {
  object-fit: cover;
  object-position: center;
  background-repeat: no-repeat;

  width: 100%;
}


/* --- section + .btn --- */

section {
  --pad-X: 2vw;
  --pad-Y: 1vh;

  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 1em;

  height: calc(100vh - 2 * var(--pad-Y));
  width: calc(50vw - 2 * var(--pad-X));
  padding: var(--pad-Y) var(--pad-X);
}

section .btn {
  cursor: pointer;
  outline: 2px solid rgb(var(--black));
  padding: 5px 7px;
  border-radius: 5px;
  color: rgb(var(--black));
  background-color: rgb(var(--white));
  filter: var(--default-shadow);
}

/* --- Sheet --- */

body main {
  min-width: 50%;
  max-width: 100%;
  min-height: 100%;
  align-self: baseline;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding-left: 0.7em;
  place-items: center;
  align-items: stretch;
}

sheet {
  --time: 800ms;
  height: 100%;
  width: 50%;
  position: fixed;
  top: 0;
  right: 0;
  transition: transform ease var(--time);
  backdrop-filter: blur(30px);
  background: rgba(var(--white), 80%);
  z-index: 999;
}

sheet[data-open='true'] {
  transform: translate(0%, 0%);
}

sheet[data-open='false'] {
  transform: translate(110%, 0%);
}

@media all and (max-width: 580px) {
  body main {
    align-self: initial;
    width: 100%;
  }

  sheet {
    width: 100% !important;
  }

  sheet[data-open='false'] {
    transform: translate(0%, 110%);
  }
}

/* --- role selection --- */

