  @font-face {
    font-family: 'chill';
    src:url("../fonts/PoynterOSDisplay-Semibold.otf");
  }
  @font-face {
    font-family: 'chillb';
    src:url("../fonts/AktivGroteskCorp-Medium.ttf");
  }
  @font-face {
    font-family: 'chilla';
    src:url("../fonts/AktivGroteskCorp-Regular.ttf");
  }

  *{
    box-sizing: border-box;
  }
  body, html {
    margin:0;
  }

  .clickable {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

  a,a:hover,a:visited,a:active {
    color:black;
    text-decoration: none;
    color: #0857F5;
  }

  body {
    /*background:#F5F5F5;*/
    /* background:rgb(244, 204, 204); */
    background-color: #eeb94d;
    opacity: 0;
    font-family:'chilla';
    transition: 700ms linear background-color;
    -webkit-transition: 700ms linear background-color;

  }
  .piece {
    font-family:'chillb';
    position: absolute;
    color:black !important;

  }
  .line {
    height: 2px;
    width: 83px;
    margin-bottom: 0.3em;
    background-color: #0857F5;
    display: inline-block;
    margin-left: 20px;
  }

  .topper {
    padding: 12px;
    /* color: #0857F5; */
    color:black;
    font-size: 1.2em;
    position: relative;
    text-align: center;
    margin-bottom: 32px;

  }

  .main-logo {
    display:inline-block;
    padding:0px 8px;
    max-width: 180px;
    margin-right: auto;
    margin-left: auto;
    text-align: left;
    white-space: nowrap;
        letter-spacing: 1px;
  }
  .mobile-menu {
    display: none;
  }
  .mobile .mobile-menu {

    position: fixed;
    display:block;
    left:0;
    top:0;
    z-index: 200;

  }
  .mobile-logo {
    font-family: 'chillb';
    letter-spacing: 2px;
    font-size: 0.8em;
    cursor: pointer;
    padding: 30px 14px;
    z-index: 100;
  }
  .section-title {
    display: block;
        letter-spacing: 1px;
/*    -ms-transform: rotate(270deg);
  -webkit-transform: rotate(270deg);
  transform: rotate(270deg);*/
}
.section {
  padding: 0px 20px;
  font-family:'chilla';
  /*color: #134183;*/
  /* color: #0857F5; */
  color:black;
  position: relative;

}

.sidebar .section {
    padding: 0px 0px 0px 20px
}
.content {
  position: relative;
}
.card-wrap {
  float: left;
  width: 300px;
  margin: 8px 0;
  display: block;

}

.card-wrap-3 {
  width:300px;
  margin: 8px 0;
  padding: 0 8px;
  letter-spacing: 1px;
font-size: 0.9em;
}
.card-wrap-3 .video {
  margin-bottom: 0 !important;
}

.menu-card {
  font-family:'chilla';
  color: #0857F5;
  margin-right: auto;
  margin-left: auto;
  width: 284px;
  padding: 16px;
  display: block;
  background: white;
  opacity: 0;
  border:none;

  box-shadow:2px 2px 3px rgba(0,0,0,0.2);
/*    -webkit-transition: opacity 500ms ease;
  -moz-transition: opacity 500ms ease;
  transition: opacity 500ms ease; */
  transition: all 400ms cubic-bezier(.165,.84,.44,1);
  transform: translate(24px, 0);
/*    -webkit-transform: translate(0, -8px);
transform: translate(0,-8px);*/
}
.menu-card img {
  width: 284px;
}


.done {
  -webkit-transform: translate(0, 0);
  transform: translate(0px,0px);
}

.main-card {
  background:white;

  border: 2px solid rgba(0,63,255,1);

}
.name {
  color: #0857F5;
}

.button, .content-button {
  cursor: pointer;
}

#top, #bottom, #left, #right {
  background:white;
  position: fixed;
  z-index: 100;
  display: none;
}
#left, #right {
  top: 0; bottom: 0;
  width: 15px;
}
#left { left: 0; border-right: 2px solid rgba(0,63,255,1);}
#right { right: 0; border-left: 2px solid rgba(0,63,255,1); }

#top, #bottom {
  left: 0; right: 0;
  height: 15px;
}
#top { right:13px;left:13px;top: 0; border-bottom: 2px solid rgba(0,63,255,1); }
#bottom { right:13px;left:13px;bottom: 0; border-top: 2px solid rgba(0,63,255,1);}

.content-loader {
  opacity: 0;
  -webkit-animation: spin 1s linear infinite;
  animation: spin 1s linear infinite;
  display: inline-block;
  color: #33CF63;

}
.projects-card {
  border: 2px solid #33CF63;

}

.projects-title {
  font-family: 'chill';
  font-size: 1.25em;
  /*color: #6333FF;*/
  color: #33CF63;
  /*border: 2px solid #33CF63;*/
}

.projects-text {
  font-size: 0.8em;
  padding-top: 8px;
  /*color: #6333FF;*/
  color: #33CF63;
}

.page-title {
  font-family: 'chill';
  font-size: 2em;
  padding: 25px;
}
.page-text {
  padding: 25px;
  padding-top: 0px;
}

@-webkit-keyframes spin {
  0%   {
    -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg);  /* IE 9 */
    transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg);  /* IE 9 */
    transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
  }
}
@keyframes spin {
  0%   {
    -webkit-transform: rotate(0deg);  /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg);  /* IE 9 */
    transform: rotate(0deg);  /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg);  /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg);  /* IE 9 */
    transform: rotate(360deg);  /* Firefox 16+, IE 10+, Opera */
  }
}

.deferred {
  /* opacity: 0; */
}


.inline {
  display: inline-block;
}
.grid-wrap {
  margin-left: 230px;
  padding-top: 58px;
}


.grid {
  width: 300px;
  margin-right: auto;
  margin-left: auto;
  /* border: 1px solid black; */
  margin-bottom: 50px;
}
.sidebar {
  display: inline-block;
  width: 230px;
  /*height: 100%;*/
  padding-left:20px;
  padding-top: 50px;
  position: absolute;
}

.image-card {
  padding: 0;
  box-shadow:none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

@media (min-width:830px) {
/*  #top, #bottom, #left, #right  {
    display: block;
    }*/
    .grid {
      width: 600px;
    }
    .grid .card-wrap:nth-child(3n+1) .menu-card {
      transform: translate(-24px, 0);
    }
    .card-wrap-3 {
      width: 600px;
    }

  }

  @media (min-width:1130px) {
    .grid {
      width: 900px;
    }
    .grid .card-wrap:nth-child(3n+1) .menu-card {
      transform: translate(-24px, 0);
    }

    .grid .card-wrap:nth-child(3n+2) .menu-card {
      transform: translate(0px, -20px);
    }
    .card-wrap-3 {
      width:900px;
    }

  }
  @media (min-width:1530px) {
    .grid {
      width: 1200px;
    }
    .grid .card-wrap:nth-child(3n+1) .menu-card {
      transform: translate(-24px, 0);
    }

    .grid .card-wrap:nth-child(3n+2) .menu-card {
      transform: translate(0px, -20px);
    }
    .card-wrap-3 {
      width: 900px;
    }


  }

  .normal {
    opacity: 1;
    -webkit-transform: translate(0, 0) !important;
    transform: translate(0, 0)  !important;
  }


  .sidebar img.icon {
    width: 15px;
    height: 15px;
    margin: 12px;
    margin-left: 0;
    display: block;

    -webkit-transition-property: all;
    -webkit-transition-duration: 0.5s;
    -webkit-transition-timing-function: cubic-bezier(0.4, 0.8, .2, 1.2);

    -moz-transition-property: all;
    -moz-transition-duration: 0.5s;
    -moz-transition-timing-function: cubic-bezier(0.4, 0.8, .2, 1.2);

    -ms-transition-property: all;
    -ms-transition-duration: 0.5s;
    -ms-transition-timing-function: cubic-bezier(0.4, 0.8, .2, 1.2);

    -o-transition-property: all;
    -o-transition-duration: 0.5s;
    -o-transition-timing-function: cubic-bezier(0.4, 0.8, .2, 1.2);

    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.4, 0.8, .2, 1.2);

  }
  .video {
    width: 960px;
    height: 540px;
    margin-right: auto;
    /* float: left; */
    margin-bottom: 20px;
    display: block;
    min-height: 200px;
    margin-left: auto;
  }
  .videos {
    padding:0 50px;
  }

  .menu-buttons {
    height:0;
    padding: 2px;
    padding-left: 20px;
    transition: all 250ms cubic-bezier(.165,.84,.44,1);
    overflow-y: hidden;
    font-size: 0.8em;
  }
  .open .menu-buttons {
    height:auto;
    transition: all 250ms cubic-bezier(.165,.84,.44,1);

  }
  .content-button {
   padding: 10px 0px 5px;
   letter-spacing: 0px;
 }
 .video-thumb {
  cursor: pointer;
  margin-bottom: 20px;
  position: relative;
}

.video-desc{
  margin-right: auto;
  margin-left: auto;
  width: 500px;
  max-width: 100%;
  text-align: center;
  position:absolute;
  top: 50px;
  color: black;
  text-shadow: 0;
}

.video-desc .video-name {
    background: rgba(30,30,30, 0.8);
    padding: 2px 2px 2px 4px;
    text-align: center;
    display: inline-block;
    letter-spacing: 2px;
    color:white;
    font-family: 'chillb';
    /*float: left;*/
}

.video-desc .video-subtitle {
    background: rgba(30,30,30, 0.8); //#f4cccc;
    padding: 2px 2px 2px 4px;
    text-align: center;
    display: inline-block;
    letter-spacing: 2px;
    color:white;
}

.mobile .video-subtitle {
    font-size: 0.6em;
}

.title {


  color: white;
  font-size: 15pt;
  letter-spacing: 1;
  line-height: 1.4;
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  vertical-align: middle;
  display: table-cell;
  z-index: 100;
  transform: translate(-50%, -90%);
  color: white;
  transform-origin: 50% 100%;
  /*text-shadow: 0 2px rgba(0,0,0,0.3);*/

  transition-property: all;
  transition-duration: 0.7s;
  transition-timing-function: ease-in-out;
}

.mobile .sidebar {
  display: none;
}
.mobile .grid-wrap {
  margin-left: 0;
}

.mobile .mobile-menu-full {
  position: fixed;
  top:0;
  bottom:0;
  right:0;
  left:0;
  background:rgb(244, 204, 204);
}

.mobile-section {
  /* color: white !important; */
  font-size: 1.2em;
  padding: 14px;
}

.mobile-menu-spacer {
  margin:0px 14px;
  height: 1px;
  border-bottom: 2px solid white;
}

.mobile .content-button {
  padding: 8px;
}


#personal-photo {
  /* border: 1px solid black; */
  height: 600px;
  width: 900px;
  margin:0 auto;
  margin-top:-58px;

}

#personal-photo .chocolat-close {
  display: none;
}

.default-block {
  padding: 0 40px;
  margin-bottom: 40px;
}


.default-block p {
  margin:0.75em 0;

}
.default-block h2 {
  margin-top:2em;
}
.default-block h2:first-child {
  margin-top:0;
}

.photosection-name {
    font-family: 'chillb';
    margin-top: 20px;
    border-bottom:1px solid black;
    display: inline-block;
}
