* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e9e9e9;
  background-image: url("Blep.gif");
  background-repeat: repeat;
  background-size: 400px 400px;
  animation: moveBackground 12s linear infinite;
  padding-left: 15vw;
  padding-right: 15vw;
}

.page {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 200px auto;
  grid-template-areas:
    "banner banner"
    "menu content";
  min-height: 100vh;
  position: relative;
}

/* Zielony baner */
.banner {
  grid-area: banner;
  background: lime;
  position: relative;
}

/* Niebieskie menu */
.menu {
  grid-area: menu;
  background: blue;
  padding-top: 150px;
  min-height: 500px;
}

.menu ul {
  list-style: none;
}

.menu li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Fioletowy obszar treści */
.content {
  grid-area: content;
  background: magenta;
  padding: 40px;
  min-height: 500px;
}

.content h1 {
  margin-bottom: 20px;
  font-size: 3rem;
}

.content p {
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Karta ze zdjęciem i podpisem */
.card {
  position: absolute;
  top: 115px;
  left: 25px;
  width: 170px;
  z-index: 10;
}

/* Czerwone pole na zdjęcie */
.photo {
  background: red;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  font-weight: bold;
  font-size: 2rem;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Żółty podpis */
.caption {
  background: gold;
  padding: 12px 10px;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Przycisk menu, ukryty na komputerze */
.menu-toggle {
  display: none;
  width: 100%;
  background: transparent;
  color: white;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  border-radius: 0;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
}

.menu-toggle:hover {
  background: transparent;
}

/* Widok mobilny */
@media (max-width: 768px) {
  body {
    padding: 0 0 0 0; 
  }

  .page {
    grid-template-columns: 1fr;
    grid-template-rows: 180px auto auto;
    grid-template-areas:
      "banner"
      "menu"
      "content";
  }

  .banner {
    min-height: 180px;
  }

  .card {
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
  }

  .menu {
    background: blue;
    min-height: auto;
    padding: 180px 20px 20px 20px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
  }

  .menu ul {
    display: none;
    text-align: left;
    margin-top: 10px;
  }

  .menu ul.open {
    display: block;
  }

  .menu li a {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .content {
    padding: 30px 20px;
    min-height: auto;
  }

  .content h1 {
    font-size: 2.2rem;
  }

  .content p {
    font-size: 1rem;
  }
}
@keyframes moveBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -400px -400px;
  }
}