@import "./footer.css";
@import "./subscribe.css";
@import "./pagination.css";

/* reset code */
body,
div,
h1,
h2,
h3,
p,
ul,
li,
img,
form {
  margin: 0;
  padding: 0;
  border: 0;
}


/*----------------------*/
/*Layout*/
/*----------------------*/
body {

  font-family: Oswald, Helvetica, sans-serif;
  font-weight: 700;
  background-color: rgb(253, 252, 252);
}

h1 {
  font-size: 1.8em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.1em;
}

p {
  font-family: Open Sans !important;
  font-size: 15px;
  font-style: normal;
  font-variant: normal;
  font-weight: 300;
  line-height: 24px;
  text-transform: initial;
}


.container {
  display: grid;
  width: 80vw;
  height: 100vh;
  margin: auto;
  grid-template-columns: 1fr;
  grid-template-rows: 330px 60px 1fr 150px 200px 200px;
  grid-template-areas:
    "hd"
    "nav"
    "main"
    "pg"
    "sub"
    "ft";
}

/*--------------*/
/*Header*/
/*--------------*/


.header {
  grid-area: hd;
  background-image: url(http://pngimg.com/uploads/cappuccino/cappuccino_PNG61.png);
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 400px;
}

.top-flexbox {
  display: flex;
  flex-direction: row;
  margin: 20px 0 0 0;
}

.title {
  width: 70%;
  text-transform: uppercase;
  color: #111;
  font-size: 1.2em;
}

.subtitle {
  width: 30%;
  text-align: right;
}

/*--------------------*/
/*Navigation*/
/*--------------------*/


.nav {
  grid-area: nav;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  text-align: center;
  text-transform: uppercase;
  font-size: 1em;
  background-color: #eeebe1;
  padding: 0.6em 0 0 0;
}

ul li {
  list-style-type: none;
  display: inline-block;
}


/*----------------------*/
/*Main Content*/
/*-----------------------*/


.main-area {
  grid-area: main;
  background-color: #f7f5f4;
}

.main-title {
  text-align: center;
  padding: 30px 0 0 0;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.card {
  min-width: 300px;
}

.card-content {
  padding-top: 0.6em;
}

img {
  max-height: 250px;
}

a img:hover {
  opacity: 0.7;
}


/*-----------------*/
/*Styling*/
/*-----------------*/

a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: Futura, Trebuchet MS, Arial, sans-serif;
  font-size: 0.9em;
  color: rgb(19, 18, 19);
  text-align: center;
  padding: 0 0.6em;
  letter-spacing: 3px;
}

a:hover {
  color: #c7a17a
}

/*------------------------------*/
/* larger screens*/
/*------------------------------*/

@media(min-width:600px) {

  .header {
    background-size: 500px;
  }

  .top-flexbox {
    display: flex;
    flex-direction: row;
  }

  .subtitle {
    width: 60%;
    text-align: right;
    padding: 0 5% 0 0;
    padding: 0;
  }

  .title {
    padding: 0 0 0 5%;
  }

  img {
    max-height: 350px;
  }

  .card-content {
    max-width: 300px;
    letter-spacing: 0.2em;
  }

  .subscribe {
    padding: 20px 0 0 0;
  }

  .form {
    padding: 15px 0 0 0;
  }

  input[type=text] {
    width: 30%;
  }

  a {
    font-size: 1em;
    padding: 0 30px;
    letter-spacing: 0.3em;
  }
}