@font-face {
  font-family: 'summershand';
  src: url('SummersHand.woff');
}

body {
  justify-content: center;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-size: min(2.5vh, 2.5vw);
  font-family: verdana;
  color: var(--ui-main-dark-dark);
}

.uibutton {
  background-color: var(--ui-main-light);
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--ui-alt-dark-dark);
  border-radius: min(1vw, 1vh);
  border-color: var(--ui-main-dark);
  border-width: 0.15em;
  cursor: pointer;
  box-shadow: inset 0.2em 0.2em 0.3em white;
  box-shadow: inset 0.2em 0.2em 0.3em white, inset -0.2em -0.1em 0.2em rgba(12, 4, 0, 0.2);
  text-align: center;
}

/* overlay */

.overlaycontainer {
  position: fixed;
  background-color: var(--white-transparent-high);
  background: repeating-linear-gradient(40deg,
    rgba(240, 230, 221, 0.3),
    rgba(240, 230, 221, 0.3) max(2vh, 2vw),
    rgba(231, 210, 235, 0.3) max(2vh, 2vw),
    rgba(231, 210, 235, 0.3) max(4vh, 4vw),
    rgba(201, 250, 241, 0.3) max(4vh, 4vw),
    rgba(201, 250, 241, 0.3) max(6vh, 6vw));
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: grid;
}

.overlay {
  display: grid;
  place-self: center;
  place-content: center;
  min-width: 50%;
  min-height: 50%;
  padding: 5%;
}

.overlaycontainer .message {
  position: relative;
  top: -0.5em;
  left: -0.3em;
  background-image: url("img/paper4.png");
  color: var(--ui-main-dark);
  background-size: 100% 100%;
  font-size: 120%;
  padding: 1.2em;
  display: grid;
  row-gap: 0.6em;
  column-gap: 0.5em;
  grid-auto-columns: minmax(0, 1fr);
}

.msg-wrapper {
  position: relative;
  top: 0.5em;
  left: 0.3em;
  background-color: var(--ui-main-dark-transparent);
  border-radius: 2px;
  box-shadow:
    0 0 0.5em var(--ui-main-dark-transparent),
    0.1em 0.1em 1.3em var(--ui-main-dark-transparent);
}

.message .uibutton {
  padding: 0.3em 1.7em;
}

.message p {
  padding: 0;
  margin: 0.1em 0;
}

.overlaycontainer .confirm button {
  grid-row: 2;
  margin: 0 1em;
}

.overlaycontainer .confirm div {
  grid-column: 1 / 3;
}

.ok-b,
.ready-b,
.cancel-b,
.rematch-b,
.recruit-b,
.leave-b {
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
}
.ok-b, .ready-b, .recruit-b {
  background-image: url('img/ok.png');
}
.cancel-b {
  background-image: url('img/cancel.png');
}
.rematch-b {
  background-image: url('img/attack_t.png');
}
.leave-b {
  background-image: url('img/leave.png');
}

/* player */

.playerdetails {
  display: grid;
  background: center / 100% 100% no-repeat url('img/nametag1.png');
  padding: 0.3em 0.6em;
}

.playername {
  font-family: 'summershand';
  font-size: 250%;
  color: var(--ui-main-dark-dark);
  text-shadow: 1px 1px 2px var(--white-transparent-low);
  border-radius: 0.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-x: hidden;
  display: grid;
  align-content: center;
  justify-content: start;
}
