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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font: normal 16px/1.5 sans-serif;
  color: #333333;
  background-color: #fff;
}

h1 {
  margin: 1em 0 0.5em;
  font: normal 32px/1.5 'Open Sans', sans-serif;
  text-align: center;
  color: #2c3e50;
}


.container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  background-color: #efefef;
}

.app {
  position: relative;
  width: 100%;
}

.app video {
  width: 100%;
}

.app #error-message {
  display: none;
  width: 100%;
  padding: 200px 100px;
  font-size: 28px;
  text-align: center;
  color: #9b9b9b;
  background-color: #ccc;
}

.app .controls {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: none;
  width: 100%;
  height: 100%;
  padding: 30px;

  align-items: flex-end;
  justify-content: space-around;
}

.app .controls button {
  padding: 15px;
  line-height: 0;
  text-decoration: none;
  color: #fff;
  background-color: #111111;
  border-radius: 50%;
  opacity: 0.7;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.app .controls button:hover {
  opacity: 1;
}

.app .controls button:active {
  transform: translateY(1px);
  opacity: 0.9;
}

.app .controls a.disabled {
  background-color: #555555;
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.app .controls a.disabled:hover {
  opacity: 0.5;
}

.app .controls a i {
  font-size: 18px;
}

.app .controls #take-photo i {
  font-size: 32px;
}

.app canvas {
  display: none;
}

.list {
  overflow: auto;
  display: flex;
  height: 110px;
}

.list img {
  height: 100px;
}

.list figure {
  position: relative;
}

.list figure:hover figcaption {
  visibility: initial;
}

.list figcaption {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  visibility: hidden;
}

.list figcaption a {
  padding: 10px 0;
  opacity: 0.7;
  color: #fff;
  cursor: pointer;
}

.list figcaption a:hover {
  opacity: 1;
}

.app #error-message.visible {
  display: block;
}

.app .controls.visible {
  display: flex;
}



@media(max-width: 1000px) {
  .container {
    margin: 0 40px;
  }

  .app .controls a i {
    font-size: 16px;
  }

  .app .controls #take-photo i {
    font-size: 24px;
  }
}


@media(max-width: 600px) {
  .container {
    margin: 0 10px;
  }

  .app #error-message {
    padding: 80px 50px;
    font-size: 18px;
  }

  .app .controls a i {
    font-size: 12px;
  }

  .app .controls #take-photo i {
    font-size: 18px;
  }
}
