@import url('https://fonts.googleapis.com/css?family=Work+Sans:300,600');

:root {
  --background: rgba(0, 0, 0, .5);
  --mainback: #dfd8bf;
  --darkGrey:#1d1d1d;
  --midGrey:#aaa;
  --lightGrey: #ccc;
  --lightest: #fff;
  --veryLight: #e3e3e3;
  --hoverColour: #ff0000;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--mainback);
	font-family: 'Work Sans', sans-serif;
	font-weight: 300;
    width: 100%;
    height: 100%;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0px;
    font-weight: 300;
}

h3 {
    font-size: 1rem;
    font-weight: 300;
    margin: 0px;
    font-style: italic;
}

.content {
  top: 0;
  position: absolute;
  min-height: 100vh;     /*=== this forces the footer to the foot of the screen ===*/
  width: 100%;
  background-position: center top;
  background-repeat: no-repeat;
  background-image: url(../images/HERO-01.jpg);
  /*border-width: 0 0 2px 0 ; /* big top line, small bottom line, no left or right lines */
  /*border-color: var(--hoverColour);
  border-style: solid;*/
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "title"
        "pageContent"
        "footer";
  grid-template-rows: auto 1fr auto;  /*=== this forces the footer to the foot of the screen ===*/ 
  place-items: center;
  -webkit-animation: HEROani 60s ease-in-out infinite; /* 'rotate' HERO images*/
  -moz-animation: HEROani 60s ease-in-out infinite; /* 'rotate' HERO images*/
  animation: HEROani 60s ease-in-out infinite; /* 'rotate' HERO images*/

}

/* 'rotate' hero images */
@-webkit-keyframes HEROani{ 
    0%,100%{
        background-image: url(../images/HERO-01.jpg);
    }
    20%{
        background-image: url(../images/HERO-02.jpg);
    }
    40%{
        background-image: url(../images/HERO-03.jpg);
    }
    60%{
        background-image: url(../images/HERO-04.jpg);
    }
    80%{
        background-image: url(../images/HERO-05.jpg);
    }    
}

@-moz-keyframes HEROani{ 
    0%,100%{
        background-image: url(../images/HERO-01.jpg);
    }
    20%{
        background-image: url(../images/HERO-02.jpg);
    }
    40%{
        background-image: url(../images/HERO-03.jpg);
    }
    60%{
        background-image: url(../images/HERO-04.jpg);
    }
    80%{
        background-image: url(../images/HERO-05.jpg);
    }    
}

@keyframes HEROani{ 
    0%,100%{
        background-image: url(../images/HERO-01.jpg);
    }
    20%{
        background-image: url(../images/HERO-02.jpg);
    }
    40%{
        background-image: url(../images/HERO-03.jpg);
    }
    60%{
        background-image: url(../images/HERO-04.jpg);
    }
    80%{
        background-image: url(../images/HERO-05.jpg);
    }    
}

.logo {
    display: grid;
    grid-area: title;
    color: var(--lightest);
    text-transform: uppercase;
    text-shadow: 1px 1px rgba(0, 0, 0, .75);
    min-width: 100%;
    top: 0;
    padding-bottom: .5rem;
    place-items: center;
    background: var(--background);
}

.footer{
    display: grid;
    grid-area: footer;
    position: relative;
    color: var(--lightest);
    min-width: 100%;
    padding: .5rem;
    place-items: center;
    background: var(--background);
}

.icons{
    display: grid;
    grid-area: pageContent;
    grid-template-columns: repeat(5, 1fr);
    grid-template-areas: ". iconLEFT iconCENTRE iconRIGHT .";
    /*grid-template-rows: auto 1fr auto;  /*=== this forces the footer to the foot of the screen ===*/ 
    grid-gap: 2em;
    margin-top: 10rem;
  place-items: center;
}

.iconLeft{
    grid-area: iconLEFT;
    display: grid;
    background: var(--lightest);
    font-size: 2rem;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 25px 0 rgba(0,0,0, .25);
}

.iconCentre{
    grid-area: iconCENTRE;
    display: grid;
    background: var(--lightest);
    font-size: 2rem;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 25px 0 rgba(0,0,0, .25);
}

.iconRight{
    grid-area: iconRIGHT;
    display: grid;
    background: var(--lightest);
    font-size: 2rem;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 25px 0 rgba(0,0,0, .25);
}

/*=============================*/
/*===      MEDIA CALLS      ===*/
/*=============================*/
@media screen and (max-width: 810px) { /*=== tablets ===*/
  .icons{
      display: grid;
      grid-area: pageContent;
      grid-template-columns: repeat(2, 1fr);
      grid-template-areas: "iconLEFT iconCENTRE"
        "iconRIGHT iconRIGHT";

      grid-gap: 2em;
      margin-top: 10rem;
      place-items: center;
    }
    
}

@media screen and (max-width: 500px) { /*=== phones ===*/
  .icons{
      display: grid;
      grid-area: pageContent;
      grid-template-columns: 1fr;
      grid-template-areas: "iconLEFT" 
          "iconCENTRE"
          "iconRIGHT";
      grid-gap: 2em;
      margin-top: 13rem;
      margin-bottom: 3rem;
      place-items: center;
    }
    
}