/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #1d2b64, #f8cdda);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

header {
  text-align: center;
  padding: 20px;
}

header h1 {
  font-size: 2.2rem;
}

header p {
  opacity: 0.8;
}

.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 40px;
  flex: 1;
}

.tile {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  border: 2px solid transparent;
}

.tile:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Efekt awarii dla kafelków */
.glitch {
  border: 2px solid red;
  animation: alert-glitch 1s infinite alternate;
}

@keyframes alert-glitch {
  0% {
    box-shadow: 0 0 5px red, 0 0 10px red;
    background: rgba(255, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 20px red, 0 0 40px red;
    background: rgba(255, 0, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 5px red, 0 0 15px red;
    background: rgba(255, 0, 0, 0.15);
  }
}

footer {
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
}
