/* defaults  */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
html{
    scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:'Poppins', sans-serif;
  overflow-x:hidden;

}

.head-title{
  font-size:40px;
  text-decoration: underline;
}
.text-white{
  color:white;
}
.center{
  text-align: center;
}
.justify{
  text-align:justify
}
.flex-center{
  justify-content: center;
  display: flex;
  width:100%;
  
}

/* defaults end  */

.topnav {
  overflow: hidden;
  background-color: #3639a1;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* apply hover to a tags in topnav class execpt with id home  */
.topnav a:not(#home):hover {
  background-color: #ddd;
  color: black;
}

.topnav .icon {
  display: none;
}

.container{
    padding:16px 40px;
  background-image: linear-gradient(to right, #949af0, #e8e1f4 );
  }

.main{
  height:80vh;
  background:  linear-gradient(
          rgba(0, 0, 0, 0.7), 
          rgba(0, 0, 0, 0.7)
        ),url('images/gallery/0102.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  border-radius: 5px;
  position: relative;
}
.main-content{
/* making center : can also use flex */
  position:absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
}
.image{
    padding:10px
}
.description{
    padding:10px;
  text-align:justify;
  font-size:18px;
}
.image img{
  width:500px;
  height:350px;
  border-radius:5px;
  object-fit: cover;
}
.item{
  margin-bottom:20px;
}
.item-title{
  color:#3639a1;
  cursor:pointer;
}
.item-title:hover{
  text-decoration: underline;
}

.footer-container {
  background-color: #292c2f;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  font: normal 16px sans-serif;
  padding: 20px 25px;
}

.footer-container .footer-left p {
  color: #8f9296;
  font-size: 14px;
  margin: 0;
}
/* Footer links */

.footer-container p.footer-links {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  margin: 0 0 10px;
  padding: 0;
  transition: ease .25s;
}

.footer-container p.footer-links a {
  display: inline-block;
  line-height: 1.8;
  text-decoration: none;
  color: inherit;
  transition: ease .25s;
}

.footer-container .footer-links a:before {
  content: "·";
  font-size: 20px;
  left: 0;
  color: #fff;
  display: inline-block;
  padding-right: 5px;
}

.footer-container .footer-links .link-1:before {
  content: none;
}

.footer-container .footer-right {
  float: right;
  margin-top: 6px;
  max-width: 180px;
}

.footer-container .footer-right a {
  display: inline-block;
  width: 35px;
  height: 35px;
  background-color: #3639a1;
  border-radius: 2px;
  font-size: 20px;
  color: #ffffff;
  text-align: center;
  line-height: 35px;
  margin-left: 3px;
  transition:all .25s;
}

.footer-container .footer-right a:hover{transform:scale(1.1); -webkit-transform:scale(1.1);}

.footer-container p.footer-links a:hover{text-decoration:underline;}
.gallery-container{
  display:flex;
  flex-wrap:wrap;
  justify-content: center;
  margin-bottom:2rem;
}
.gallery {
  margin: 5px;
  border: 1px solid #ccc;
  width: 280px;
  transition: .4s ease;
  border-radius:5px;
}

.gallery:hover {
  border: 1px solid #3639a1;
  transform: scale(1.01);
}

div.gallery img {
  width: 100%;
  height: auto;
  border-radius:5px;
}

div.desc {
  padding: 15px;
  text-align: center;
}
/* Media Queries */

@media screen and (max-width: 900px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .container{
    padding:16px 10px
  }
  .main-content p{
    display:none
  }
  .flex-center{
    flex-direction: column;
  }

  .image img{
    width:100%;
    height:200px;
  }

  
  .footer-container .footer-left, .footer-container .footer-right {
    text-align: center;
  }
  .footer-container .footer-right {
    float: none;
    margin: 0 auto 20px;
  }
  .footer-container .footer-left p.footer-links {
    line-height: 1.8;
  }
}