* *::before, *::after {
  box-sizing: border-box;
}

body{
  background: url('/images/background.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size:cover;
}

header .menu .container-fluid {  

  padding: 10px 20px;

}

header .navbar {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header .menu .navbar-brand {

  font-size: 1.8rem;
  font-family: "Audiowide", sans-serif;
  font-weight: 700;
  color: #333;

}

header .menu .navbar-brand img {
  width: 40px;
  height: 40px;
  margin: 5px;

}


header .menu .nav-item {

  border-bottom: 1px solid black;
  margin-bottom: 10px;
  font-weight: 500;

}

header .menu .nav-item:hover {
  transform: scale(1.01);
}


#autocomplete-list {

  width: 77%;
  margin-top: 2px;
  border: 1px solid #dee2e6;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; 
  border-radius: 0.375rem;
  background-clip: padding-box;
  appearance: none;

}

#autocomplete-list div {

  padding: 5px;
  cursor: pointer;
  background-color: #fff; 
  font-size: 1rem;
  font-weight: 100;
  border-bottom: 1px solid #d4d4d4; 
  
}

#autocomplete-list div:hover {
  background-color: #e9e9e9;
}

.main { 

  margin: 7rem auto 30px auto;
  max-width: 1200px;
  
  
}

.main .home {
  
  background-color: white;
  z-index: inherit;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;

}

.home .gallery {
  
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0.5rem;
  
}

.home .gallery .photo-item {
  margin: 1rem;
}  

.gallery .photo-item {
  
  height: 80%;
  flex: 1 1 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease-in-out;
  background-color: white;

}
  
.photo-item img {

  width: 100%;
  height: auto;

}
    
.photo-info {

  position: relative;
  left: 10px;
  bottom: 30px;
  color: white;
  font-size: 16px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);

}       

.photo-info .like-count {

  margin-right: 5px; 

}

.photo-info .like-count i.like {
  color: rgb(255,70,70);
}

.photo-info .comment-count {

  margin-right: 5px; 

}

.photo-item:hover {

  transform: scale(1.06);        

}

.home .pagination {

  display: flex;
  justify-content: center;
  margin: 30px 0px;

}

.home .page-link {

  color: black;

}

.home .page-link.current {

  background-color: #e9ecef;

}

.overlay-container {

  display: none;
  position: fixed;
  top: 6.0rem;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;

}

.overlay-content {
  
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 60px 0px;
}
  
.overlay-content .enlarged-image {

  margin: 0px 10px;

}   

.overlay-content .enlarged-image img {

  max-width: 100%;
  max-height: 400px;
  border: 5px solid white; 
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1); 

}

.overlay-content .description {

  max-width: 30%;
  max-height: 80vh;
  overflow-y: auto;
  background-color: white; 
  padding: 20px; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); 
  border-radius: 8px;
  margin: 0px 10px;

}

.overlay-content .description .header {

  display:flex;
  justify-content: space-between;
  margin-bottom: 20px;

}

.overlay-content .description .header .likes svg {
  fill: gray; 
  cursor: pointer;
}

.overlay-content .description .header .likes svg.like {
  fill: #ed4956; 
  cursor: pointer;
}

.overlay-content .description .header .likes svg:hover {

  fill: #d43f3a;

}

.overlay-content .description .header .like-count {

  margin-left: 5px;
  font-size: 16px;
  color: #333;

}

.overlay-content .description .header .download-close svg {

  margin: 0px 5px;
  cursor: pointer; 

}
.overlay-content .description .header .download-close svg:hover {

  color: red; 

}

.overlay-content .description .content .hashtags {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
}

.hashtags .hashtag {

  background-color: #e1ecf4;
  color: #0077cc;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  transition: background-color 0.3s, color 0.3s;
  margin-right: 10px;
  margin-bottom: 10px;

}

.hashtags .hashtag:hover {

  background-color: #0077cc;
  color: #ffffff;

}

.overlay-content .description .content .article {

  font-family: 'Arial', sans-serif;
  margin: 5px auto; 
  padding: 10px; 
  text-align: center;

}

.overlay-content .description .content .article .title {
  display:inline-block;
  margin-bottom: 20px;
  font-family: 'Arial', sans-serif;
  color: #333; 
  font-size: 1.2em;
  font-weight: 600;
  text-decoration: none;
}

.overlay-content .description .content .article .title:hover {
  text-decoration: underline;
}

.overlay-content .description .content .article .summary {

  font-size: 0.9em;
  color: #666; 
  line-height: 1.5;
  font-style: italic;

}

.main .about { 
  max-width: 800px;  
  max-height: 800px;
  margin: 20px auto;
  padding: 30px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about .profile {
  float:left;
  margin: 0 20px 0px 0;
  width: 300px
}

.about .profile img { 
  width: 100%;
  height: auto;
}

.about .profile figcaption { 
  text-align: center;
}

.about .description {

  flex-grow: 1; 
  font-family: MercurySSm-Book-Pro_Web,serif;
  color: #333; 
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;

}


.hidden {
  display: none !important;
}

@media (max-width: 600px) {

  .gallery .photo-item {
    flex: 1 1 100%;
  }

  .home .gallery .photo-item {
    margin: 0.5rem;
  }  

  .home .pagination {
    margin: 20px 0px;
  }

  .overlay-content {

    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 30px 10px 0px 10px;
    overflow: auto;

  }

  .overlay-content .description {

    max-width: 90%;
    margin: 10px 0px;

  }

  .overlay-content .enlarged-image {

    max-width: 90%;
    margin: 10px 0px;

  }

  .description .header .likes { 
    margin-bottom: 10px; 
  }
}
