@import url('https://necolas.github.io/normalize.css/latest/normalize.css');

@import url('https://fonts.googleapis.com/css2?family=Workbench:BLED,SCAN@0..100,-53..100&display=swap');



body {
  /* background: #d1c9c9; */
  /* font-family: monospace; */
  font-family: 'Times New Roman', Times, serif;
  font-size: 1;
  /* margin-top: 20px; */
  /* background-color: rgba(5, 119, 180, 0.193); */
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding-block: clamp(0.5rem, 2vw, 1.5rem);
  box-sizing: border-box;
  overflow-x: clip;
}
pre {
  white-space: pre;
  width: min(768px, 100vw);
  /* overflow-x: auto; */
  overflow: hidden;
  /* background-color: rgb(241, 241, 241); */
  tab-size: 1px;
  margin: 0;
  max-width: 100%;
}

pre{
  margin: 0 auto;
  /* transform: scale(1.2); */
    /* transform-origin: 50% 0; */
  /* font-size: calc(10px + 1vw); */
  width: fit-content;
  /* width: 640px; */
  /* min-width: 640px;
  max-width: 1080px; */
  /* transform: scale(1.0); */
  /*denne  som skalerer hele siten, jeg har utkommentert mediaqueries ene nå for å prøve å finne ut av det bare*/
}

#scaler {
  transform: scale(0.9);       /* 80% size */
  transform-origin: top center;  /* keep the scaled block centered */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  }

  #second-progress {
    font-family: monospace;
    color: rgb(0, 0, 0);
  }

/* @media (max-width: 768px) {
  body { font-size: 0.8rem; padding: 0.5rem; }
  pre { font-size: 0.75rem; }
}
@media (max-width: 480px) {
  body { font-size: 0.7rem; padding: 0.25rem; }
  pre { font-size: 0.65rem; }
} */



.workbench-font, pre {

  font-family: "Workbench", monospace;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  /* font-variation-settings:
    "BLED" 50,
    "SCAN" 50; */
}

pre {
  white-space: pre-wrap;
  /* background-color: salmon; */
  /* background-color: rgba(163, 102, 102, 0.8); */
  width: min(120ch, 100vw);
  max-width: 100%;
}
.row {
  white-space: nowrap;
  /* background-color: lightblue;} */
}
.cell {
  display: inline-block;
  /* width: 8ch; */
  text-align: left;
  padding-right: 2ch;
}

.cell:nth-child(1)  { width: 8ch;}
.cell:nth-child(2)  { width: 9ch;}
.cell:nth-child(3)  { width: 8ch; }
.cell:nth-child(4)  { width: 7ch; }
.cell:nth-child(5)  { width: 10ch; }
.cell:nth-child(6)  { width: 8ch; }
.cell:nth-child(7)  { width: 8ch; }
.cell:nth-child(8)  { width: 8ch; }
.cell:nth-child(9)  { width: 8ch; }
.cell:nth-child(10)  { width: 8ch; }
.cell:nth-child(11)  { width: 8ch; }
.cell:nth-child(12)  { width: 8ch; }

.current-location,
#clock .current-location {
  color: #d10000 !important;
  font-weight: 700;
  /* text-shadow: 0 0 0.5px currentColor; */
}

.user-location-red,
#clock .user-location-red {
  color: #d10000 !important;
}

#online-time-computer {

  margin-top: 1ch;
  line-height: 2;
  margin-left: 0ch;
}

@media (max-width: 768px) {
  #clock {
    white-space: normal;
    width: min(92vw, 40rem);
  }

  #clock .clock-mobile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 3ch;
    column-gap: 0.75rem;
  }

  #clock .clock-tile {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
  }

  #clock .clock-city,
  #clock .clock-time {
    display: block;
    padding-right: 0;
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  body {
    padding-inline: 0;
  }

  #scaler {
    margin-inline: 0;
  }

  pre,
  #clock {
    max-width: 100vw;
  }
}