/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/*@media (max-width: 800px) {*/
/*  aside {*/
/*    display: none;*/
/*  }  */
/*  .container {*/
/*    display: grid;*/
/*    grid-gap: 10px;*/
/*    grid-template:*/
/*      "header"*/
/*      "main"*/
/*      "footer";*/
/*  }*/
/*}*/

/*@media only screen and (max-width: 620px) {*/
  /* For mobile phones: */
/*  .container {*/
/*    display: grid;*/
/*    grid-gap: 10px;*/
/*    grid-template:*/
/*      "header"*/
/*      "main"*/
/*      "footer";*/
/*  }*/
/*}*/

@font-face {
  font-family: 'MyCustomFont';
  src: url('pirkkala.ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'bodyFont';
  src: url('F25_Bank_Printer.ttf');
  font-weight: normal;
  font-style: normal;
}


h1 {
  font-family: 'MyCustomFont', serif;
  font-size: 60px;
}

h3, h2 {
  font-family: 'MyCustomFont', serif;
  font-size: 25px;
}

p {
  font-family: 'bodyFont', serif;
  font-size: 14px;
}

body {
  background-color: #F2BC8F;
  color: black;
  font-family: Verdana;
  background-image: url('images/honses.png');
}

.container {
  box-sizing: border-box;
  display: grid;
  grid-gap: 10px;
  grid-template:
    "header header"
    "sidebar main"
    "footer footer"
    / 1fr 3fr;
}

.container div {
  background-color: #F2BC8F;
  border: 3px solid white;
  margin: 10px;
  padding: 20px;
  font-size: 16px;
}

header { grid-area: header; }
aside { grid-area: sidebar; }
main { grid-area: main; }
footer { grid-area: footer; }

.blogcont {
  /*background-image: url('../images/badhorses.jpg');*/
  background-color: #F2BC8F;
  display: grid;
  grid-gap: 10px;
  grid-template:
    "header header"
    "sidebar main"
    "footer footer"
    / 1fr 3fr
}

.blogcont div {
  background-color: #F2BC8F;
  border: 3px solid white;
  margin: 10px;
  padding: 20px;
  font-size: 16px;
}

header { grid-area: header; }
aside { grid-area: sidebar; }
main { grid-area: main; }
footer { grid-area: footer; }

.box {
  display: flex;
  width: 80%;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
  border: 3px solid white;
  background-color: #F2BC8F;
}

.box2 {
  display: flex;
  width: 70%;
  /*flex-direction: column;*/
  justify-content: center;
  align-items: center;
  margin: 10px;
  border: 0px solid white;
  background-color: #F2BC8F;
}

.box3 {
  display: flex;
  width: 80%;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
  border: 3px solid white;
  background-color: #F2BC8F;
  
  background-image: url("../images/tophorse.jpg");
  background-size: cover;      /* Makes the image cover the entire box */
  background-position: bottom; /* Centers the image */
  background-repeat: no-repeat;
}

.box4 {
  display: flex;
  width: 80%;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
  border: 3px solid white;
  background-color: #F2BC8F;
  
  background-image: url("../images/fourhourses.jpg");
  background-size: cover;      /* Makes the image cover the entire box */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat;
}

.box5 {
  display: flex;
  width: 80%;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
  border: 3px solid white;
  background-color: #F2BC8F;
  
  background-image: url("../images/threehorses.jpg");
  background-size: cover;      /* Makes the image cover the entire box */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat;
}

.box6 {
  display: flex;
  width: 80%;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
  border: 3px solid white;
  background-color: #F2BC8F;
  
  background-image: url("../images/whitehorse.jpg");
  background-size: cover;      /* Makes the image cover the entire box */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat;
}

.box7 {
  display: flex;
  width: 80%;
  flex-direction: column;
  justify-content: center;
  margin: 10px;
  border: 3px solid white;
  background-color: #F2BC8F;
  
  background-image: url("../images/onehorse.jpg");
  background-size: cover;      /* Makes the image cover the entire box */
  background-position: center; /* Centers the image */
  background-repeat: no-repeat;
}

@media only screen and (max-width: 620px) {
  /*aside {*/
  /*  display: none;*/
  /*}*/
  
  .container {
    display: grid;
    grid-gap: 10px;
    grid-template-areas:
      "header"
      "sidebar"
      "main"
      "footer";
    
    grid-template-columns: 1fr;
    box-sizing: border-box;
  }
  
  .blogcont {
    display: grid;
    grid-gap: 10px;
    grid-template-areas:
      "header"
      "sidebar"
      "main"
      "footer";
    
    grid-template-columns: 1fr;
  }
}
