/* Custom properties/variables  */
:root{
    --main-white: #f0f0f0;
    --main-red: #be3144;
    --main-maroon: rgb(167, 4, 4);
    --main-blue: #45567d;
    --main-gray: #303841;
    --main-green: #3a6904;
    --main-black: #0f0d0d;
    --main-brightblue: #2859ccd0;
    --pibideema-green: #0c4f07;
    --pibideema-blue: #33d0ef;
    --pibideema-darkblue: #054fae;
    --pibideema-lightgreen: #5ea217;
    --pibideema-yellow: #fbd401;
    
    
}
  
/* Base reset */
*{

    margin: 0;
    padding: 0;
}
  
/* box-sizing and font sizing */
*,
*::before,
*::after{
    
    box-sizing: inherit;
}

html{
    box-sizing: border-box;
  
    /* Set font size for easy rem calculations
     * default document font size = 16px, 1rem = 16px, 100% = 16px
     * (100% / 16px) * 10 = 62.5%, 1rem = 10px, 62.5% = 10px
    */
    font-size: 62.5%;
    scroll-behavior: smooth;
}



/* A few media query to set some font sizes at different screen sizes.
 * This helps automate a bit of responsiveness.
 * The trick is to use the rem unit for size values, margin and padding.
 * Because rem is relative to the document font size
 * when we scale up or down the font size on the document
 * it will affect all properties using rem units for the values.
*/

/* using the em unit for breakpoints
 * The calculation is done by the following
 * screen size divided by browser base font size
 * As an example: a breakpoint at 980px
 * 980px / 16px = 61.25em
*/

/* 1200px / 16px = 75em */
@media (max-width: 75em){
    html{
      font-size: 60%;
    }
}

/* 980px / 16px = 61.25em */
@media (max-width: 61.25em){
    html{
      font-size: 58%;
    }
}


/* 460px / 16px = 28.75em */
@media (max-width: 28.75em){
    html{
      font-size: 55%;
    }
}

/* Base styles */

body{
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem; /* 18px */
    font-weight: 400;
    line-height: 1.4;
    color: var(--main-white);
}
  
h1,
h2{
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    text-align: center;
}
  
h1{
    font-size: 6rem;
}
  
h2{
    font-size: 4.2rem;
}
  

ul{
    list-style:none;
}

a{
    text-decoration: none;
    color: var(--main-white);

}
  
img{
    display: block;
    width: 100%;
}


/* navigation bar section*/


.navbar{
    /*display: flex;
    justify-content: flex-start;
    width: 100%;
    position: fixed; 
    z-index: 10;*/
    padding-top: 0;
    padding-bottom: 0;
    background: var(--pibideema-lightgreen);
    box-shadow: 0 2px 0 var(--pibideema-yellow);
   margin-bottom: 2rem;
    
}

.navbar-nav{
    margin: 0;
    /*margin-left: 2rem;*/
    flex-direction: row !important; /*to make menu links horizantally align on resize*/
    
   
}

.navbar-brand{
    margin-left: 2rem;
    height: auto;
    
}

/*to center the logo and nav links on resize to small screen*/
@media (max-width: 33.75em){

    .brand{
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .navbar-nav{
        margin-top: 0.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

.logo{
    width: 70px;
   
}

.nav-item{
    margin-right: 2rem;
    
}
.nav-link{
    font-size: 2rem;
    text-shadow: 2px 2px 2px var(--pibideema-green);
    transition: transform 0.3s ease-out;
    
}

.nav-link:hover{
    color: var(--main-white);
    text-decoration: none;
    transform: translateY(-8px);
}

.dropdown-menu{
    padding: 0;
}

.dropdown-item{
    font-size: 2rem;
    color: var(--pibideema-lightgreen);
    
}

.dropdown-item:hover{
    color: var(--pibideema-green);
    background-color: var(--pibideema-yellow);
}

/* end navigation bar section*/


/*Carousel section */

.carousel-inner{
    width:100%;
    height: 100vh !important;

}

/*
.carousel-inner .carousel-item img{
    object-fit: contain;
    height: 100vh;
}*/
.carousel-item{
    height: 100vh;

}

/*this setting to center the image*/
.carousel-inner .carousel-item div{
    margin: auto;
}

.carousel-img-div{
    max-width: 700px;
    max-height: 600px;
    /*width: 576px;
    height: 473px;*/
    
}

.carousel-image{
    height: 100%;
    width: 100%;
    object-fit: cover;

}
    

/* carousel indicators and active indicator colors */
.carousel-indicators li{
    background-color: var(--pibideema-lightgreen);
}
  
.carousel-indicators .active{
    background-color: var(--pibideema-green);
}

/* Defining carousel indicators' shape */
.carousel-indicators li{
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 2rem;
    border-radius: 100%;
}

/* Changing carousel indicators control prev, next icon size and color */
.carousel-control-prev-icon{
    width: 3rem;
    height: 3rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%230c4f07' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");

}

.carousel-control-next-icon{
    width: 3rem;
    height: 3rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%230c4f07' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");

}

/*end Carousel section*/

/* About section */

.about-section{
    text-align: center;
    padding: 10rem 2rem;
    background-image: linear-gradient(62deg,  #ffe657 0%, rgba(253, 165, 2, 0.966) 100%);

}

/* "Automagic" image grid using no media queries */
.about-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 5rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    margin-bottom: 6rem;
    padding: 3rem;
}

@media (max-width: 30.625em){
    .about-section{
      padding: 6rem 1rem;
    }
  
    .about-grid{
      grid-template-columns: 1fr;
    }
}


.about-section h1{
    color: var(--pibideema-green);
    font-weight: 600;
}

.about-section h2{
    color: var(--pibideema-lightgreen);
    font-size: 3.4rem;
    font-weight: 600;
}

.about-section p{
    font-style: italic;
    color: var(--main-maroon);
    font-weight: 600;
    
}

.about-ul{
    color: var(--main-maroon);
    
}

.li-icon{
    padding: 0 10px 0 0;
    color: var(--pibideema-green);
}
/* end About section */


/* Contact section */

.contact-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 80vh;
    padding: 0 2rem;
    background: var(--main-gray);
}
  
.contact-section-header h2{
    font-size: 6rem;
}

@media (max-width: 28.75em){
    .contact-section-header h2{
      font-size: 4rem;
    }
}

.contact-section-header p{
    font-style: italic;
}

.contact-links{
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 980px;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.contact-details{
    font-size: 2.4rem;
    text-shadow: 2px 2px 1px #1f1f1f;
    transition: transform 0.3s ease-out;
}

.contact-details:hover{
    text-decoration: none;
    color: var(--main-white);
    transform: translateY(8px);
}

/* Footer */

footer{
    font-weight: 400;
    display: flex;
    justify-content:space-around;
    padding: 2rem;
    background: var(--pibideema-lightgreen);
    border-top: 4px solid var(--pibideema-yellow);
    
}

footer p{
    margin: 2rem;
}

footer a:hover{
    text-shadow: 2px 2px 2px var(--main-white);
    color: var(--pibideema-green);
    text-decoration: none;
}

@media (max-width: 28.75em){
    footer{
      flex-direction: column;
      text-align: center;
    }
}
  
  
  