@import url('https://fonts.googleapis.com/css?family=Work+Sans:100,200,300,400,700');

* {
  margin: 0;
}
html, body {
  height: 100%;
  background-color: #f4f9ff;
}
body * {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
  text-align: center;
  color: #303030;
}
header {
  max-height: 630px;
  position: relative;
}
header .ui.middle.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 9;
}
header h1 {
  font-size: 48px;
  padding-top: 30px;
  padding-bottom: 10px;
  color: white;
}
header h2 {
  font-size: 20px;
  padding-bottom: 40px;
  margin-top: 0;
  opacity: .5;
  color: white;
}
.header-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #17171F;
  opacity: .8;
  z-index: 8;
}
/* Cards */
.grid-cards {
  margin: 15px 0;
}
.grid-cards .card-item {
  float: left;
  width: 33%;
  position: relative;
  z-index: 900;
  padding-bottom: 20px;
}
.grid-cards .card-item .duration {
  display: none;
  position: absolute;
  background: rgba(23, 23, 23, 0.5);
  padding: 3px 5px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  color: white;
  bottom: 20px;
  left: 15px;
}
.grid-cards .card-item .video {
  position: relative;
}
.grid-cards .card-item .content {
  margin: 15px;
  background: white;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.10);
  border-radius: 5px;
  overflow: hidden;
}
.grid-cards .card-item .content video {
  width: 100%;
}
.grid-cards .card-item .image {
  position: relative;
  margin-top: -5px;
}
.grid-cards .card-item .headline {
  font-size: 18px;
  padding: 10px 20px 15px;
  line-height: 1.4;
  text-align: left;
}
footer {
  padding: 20px 0;
}

/* Statics */
.statics .ui.text.container,
.statics .ui.text.container p,
.statics .ui.text.container span,
.statics .ui.text.container li {
  font-size: 14px;
  text-align: left;
  font-weight: 300;
  line-height: 1.5;
}
.statics header {
  background: #17171F;
  margin-bottom: 40px;
  padding: 40px 20px 30px;
}
.statics header h1 {
  padding-top: 0;
}
.statics footer {
  background: #17171F;
  margin-top: 40px;
  color: white;
  font-size: 13px;
}
.statics footer * {
  color: white;
}

/* Modal */
.ui.fullscreen.modal {
  background: black;
}
.fullscreen.video.modal video {
  width: 100%;
  margin-bottom: -5px;
}
.fullscreen.video.modal .header-text {
  position: absolute;
  z-index: 900;
  left: 0;
  top: 0;
  right: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  font-size: 24px;
  color: white;
  padding: 30px;
  text-align: left;
  border-radius: 0;
}
.ui.fullscreen.modal > .close {
  position: absolute;
  right: 25px;
  top: 25px;
  z-index: 9800;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  opacity: 1;
  transition: all 0.1s ease-in-out;
}
.ui.fullscreen.modal > .close:hover {
  transform: scale(1.3);
}
/* Animations */
@-webkit-keyframes Floatingx {
  from { -webkit-transform:translate(0, 0px); }
  35% { -webkit-transform:translate(0, 15px); }
  to { -webkit-transform: translate(0, 0px); }    
}
    
@-moz-keyframes Floating {
  from { -moz-transform:translate(0, 0px); }
  35% { -moz-transform:translate(0, 15px); }
  to { -moz-transform: translate(0, 0px); }    
}
.floating {
  -webkit-animation-name: Floatingx;
  -webkit-animation-duration: 3s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
  -moz-animation-name: Floating;
  -moz-animation-duration: 3s;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: ease-in-out;
}
/* Portrait phones and smaller */
@media (max-width: 768px) {
  .grid-cards .card-item {
    float: left;
    width: 50%;
    position: relative;
    z-index: 900;
    padding-bottom: 20px;
  }
}
@media (max-width: 408px) {
  .grid-cards .card-item {
    float: none;
    width: 100%;
    position: relative;
    z-index: 900;
    padding-bottom: 20px;
  }
}