* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #121213;
  color: white;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

.page-container {
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.menu-wrapper {
  width: 100%;
  max-width: 760px;
  text-align: center;
  margin: auto 0;
}

.title {
  font-size: 42px;
  margin-bottom: 90px;
  font-weight: 700;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.game-card {
  aspect-ratio: 1 / 1;
  border: 4px solid #ffffff;
  background: #1b1c1f;
  color: white;
  font-size: 24px;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  text-decoration: none;
}

.game-card:hover {
  transform: translateY(-4px);
  background: #2a2c31;
  border-color: #69a75f;
}

.game-card.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #202125;
  border-color: #777;
}

.game-card.disabled:hover {
  transform: none;
  background: #202125;
  border-color: #777;
}

.zodis-card,
.numbers-card,
.trex-card,
.kartuves-card,
.gyvatele-card,
.bokstelis-card,
.kryziukai-nuliukai-card {
  background-size: cover;
  background-position: center;
  opacity: 0.8;
}

.bokstelis-card {
  background-image: url(./assets/bokstelisimage.png);
}

.kryziukai-nuliukai-card {
  background-image: url(./assets/kryziukainuliukaiimage.png);
}

.kartuves-card {
  background-image: url(./assets/kartuvesimage.png);
}

.zodis-card {
  background-image: url(./assets/dienos-zodis-image.png);
}

.gyvatele-card {
  background-image: url(./assets/gyvateleimage.png);
}

.numbers-card {
  background-image: url(./assets/2048image.png);
}

.trex-card {
  background-image: url(./assets/default_200_percent/200-error-offline.png);
}

.footer {
  margin-top: auto;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  opacity: 0.75;
  width: 100%;
}

.decoration{
    color: white;
}

/* Lietaus fonas */
.rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.rain span {
  position: absolute;
  top: -60px;
  opacity: 0.35;
  animation: fall linear infinite;
  text-shadow: 0 0 8px currentColor;
}

.secret-admin-btn {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 42px;
  opacity: 0;
  z-index: 9999;
  pointer-events: auto;
  cursor: default;
}


.sym-x {
  color: #4fc3f7;
}

.sym-o {
  color: #ef5350;
}

.sym-triangle {
  color: #66bb6a;
}

.sym-square {
  color: #ab47bc;
}

@keyframes fall {
  from {
    transform: translateY(-60px) rotate(0deg);
  }
  to {
    transform: translateY(110vh) rotate(180deg);
  }
}

@media (max-width: 700px) {
  .title {
    font-size: 34px;
    margin-bottom: 24px;
  }

  .game-card {
    font-size: 18px;
    border-width: 3px;
  }
}

@media (max-width: 520px) {
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title {
    font-size: 28px;
  }
}