body {
  background-color: darkgreen;
}

.modal {
  background-color: rgba(0, 0, 0, 0);
}

.modal > h1 {
  font-size: calc(min(20vw, 20vh) * 1);
  font-weight: normal;
  color: darkorange;

  -webkit-text-stroke: calc(min(20vw, 20vh) * 0.025) black;
  margin-bottom: 0px;
  margin-top: 0px;

  text-shadow:
    2px 2px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
}

.modal > h2 {
  font-size: calc(min(20vw, 20vh) * 0.6);
  font-weight: normal;
  color: darkorange;

  -webkit-text-stroke: calc(min(20vw, 20vh) * 0.02) black;
  margin-bottom: 0px;
  margin-top: 0px;

  text-shadow:
    2px 2px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
}

.modal > button,
.modal > input {
  font-family: font;
  font-size: calc(min(20vw, 20vh) * 0.2);
  text-align: center;

  background-color: darkorange;
  border: calc(min(20vw, 20vh) * 0.025) solid black;
  width: 60%;

  padding: calc(min(20vw, 20vh) * 0.1);
  margin: calc(min(20vw, 20vh) * 0.05);
  border-radius: calc(min(20vw, 20vh) * 0.2);
}

.modal > button:hover {
  cursor: pointer;
  background-color: orange;
}

.modal > button:active {
  background-color: darkorange;
}

.modal > input:focus {
  background-color: orange;
  outline: none;
}

::placeholder {
  color: rgba(0, 0, 0, 0.7);
}

::-ms-input-placeholder {
  color: black;
}

#browse-rooms-modal {
  padding-top: 3%;
  padding-bottom: 2%;
}

#browse-rooms-list-div {
  width: 100%;
  overflow-y: auto;
}

.scrollbar {
  height: 300px;
  width: 50%;
  overflow: auto;
  padding: 0 10px;
}

#browse-rooms-list-div::-webkit-scrollbar {
  width: 20px;
}

#browse-rooms-list-div::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.4);
}

#browse-rooms-list-div::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: content-box;
  background-color: darkorange;
}

#browse-rooms-list-div > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

#browse-rooms-list-div > div:hover {
  color: orange;

  text-shadow:
    2px 2px 0 #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
}

#browse-rooms-list-div > div > div:first-child {
  font-size: calc(min(20vw, 20vh) * 0.2);
}

#browse-rooms-list-div > div > div:nth-child(2) {
  flex: 1;
  font-size: calc(min(20vw, 20vh) * 0.3);
}

#game-container {
  width: 100%;
  height: 100%;
  padding: 0px !important;
}

#game {
  --translate-x: 0;
  --translate-y: 0;
  --scale: 0.2;

  transform: scale(var(--scale))
    translate(calc(var(--translate-x) * 1px), calc(var(--translate-y) * 1px));
}

#card-grid {
  --grid-width: 3;
  --grid-height: 3;

  /* for new, svg cards */
  /* --card-width: 240px;
  --card-height: 336px; */

  /* for old, png cards */
  --card-width: 691px;
  --card-height: 1056px;

  display: grid;
  grid-template-columns: repeat(var(--grid-width), var(--card-width));
  grid-template-rows: repeat(var(--grid-height), var(--card-height));
}

#card-grid > div > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#buttons {
  position: absolute;
  top: 20px;
  right: 20px;

  display: flex;
  flex-direction: column;
}

#buttons > img {
  width: 50px;
  height: 50px;
  padding-bottom: 10px;
}

#notepad-textarea {
  position: absolute;
  top: 20px;
  right: 80px;

  width: 40%;
  height: 50%;
}

/* this makes it faster for some reason? */
img {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

/********************************************************************************/

@font-face {
  font-family: font;
  src: url(../../resources/fonts/darkforest.woff2);
}

.modal {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 10%;
  overflow: hidden;

  font-family: font;

  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-modal {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;

  background-color: black;
  color: red;

  font-size: min(10vh, 4vw);
  display: none;
}
