

body{
    margin-top: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px
}
.container{
    
    
 
    display: grid;
    grid-template-columns: 1fr 10fr 1fr;
    grid-template-rows: 1fr 5fr 1fr 11fr 1fr;  
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}

.navbar{
    display: flex;
   
    grid-area: 1/1/2/4;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5); 
    justify-content: center; 
    padding: 30px 20px; 
    

}
.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    &:hover {
        color: #67B4D3;; 
    }
}

.navbar li {
    margin: 0 10px;
}

.petrahero{
   
    background-image: url('perta_hero.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
    
    grid-area: 1/1/4/4;
   
}

main{
   height: 1000px;
    border: 1px solid #000; 
    padding: 5px; 
    background-color: rgb(197, 196, 196);
    z-index: 10;
    grid-area: 3/2/5/3;
     display: grid;
     grid-template-rows: repeat(6,1fr);
     grid-template-columns: 1fr 1fr 1fr;
     border: 1px solid #000; 
   
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    overflow: hidden;
    width: 100%;
    height: 0;
    transition: .5s ease;
  }
  
 
  .item3:hover .overlay {
    height: 100%;
  }
  .item2:hover .overlay {
    height: 100%;
  }
  .item1:hover .overlay {
    height: 100%;
  }
  .item8:hover .overlay {
    height: 100%;
  }
  .item9:hover .overlay {
    height: 100%;
  }
  .item10:hover .overlay {
    height: 100%;
  }
  
  .text {
    white-space: nowrap; 
    color: white;
    font-size: 20px;
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }
.item1{
    grid-area: 1/1/3/2;
    
    margin: .4em;
    position: relative;
   
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

}
.item1 img,.item2 img,.item3 img,.item7 img,.item8 img,.item9 img,.item10 img{
        height: 100%;
        width: 100%;
        display: block;
}
.item2{
    grid-area: 1/2/3/3;
   
    margin: .4em ;
    position: relative;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.item3{
    grid-area: 1/3/3/4;
  
    margin: .4em ;
    position: relative;
 
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.item7{
    background-color:#67B4D3;
    margin: .4em ;
    grid-area: 3/1/5/4;
 
}
.item7 h3{
    text-align: center;
}
.item7 p{
padding: 1em;
}

.item8{
    position: relative;
  
    margin: .4em ;
grid-area: 5/1/7/2;

background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
.item9{
    position: relative;
   
    margin: .4em ;
    grid-area: 5/2/7/3;
    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.item10{
    position: relative;

    margin: .4em ;
    grid-area:5/3/7/4 ;
   
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
footer{
    border: 1px solid #000; 
    text-align: center;
    font-size: .70rem;
    background-color:#67B4D3;
    grid-area: 5/1/5/4;
   bottom: 0;
}

@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 5fr 11fr 1fr;
        
    }
    .petrahero{
        grid-area: 1/1/3/3;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
       
    }
}
/*@media(max-width: 768px){
    .container{
        
        grid-template-columns: 1fr;
        grid-template-rows:  3fr 10fr 1fr;
    }
    .navbar{
        grid-area: 1/1/3/4;
    }
    main{
        display: grid;
  max-width: 800px;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  grid-template-rows:auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #aaa;
  padding: 0;
    }

    .item1 , .item2, .item3, .item7, .item8,.item9, .item10{
        margin: 0 10px;
        list-style-type: none;
        cursor: pointer;
        border: 1px solid black;
        border-radius: 10px;
        padding: 5px;
      }
    }
    .item1 , .item2, .item3, .item8,.item9, .item10{
        min-height: 200px;
        min-width: 200px;
}
*/
@media(max-width: 768px){
.container{
    grid-template-columns: 1fr;
        grid-template-rows:  3fr 10fr 1fr;
}

.navbar {
    grid-area: 1/1/2/1;
    list-style-type: none; /* Remove bullet points */
    padding: 0;
    margin: 0;
    width: auto;
    height: auto; /* Set the width of the navbar */
    background-color: rgba(0, 0, 0, 0.8);  /* Background color of the navbar */
   
}
.navbar ul{
    display: block;
    height: auto;
    width: 100%;
}
/* Style each list item */
.navbar li {
   text-align: center;
    width: 100%; /* Each list item spans the entire width of the container */
    height: 20%;
}

/* Style links */
.navbar a {

    display: block; /* Each link spans the full width of the list item */
    padding: 12px 16px; /* Adjust padding for spacing */
    color: white; /* Link text color */
    text-decoration: none; /* Remove underline from links */
}

/* Change background color of list item when hovered over */
.navbar li:hover a {
    display: block;
    background-color: #67B4D3; /* Change to your desired hover color */
    color: white; /* Change the text color when hovered */
}


.petrahero{
    grid-area: 1/1/2/1;
    background-image: url('Petra\,2.jpg');
}
main{
    grid-area: 2/1/4/1;
display: flex;

align-items: start;
gap: 1em;
flex-wrap: wrap;
height: fit-content;
}
.item1 , .item2, .item3, .item8,.item9, .item10{
height: 250px;
width: 250px;
flex-grow: 1;

}


}