html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  background-color: rgb(0, 0, 0);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Login popup (same look as the original site) */
.popup {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 10;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  padding-top: 60px;
  box-sizing: border-box;
}

.popup.visible {
  display: block;
}

.popup-content {
  background-color: rgb(255, 255, 255);
  margin: 0 auto;
  border: 2px solid rgb(102, 102, 102);
  width: 80%;
  max-width: 800px;
  min-width: 300px;
}

.imgContainer {
  text-align: center;
  margin: 10px 0;
}

.imgContainer img {
  max-width: 90%;
  height: auto;
}

.container {
  padding: 15px;
}

.container label {
  display: block;
  margin-top: 6px;
}

button {
  background-color: rgb(119, 0, 2);
  color: white;
  padding: 15px;
  margin: 10px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

button:hover {
  background-color: rgb(255, 0, 11);
}

input[type=text],
input[type=email],
input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  display: inline-block;
  border: 1px solid rgb(204, 204, 204);
  box-sizing: border-box;
  font-size: 16px;
}

.login-message {
  color: rgb(119, 0, 2);
  min-height: 1.4em;
  margin: 4px 0 0;
}

.animate {
  animation: animatezoom 0.5s;
}

@keyframes animatezoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Full-screen notice (access denied, errors, empty game list) */
.notice {
  position: fixed;
  inset: 0;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}

.notice[hidden] {
  display: none;
}

.notice-content {
  background-color: rgb(255, 255, 255);
  border: 2px solid rgb(102, 102, 102);
  max-width: 560px;
  width: 100%;
  padding: 20px 24px 8px;
  text-align: center;
  box-sizing: border-box;
}

.notice-content img {
  max-width: 60%;
  height: auto;
}

.notice-content h2 {
  margin: 12px 0 4px;
  color: rgb(34, 34, 34);
}

.notice-content p {
  color: rgb(68, 68, 68);
  margin: 0 0 12px;
}

.notice-actions a {
  display: block;
  background-color: rgb(119, 0, 2);
  color: white;
  padding: 15px;
  margin: 10px 0;
  text-decoration: none;
  font-size: 16px;
}

.notice-actions a:hover {
  background-color: rgb(255, 0, 11);
}

.notice-actions .secondary {
  background-color: rgb(102, 102, 102);
}
