body {
  background-color: #232523;
  color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.Headline {
  text-align: center;
  margin: 20px 0;
}

.highscore {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  user-select: none;
}

.Game {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

.card1 {
  background: #2a2c2a;
  border-radius: 18px;
  box-shadow: 0 0 25px #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 150px;
  max-width: 500px;
  transition: all 0.3s ease;
}

.img {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex: 0 0 auto;
}

.img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.Name {
  text-align: center;
  padding: 10px 0 20px 0;
  flex: 0 0 auto;
}

.Name p.name {
  font-size: 24px;
  margin: 0;
  font-weight: 700;
}

.Name p.mcap {
  font-size: 16px;
  margin-top: 5px;
  color: #ccc;
  font-weight: 600;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 20px 0;
  flex: 0 0 auto;
}

button.higher,
button.lower {
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: white;
  opacity: 0.95;
  transition: background-color 0.3s ease;
  min-width: 110px;
}

button.higher {
  background-color: #28a745;
}

button.higher:hover {
  background-color: #218838;
}

button.lower {
  background-color: #dc3545;
}

button.lower:hover {
  background-color: #c82333;
}

.correct {
  box-shadow: 0 0 30px 6px #28a745 !important;
  transition: box-shadow 0.4s ease;
}

.wrong {
  box-shadow: 0 0 30px 6px #dc3545 !important;
  transition: box-shadow 0.4s ease;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  background: #222;
  padding: 3rem 4rem;
  border-radius: 14px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.overlay-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.overlay-content p {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.overlay-content button {
  margin: 0.5rem 1rem;
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#shareBtn {
  background-color: #1da1f2;
  color: white;
}

#shareBtn:hover {
  background-color: #0d8ddb;
}

#buyBtn {
  background-color: #28a745;
  color: white;
}

#buyBtn:hover {
  background-color: #218838;
}

.Embleme {
  max-height: 200px;
  min-height: 50px;
}

.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin: 20px 0;
  box-sizing: border-box;
}

button.higher,
button.lower {
  flex: 1 1 120px;
  max-width: 220px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: white;
  opacity: 0.95;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

button.higher {
  background-color: #28a745;
}

button.higher:hover {
  background-color: #218838;
}

button.lower {
  background-color: #dc3545;
}

button.lower:hover {
  background-color: #c82333;
}
.partnership{
  text-align: center;
}

/* Responsive adjustment for very small screens */
@media (max-width: 400px) {
  button.higher,
  button.lower {
    flex: 1 1 100%;
    max-width: 100%;
    font-size: 14px;
    padding: 8px 14px;
  }
}
