body {
	margin: 0;
    padding: 0;
    box-sizing: border-box;    
}


.container{
    display: flex;
    /*min-height: 100%;*/
    justify-content: space-between;
    flex-direction: column;
    min-height: 100vh;

    background: #333;
	color: #fff;
	text-align: center;

}
 
.showcase {
    position: relative;
    height: 400px;
    color: #fff;
    text-align: center;
    margin-top: 65px;
    overflow: hidden;
    background-color: rgba(0,0,0,1);
    transition: height 0.5s ease-in-out 0s;
}

/* 
 *  Load smallest image first
 */
.showcase .apiLogo {
    position: absolute;
    background-image: url("../img/main-pg-med.jpg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	width: 100%;
    height: 100%;
    opacity: 0.8;	
}

/* width must be 769 or bigger to load bigger image */
/*
@media(min-width:601px){
    .showcase .apiLogo {
        background-image: url("../img/main-pg-med.jpg");
    }
}
*/
/* width must be 769 or bigger to load bigger image */
@media(min-width:769px){
    .showcase .apiLogo {
        background-image: url("../img/main-pg-lge.jpg");
    }
}

.showcase .logoBox{
    position: absolute;
    margin: 0;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 80%;
}

.showcase .logoBox h1{
    letter-spacing: 5px;
    font-size: 40px;
}

.main-page{
    position: relative;
    height: 100%;
    color: #fff;
    line-height: 1.5;
    letter-spacing: 1.2px;
    font-size: 18px;
}

.grid {
    display: grid;
/*    grid-template-columns: 1fr repeat(2, minmax(auto, 35em)) 1fr;*/
    grid-template-columns: 1fr repeat(3, minmax(auto, 25em)) 1fr;
}

/* Section A BANNER */
#section-title {
    background: #fff;
	color: #333;
    padding: 2em 1.5em 2em 1.5em; 
}

#section-title .content-title{
    grid-column: 2/5;

    padding-top: 1em;
    padding-bottom: 1em;
    font-size: 30px;

}
.content-wrap, .card-holder, .last-card-holder{
	grid-column: 2/5;
}

/* Section for cards */
#section-card{

    background-color: #333;
    background: 
        radial-gradient(ellipse at right bottom, 
            #ccc 5%, 
            #888 25%, 
            #666 50%, 
            #444 100%);      
}

.card-holder{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /*       top right bottom left */
    padding: 3em 1em 3em 1em;
}

.card-holder .card {
    display: flex;
    flex-basis: 24%;
    overflow: hidden;
    transition: width 0.3s;
    border-radius: 5px;
    flex-direction: column;
    background-color: #111;
    color: #fff;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.7);

    background-image: 
        linear-gradient(155deg, #444 0%, #111 100%);
}

.card-holder .card-pic{
    object-fit: cover;
    transform: scale(1.01);
}

.card-holder .card-content {
	margin-bottom: 0;
    padding: 2em;
    letter-spacing: 1.2px;
    line-height: 1.5;
    /* top right bottom left */
    font-weight: 600;
}

.card-holder .card-content p{
    padding-top: 2em;
    font-size: 18px;
    padding-top: 1em;
    font-weight: normal;
}

.card-holder .card-content .card-title{
    min-height: 3em;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
}



.card-holder .moreBtn{
    margin-top: auto;
    padding-bottom: 1em;
    padding-top: 0;
}

.card-holder .moreBtn a{
    text-decoration: none;
    font-size: 12px;
    color: #fff;
    /* top right bottom left*/
    padding: 8px 20px;
    border-radius: 4px;
    border-left: 1px #444 solid;
    border-top: 1px #444 solid;
    border-right: 1px #000 solid;
    border-bottom: 1px #000 solid;
}

#section-last{
    background-color: #eee;
}
  
.last-card-holder{
    line-height: 1;
    position: relative;
    display: flex;
    justify-content: space-around;
}

.last-card {
    position: relative;
    display: flex;
    flex-basis: 40%;
    overflow: hidden;
    transition: width 0.3s;
    border-radius: 5px;
    flex-direction: column;
    justify-content: center;
    background-color: #111;
    color: #fff;
    box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.7);
    margin: 3em 0;
    padding: 2em 0;
}

.last-card .cardlastImage{
    position: absolute;
    overflow: hidden;    
    margin:0;
    top:0;
    left:0;
    border-radius: 5px;
    
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: scale(1.03);
    z-index: 1;
}

.last-card .imgContact{
    background-image: url("../img/bg-2.jpg");
}
.last-card .imgAbout{
    background-image: url("../img/bg-1.jpg");
}

.last-card .textBox{
    z-index: 2;
}

.last-card .ic1{
    padding: 0.5rem;
    font-size: 30px;
    letter-spacing: 0;
}

/* Footer */
#main-footer {
	padding: 1em;
	background: #000;
	color: #fff;
    margin-top: auto;
    font-size: 16px;
    letter-spacing: 1px;
}   

/* Media Queries 
    only use these hover effect on desktops
*/
@media(min-width:801px){

    .card-holder .card:hover {
        box-shadow: 2px 2px 4px rgba(0, 79, 255, 0.3);
        background-image: 
        linear-gradient(155deg, rgba(0, 79, 255, 0.9) 0%, rgba(255,0,0,0) 80%);
    }
    
    .card-holder .card:hover >.card-pic {
        transform: scale(1);
    }
    
    .card-holder .moreBtn a:hover{
        border: none;
        background-image: linear-gradient(160deg,  #023566 40%, #1E90FF);
    }

    .last-card:hover {
        box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    }
    
    .last-card:hover >.cardlastImage {
        transform: scale(1);
    }
}


/* Media Queries */
@media(max-width:800px){
    .showcase {
        height: 180px;
        margin-top: 60px;
    }

    .showcase .logoBox h1{
        letter-spacing: 2px;
        font-size: 30px;
    }

    .showcase .apiLogo {
        opacity: 1;	
    }
}
  
@media(max-width:800px){

    .grid{
        display: block;
        padding-top: 1em;
        padding-bottom: 1em;
        padding: 1em;
    }
  
    .showcase .logoBox h1{
        letter-spacing: 1px;
        font-size: 25px;
    }
    /*
    #section-title .content-title{
        padding: 0;
        margin: 0;
        font-size: 18px;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
    }
    */
    #section-title .content-title{
        padding: 0;
        margin: 0;
        font-size: 20px;
    }

    .card-holder,
    .last-card-holder{
        flex-direction: column;
        padding: 0;
    }

    .card-holder .card {
        /*flex-basis: 100%;*/
        width:100%;
        margin: 0.5em 0;
        padding: 0;
        box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    }

    .card-holder .card-pic{
        width: 100%;
        height: 180px;
        transform: scale(1);
    }

    .card-holder .card-content {
        padding: 1.5em 1em;
        letter-spacing: 0px;
        line-height: 1.5;

        background: 
            radial-gradient(ellipse at left bottom, 
                transparent 80%, 
                rgba(0, 79, 255, 0.9) 100%);
    }

        
    .card-holder .card-content p{
        /*font-size: 16px;*/
        padding-top: 1.5em;
    }

    .card-holder .card-content .card-title{
        /*min-height: auto;*/
        min-height: initial;
        font-size: 16px;
    }

    .card-holder .moreBtn{
        padding-top: 0.2em;
        padding-bottom: 1.5em;
    }

    .card-holder .moreBtn a{
        /* top right bottom left*/
        padding: 10px 35px;
        font-size: 14px;
    }

    .card-holder .card-content,
    .card-holder .moreBtn{
        background-color: #111;
    }

    .last-card-holder{
        margin:0;
        justify-content: space-between;
        /*min-height: auto;*/
        min-height: initial;
    }

  .last-card {
        flex-basis: 100%;
        margin: 0.5em 0;
        padding:0;
    }

    .last-card .cardlastImage{
        transform: scale(1);
    }
    
    .last-card .ic1{
        padding-top: 1.5rem;
        font-size: 25px;
        text-align: center;
    }

    .last-card .content-title{
        padding-bottom: 1.5rem;
        font-size: 18px;
    }

    /* Footer */
    #main-footer {
        padding: 0.7em;
        font-size: 14px;
    }
    
}
