/* Font Definitions */
@font-face {
  font-family: "Amatic";
  src: url("AmaticSC-Bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "novecento-bold";
  src: url("novecento-bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}


/* Base Styles */
body, p, a { font-size: 1.05rem !important; }  
html {background-color: #000;}
body {
  font-family: monospace;
  font-weight: 500;
  font-size: 1em;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  text-align: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Typography */
#nav a,
h3,
h2,
.card {
  font-family: "novecento-bold";
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover,
#nav li a:hover,
#closebtn:hover {
  color: orange;
}

/* Layout */
header,
#content {
  max-width: 700px;
  margin: 0 auto;
  padding: 12px 0;
}

header h2 {
  font-size: 10px;
  width: 400px;
  height: 71px;
  background: url(logo.png) center center no-repeat;
  background-size: 50%;
  text-indent: -10000em;
  margin: 0 auto;
}

#nav {
  position: absolute;
  top: 20px;
  right: 20px;
  text-align: right;
  padding: 5px;
  z-index: 999;
  border-radius: 5px;
}

#menuicon {
  font-size:40px;
  color: #fff;
  background: transparent;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  line-height: 50px;
}
#nav.hide #menuicon {
    background:transparent;
}
#menuicon:hover, #navigation {
    background-color: rgb(165, 2, 124);
}
#nav.hide {
  background-color: transparent;
}
#navigation {
  padding: 10px;
  border-radius: 5px;
}
#nav li {
  list-style: none;
  margin: 5px 0;
}

#nav.hide #navigation {
  display: none;
}


/* Articles */
article {
  width: 90%;
  font-size: 14px;
  text-align: left;
  padding: 0;
  margin: 10px auto;
}

article h2 {
  text-align: center;
}

article#work,
article#in-house,
article#showreel,
article#archive {
  text-align: center;
}

article video {
  display: block;
  margin: 0 auto;
}

article#home,
article#about {
  max-width: 500px;
  margin: 0 auto;
  padding-bottom:200px;
  background: url('BABYNIMBYLOGO.png') center bottom no-repeat;
}

/* Cards */
.card {
  display: inline-block;
  width: 200px;
  background-color: #fff;
  padding: 4px;
  border-radius: 5px;
  font-size: 10px;
  color: #000;
  transform: scale(0.9);
  transition: all 0.2s ease-in-out;
  margin: 0;
  font-size: 10px;
}

.card:hover {
  transform: scale(1);
}

/* Slideshow */
#slider {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  margin: 2em auto;
  background-color: #eee;
  border-radius: 5px;
  padding: 5px;
}

.slides {
  display: none;
  animation-name: fade;
  animation-duration: 1.5s;
}

.slides img {
  width: 300px;
  height: auto;
  display: block;
}

@keyframes fade {
  from {
    opacity: 0.1
  }

  to {
    opacity: 1
  }
}

/* Video Overlay */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1000;
}

#overlay.on {
  display: flex;
  align-items: center;
  justify-content: center;
}

#video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: auto;
}

#closebtn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

#closebtn:hover {
  color: orange;
}

#bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

/* Buttons */
button {
  background-color: transparent;
  font-family: "novecento-bold";
  color: #6f25a1;
  font-size: 1em;
  border: none;
  outline: none;
  cursor: pointer;
}

/* Special Elements */
.desk {
  background: url(lightbox-desk_coloured_700.jpg) no-repeat;
  display: block;
  width: 700px;
  height: 476px;
  margin: 2em auto;
  background-size: 100%;
}

.vcard {
  font-family: "novecento-bold";
  background-color: #227230;
  top: 10px;
  left: 10px;
  padding: 10px;
  border-radius: 5px;
  margin: 1em auto;
  display: block;
  width: 200px;
}

.vcard ul, .vcard li {
  padding: 0;
  margin: 0;
  list-style: none;
}


@media only screen and (min-width: 500px) {
  body, article {
    width: 100%;
  } 
}


@media only screen and (max-width: 485px) {
  body, p, a { font-size: 0.8rem !important; }  
}
  .card {
    float: left;
    width: 150px;
  }
  h4.card a {
    font-family: monospace;
    font-size: 8px;
  }
  h4.card a img {
    max-width: 150px;
    height: auto;
  }
}