/* LTDS Conference Schedule
Terry Charlton, LTDS */

:root {
  --main-font: "Segoe UI","Roboto","Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
  --code-font: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --main-font-size: 1rem;
  --sub-font-size: 0.85rem;
  --time-font-size: 0.9rem;
  --modal-title-font-size: 1.3rem;
  --modal-subtitle-font-size: 1rem;
  --modal-text-font-size: 1rem;

  --element-padding: 8px;

  --panel-background: #e9ecef; /*#ebebeb;*/
  --panel-background-hover: #f7f7f7; /*#ebebeb;*/

  --light: #ffffff;
  --dark: #333333;
  --green: #166437;
  --red: #af0e21;
  --blue: #207AB6;
  --orange: #7a4d06;
  --dark-grey: #6c757d;
  --border-grey: #e6e6e6;
  --border-dark-grey: #ccd5e1;
  --border-blue: #ccd5e1;
  --background-grey: #f7f7f9;
  --background-lightgrey: #fcfcfc;
  --background-blue: #e9ecef;
  --background-alert: #f7e7e9;
  --index-grey: #6c757d;
  --dropdown-grey: #e9ecef;
  --outline: #51cbee;

  --outline-blue: #207AB6;
  --outline-purple: #cf0072;
  --outline-grey: #6c757d;

  --border-active: #6c757d;

  --pulse-blue: #99cbed;
  --pulse-green: #93d6af;
  --pulse-orange: #f9cd88;
  --pulse-red: #f3a59d;
  --pulse-purple: #cdacda;
  --pulse-grey: #f7f7f9;

  --legend1: #cf0072;
  --legend2: #207AB6;
  --legend3: #6c757d;
}

html, 
body {
  height: 100%;
  min-height: 100%;
  cursor: default;
}

body {
  font-size: var(--main-font-size);
  font-family: var(--main-font);
  color: var(--dark);
  margin: 0px;
  padding: 0px;
}

#ui_wrapper {
  background-color: var(--light);
  max-width: 100%;
  width: 100%;
  height: 100%;
  transform: translateZ(0); /* force gpu rendering */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  overflow: hidden;
}

#ui_container {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  width: calc(100% - 2px);
  height: 100%;
  height: calc(100% - 2px);
  background-color: var(--light);
  border: 1px solid var(--border-dark-grey);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  transition: opacity .15s ease-in-out;
  opacity: 0;
  overflow: hidden;
}

#header_bar {
  margin: 0;
  padding: 0.6rem;
  border-bottom: 1px solid var(--border-grey);
  font-weight: 600;
  white-space: nowrap;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header_bar_title_wrapper {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#toolbar {
  margin: 0;
  padding: var(--element-padding);
  padding-bottom: 0;
  white-space: nowrap;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
}

#content_container {
  height: 100%;
  width: 100%;
  padding: var(--element-padding);
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

#visualiser_panel {
  position: relative;
  /*margin-bottom: var(--element-padding);*/
  border: 1px solid var(--border-blue);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: hidden;
    background-color: var(--panel-background);
}

#process_panel {
  border: 1px solid var(--border-blue);
  white-space: nowrap;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

#visualiser_panel_inner_wrapper {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: scroll;
}

#visualiser_panel_container {
  padding: 12px;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1; 
}

#process_panel_title {
  padding: 0.6rem 0.5rem 0.6rem 0.6rem;
  background-color: var(--background-grey);
  border-bottom: 1px solid var(--border-blue);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: var(--dark);
  align-items: center;
  justify-content: center;

}
#process_panel_title span {
  margin-left: 0.5rem;
  line-height: 1.2rem;
}

#process_panel_legend {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
#process_panel_title span {
  margin-right: 0.6rem;
}

.event_card {
  background-color: var(--light);
  margin-bottom: 0.9rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  border: 1px solid var(--light);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  transition: border .15s ease-in-out;
}

.event_card_spacer {
  margin-bottom: 0.2rem;
}

.event_card_splitter {
  height: 1px;
  border-top: 2px dashed var(--outline-grey);
  margin-top: 1rem;
  margin-bottom: 1.4rem;
  margin-left: 5px;
  margin-right: 5px;
}

.event_card_active {
  border: 1px solid var(--outline-purple);
  border-left: 8px solid var(--outline-purple);
}
.event_card_active:hover {
  border: 1px solid var(--outline-purple);
  border-left: 8px solid var(--outline-purple);
}

.event_card_next {
  border: 1px solid var(--outline-blue);
  border-left: 8px solid var(--outline-blue);
}
.event_card_next:hover {
  border: 1px solid var(--outline-blue);
  border-left: 8px solid var(--outline-blue);
}

.event_card_finished {
  border: 1px solid var(--outline-grey);
  border-left: 8px solid var(--outline-grey);
}
.event_card_finished:hover {
  border: 1px solid var(--outline-grey);
  border-left: 8px solid var(--outline-grey);
}

.event_card_lead_container {
  padding: 0.9rem;
  height: 100%;
  border: 1px solid var(--light);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.event_card_lead_container:hover {
  background-color: var(--panel-background-hover);
  border: 1px solid var(--panel-background-hover);
}

.event_card_icon {
  padding-right: 0.9rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event_card_content {
  width: 100%;
  padding: 0;
  margin: 0;
}

.event_card_subcontent {
  padding: 0.8rem 0.9rem 0.8rem 0.9rem;
  border: 1px solid var(--light);
  border-top: 1px dashed var(--border-dark-grey);
  margin: 0;
}
.event_card_subcontent:hover {
  background-color: var(--panel-background-hover);
  border: 1px solid var(--panel-background-hover);
  border-top: 1px dashed var(--border-dark-grey);
}

.event_card_title {
  padding: 0;
  padding-bottom: 0.1rem;
  margin: 0;
  font-weight: 600;
}
.event_card_subtitle {
  padding: 0;
  margin: 0;
  font-weight: 400;
}

.event_card_location {
  padding: 0;
  margin: 0;
  font-size: var(--sub-font-size);
  line-height: 1.2rem;
}

.event_card_time {
  padding: 0;
  margin: 0;
  font-size: var(--sub-font-size);
  line-height: 1.2rem;
}

.time_stamp {
  font-size: var(--time-font-size);
  margin-left: 2px;
  font-weight: 500;
  margin-bottom: 0.6rem;
  line-height: 1.2rem;
}

#on_now {
  padding: 0.4rem;
  padding-bottom: 0;
  line-height: 1.5rem;
}

#on_next {
  padding: 0.4rem;
  padding-top: 0;
  line-height: 1.5rem;
}

#legend1 {
  background-color: var(--legend1);
  margin-left: 0.5rem;
  margin-right: 0rem;
  height: 1rem;
  width: 1rem;
  border-radius: 0.2rem;
  margin-top: auto;
  margin-bottom: auto;
}
#legend2 {
  background-color: var(--legend2);
  margin-left: 0.5rem;
  margin-right: 0rem;
  height: 1rem;
  width: 1rem;
  border-radius: 0.2rem;
  margin-top: auto;
  margin-bottom: auto;
}
#legend3 {
  background-color: var(--legend3);
  margin-left: 0.5rem;
  margin-right: 0rem;
  height: 1rem;
  width: 1rem;
  border-radius: 0.2rem;
  margin-top: auto;
  margin-bottom: auto;
}
#legend4 {
  background-color: var(--legend4);
  margin-left: 0.5rem;
  margin-right: 0;
  height: 1rem;
  width: 1rem;
  border-radius: 0.2rem;
  margin-top: auto;
  margin-bottom: auto;
}

#process_panel_inner_wrapper {
  padding: 0.3rem;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: hidden;
  overflow-y: scroll;
}

button {
  margin: 0;
  padding: 0.375rem 0.75rem 0.45rem 0.75rem;
  font-family: var(--main-font);
  font-size: var(--main-font-size);
  outline-color: var(--outline);
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,background-image .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out, transform .05s;
  cursor: pointer;
  outline-offset: -40px;
}
button:hover, button:focus  {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 0 0);
}
button:active {
  transform: translate(0, 0.05em);
}
button > span {
  padding-left: 0.5em;
}
button:disabled, button[disabled] {
  background-color: #cccccc !important;
}
button:disabled:hover {
  background-color: #cccccc !important;
  background-image: unset;
}

#restart_button {
  color: var(--light);
  background-color: var(--dark-grey);
}

#reset_button {
  color: var(--light);
  background-color: var(--dark-grey);
}

#fullscreen_button {
  margin-left: 0.5rem;
  color: var(--light);
  background-color: var(--dark-grey);
}

#modal_reset_button {
  color: var(--light);
  background-color: var(--red);
}

#modal_close_button {
  color: var(--light);
  background-color: var(--green);
}

.toolbar_spacer {
  width: 0.5rem;
  min-width: 0.5rem;
}

.toolbar_filler {
  width: 1%;
  min-width: 0.5rem;
  flex: 1 1 auto;
}

#timer, #date {
  margin-right: 0.5rem;
  padding: 0.375rem 0.75rem 0.45rem 0.75rem;
  border: 1px solid var(--border-blue);
  border-radius: 0.25rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}
#timer > span {
  padding-left: 0.5em;
}
#date > span {
  padding-left: 0.5em;
}

.logo {
  width: 10rem;
  vertical-align: middle;
  padding-bottom: 0.2rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.icon {
  height: 1rem;
  width: 1rem;
  vertical-align: middle;
  padding-bottom: 0.2rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.large_icon {
  height: 2.2rem;
  width: 2.2rem;
  vertical-align: middle;
  padding-bottom: 0.2rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.prompt_icon {
  height: 0.8rem;
  vertical-align: middle;
  padding-bottom: 0.2rem;
  padding-right: 0.15rem;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.show { display: block }

#modal_wrapper {
  position: fixed;
  top: 0;
  left: -2vw;
  width: 100%;
  width: calc(100% + 4vw);
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

#modal_container {
  display: relative;
  background-color: #ffffff;
  max-width: 60%;
  max-height: 94%;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  -webkit-box-shadow: 0 0px 30px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0px 30px rgba(0, 0, 0, 0.5);
  -webkit-transition: transform 1.5s;
  -o-transition: transform 1.5s;
  transition: transform 1.5s;
  overflow: hidden;
  padding: 4vh 3vw 4vh 3vw;
}

#modal_content {
  height: 100%;
  font-family: var(--main-font);
  font-size: var(--main-font-size);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  text-align: center;
}

#modal_panel {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow-y: auto;
}

.modal_title {
  margin: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: var(--modal-title-font-size);
}

.modal_subtitle {
  margin: 0;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: var(--modal-subtitle-font-size);
}

.modal_speakers {
  margin: 0;
  font-weight: 500;
  font-size: var(--modal-subtitle-font-size);
}

.modal_text {
  margin: 0;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  font-size: var(--modal-text-font-size);
}

#modal_controls {
  padding-top: 0.8rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

@media only screen and (max-width: 750px) {
  #event_name {
    display: none;
  }
  #reset_button > span {
    display: none;
  }
  #fullscreen_button > span {
    display: none;
  }
  #process_panel_legend {
    display: none;
  }
  #modal_container {
    max-width: 80%;
    max-height: 94%;
  }
}

@media only screen and (max-width: 600px) {
  #event_name {
    display: none;
  }
  #reset_button {
    display: none;
  }
  #fullscreen_button {
    display: none;
  }
}

@media only screen and (max-width: 500px) {
  #date  {
    display: none;
  }
}