body {
  background: #eef2f7;
  font-family: "Poppins", sans-serif;
  padding: 30px;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Výběr oken */
.window-selector {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.mode-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mode-row h2 {
  margin: 0;
  font-size: 22px;
}

.tile {
  padding: 26px 36px;
  border-radius: 16px;
  border: none;
  background: white;
  font-size: 24px;
  font-weight: 700;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tile.active {
  background: #007aff;
  color: white;
}

.tile:active,
.tile.pressed {
  transform: scale(0.95);
  filter: brightness(0.85);
  transition:
    transform 0.05s,
    filter 0.05s;
}

/* Tři okna vedle sebe */
.windows-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.window-card {
  width: 30%;
  cursor: pointer;
}

.window-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #d9e3f0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.roleta {
  width: 100%;
  height: 0%;
  background: #444;
  position: absolute;
  top: 0;
  transition: height 0.2s linear;
}

.perforace {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    transparent 0px,
    transparent 6px,
    rgba(255, 255, 255, 0.4) 6px,
    rgba(255, 255, 255, 0.4) 8px
  );
  display: none;
}

.window-label {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
}

/* Panely */
.panel {
  margin-bottom: 50px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.state-buttons,
.move-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.tile.big {
  font-size: 36px;
  padding: 30px 40px;
  font-weight: 700;
}

/* Barvy stavů */
.blue {
  background: #d0e7ff;
}
.green {
  background: #d8f5d0;
}
.orange {
  background: #ffe4c4;
}
.red {
  background: #ffd0d0;
}

.tile:active {
  transform: scale(0.95);
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}
.mode-row {
  display: flex;
  justify-content: center; /* celé vycentrovat */
  align-items: center; /* vertikální zarovnání */
  gap: 15px; /* mezery mezi prvky */
}

.mode-row h2 {
  margin: 0;
  font-size: 22px;
}
