

    h2 {
      text-align: center;
      margin: 30px;
      font-size: 28px;
    }

    .scroll-pergamin {
      width: 1100px;
      height: 799px;
      overflow-y: scroll;
      overflow-x: hidden;
      margin: 0 auto;
      background-image: url('grafika/pergamin.jpg');
      background-repeat: repeat-y;
      background-position: top left;
      background-attachment: local;
      padding: 20px;
      border: 2px solid #aaa;
      box-sizing: border-box;
    }

    .scroll-dynamic {
      width: 1100px;
      height: 799px;
      overflow-y: scroll;
      overflow-x: hidden;
      margin: 40px auto;
      padding: 20px;
      background-color: hsl(30, 40%, 90%);
      transition: background-color 0.3s ease;
      border: 2px solid #aaa;
      box-sizing: border-box;
    }

    .magic-row {
      text-align: center;
    }

    .magic-box {
      width: 200px;
      height: 150px;
      background-repeat: no-repeat;
      background-size: cover;
      display: inline-block;
      margin: 10px;
      font-weight: bold;
      line-height: 150px;
      color: white;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.5);
    }

    .box1 { background-image: url('grafika/sklep-ollivander.webp'); }
    .box2 { background-image: url('grafika/sklep-ksiazki.webp'); }
    .box3 { background-image: url('grafika/sklep-kociolki.webp'); }
    .box4 { background-image: url('grafika/sklep-miotly.webp'); }
    .box5 { background-image: url('grafika/sklep-eliksiry.webp'); }


.ceglana-sciana {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 6px;
  padding: 20px;
  margin: 60px auto;
  width: fit-content; /* lub użyj np. width: 216px; */
  background-image: url('grafika/cegly-tlo.webp');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  border: 3px solid #4b2e1f;
  box-shadow: 0 0 20px rgba(100, 60, 40, 0.6);
  position: relative;
}


.cegla {
  width: 60px;
  height: 40px;
  background: url('grafika/cegla.webp') center/cover no-repeat;
  border: 1px solid #703c2c;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  position: relative;
}

.cegla:hover {
  transform: scale(1.05);
  box-shadow: 0 0 6px rgba(255, 189, 108, 0.6);
}

.cegla.aktywna {
  filter: brightness(65%);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.ceglana-sciana.rozsunieta .cegla {
  animation: rozsuwanie 1s ease forwards;
}

@keyframes rozsuwanie {
  0% { transform: translate(0, 0); opacity: 1; }
  100% {
    transform: translate(var(--ruch-x), var(--ruch-y)) scale(0.9);
    opacity: 0;
  }
}


		
		
		
		
		h1 {
      text-align: center;
      margin-top: 40px;
      font-size: 36px;
    }

    .wand {
      text-align: center;
      font-size: 40px;
      margin: 30px auto;
      cursor: pointer;
    }

    .scroll-container {
      width: 1100px;
      height: 799px;
      margin: 40px auto;
      overflow-y: scroll;
      background-image: url('pergamin.webp');
      background-repeat: repeat-y;
      background-position: top left;
      background-attachment: local;
      padding: 20px;
      border: 2px solid #555;
      box-sizing: border-box;
      position: relative;
    }

    #spellSparkle {
      position: absolute;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: radial-gradient(white, gold);
      opacity: 0;
      pointer-events: none;
      transform: scale(1);
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

    @keyframes particleBurst {
      0% { transform: scale(0.5); opacity: 1; }
      100% { transform: scale(2); opacity: 0; }
    }

    .particle {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: gold;
      animation: particleBurst 0.6s forwards;
    }
		
		
		
		
		
		
		
		
		
		
		
		
		
		h1 {
      text-align: center;
      font-size: 42px;
      margin-bottom: 30px;
    }

    .spellbook {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    .spell {
      width: 180px;
      height: 180px;
      background-color: #292929;
      border: 2px solid #444;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      cursor: pointer;
      position: relative;
      transition: all 0.3s ease;
    }

    .spell:hover {
      box-shadow: 0 0 15px #ffd700;
      background-color: #3a3a3a;
    }

    .effectArea {
      position: fixed;
      top: 50%;
      left: 50%;
      font-size: 90px;
      transform: translate(-50%, -50%);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.5s ease;
    }

    .particle {
      position: absolute;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: gold;
      animation: explode 0.6s forwards;
    }

    @keyframes explode {
      from { transform: scale(1); opacity: 1; }
      to { transform: scale(2); opacity: 0; }
    }

    #lumosLight {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: radial-gradient(circle at center, rgba(255,255,200,0.5), transparent);
      pointer-events: none;
      display: none;
    }

    #shield {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 250px;
      height: 250px;
      border: 4px solid #00f2ff;
      border-radius: 50%;
      box-shadow: 0 0 40px #00f2ff;
      display: none;
      pointer-events: none;
    }
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		.arena {
      display: flex;
      justify-content: space-around;
      margin-top: 50px;
    }

    .wizard {
      width: 250px;
      height: 250px;
      border-radius: 10px;
      background: radial-gradient(circle at center, #333, #111);
      box-shadow: 0 0 15px #444;
      position: relative;
    }

    .health {
      height: 20px;
      width: 100%;
      background: #222;
      border-radius: 10px;
      margin-top: 10px;
      overflow: hidden;
    }

    .health-bar {
      height: 100%;
      background: limegreen;
      width: 100%;
      transition: width 0.4s ease;
    }

    .spell-buttons {
      margin: 30px auto;
    }

    .spell-buttons button {
      margin: 10px;
      padding: 15px 25px;
      font-size: 18px;
      border-radius: 5px;
      border: none;
      cursor: pointer;
      background: #444;
      color: white;
    }

    .spell-buttons button:hover {
      background: #666;
    }

    .particle {
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: gold;
      animation: explode 0.6s forwards;
    }

    @keyframes explode {
      from { transform: scale(1); opacity: 1; }
      to { transform: scale(2); opacity: 0; }
    }

    #message {
      font-size: 24px;
      margin-top: 40px;
    }
		
		
		
		
		
		
		
		
		
		
		
		
		

    /*.story-part {
      opacity: 0;
      transition: opacity 1s ease-in;
      margin-top: 10px;
      display: none;
    }

    .fade-in {
      display: block !important;
      opacity: 1;
    }

    .read-more {
      display: inline-block;
      margin-top: 10px;
      color: blue;
      cursor: pointer;
      text-decoration: underline;
    }*/
		
		.story-part {
      display: none;
      opacity: 0;
      transition: opacity 1s ease-in;
      margin-top: 15px;
    }

    .fade-in {
      display: block !important;
      opacity: 1;
    }

    .wand {
      cursor: pointer;
      padding: 8px;
      margin: 5px 0;
      border: 2px solid #ccc;
      background-color: #f2f2ff;
    }

    .wand:hover {
      background-color: #e0e0ff;
    }

    .read-more {
      display: inline-block;
      margin-top: 10px;
      color: blue;
      cursor: pointer;
      text-decoration: underline;
    }