@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

:root {
  --light-background: #f0f0f0;
  --light-text-color: #333333;
  --light-button-border: #999999;
  --light-input-border: #cccccc;
  --light-link-color: #0066cc;
  --light-notice-background: rgba(0, 0, 0, 0.05);
  --light-slash-color: rgba(0, 0, 0, 0.4);

  --game-width: 21.875rem; /* 350px */
  --shop-bg-secondary: rgba(0, 0, 0, 0.1);
  --shop-bg-primary: rgb(0, 0, 0);
  --button-text-color: #ffffff;
  --reset-bg: rgba(40, 40, 40);
  --v-color: grey;
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --popup-bg: #ffffff;
}

body {
  background-color: var(--light-background);
  color: var(--light-text-color);
  margin: 15%;
  margin-top: 10%;
  font-size: 2rem;
  font-family: 'Inter', sans-serif;
}

/*
 * Combined styles for buttons and inputs to ensure a consistent design.
 */
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
input[type="text"],
input[type="email"],
input[type="search"] {
  font-size: 2rem;
  padding: 1rem 1rem;
  border: 2px solid var(--light-button-border);
  border-radius: 25px;
  background-color: transparent;
  color: var(--light-text-color);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 1rem;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease-in-out;
  max-width: var(--game-width);
}

/* Add a subtle hover effect */
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="search"]:hover {
    background-color: var(--light-notice-background);
}

/* Add a black outline for keyboard focus */
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible,
input[type="button"]:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="search"]:focus-visible {
    outline: 2px solid black;
    outline-offset: 2px;
}

/* Textarea styles have been updated for visual consistency */
textarea {
  font-size: 2rem;
  background-color: white;
  color: var(--light-text-color);
  border: 2px solid var(--light-button-border);
  border-radius: 25px;
  width: 25%;
  overflow: hidden;
  box-sizing: border-box;
}

a {
  color: var(--light-link-color) !important;
  text-decoration: none;
  cursor: pointer;
}

#info {
  font-size: 1rem;
}

.container {
  display: flex;
  align-items: center;
}

img,
video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

p img,
span img,
li img,
h1 img,
h2 img,
h3 img,
h4 img,
h5 img,
h6 img {
  height: 1em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

mark {
  padding: 2px 5px;
  border-radius: 10px;
  background-color: var(--light-text-color);
  color: white;
}

kbd {
  color: var(--light-text-color);
  border: var(--light-text-color) solid 0.5px;
  border-bottom: 3px solid var(--light-text-color);
  border-radius: 10px;
  padding: 0.1rem 0.4rem 0.1rem 0.1rem;
}

.notice {
  background: var(--light-notice-background);
  border: 2px solid var(--light-input-border);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.slash {
  color: var(--light-slash-color);
  font-size: 5rem;
}

/* --- ADAPTED OLD CLASSES --- */

.game {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--game-width);
}

.anzeigen {
  text-align: center;
  font-size: 1.56rem; /* 25px */
}

.shop {
  margin-top: 1.875rem; /* 30px */
  width: var(--game-width);
}

.shop-ps,
.shop-pc,
.shop-rb,
.reset {
  border: 1px solid var(--light-text-color);
  width: var(--game-width);
  height: auto;
  text-align: center;
  border-radius: 3.125rem; /* 50px */
  font-size: 2.18rem; /* 35px */
  box-sizing: border-box;
  cursor: pointer;
}

.shop-ps,
.shop-pc {
  margin-top: 0.31rem; /* 5px */
}

.shop-pc {
  background-color: var(--shop-bg-secondary);
}

.shop-rb {
  margin-top: 1.25rem; /* 20px */
  background-color: var(--shop-bg-primary);
  color: var(--button-text-color);
  margin-bottom: 1.875rem; /* 30px */
}

.shop-details {
  font-size: 1rem;
}

#v {
  color: var(--v-color);
}

.reset {
  border-radius: 6.25rem; /* 100px */
  margin-top: 1.25rem; /* 20px */
  font-size: 2.43rem; /* 39px */
  background-color: var(--reset-bg);
  color: var(--button-text-color);
  margin-bottom: 0.31rem; /* 5px */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--overlay-bg);
}

.popupp {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--game-width);
  background-color: var(--popup-bg);
  padding: 1.5rem;
}

.x {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 2.43rem; /* 39px */
  cursor: pointer;
}

.heading {
  font-size: 2.43rem; /* 39px */
}

.btn {
  margin-top: 1.875rem; /* 30px */
  margin-bottom: 0.93rem; /* 15px */
  font-size: 1.875rem; /* 30px */
  cursor: pointer;
}

.input,
.button {
  background-color: var(--light-background);
  outline: var(--light-input-border);
  border-radius: 3.125rem; /* 50px */
  border: 1px solid var(--light-input-border);
  font-family: inherit;
  font-size: inherit;
  padding: 0.6rem 1rem;
}

/* --- Media Queries from the new stylesheet --- */

@media (max-width: 1200px) {
  body {
    margin: 10%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1.5rem;
    margin: 5%;
  }

  button,
  input[type="submit"],
  input[type="reset"],
  input[type="button"],
  input[type="text"],
  input[type="email"],
  input[type="search"] {
    font-size: 1.5rem;
    padding: 0.8rem 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1.2rem;
    margin: 5%;
  }

  button,
  input[type="submit"],
  input[type="reset"],
  input[type="button"],
  input[type="text"],
  input[type="email"],
  input[type="search"] {
    font-size: 1.2rem;
    padding: 0.6rem 0.6rem;
  }
}