/* @ rules */
@font-face {
  font-family: 'montserrat-bold';
  src: url('/static/fonts/montserrat-bold-webfont.woff2') format('woff2'), url('/static/fonts/montserrat-bold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'montserrat-regular';
  src: url('/static/fonts/montserrat-regular-webfont.woff2') format('woff2'), url('/static/fonts/montserrat-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'montserrat-semibold';
  src: url('/static/fonts/montserrat-semibold-webfont.woff2') format('woff2'), url('/static/fonts/montserrat-semibold-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* globals */
* {
  font-family: "montserrat-regular", Arial, "Helvetica Neue", Helvetica, sans-serif;
  box-sizing: border-box;
}

body, html {
  background: #242631;
  color: #eaebf5;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: #6db6ff;
}

a:hover {
  color: #93c9ff
}

h1, h2, h3, h4, h5, h6 {
  font-family: "montserrat-semibold", Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1;
  background-image: -webkit-gradient(linear, left top, right top, color-stop(0, #e84c54), color-stop(0.5, #ea6a51));
  background-image: gradient(linear, left top, right top, color-stop(0, #ff2222), color-stop(0.15, #ff22ff), color-stop(0.3, #2222ff), color-stop(0.45, #22ffff), color-stop(0.6, #22ff22), color-stop(0.75, #22ff22), color-stop(0.9, #ffff22), color-stop(1, #ff2222));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0;
}

nav {
  max-width: 800px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-end;
  flex-wrap: wrap;
  position: absolute;
  right: 0;
}

nav a {
  font-size: 12px;
  color: #eaebf5;
  padding: 1em;
  display: block;
  white-space: nowrap;
  cursor: pointer;
}

nav a:hover {
  color: #fff;
}

.content {
  max-width: 750px;
  margin: auto;
  padding: 25px;
  position: relative;
}

.content.wide {
  max-width: 100%;
}

.half {
  max-width: 50%;
}

/* hero */
.hero {
  background: url("/static/img/hero_bg.jpg") top center no-repeat #242631;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  padding-top: 100px;
  padding-bottom: 10px;
}

.hero .date {
  color: #eaebf5;
  font-size: 16px;
  display: inline-block;
  padding: 22px 20px;
  background: #3a3b45;
  margin-left: -30px;
}

.hero h1 {
  font-size: 5.5em;
  margin-top: -.3em;
  margin-bottom: 0px;
  position: relative;
  z-index: 9;
}

.hero .cta {
  position: relative;
}

.hero .cta span {
  position: absolute;
  width: 100%;
  text-align: center;
  top: -20px;
  color: #fff;
}

@media all and (max-width: 830px) {
  .hero h1 {
    font-size: 3.5em;
    margin-top: 0;
  }

  .hero .date {
    padding: 8px;
    margin-left: 0;
    font-size: .9em;
  }
}

/* bristol */
.bristol .lefttextbox {
  color: #eaebf5;
  padding: 2em;
  background: #1d1f2a;
  position: relative;
  z-index: 9;
  max-width: 55%;
}

.bristol .rightimage {
  width: 49%;
  max-width: 600px;
  position: absolute;
  top: 0;
  right: 1em;
  display: block;
  box-shadow: #181921 -15px -15px;
}

@media all and (max-width: 830px) {
  .bristol .lefttextbox {
    max-width: initial;
    margin: 0;
    padding: 1em;
  }

  .bristol .rightimage {
    width: 80%;
    max-width: initial;
    position: initial;
    margin: auto;
    margin-top: 2em;
  }
}

/* updates */
.updates {
  background: #1d1f2a;
  padding: 2em;
}

.updates .flex {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  align-items: center;
}

.updates h4 {
  font-size: 3.5em;
  margin-left: 2em;
  text-transform: uppercase;
}

.updates h6 {
  font-size: 1.3em;
  margin: 0;
  margin-top: 1em;
}

.updates .list {
  flex-grow: 2;
  max-width: 35em;
}

.updates .list div {
  border: 2px solid #3d404c;
  margin: .5em;
  padding: 1em;
  cursor: pointer;
  cursor: hand;
}

.updates .list div p {
  color: #d6d8e7;
}

.updates .list div p .readmore {
  color: #e85353;
  margin-left: 10px;
}

@media all and (max-width: 830px) {
  .updates .flex {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .updates h4 {
    margin-left: 0;
    margin-bottom: .5em;
    font-size: 2.5em;
    text-align: center;
    width: 100%;
  }

  .updates .list {
    max-width: none;
  }
}

/* sponsors & speakers */
.sponsors h3, .speakers h3 {
  text-align: center;
  font-size: 2.5em;
  text-transform: uppercase;
}

.sponsors .flex, .speakers .flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.sponsors .flex div, .speakers .flex div {
  margin: 1em;
}

/* sponsors */
.sponsors .contact {
  margin-top: 1em;
  font-weight: bold;
  text-align: center;
}

/* speakers */
.speakers .flex {
  justify-content: space-between;
}

.speakers .flex div {
  width: 21%;
  margin-top: 2em;
}

.speakers .flex div img {
  position: relative;
  box-shadow: #181921 -15px -15px;
  width: 100%;
}

.speakers .flex div h6 {
  margin: 10px 0px 5px 0px;
  color: #fff;
  font-size: 1.5em;
}

@media all and (max-width: 830px) {
  .speakers .flex div {
    width: 40%;
  }
}

@media all and (max-width: 650px) {
  .speakers .flex div {
    width: 100%;
  }
}

/* page */
.page {
  padding-top: 100px;
  padding-bottom: 10px;
}

.page h1 {
  margin-bottom: .5em;
}

.page .box {
  color: #b1b1b1;
  padding: 2em;
  background: #1d1f2a;
  position: relative;
  z-index: 9;
}

.page .box h1, .page .box h2, .page .box h3, .page .box h4, .page .box h5, .page .box h6 {
  color: #ccc;
}

/* footer */
footer {
  background: #1d1f2a;
  padding: 70px 0px;
}

footer .content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

footer h6 {
  color: #fff;
  font-size: 2em;
}

footer a {
  font-family: "montserrat-semibold", Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #e34d53;
  font-size: 2em;
}

/* modals */
.modal {
  display: none;
}

.modal.show {
  display: flex;
  position: fixed;
  top: -25vh;
  right: -25vw;
  width: 150vw;
  height: 150vh;
  z-index: 10000;
  overflow-y: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 50vh 30vw;
  transition: transform .3s ease, background .1s .1s;
  transform: scale(0);
  background: none;
}

.modal.show.zoom {
  background: rgba(0, 0, 0, .9);
  transform: scale(1);
}

.modal.show, .modal.show div {
  max-width: none !important;
  margin: 0 !important;
}

.modal.show h2, .modal.show div.img {
  color: #fff;
  width: 100%;
}

.modal.show .close {
  font-size: 3em;
  line-height: .5;
  cursor: pointer;
  width: 0;
  text-align: right;
}

.modal.show .close:hover {
  color: #fff;
}

.modal.show .close+img {
  max-width: 20%;
  box-shadow: none !important;
  margin: 0;
}

.modal.show img+div.description {
  width: 80%;
  padding-left: 2em;
}

.modal-button {
  cursor: pointer;
}

@media all and (max-width: 650px) {
  .modal.show img+div.description {
    width: 100%;
    padding-left: 0;
  }
}
