/** Bootstrap Overrides **/
body {
  /* font-family: 'Open Sans', sans-serif; */
  font-family: 'Graphik', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #333333;
}

h1 {
  font-family: 'Fedra Serif A Pro';
  font-weight: 500;
  color: #002d4e;
}

h5 {
  margin-top: 2em;
  margin-bottom: .8em;
}

p {
  margin-bottom: .5em;
}

.locations h5 {
  margin-bottom: 0;
}

.frontend-form {
  margin-left: 1em;
  margin-right: 1em;
}

.form-control {
  border-radius: 0;
  border: 1px solid black;
  padding: 12px;
  height: auto;
}

form label {
  margin-bottom: 4px;
}

.bg-primary {
  background-color: #0bbaef !important;
}

.bg-secondary {
  background-color: #f3fcfc !important;
}

.text-primary {
  color: #00afd0 !important;
}

.border-primary {
  border-color: #00afd0 !important;
}

.btn {
  padding: 9px 24px;
  font-size: 20px;
  border-radius: 0;
  font-weight: bold;
  background-color: rgba(0,0,0,0);
  border-width: 3px;
}

.btn-group-sm>.btn, .btn-sm {
  padding: .25rem .5rem;
  font-size: .875rem;
  line-height: 1.5;
  border-width: 2px;
}

.btn-active {
  background-color: #255c71;
}

.btn-primary {
  color: #002c69 !important;
  border-color: #002c69 !important;
}

.btn-light {
  color: white !important;
  border-color: white !important;
}

.outline .form-control {
  color: white;
  border: 1px solid white;
  background-color: #0000;
}

/** Our stuff **/

a.anchor {
  display: block;
  position: relative;
  top: -112px;
  visibility: hidden;
}

.bg-grayish {
  background-color: #efefef;
}

.btn-blueish {
  color: #0bbaef;
  border-color: #ecebeb !important;
  background-color: #f5fcfc;
}

.bg-light-grey {
  background-color: #efefef;
}

#login-hero {
  height: 226px;
  background-size: cover;
  background-position: center;
}

#login-content {
  height: auto;
  padding-bottom: 80px;
  background-color: #002a4c;
  color: white;
}

#login-privacy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

#registration-form {
  padding-bottom: 80px;
}

#login-privacy {
  height: 80px;
}

#home-hero {
  /* height: 87vh; */
  margin-top: 82px;
  background-size: cover;
  background-position-x: 60%;
}

#hero-inner {
  margin: 1em;
}

.navbar-brand {
  height: 100%;
  margin: -0.5rem -1rem;
  padding: 12px 23px;
}

.navbar-brand img {
  height: 42px;
}

.navbar-wart img {
  height: 66px;
}

.top-menu {
  margin-top: 20px;
}

ul.top-menu a {
  color: white !important;
}

.nav-item {
  font-family: 'Open Sans Semibold', sans-serif;
  font-size: 20px;
  padding-right: 2rem;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.squashed {
  margin-left: 1.5em;
  margin-right: 1.5em;
}

.less-squashed {
  margin-left: 1.5em;
  margin-right: 1.5em;
}

#sponsor-carrousel {
  margin-left: 1em;
  margin-right: 1em;
}

.sponsors-carousel-cell {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.flickity-button-icon {
  fill: #00bdf5;
}

.flickity-page-dots .dot {
  background: #e5e5e5;
}

.flickity-page-dots .dot.is-selected {
  background: #00bdf5;
}

.flickity-button:disabled {
  display: none;
}

.sponsor {
  text-align: center;
  position: relative;
  border: 1px solid #e5e5e5;
  width: 35vw;
  height: 20vw;
  margin: 1em;
}

.sponsor img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: auto;
  transform: translate(-50%, -50%);
}

.slider-expand-icon {
  color: #0bbaef;
  font-size: 1.5em;
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
}

.slider-expand-icon a {
  padding: 1rem;
  color: #0bbaef;
  text-decoration: none;
}

.expand-icon {
  color: #0bbaef;
  font-size: 2.5em;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.expand-icon a {
  color: #0bbaef;
  text-decoration: none;
}

#accordion {
  display: block;
  //text-align: left;
}

#accordion a {
  color: #0bbaef;
  text-decoration: none;
}

#accordion a p {
  margin-bottom: 0;
}

.accordion-item {
  //border-top: 1px solid #0bbaef;
  cursor: pointer;
  border-bottom: 1px solid #0bbaef;
  padding-top: 14px;
  padding-bottom: 14px;
}

.accordion-item.first {
  border-top: 1px solid #0bbaef;
}

#tabs {
  display: none;
}

#tabs .schedule-day {
  text-decoration: none;
  color: #e5e5e5;
}

#tabs .schedule-day.selected {
  color: #0bbaef;
}

#speakers-slider {
  display: none;
}

#speakers-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.speaker {
  margin-top: 2em;
  width: 70vw;
  height: 80vw;
}

.speaker img {
  width: 70vw;
  height: 80vw;
}

.speaker-info {
  color: white;
  text-align: left;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 1em;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.speaker-details {
  text-align: left;
  padding-top: 2em;
  width: 70vw;
}

.speaker-info p {
  margin-bottom: 0;
}

.btn.tiny {
  padding: .25em .5em;
}

a.player-button {
  display: inline-block;
  padding: 0.5rem;
  background-color: #efefef;
  //width: 32px;
  //height: 32px;
  text-align: center;
  position: relative;
  color: black;
}

a.player-button.active {
  background-color: #afafaf;
}

a.player-button:hover {
  text-decoration: none;
}

.new-engagement-button {
  margin-right: .5em;
  display: inline-block;
  text-align: center;
  float: left;
}

@media (max-width: 380px) {
  a.player-button {
    padding: 0.3rem;
  }
  
  a.player-button p {
    font-size: 3vw;
  }
  
  .new-engagement-button p {
    font-size: 3vw;
  }
  
  .btn.tiny {
    padding: .1em .5em;
  }
}

a.player-button img {
  //position: absolute;
  width: 21px;
  //height: 18px;
  transition: all 0.3s;
  //top: 50%;
  //left: 50%;
  //transform: translate(-50%, -50%);
}

a.player-button img.puffed {
  transform: scale(1.5);
}

a.engagement-button {
  display: inline-block;
  font-size: 25px;
  color: black;
  opacity: 0.4;
  text-decoration: none;
  padding: .5rem;
}

a.engagement-button.active {
  opacity: 1;
}

.balloon {
  padding: 1rem;
  margin-bottom: 1em;
  background-color: #e2e2e2;
  border-radius: 16px;
  clear: both;
}

.balloon.left {
  float: left;
  border-bottom-left-radius: 0;
}

.balloon.right {
  float: right;
  color: white;
  background-color: #00bdf5;
  border-bottom-right-radius: 0;
}

#qa {
  height: calc(100% - 69px);
}

#polls {
  height: calc(100% - 69px);
}

#chatbox {
  position: fixed;
  height: 42px;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid #747474;
  padding: .5em;
}

#chatbox textarea {
  width: 100%;
  height: 100%;
  resize: none;
  background: transparent;
  border: none;
}

.survey-answer {
  position: relative;
}

.survey-answer .progress {
  width: calc(100% - 24px);
}

.survey-check {
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border: 1px solid black;
}

.survey-check.selected {
  background-color: #0bbaef;
}

@media (min-width: 768px) {
  a.engagement-button {
    padding: 1rem;
  }
  
  #hero-inner {
    margin: 2em 5.5em;
  }
  
  .frontend-form {
    margin-left: 20%;
    margin-right: 20%;
  }
  
  a.player-button {
    //width: 50px;
    //height: 50px;
  }
  
  a.player-button img {
    //position: absolute;
    //top: 50%;
    //left: 50%;
    //transform: translate(-50%, -50%);
  }
  
  #speakers-list {
    display: none;
  }

  #speakers-slider {
    display: block;
  }
}

.vh-100-no-bar {
  //height: calc(100vh - 63px);
  //height: calc(80vh - 63px);
  height: calc(var(--vh, 1vh) * 100 - 63px);;
}

.scroll-container {
  height: 100%;
  overflow-y: scroll;
}

#live-engagement {
  flex-grow: 1;
  height: 100%;
  overflow: hidden;
}

#live {
  //height: calc(100vh - 63px);
  //height: calc(80vh - 63px);
  //height: calc(100vh - 178px);
  height: calc(var(--vh, 1vh) * 100 - 63px);
  flex-direction: column;
  flex-wrap: nowrap;
}

#messages {
  margin-bottom: 12px;
}

.moderation {
  font-size: 12px;
}

.moderation a {
  color: white;
  font-weight: bold;
}

.field-icon {
  float: right;
  margin-left: -25px;
  margin-top: -25px;
  position: relative;
  z-index: 2;
}

.pin-right {
  position: absolute;
  right: 0;
}

@media (min-width: 1200px) {
  #messages {
    margin-bottom: 0;
  }
  
  #live {
    flex-direction: row;
  }
  
  #live-engagement {
    flex-grow: auto;
    height: calc(100vh - 63px);
    //overflow-y: auto;
  }
  
  .scroll-container {
    height: calc(100% - 69px);
    //overflow-y: scroll;
  }
  
  #chatbox {
    height: 60px;
    position: absolute;
    left: -1rem;
    right: -1rem;
    bottom: 0;
  }
  
  #accordion {
    display: none;
  }

  #tabs {
    display: block !important;
  }

  #home-hero {
    /* height: 100vh; */
    /* height: 60vh;home */
    background-size: cover;
  }

  .sponsor {
    text-align: center;
    position: relative;
    border: 1px solid #e5e5e5;
    width: 260px;
    height: 160px;
    margin: 1em;
  }

  #login-hero {
    height: 100vh !important;
  }

  #login-content {
    height: 100vh !important;
    /* overflow-y: scroll; */
  }

  #login-form {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
  }

  #login-privacy {
    position: absolute !important;
  }

  .scroll-wrapper {
    height: 100%;
    overflow-y: scroll;
  }

  .top-menu {
    margin-top: 0 !important;
  }

  .squashed {
    margin-left: 25%;
    margin-right: 25%;
  }

  .less-squashed {
    margin-left: 30%;
    margin-right: 30%;
  }

  #live {
    //height: 100vh !important;
    height: calc(100vh - 63px) !important;
  }
}
