:root{
  --palette-one: 50, 55, 59 ;
  --palette-two: 255, 191, 0 ;
  --palette-three: 207, 92, 54 ;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

body{
  /* background-color: black; */
}

/* Navigation CSS */


header {
  background-color: rgb(var(--palette-one));
  display: flex;
  align-items: center;
  padding: 5px 0;
}

header h1 {
  background-color: rgb(var(--palette-two));
  width: 300px;
  display: flex;
  justify-content: flex-end;
  padding-right: 1%;
  color: rgb(var(--palette-one));
  font-size: 20px;
}

nav {
  width: 70%;
  display: flex;
  justify-content: space-evenly;
}

nav a {
  cursor: pointer;
  color: rgb(var(--palette-two));
}

/* Hero Banner */

.hero-banner {
  background-image: url(../images/02-hero-bg.jpg);
  background-size: cover;
  background-blend-mode: color-burn;
  background-color: rgba(var(--palette-three), 0.8);
  height: 180px;
}

.hero-banner div {
  background-color: rgb(var(--palette-two));
  position: absolute;
  right: 50px;
  top: 155px;
  padding: 5px;
}

.hero-banner div h2 {
  color: rgb(var(--palette-one));
}

/* MAIN/Footer */

.page-section {
  align-self: center;
  margin-top: 25px;
  display: flex;
  flex-direction: row;
  color: rgb(var(--palette-one));
}

.page-section h2 {
  width: 15%;
  font-size: 35px;
  display: flex;
  justify-content: right;
  text-align: right;
  border-right: solid;
  padding-right: 20px;
  min-width: 150px;
}

.page-section div {
  width: 75%;
  padding-left: 3%;  
}

/* WORK */
.work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  grid-template-areas: "first first"
    "first first"
    "second third"
    "fourth fifth";
  grid-gap: 10px;
}

.work section {
  display: grid;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
  border: solid 5px rgb(var(--palette-two));
  background-color: rgba(var(--palette-one), 0.6);
  background-blend-mode: overlay;

  min-width: 15rem;
  min-height: 15rem;
}

.work section:hover {
  background-blend-mode: normal;
}

#first-work {
  grid-area: first;
  background-image: url(../images/Horiseon.png);
}

#first-work a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-decoration: none;
  /* No underlines on the link */
  z-index: 10;
  /* Places the link above everything else in the div */
  background-color: #FFF;
  /* Fix to make div clickable in IE */
  opacity: 0;
  /* Fix to make div clickable in IE */
  filter: alpha(opacity=1);
  /* Fix to make div clickable in IE */
}
 
#second-work {
  grid-area: second;
  background-image: url(../images/02-portfolio-2.jpg);
}

#third-work {
  grid-area: third;
  background-image: url(../images/02-portfolio-3.jpg);
}

#forth-work {
  grid-area: fourth;
  background-image: url(../images/02-portfolio-4.jpg);
}

#fifth-work {
  grid-area: fifth;
  background-image: url(../images/02-run-buddy.jpg);
}

.work section div {
  background-color: rgb(var(--palette-two));
  padding: 5px;
  min-width: 70px;
  width: 180px;
  height: 61px;
  position: absolute;
  bottom: 20px;
  color: rgb(var(--palette-one));
}

/* Footer */

.contact div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  height: 100px;
}

.contact div a,
.contact div p {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: rgb(var(--palette-one));
}

@media screen and (max-width: 768px) {


  .page-section {
    flex-direction: column;
    padding-right: 0px;
    padding: 3px;
  }

  .page-section h2 {
    color: rgb(var(--palette-one));
    background-color: rgb(var(--palette-two));
    width: 100%;
    font-size: 35px;
    display: flex;
    justify-content: center;
    border-right: none;
    border-bottom: solid;
    padding-right: none;
    min-width: 150px;

  }

  .page-section div {
    width: 100%;
    margin-top: 10px;
    padding-left: 0;
  }

}

@media screen and (max-width: 480px) {

  nav {
    display: none;
  }

  .work {
    display: flex;
    flex-direction: column;
  }
}