/* TODO: change font scaling so it is more natural */

header{
    width: 100%;
    height: 40vh;
    margin: 0;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../assets/placeholder.png");
}

#header-guttering{
    background-image: url("../assets/gutterShowcase.jpg");
}

#header-plastering{
    background-image: url("../assets/plasteringShowcase.jpg");
}

#header-renderinsulation{
    background-image: url("../assets/renderinsulationShowcase.jpg");
}

h1{
    text-align: center;
    margin: auto 2.5%;
    width: 95%;
    background-color: black;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    border-radius: 35px;
	background-clip: padding-box;
	background-color: #2E2E2EAD;
    padding: 1% 2.5%;
    color: white;
}

h2{
    text-align: center;
}

@media only screen and (min-width: 600px){
    header{
        height: 60vh;
    }

    h1{
        font-size: 4rem;
    }

    h2{
        font-size: 3rem;
    }
}




/* BEGIN STYLES FOR THE MAIN SECTION */
main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5% auto;
}

main p{
    font-size: 1.5rem;
    text-align: start;
    margin: 2.5% auto;
    max-width: 90%;
}

main img{ /* change this to match the image aspect ratio */
    width: 75%;
}

@media only screen and (min-width: 960px) { /* change these queries to standardosed */
    main{
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-gap: 1%;
    }
    
    main p{
        grid-column: 2;
        margin: auto;
        width: 65%;
        align-self: center;
        font-size: 1.5rem;
        text-align: start;
    }
    
    #img-right{
        grid-column: 3;
        grid-row: 2 / 6;
        height: 100%;
        width: 100%;
    }
    
    #img-left{
        grid-column: 1;
        grid-row: 4 / 8;
        height: 100%;
        width: 100%;
    }
    
    #text1{
        grid-row: 2 / 4;
        grid-column: 1 / 3;
    }
    
    #text2{
        grid-row: 4 / 6;
        grid-column: 2 / 3;
    }
    
    #text3{
        grid-row: 6 / 8;
        grid-column: 2 / 4;
    }

    .main-text{
        margin-top: 30px;
        margin-bottom: 30px;
        grid-column: 1 / 4;
    }
}

/* END STYLES FOR THE MAIN SECTION */




#cta-section{
    margin: 7.5% auto 5% auto;
    
}


#image-banner{
    display: inline;
    width: 100%;
    text-align: center;
}

#image-banner img{
    width: 24%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
}


/* Copied from index.css update there when necessary */
.cta-btn{
	border: double black 4px;
	background: linear-gradient(135deg, #FFD700, #FFA500);
	padding: 2.5% 10%;
	font-weight: bold;
	color: black;
	text-decoration: none;
	border-radius: 10px;
	font-size: 1.5rem;
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
	word-break: keep-all;
	width: -webkit-fit-content;
	width: -moz-fit-content;
	width: fit-content;
	margin: auto;
	display: block;
}