* {
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  background: linear-gradient(to bottom, #F2E1C1, #F7B7B7);
}

header {
  background-color: #bc8168;
  padding: 10px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: auto;
}

.logo {
  width: 10%;
}

.logo img {
  width: 100%;
}

.menu-item {
  width: 20%;
  background-color: rgb(255, 198, 154);
  color: black;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  border-radius: 34px;
}

.menu-item:hover {
  background-color: #ff9d64;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-item a {
  text-decoration: none;
  color: black;
}

.menu-item:hover a {
  color: white;
}

#sub-menu {
  width: 100%;
  display: none;
  position: absolute;
  top: 29px;
}

.sub-menu-item {
  border-bottom: solid white 1px;
  border-radius: 30px;
  width: 100%;
  background-color: #a54848;
  padding: 5px;
  text-align: center;
  color: white;

}

#projects {
  position: relative;
}

#projects:hover {
  color: white;
}

#projects:hover #sub-menu {
  display: block;
}

.text {
  background-color: #bc8168;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 10px rgba(255, 255, 255, 0.1);
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.text p {
  font-size: 15px;
  text-align: justify;
  color: #ffffff;
}

h1 {
  text-align: center
}

/*.gallery-container {
  max-width: 90%;
  margin: auto;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}*/

footer {
  background-color: #bc8168;
  text-align: center;
  padding: 15px;
  color: rgb(68, 44, 44);
  width: 100%;
}

/* Gallery Styles */
.gallery-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 30px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 15px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.big {
  grid-column: span 2;
  grid-row: span 2;
}



/*for large screens*/
@media only screen and (min-width: 1280px) {
  .menu {
    flex-direction: row;
    gap: 20px;
  }

  .gallery-container {
    width: 90%;
  }
}

/*for desktops*/
@media only screen and (max-width: 1280px) and (min-width: 769px) {
  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo {
    width: 15%;
    margin-bottom: 10px;
  }
}

/*for tablets*/
@media only screen and (max-width: 768px) and (min-width: 481px) {
  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu-item,
  .current {
    width: 80%;
    margin-bottom: 10px;
  }

  .logo {
    width: 100px;
    margin-bottom: 15px;
  }
  
  .photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .gallery-item {
    width: calc(50% - 15px);
    height: 250px;
  }
  
  .wide,
  .tall,
  .big {
    width: calc(50% - 15px);
    height: 300px;
  }
  
  .gallery-item.tall {
    height: 400px;
  }
}

/*for mobile phones*/
@media only screen and (max-width: 480px) {
  .menu {
    flex-direction: column;
    background-color: #bc8168;
    width: 100%;
  }

  .menu-item,
  .current {
    width: 100%;
    margin-bottom: 10px;
  }

  #sub-menu {
    top: 25px;
  }

  .logo img {
    width: 70px;
  }

  .menu-item,
  .current {
    width: 100%;
    font-size: 14px;
    margin-bottom: 5px;
  }

  footer {
    font-size: 12px;
    text-align: center;
    padding: 20px;
  }

  .text p {
    font-size: 15px;
  }

  .photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall,
  .gallery-item.big {
    width: 100%;
    height: 250px;
  }
}