

body, html {
    	height: auto;
    	width: 100vw;
        padding-top: 1%; /* padding from top of screen*/
    	background-color: white;
	font-family: candara, sans-serif;
}

/* This is the 'box' around everything so that the text etc all have a border*/
#wrapper {
height: auto;
width: 95%;
margin: 0 auto; /*this will cause the div to be centered*/

}



/* HEADER SECTION - this relates to the Clarke & Co logo*/

#header {
	    width:400px;
        height:352px;
        display: block;
        margin-left: auto;
        margin-right: auto;
	margin-bottom: -160px; /* controls gap between logo and text below*/
	margin-top: 16px; /*increases gap between top of logo and top of webpage*/
        background-image: url("gloucester-accountants-images/clarkeandcologo.png");
        background-repeat: no-repeat;
        background-size: contain;
}

/* item 2 relates to the white background below the Clarke & Co logo to make it 
look as one image so that 'Small business accountants' appears as one image */

 .item2 {
   background-color: white;
   color: #007a5e;
   text-align: center;
   font-size: 24px;
   line-height: 1; /*gap between clarke & co logo and 'small bus...' etc*/
   font-family: candara, sans-serif;
   position: relative;
   margin-top: 0;
   padding-bottom: 48px; /*gap between 'Small bus...' and phone logo*/
 }


/* this gridcontainer contains 4 items - phone image (phone image and number 
along with envelope image and email address) */

 .gridcontainer {
  display: grid;
  grid-template-columns: 20%, 80%;
  grid-template-rows: 50%, 50%;
  width: auto;
  height:20vh; /* moves phone closer to envelope and makes it all smaller*/
  margin-bottom: 80px; /*increases gap between envelope and hero image*/
}
  
  /* "phone" relates to phone image and the "phonenumber" 
  <a href="tel:01452536355" in the html doc means that you can touch the image 
  to automatically make your mobile phone call the number*/
  
   .phone {
   display: flex;
   background-color: white;
   grid-column: 1/ 2;
   grid-row: 1 / 2;
   background-repeat: no-repeat;
   position: relative;
   bottom: 2%;
   left: 20%;
   
}


.phone:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}


/*  relates to the envelope image and the "item 4b" href in the html 
doc means you can touch the icon to automatically open up an email*/

.envelope {
   background-color: white;
   display: flex;
   justify-content: flex-start;
   grid-column: 1/ 2;
   grid-row: 2 / 2;
   background-repeat: no-repeat;
   position: relative;
   bottom: 2%;
   left: 17%; /*moves image right*/
  
}


.envelope:hover {
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* the "phonenumber" <a href="tel:01452536355" in the html doc means that you can 
touch the image to automatically make your   mobile phone call the number*/

.phonenumber {
   background-color: white;
   display: flex;
   justify-content: flex-start;
   color: #007a5e;
   font-weight: bold;
   grid-column: 2 / 2;
   grid-row: 1 / 2;
   background-size: 64px;
   background-repeat: no-repeat;
   background-position: center center;
   position: relative;
   top: 5%;
   left: 10%; /*moves phone number left towards phone image*/
   font-size: 24px;
  }


/* item 'email' relates to the "<a target='blank'" in the html doc means you can 
 touch the icon to automatically open up an email*/

.email {
   display: flex;
   justify-content: center;
   background-color: white;
   color: #007a5e;
   font-weight: bold;
   grid-column: 2 / 2;
   grid-row: 2 / 2;
   background-size: 100%;
   background-repeat: no-repeat;
   background-position: center center;
   position: relative;
   top: 5%;
   left: 5vh; /*moves text closer to envelope*/
   font-size: 20px;
  }



/* HERO SECTION - this is the picture of Gloucester docks with the 6 'buttons'
overlayed=*/

/* The hero image - Gloucester Docks */

.hero {
  /* Use "linear-gradient" to add a darken background effect to the image 
  (photographer.jpg).   This will make the text easier to read */
  
  background-image: linear-gradient(rgba(0, 0, 0, 0.00), rgba(0, 0, 0, 0.05)), 
  url(gloucester-accountants-images/Edglosdocs1.jpg);
  height: 40vh;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
 left: 48%;
 margin-left: -50vw;
 margin-right: -50vw;
 max-width: 100vw;
 right: 45%;
 width: 100vw;
 margin-top: -2%;
 
 position: relative;

/* background-attachment: fixed; */

	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto auto;
	grid-gap: 0em 0.625em;
    padding: 3%;
  
	font-family: "candara", candara, sans-serif;
	color: white;
	align-items: center;
    
}


.box {
  color: #ffff;
  border-radius: 0.625em;
  border: 0.188em solid white;
  line-height: 1;
  padding: 0.313em;
  font-size: 250%;
  text-align: center;
  margin: 5%;
}


/*Advertising under hero picture*/

.advert{
	margin: 0%;
	padding: 0%;
	position: relative;
	width: 100%;
}

.groove {
	background-image: linear-gradient(lightgreen, mediumseagreen);
	border: 0.063em solid #007a5e;
    border-radius: 0.125em;
	height: 10vh;
	line-height: 10vh;
 	max-width: 100vw;
	text-align: center;
  	font-size: 200%;
	position: relative;
	left: 0%;
}

/* This is the style for Google Maps*/
/* Style google map */

.map {
    display: flex;
    margin: 0 auto; /*this will cause the div to be centered*/
    justify-content: center;
    align-items: center;
    border: 1px solid black;  /* Visible border */
    height: 35vh;  /* Viewport-based height */
    width: 98%;  /* Full width of the container */
    max-width: 800px;  /* Optional: Set a max-width if needed */
    left: 2px;
}


.map iframe {
    height: 100%;   /* Full height of the container */
    width: 100%;    /* Full width of the container */
    border: 0;      /* No border on iframe */
    transform: translateZ(0);  /* Force hardware acceleration */
}


.size {
font-size: large;
}


/* This is the grid that contanins 2 logos: AAT/text (combined div) & IFA */

 .logosgrid {
  display: grid;
  grid-template-rows: 30% 30% auto;
  width: auto;
  height: 40vh;
  margin-bottom: 1px;
  
  }
  
.aatlogo {
   display: grid;
   flex-direction: row;
   grid-row: 1 / 3;
   background-color: white;
   position: relative;
   left: 18%;
   
}


.aattext {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 190px;
    flex-wrap: wrap;
    font-size: 12px;
    grid-row: 2 / 3;
    position: relative;
    right: 90px;
    top: -50px; /*more neg. the amount then closer to AAT logo*/
 
}
 

.ifalogo {
   display: grid;
   grid-row: 3 / 3;
   background-color: white;
   position: relative;
   bottom: 25%;
   left: -60%;
   
}



.positivessl {
   background-color: white;
   background-size: 100%;
   background-repeat: no-repeat;
   position: relative;
   bottom: 40%;
   left: -1%;
}


 
a {
color: #007a5e;
}  



#footer {
    clear: both;
    position: relative;
    z-index: 10;
    height: 48px;
    margin-top: -48px;
}


  


  
   
   
   
   
