/******************\
    home
\******************/
/******************\
    global
\******************/
/******************\
    File contents
    - mini
    - large
\******************/
header {
  width: 100%;
  min-width: 175px;
  margin: 0;
  background-color: #eefbf6;
  box-shadow: 0 0 8px rgba(11, 87, 103, 0.15);
  text-align: center;
  font-size: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: stretch;
}

.h-logo {
  transition: all 200ms cubic-bezier(0.42, 0, 0.58, 1);
  flex: 1 1 100%;
  width: 100%;
  margin: auto;
  position: relative;
  text-align: center;
  font-size: 1.7rem;
  height: 3rem;
  line-height: 3rem;
  color: #355152;
  background-color: rgba(238, 251, 246, 0.8);
  box-sizing: border-box;
}

.h-logo:hover {
  background-color: white;
  color: #0a6757;
}

@media (min-width: 750px) {
  .h-logo {
    flex-basis: 25%;
    max-width: 400px;
  }
}

.h-link {
  flex: 1 1 auto;
  font-size: 1.5rem;
  line-height: 2.7rem;
  height: 2.7rem;
  margin: 0.3rem 0 0 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.h-link::before {
  background-color: rgba(238, 251, 246, 0.8);
  content: "";
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  height: 2.7rem;
  width: 100%;
  z-index: -1;
}

.h-link::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: -0.3rem;
  left: 0;
  height: 0.3rem;
  width: 100%;
  transition: all 200ms ease;
  z-index: -2;
}

.h-link:hover::after {
  height: 3rem;
}

a#work {
  color: #0a6757;
}

a#work::after {
  background-color: #a4d5c6;
}

a#teach {
  color: #a25a5c;
}

a#teach::after {
  background-color: #c68385;
}

a#play {
  color: #b06e3b;
}

a#play::after {
  background-color: #f2af7a;
}

/******************\
    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
\******************/
@font-face {
  font-family: "Banda";
  font-weight: normal;
  font-style: normal;
  src: url("webfonts/2635B0_0_0.eot");
  src: url("webfonts/2635B0_0_0.eot?#iefix") format("embedded-opentype"), url("webfonts/2635B0_0_0.woff") format("woff"), url("webfonts/2635B0_0_0.ttf") format("truetype");
}

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: #9b5d03;
  text-decoration: none;
  transition: all 50ms cubic-bezier(0.42, 0, 0.58, 1);
}

a:hover {
  color: #855001;
  text-decoration: underline;
  text-decoration-color: #f2af7a;
}

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

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

/* intro */
.intro-content {
  width: 90%;
  max-width: 900px;
  padding: 40px 0;
  font-size: 22px;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

/******************\
    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: center;
  }

  .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;
  }
  .p-company {
    margin-bottom: .5em;
  }
}