:root {
  --size: 20px;
  --ch-size: 2em;
  --size-shadow: 10px;
  --col-blue: hsl(208, 100%, 43%);
  --col-blue1: hsl(208, 100%, 63%);
  --col-green: hsl(150, 100%, 39%);
  --col-red: hsl(20, 100%, 47%);
  --col-red1: hsl(14, 100%, 75%);
  --col-outbg: #EEE;
  --col-gray: #777;
  --col-gray1: #AAA;
  --col-black: #333;
}

.gray {
  color: var(--col-gray1);
}

@font-face {
  font-family: slimsklad;
  src: url("slimsklad.woff") format("woff");
}

@font-face {
  font-family: Oswald;
  src: url("Oswald.woff") format("woff");
}

* {
  touch-action: manipulation;
}

html {
  --size: 16px;
}

html {
  height: 100%;
  width: 100%;
  background: #EEE;
  font-size: 1.5rem;
  font-family: Oswald, sans-serif;
}

[hidden] {
  display: none !important;
}

input {
  font-family: Oswald, sans-serif;
  font-size: 1.3rem;
}

input[type='text'],
input[type='password'],
input[type='search'],
input:not([type]) {
  border-radius: .25rem;
  border: 2px solid var(--col-gray);
  padding: 0 .5rem;
  outline: 0;
}

.message main {
  margin-top: 1%;
  justify-content: flex-start;
}


.message #main>#center {
  margin-top: 30%;
  margin-bottom: 38%;
  display: flex;
  flex-direction: column;
}

.login,
.saved #main {
  margin-top: 10%;
  flex: none;
}

#notification-container {
  background-color: red;
  /* Red background */
  color: white;
  /* White text */
  border-radius: 10px;
  /* Rounded corners */
  padding: 10px;
  /* Padding inside the container */
  position: fixed;
  /* Fixed position */
  top: -1rem;
  opacity: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Optional shadow for better visibility */
  transition: all 0.8s ease;
  /* Transition for smooth appearance and disappearance */
  z-index: 1000;
  /* Ensuring it stays on top of other elements */
}

/* When the notification is active, we'll override the above styles. */
#notification-container.show {
  opacity: 1;
  top: 1rem;
}

#Ttitle>span {
  margin-left: 2px;
  margin-right: 2px;
}


body {
  display: flex;
  flex-direction: column;
  height: 100%;
  /*max-height: max-content;*/
  margin: 0 auto !important;
  box-sizing: border-box;
  background: #FFF;
  overscroll-behavior: contain;
}


main {
  display: flex;
  flex-direction: column;
  overflow: auto;
  overflow-x: hidden;
  position: relative;
  margin-top: 0;
  flex: auto;
}

main>div {
  margin: 0 1rem;
}

h2 {
  margin: 0;
}

h2.red {
  color: var(--col-red);
}

h3 {
  margin: 0;
  margin-left: .25rem;
  font: normal 0.75rem Oswald;
  text-transform: uppercase;
  color: var(--col-blue1);
}

h3 b {
  color: var(--col-black);
}

a {
  color: var(--blue);
  text-decoration: none;
}

hr {
  border: 0;
  height: .1rem;
  border-top: 1px solid var(--col-black);
  margin: .5rem -1rem;
}

hr.fat {
  border-top: 3px solid var(--col-gray);
}

table {
  table-layout: fixed;
}

dialog {
  border-radius: .5rem;
}

#overlay {
  position: absolute;
  z-index: 1;
  top: 3rem;
  left: 0;
  width: 100%;
  height: calc(100% - 3.25rem);
  background: white;
}

#overlay img {
  object-fit: scale-down;
  object-position: 50% 50%;
  width: 100%;
  height: 100%;
  margin: 0;
}


button {
  margin: .5rem;
  padding: 10px .25rem;
  border: 0;
  border-radius: .25rem;
  font-size: 1.25rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

aside,
button {
  background: var(--col-blue);
  color: #FFF;
  margin-bottom: .5rem;
}


button.round {
  height: 100%;
  flex: 1;
  border-radius: 50%;
  margin: 0% !important;
  outline: 0;
}

button.red {
  background: var(--col-red);
}

button.high {
  background: var(--col-green);
}

button.inline {
  margin: 0.1em;
  padding: 0 .35em;
  text-transform: none;
  letter-spacing: -2px;
}

button.inline b {
  vertical-align: bottom;
}

select {
  border: 2px solid gray;
  border-radius: .25rem;
  font-size: 1.25rem !important;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  margin-right: .1rem;
  line-height: 1.2em;
  border-radius: .25rem;
  color: #FFF;
  padding: 0 0.2em;
  background: var(--col-blue);
  cursor: pointer;
}

.btn.red {
  background: var(--col-red);
}

.btn.high {
  background: var(--col-green);
}

.txt.red {
  color: var(--col-red);
}

.txt.high {
  color: var(--col-green);
}

.ui {
  font: normal 1.5em/85% slimsklad;
  cursor: pointer;
  text-transform: none !important;
}


.message {
  flex: 1;
}

#center {
  /*width: calc(100% - 2rem);
  height: calc(100% - 4rem);
  margin: 4rem auto 0;*/
  text-align: center;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#center>div {
  justify-content: center;
}

#center>button {
  display: block;
}

#Container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

#ButtonContainer {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#MajorityButtons {
  display: flex;
  flex: 4;
}

.round-button-container {
  display: flex;
  align-items: center;
  /* Align the round button vertically with the others */
}

.center {
  text-align: center;
}

.even {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.even button {
  margin: .5rem 0;
  font-size: 1rem;
  display: flex;
  justify-content: center;
}

.even button .ui {
  margin-top: 3px;
}

section.alternate {
  background: hsl(208, 100%, 90%);
  padding: 0.25rem;
}

.fright {
  display: block;
  float: right;
}

.fright::after {
  content: '';
  display: block;
  clear: both;
}

.tright {
  text-align: right;
  line-height: 1.1;
}

.tright b {
  font-size: 0.8em;
}

.nowrap {
  white-space: nowrap;
}

.warning,
.warning * {
  background: var(--col-red) !important;
}

.nowrap>.warning {
  border-radius: 2px;
  display: inline-block;
  padding: 0 5px;
}

.stripe {
  background: var(--col-outbg);
  margin: .5rem 0;
  padding: .5rem 1rem;
}

.header {
  background: var(--col-blue);
  color: white;
  font-weight: normal;
  padding: 0 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 1.2rem;
}

.board {
  font-size: 1.5em;
  color: white;
  background: var(--col-green);
  padding: 0 0.5em;
  margin: 0.25rem 0;
  border-radius: 2px;
  display: inline-block;
}

table.default {
  width: auto;
}

table.default.default td {
  border: none;
  background: transparent;
}

aside {
  display: flex;
  gap: 0 0.25rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
  flex-direction: row;
  font-size: 2rem;
  align-items: center;
  width: 100%;
  overflow: revert;
}

aside .title {
  display: inline-flex;
  align-items: center;
  color: var(--col-blue1);
  align-self: center;
}

aside .title b {
  color: #FFF;
}

aside .title.off b {
  display: none;
}

aside .stretch {
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

aside .stretch span {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  line-height: 1rem;
  letter-spacing: -1.5px;
  white-space: nowrap;
}

aside .logotime {
  flex-direction: column;
  letter-spacing: -1px;
  font-size: 1rem;
  line-height: 1rem;
}

aside a {
  color: #FFF;
  display: inline-block;
}

.main button {
  letter-spacing: 0;
  font-size: 1.5rem;
  padding: 10px .25rem;
  margin: .25rem;
}

#back {
  color: #FFF;
  font-size: 3rem;
  margin: 0;
  padding: 0;
}

@media (orientation: landscape) and (min-width: 640px) {
  body {
    width: 100vh;
    font-size: 26px;
  }
}

@media (max-width: 450px) {
  .even button:not(.normal) {
    font-size: 1.25rem;
    padding: 0 0.5rem;
  }

  .even button .text {
    display: none;
  }
}

@media (max-width: 480px) {
  main>div {
    margin: 0 0.1rem;
  }
}

@media (max-width: 520px) {

  .even button:not(.normal) .text,
  .condensed {
    letter-spacing: -1px;
  }
}

[inert],
[inert]>* {
  opacity: .5 !important;
}