   /*-- beginning of global section--*/
*{
    margin: 0%;
    padding: 0%;
    box-sizing: border-box;
}

main{
  flex-grow: 1;
  padding: 1rem 1.5rem;
}
a{
          text-decoration: none;
          color: inherit;
        }

/*-- end of global section--*/

/*-- beginning of background gradient styling--*/
.background{
    background: linear-gradient(to top left, #ffcc66 0%, #0066ff 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /*--it seem better to put the gap at the top and bottom on the body section-*/
    padding-top: 1rem;
    height: 100%;
}
/*-- end of background gradient styling--*/

/*--beginning of pamphlet sectio--*/

.pamphlet{
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: auto;
    padding-top: 0px;
    padding-bottom: 0px; /*--best place to put the padding for content--*/
    background-color: white;
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
 }
/*--end of pamphlet sectio--*/
 /*--start banner--*/
.container{
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    padding: 1rem 2rem 0 0;
    background-color: aqua;  /*--for visual sake--*/
}
#banner-img{
    width: 100%;
}
.container h2{
    font-weight: 200;
    font-size: 1rem;
    line-height: 2.4rem;
    text-transform: uppercase;
    text-align: right;
    line-height: 1.5rem;
}
.container span{
    text-transform: none;
    display: block;
}
/*--End banner--*/

/*--Start of horizontal navbar section--*/
.nav-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
  }
 
 .nav-bar ul li {
    float: left;
  }
 
.nav-bar ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: .8rem 1rem;
    text-decoration: none;
  }
 
  /* Change the link color to #111 (black) on hover */
  .nav-bar ul li a:hover {
    background-color: red;
  }
  /*--end of horizontal navbar section--*/
.container-v{
    text-align: center;
}
   
  /*-- beginning of footer section--*/
  footer{
    font-size: 1.4rem;
    background-color: teal;
    color: white;
    display: flex;
    padding: 0.6rem 1.25rem;
    justify-content: space-between;
    align-items: center;
    bottom: 0;
    width: 100%;
}

footer .footer-nav{
  display: flex;
  font-size: 1rem;
}

footer .footer-nav a{
  display: flex;
  flex-direction: row;
  align-items: center;
  color: white;
  padding: .6rem .5rem;
  margin-left: 0;
 
}
footer .footer-nav:hover{
  cursor: pointer;
 
}
footer .copyright{
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 0.85rem;
  margin-left: 1.5rem;
 
}


  /*--Start responsive--*/
  /*--Start responsive--*/
  /*--Start responsive--*/
  /*--Start responsive--*/

@media screen and (max-width: 1100px) {
.pamphlet{
        width: 70%;
    }
    .background{
        padding-top: 0%;
    }
    .container h2{
      padding: 0.5rem;
      font-size: .5rem;
      text-align: right;
      line-height: 1.5;
      padding-left: .75rem;
  }
 footer{
        font-size: 1.25rem;
        padding: 0.6rem;
    }
    footer .footer-nav a{
        padding: .6rem;
    }
}


@media screen and (max-width:870px)  {

   .pamphlet{
    width: 80%;
  }
  .container h2{
        padding: 0.5rem;
        font-size: .5rem;
        text-align: right;
        line-height: 1.5;
        padding-left: .75rem;
    }
    #banner-img{
        width: 90%;
        padding: .1rem .75rem .75rem .75rem;
    }
    footer{
        flex-direction: column;
        align-items: center;
        padding: 1.25rem;
    }
    footer>div{
        margin-bottom: 0.5rem;

    }
    footer .footer-nav a{
        padding: 0.6rem;
    }

}

@media screen and (max-width:750px) {
      .pamphlet{
        width: 80%;
      }
     .container{
        grid-template-columns: 1fr;
    }
    .container h2{
        padding: 0.5rem;
        font-size: 1rem;
        text-align: center;
        line-height: 1.0;
        padding-left: .75rem;
    }
    #banner-img{
        width: 99%;
        height: auto;
    }
    .container span{
        display: inline;
    }

}

@media screen and (max-width:580px) {

.pamphlet{
    width: 90%;
   }
   .background{
    padding-top: 0%;
   }
    .container{
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .container h2{
        width: 100%;
        padding: 0.5rem;
        font-size: .75rem;
        text-align: center;
        line-height: 1.5;
        padding-left: .75rem;
      }
      #banner-img{
        width: 99%;
        height: auto;
        padding-left: .75rem;
      }


}

@media screen and (max-width:430px) {
 .pamphlet{
        width: 100%;
       }
       .background{
        padding-top: 0%;
       }
 
     .container{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container h2{
  width: 100%;
  padding: 0.5rem;
  font-size: .75rem;
  text-align: center;
  line-height: 1.5;
  padding-left: .75rem;
}
#banner-img{
  width: 99%;
  height: auto;
  padding-left: .75rem;
}
 footer .footer-nav{
    display: block;
    text-align: center;
}
footer .footer-nav a{
    display: block;
    padding: .1rem auto;
    text-align: center;
}

}
