/* =========================
        openvisconf.com
========================== */

body {
  font: 16px 'Raleway', sans-serif;
  color: #4b4b4b;
  background: #FFF;
  margin: 0;
}

img {
  vertical-align: middle;
  max-width: 100%;
}

ul {
  list-style: none;
  padding: 0;
}

p {
  font-size: 1.2em;
  line-height: 1.5em;
  text-align: left;
}

h1 {
  font-size: 2.5em;
  font-weight: 500;
  letter-spacing: 4px;
  margin: 0;
}

h2 {
  font-weight: 100;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  margin: 0;
}

h2:before, h2:after {
  content: "";
  position: absolute;
  height: 2px;
  background: #4b4b4b;
  width: 30px;
  top: .6em;
}

h2:before {
  left: -38px;
}

h2:after {
  right: -38px;
}

a {
  color: #ff4b5c;
  text-decoration: none;
}

a:hover, .active a {
  color: #ff4b5c;
}

p a:hover {
  text-decoration: underline;
}

nav a, #header a.button {
  color: white;
}

nav a:hover,  #header a.button:hover {
  color: #ff4b5c;
}

textarea {
  resize: vertical;
}

::selection {
  background: #ff4b5c;
  color: #fff;
}

.block {
  max-width: 980px;
  margin: auto;
  text-align: center;
  padding: 6em 2em;
}

.button {
  border: 2px solid;
  padding: .8em 0;
  font-size: 1.4em;
  display: inline-block;
}

#header, #tagline, #location {
  border-bottom: 13px solid #ff4b5c;
}

.strike {
  position: relative;
}

.small {
  font-size: .8em;
}

.strike:after, .strike:before {
  content: '';
  position: absolute;
  height: 1px;
  width: 109%;
  background: #ff4b5c;
  left: -2px;
  top: .6em;
}

.strike:after {
  transform:rotate(14deg);
  -ms-transform:rotate(14deg); /* IE 9 */
  -webkit-transform:rotate(14deg); /* Opera, Chrome, and Safari */
}

.strike:before {
  transform:rotate(-14deg);
  -ms-transform:rotate(-14deg); /* IE 9 */
  -webkit-transform:rotate(-14deg); /* Opera, Chrome, and Safari */
}

.title {
  margin-bottom: 2em;
}

/* =========================
            Header
========================== */

#header {
  background-image: url(../img/header-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  color: #FFF;
}

#header .block {
  padding-top: 8em;
}

#header .actions .button {
  width: 33%;
}

#header .actions a:first-of-type {
  margin-right: 1em;
}

#header h1 {
  font-weight: 100;
  font-size: 2em;
  letter-spacing: 0;
  margin: 1em 0;
}


/* =========================
            Nav
========================== */

nav {
  position: fixed;
  width: 100%;
  background-color: rgba(0,0,0,.5);
  z-index: 1;
}

nav .block {
  padding: 0;
}

nav ul {
  display: inline-block;
  width: 100%;
 }

nav ul li {
  float: left;
  width: 18%;
}

/* Dropdown menu */

nav label {
  display: none;
  cursor: pointer;
  -webkit-user-select: none;
}

nav input[type=checkbox] {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

nav.f-nav {
  background-color: rgba(0,0,0,1);
}


/* =========================
          Tagline
========================== */

#tagline {
  background-image: url(../img/tagline-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  color: #FFF;
}

#tagline h1 {
  margin: 0;
  font-weight: 100
}


/* =========================
  What is openvis?
========================== */

#whatisopenvis {
  background: #FAFAFA;
}

/* =========================
          Call
========================== */

#call {
  background: #FAFAFA;
}

#call .button {
  color: #ff4b5c;
  width: 18em;
  margin-top: 1em;
}

#call .button:hover {
  color: #4b4b4b;
}

/* =========================
          Program
========================== */

#program .columns {
  overflow: auto;
}

#program .column {
  width: 49%;
  float: left;
  margin: 0 .5%;
}

#program .day {
  background: #ff4b5c;
  color: white;
  padding: .7em 0;
  font-size: 1.4em;
  font-weight: 100;
}

#program .program-row {
  text-align: left;
  border-bottom: 4px solid #eeeeee;
  padding: 1.5em;
  overflow: auto;
}

#program .program-row:not(.special) {
  min-height: 122px;
}

#program .program-row:not(.special) .speaker-name,
#program .program-row:not(.special) .speaker-name,
#program .program-row:not(.special) .speaker-talk {
  cursor: pointer;
}

#program .column:first-of-type .program-row:last-of-type .speaker-name,
#program .column:first-of-type .program-row:last-of-type .speaker-talk {
  cursor: auto;
}

#program .column:first-of-type .expanded_talk.program-row:last-of-type .speaker-name,
#program .column:first-of-type .expanded_bio.program-row:last-of-type .speaker-talk {
  opacity: 1;
}

#program .column:first-of-type .program-row:last-of-type .speaker-name:hover,
#program .column:first-of-type .program-row:last-of-type .speaker-talk:hover {
  text-decoration: none;
}

#program .program-row .info {
  padding-left: 7.5em;
}

#program .program-row .talk_abstract, #program .program-row .speaker_bio {
  display: none;
  clear: both;
  padding-top: 1px;
}

#program .program-row.expanded_talk .talk_abstract,
#program .program-row.expanded_bio .speaker_bio {
  display: block;
}

#program .program-row.expanded_talk:not(.special) .speaker-name, #program .program-row.expanded_bio:not(.special) .speaker-talk {
  opacity: .4;
}

#program .program-row .tags .tag {
  background: #EEE;
  padding: .15em .3em;
}

#program .program-row img {
  float: left;
  margin-right: 1em;
}

#program .time {
  font-size: 1.2em;
  color: #ff4b5c;
}

#program .speaker-name {
  font-size: 1.2em;
  margin: .2em 0;
}

#program .speaker-talk {
  color: gray;
}

#program .program-row:not(.special) .speaker-name:hover, #program .program-row:not(.special) .speaker-talk:hover {
  text-decoration: underline;
}

/* =========================
          Videos
========================== */

#videos h2:before, #videos h2:after {
  content: "";
  position: absolute;
  height: 0px;
  background: #4b4b4b;
  width: 0px;
  top: 0em;
}

#videos h2:before {
  left: 0px;
}

#videos h2:after {
  right: 0px;
}
/* =========================
          Locaion
========================== */

#last-year .button {
  width: 18em;
}


/* =========================
          Locaion
========================== */

#location {
  height: 20em;
  overflow: hidden;
  background-image: url(../img/location-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  color: #FFF;
}

#location h1 {
  margin: 0;
  font-weight: 100
}

#location .block {
  padding: 9em 2em;
}

/* =========================
          Venue
========================== */

#venue {
  background-color: #FAFAFA;
}

#venue .block {
  overflow: auto;
}

#venue .map {
  width: 47%;
  float: left;
}

#venue .venue-info {
  float: right;
  width: 50%;
}

#venue .venue-info .hotel {
  text-align: left;
  margin-top: 1em;
}

.hotel h2 {
  font-weight: 500;
}

.hotel h2 a:hover {
  text-decoration: underline;
}

.hotel .button {
  padding: .8em;
}

.hotel .button:hover {
  color: #4b4b4b;
}

.hotel h2:before, .hotel h2:after {
  background: none;
}

.address, .address:hover {
  color: #4b4b4b;
}


/* =========================
          Register
========================== */

#register .register-form {
  background-image: url(../img/register-bg.jpg);
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  overflow: auto;
}

#register .register-info {
  width: 50%;
  float: left;
  color: white;
  margin-top: 1.3em;
}

#register .register-info h2 {
  margin: 1em;
}

.register-info h2:before, .register-info h2:after {
  width: 0;
}

#register .register-info img {
  margin: 0 2em;
}

#register .form {
  width: 39%;
  float: right;
  background: white;
  border: 2px solid;
  border-left: none;
  padding: 0 1em 1em 1em;
}

.new_registration {
  margin: 2em;
}

.tito-ticket {
  border: 2px solid;
  padding: 1em;
}

.tito-ticket:first-of-type {
  margin-bottom: 1em;
}

.tito-ticket-price-quantity {
  overflow: auto;
  padding: 3px 0;
}

.tito-ticket-price {
  float: left;
  font-weight: 700;
}

.tito-ticket-quantity  {
  float: right;
}

.tito-ticket-quantity input {
  width: 22px;
  border: 1px solid gray;
  padding: .5em;
  text-align: right;
  border-radius: 3px;
}

.tito-ticket-status-sold-out {
  font-weight: 700;
  text-align: left;
}

.tito-ticket-name {
  text-align: left;
  margin-bottom: 1em;
  display: block;
}

.tito-ticket-name:after {
  content: "Individual Ticket";
}

#tito-footer {
  display: none;
}

.tito-submit {
  color: #ff4b5c;
  border: 2px solid;
  padding: .8em 0;
  font-size: 1.4em;
  background: none;
  width: 100%;
  cursor: pointer;
}

.tito-submit:hover {
  color: #4b4b4b;
  border-color: #4b4b4b;
}

#tito-register-form img {
  display: none;
}

.conference-tickets {
  font-size: 1.2em;
  letter-spacing: 3px;
}

.sold-out {
  padding: 5em 0;
}

.sold-out-msg {
  margin: 1em 0;
}

/* =========================
          Sponsor
========================== */

#spnsrs {
  background-color: #FAFAFA;
}

.spnsr-block {
  padding: 4em 2em 0;
}

#spnsrs .silver h2{
  display: inline-block;
}

.spnsr {
  margin: 0 3em 3em 3em;
  display: inline-block;
}

/* =========================
          About
========================== */

#about p {
  font-size: 1em;
}
#about img.bob {
  margin-right: 20px;
  width: 90px
}

#about .committee_members {
  width: 100%;
  display: inline-block;
}

#about .committee_members div {
  display: inline-block;
  float: left;
  width: 16.6%;
  text-align: center;
  margin-bottom: 10px;
}

#about .committee_members div img {
  margin-bottom: 10px;
}

/* =========================
          Conduct
========================== */


#conduct {
  background-color: #FAFAFA;
}

/* =========================
          Footer
========================== */

footer {
  background: #ff4b5c;
  color: white;
  font-size: .8em;
}

footer .block {
  padding: 1em 2em;
}

footer a {
  color: black;
}

footer a:hover {
  color: black;
  text-decoration: underline;
}

footer p {
  text-align: center;
}


/* =========================
        Media Queries
========================== */

@media only screen and (max-width: 895px) {

  #program .column {
    width: 100%;
    float: none;
    margin: 0 0 2em;
  }

  #program .program-row {
    padding: 1em;
  }

}

@media only screen and (max-width: 875px) {

  .block {
    padding: 4em 2em;
  }

  #header .block {
    padding-top: 6em;
  }

  nav {
    background: #ff4b5c;
  }

  nav.f-nav {
    background: #ff4b5c;
  }

  nav ul {
    display: none;
    width: 100%;
    line-height: 1.5em;
    padding: 0;
    margin: 0;
  }

  nav ul li {
    float: none;
    text-align: left;
    border-bottom: 1px solid #CE414E;
    width: 100%;
  }

  nav ul li.twitter-button {
    padding: 1em 1.5em 0.6em;
  }

  nav a {
    display: block;
    padding: 16px 1.5em;
    width: 100%;
  }

  nav label {
    display: block;
    min-height: 3.5em;
  }

  nav label:after {
    background-image: url("../img/menu-more.png");
    content: '';
    position: absolute;
    right: .5em;
    top: .5em;
    font-size: 1.8em;
    width: 23px;
    height: 19px;
  }

  nav input[type=checkbox]:checked ~ ul {
    display:block;
  }

  nav .active a, nav a:hover {
    color: black;
  }

  #location .block {
    padding: 8em 2em;
  }

  .speaker_entity button {
    font-size: 0.9em;
  }
}

@media only screen and (max-width: 760px) {

  #header .actions .button {
    width: 47%;
  }

  #header .actions a:first-of-type {
    margin-right: 0;
  }

  #register .register-info, #register .form {
    width: 100%;
    float: none;
  }

  #register .register-form {
    height: auto;
    border: 2px solid;
  }

  #register .register-info {
    margin: 1.3em 0;
  }

  #register .form {
    height: auto;
    border: none;
    padding: 0;
  }

  #register .form form {
    width: 90%;
    margin: auto;
    padding: 1em;
  }

  #register .register-form {
    -webkit-background-size: auto;
    -moz-background-size: auto;
    -o-background-size: auto;
  }

  #about .committee_members div {
    width: 25%;
  }

}

@media only screen and (max-width: 700px) {

  .speaker_entity {
    width: 100%;
  }

  .speaker_entity button {
    width: 45%;
  }

  #venue .map, #venue .venue-info {
    width: 100%;
    float: none;
  }

  #venue .map iframe {
    height: 300px;
  }

  .speaker-info, .tile-area {
    float: none;
    width: 100%;
  }

}

@media only screen and (max-width: 570px) {

  .block {
    padding: 2em 1em;
  }

  #header .actions .button {
    width: 100%;
    margin-bottom: 1em;
  }

  h1 {
    letter-spacing: 0;
  }

  .title h1 {
    margin-bottom: 1em;
  }

  .title h2 {
    display: none;
  }

  #location .block {
    padding: 2em 1em;
  }

   #about .committee_members div {
    width: 33.3%;
  }

}

@media only screen and (max-width: 510px) and (min-width: 480px){

  .speaker_entity button {
    font-size: 0.8em;
  }

}

@media only screen and (max-width: 480px) {

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.3em;
  }

  h2:before, h2:after {
    width: 0px;
  }

  #header h1 {
    font-size: 1.5em;
  }

  #header .actions .button {
    font-size: 1.2em;
  }

  #call .button, #last-year .button {
    width: 100%;
  }

  .new_registration {
    margin: 1em;
  }

  #register .register-info img {
    display: none;
  }

  #register .register-info h2 {
    margin-top: 0;
  }

  #register .form {
    padding: .1em 0 .1em;
  }

  .speaker_entity {
    width: 100%;
  }
  #about .committee_members div {
    width: 50%;
  }
}

@media only screen and (max-width: 400px) {

  #program .program-entity {
    padding: 1em 0;
  }

  #program .program-entity img {
    display: none;
  }

  #program .program-entity .info {
    padding-left: 0;
    min-height: initial;
  }

  #program .program-row {
    padding: 1em 0;
  }

  #program .program-row img {
    display: none;
  }

  #program .program-row .info {
    padding-left: 0;
    min-height: initial;
  }

}
