@import '../pages/global.css';
@import 'header.css';

/******************\
    home
\******************/
/******************\
    global
\******************/
/* @import url(header.css); */
@import url(fonts.css);


/******************\
    footer
\******************/
footer {
  text-align: center;
  border-top: 1px solid #fff;
  padding: 20px 0;
  font-size: 0.85rem;
  width: 100%;
  background-color: rgba(126, 190, 173, 0.15);
}

/******************\
    global
\******************/
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body, #gradient-wrapper {
  margin: 0px;
  padding: 0px;
}

body {
  background-color: #def7ed;
  color: #355152;
  font-family: 'Banda', arial, sans-serif;
  font-weight: normal;
  font-style: normal;
}

a {
  color: #56a904;
  text-decoration: none;
  transition: all 50ms cubic-bezier(0.42, 0, 0.58, 1);
}

a:hover {
  color: #0a6757;
}

.clear {
  height: 0px;
  margin: 0;
  clear: both;
}

body.home {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  min-height: 100vh;
}

/* intro */
.intro {
  flex: 1 1 auto;
  align-self: center;
  text-align: center;
  width: 90%;
  max-width: 900px;
  padding: 20px 0;
  margin: 0 auto;
  transition: opacity 500ms;
  display: flex;
  flex-direction: column;
  justify-content: center;

}
.intro .pic img {
  margin: auto;
  width: 200px;
}
.intro h1{
}
.intro h2, .intro h3 {
  font-weight: 500;
}
.intro h2 {
  margin: 0;
  font-size: 1.25em;
  line-height: 150%;
  text-align: left;
}
.intro h3 {
  margin: 0.5rem 0;
}
.intro h3 a {
  margin: 0 0.5rem;
}

/******************\
    portfolio
\******************/
.content {
  flex: 1 1 auto;
}

.portfolio {
  padding: 0em 4em 6em 4em;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}

.p-link {
  display: flex;
  flex: 1 1 calc(50% - 2em);
  max-height: 25em;
  max-width: 40em;
  min-width: 30em;
  margin: .5em;
  align-items: center;
  box-shadow: 1px 0 6px 0px rgba(11, 87, 103, 0.15);
  transition: all 0.2s ease;
  background-color: #eefbf6;
  border-radius: .75em;
  overflow: hidden;
}

.p-link:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.p-img {
  flex: 0 2 auto;
  max-width: 18em;
  margin: .5em;

  align-self: center;

}

.p-img img {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 3px 0px rgba(11, 87, 103, 0.15);
  border-radius: .5em;
  vertical-align: middle;
  object-fit: cover;
  background-color: #a4d5c6;
}

.p-title {
  flex: 1 1 18em;
  color: #0a6757;
  font-size: 1.5em;
  margin: 1em 1em 1em .5em;
  font-weight: 600;

}

.p-title:hover {
  text-decoration: none;
}

.p-company {
  display: block;
  color: #137d6b;
  margin-top: .5em;
  font-size: .75em;
}

@media screen and (max-width: 32rem) {
  .portfolio {
    padding: 0 1em;
  }

  .p-link {
    flex-direction: column;
    min-width: 70vw;
    align-items: stretch;
  }

  .p-img {
    flex: 1 1 auto;
    margin: 1em;
    min-height: 0;
  }

  .p-title {
    flex-basis: auto;
    font-size: 1.25em;
    margin: 0 1em 1em 1em;
    text-align: center;
  }
  .p-company {
    margin-bottom: .5em;
  }
}