*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
    "navbar navbar"
    "main main"
    "footer footer";
    min-height: 100vh;
    font-family: "Georgia", serif;
    background-color: #f4f4f4;
}

nav{
    grid-area: navbar;
    padding: 10px 0;
    font-size: 20px;
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: white;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

nav ul{
  list-style: none;
  display: flex;
}

nav li{
  display: flex;
}

nav a{
  display: flex;
  text-decoration: none;
  color: black;
  padding: 1em 2em;
  transition: background-color 150ms ease;
}

nav a:hover{
    color: goldenrod;
}

nav a.active-link{
  border-bottom: 2px solid goldenrod;
}

#open-sidebar-button{
  display: none;
  background: none;
  border: none;
  padding: 1em;
  margin-left: auto;
  cursor: pointer;
}

#close-sidebar-button{
  display: none;
  background: none;
  border: none;
  padding: 1em;
  cursor: pointer;
}

#overlay{
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
}

#home{
  display: none;
}

main{
    grid-area: main;
    z-index: 0;
}

footer{
    grid-area: footer;
    background-color: #2c2c2c;
    padding: 50px;
    z-index: 1;
    color: white;
}

a{
    text-decoration: none
}

button {
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: goldenrod;
}

.menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 10px;
}

.menu.open {
  max-height: 200px;
}

i{
    color: goldenrod;
}

.box-1{
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px;
    background-color: white;
    margin-bottom: 20px;
}

.box-1 h2 {
 border-bottom: 2px solid #c9a24d;
 padding-bottom: 10px;
 margin-bottom: 20px;
 color: #5a3e1b;
}

.box-2 {
    background-color: #f9f9f9;
    padding: 20px;
    border-left: 5px solid #c9a24d;
    margin-bottom: 20px;
}

.slider-container {
  position: relative;
  margin: auto;
  max-width: 1000px;
  overflow: hidden;
  height: 500px;
}

.slider-slide {
  display: none;
}

.slider-slide img {
  width: 100%;
  height: 100%;
}

.slider-prev, .slider-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  color: white;
  font-size: 24px;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  border-radius: 3px;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
  text-align: center;
  padding: 10px 0;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 3px;
  background: #bbb;
  display: inline-block;
  border-radius: 50%;
}

.dot.active {
  background: #717171;
}


.mini{
    height: 250px;
    width: 250px;
    display: block;
    margin: 0 auto;
}

.post{
    width: 450px;
}

.ogloszenia-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.post p{
    padding: 10px;
}

.post i{
    color: black;
    display: block;
    margin: 0 auto;
}

.logo{
    display: block;
    margin: 0 auto;
    width: 400px;
}

.stopka{
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.stopka-2{
    color: whitesmoke;
}

.stopka p{
    font-size: 20px;
}

.historia{
    width: 70%;
    text-align: center;
}

.tel{
    color: #c9a24d;
    text-align: center;
    font-size: 40px;
}

.stopka a {
    text-decoration: none;
    color: whitesmoke;
    font-size: 20px;
}

.stopka a:hover{
    text-decoration: underline;
}

.parent{
    position: relative;
    display: inline-block;
}

.child {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.parent:hover .child {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.grupa{
  display: flex;
  gap: 100px;
}

.tekst{
  width: 500px;
  background-color: #f4f4f4;
  padding: 30px;
  font-size: 25px;
}

#more{
  background-color: #daa520;
  color: white;
  padding: 10px 25px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  transition: color 2s;
}

#more:hover{
  background-color: white;
  color: goldenrod;
}

#naglowek-2{
  text-align: center;
}

.opis{
  width: 150px;
  margin: auto;
}

#more2{
  background-color: goldenrod;
  color: white;
  padding: 5px 15px;
  border-radius: 10px;
  transition: color 2s;
}

#more2:hover{
  background-color: white;
  color: goldenrod;
}

.grupal{
  display: flex;
  gap: 100px;
}

.menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 10px;
}

.menu.open {
  max-height: 200px;
}

#ogloszeniebig{
  width: 500px;
  height: 500px;
}

.opis2{
  width: 500px;
}

a{
  text-decoration: none;
  color: black;
}

.miniogloszenie{
  width: 400px;
  height: 125px;
  display: flex;
  margin-bottom: 15px;
}

.miniogloszenie p{
  padding: 10px;
  background-color: #f4f4f4;
}

.kafelek{
  width: 300px;
  background-color: #f4f4f4;
}

.kafelek p, h3{
  padding: 10px;
}

.kafelki{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin: 100px;
}

.kafelki p{
  padding: 10px;
}

.kafelki h3{
  padding: 10px;
  font-size: 30px;
}

.ksieza{
  height: 250px;
  width: 200px;
  margin: auto;
  border-radius: 30%;
}

.home-link{
  display: none;
}


#parafia{
  font-size: 25px;
}

.kafelek-2{
  width: 100%;
  background-color: #f4f4f4;
  display: block;
  margin: 0 auto;
}

.kafelek-2 p{
  padding: 10px;
  font-size: 20px;
}

@media screen and (max-width: 700px) {
  #open-sidebar-button, #close-sidebar-button{
    display: block;
  }
  nav{
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(15em, 100%);
    z-index: 10;
    border-left: 1px solid #272832;
    transition: right 300ms ease-in-out;
  }
  nav.show{
    right: 0;
  }
  nav.show ~ #overlay{
    display: block;
  }
  nav ul{
    width: 100%;
    flex-direction: column;
  }
  nav a{
    width: 100%;
    padding-left: 2.5em;
  }
  nav a.active-link{
    border-bottom: none;
  }
  nav .home-li{
    margin-right: unset;
  }

  body{
    grid-template-columns: 1fr;
    width: 100%;
  }

  iframe{
        height: 200px;
        width: 300px;
    }

    .box-1{
        width: 90%;
    }

    .stopka,
    .ogloszenia-2{
        grid-template-columns: 1fr;
    }

    .ogloszenia-2{
        width: 90%;
    }

    .slider-container{
      height: 300px;
    }

    #maryja{
      width: 100%;
      height: 400px;
    }

    .grupa{
      display: inline;
    }

    .tekst{
      width: 100%;
    }

    .post{
      width: 100%;
    }

    .grupal {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 12px;
  }

  .lewa img{
    width: 100%;
    height: 300px;
  }

  .miniogloszenie,
  .opis2{
    width: 100%;
  }

  .kafelki{
  display: grid;
  grid-template-columns: 1fr;
  margin: 0px;
  }

  .kafelek{
    width: 100%;
  }

  .kafelek img{
    width: 100%;
  }

  .child {
    position: static;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    display: none;
    flex-direction: column;
    padding-left: 20px;
  }

  .child.active {
    max-height: 500px;
    display: flex;
  }

  .ogloszenia-2{
    width: 100%;
  }

  .lewa{
    padding-bottom: 50px;
  }

  .tekst{
    font-size: 20px;
  }

  #home{
    display: block;
    color: #c9c9c9;
    line-height: 88px;
    margin-left: 30px;
  }

  .home-link{
  margin: 10px;
  width: 70px;
  height: 70px;
  display: block;
  }

  .kartka{
    width: 100%;
  }
}
