#preview-notice{ position: fixed; height: 205px; top: 66px; z-index: 500; width: 50px; background: #fff; border: 2px solid #F90; border-left: 0; color: #F90; font-size: 24px;}
#preview-notice div{ -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); transform: rotate(90deg); margin-top: 40px; letter-spacing: 7px;}

body{ background-color: #ffffff; color: #333;}
h1, h2, h3{ margin: 0;}
h2{ color: inherit; text-transform: none;}
p{ line-height: inherit;}

header, footer{ display: none;}

.mdl-dialog.fixed_position {
  position: fixed;
}

#story-menu{ visibility: hidden;}

#story-cover { position: relative;}
#story-cover img { width: 100%; max-width: none; z-index: 1; }

#story-cover .caption { position: absolute; width: 100%; left: 0; text-align: center; z-index: 1; padding: 0.5em 0; font-weight: 200; font-size: 50px; }
#story-cover .caption.top { top: 0; }
#story-cover .caption.middle { top: 50%; -ms-transform: translateY(-50%); -webkit-transform: translateY(-50%); transform: translateY(-50%); }
#story-cover .caption.bottom { bottom: 0; }
#story-cover .caption.center { text-align: center; }
#story-cover .caption.right { text-align: right; }
#story-cover .caption.shadow { background: rgba(0, 0, 0, 0.35); }

#story-main #story-cover .caption p { font-size: 50px !important; margin: 0 !important;}

#story-sections.has-navbar { margin-top: 50px;}

.story-row {
  position: relative;
  padding: 0;
}

.story-cell {
  position: relative;
  margin-top: 0px;
  margin-bottom: 0px;
}

.story-cell .story-modules {
  width: 100%;
  min-height: 20px;
}

.story-module {
  position: relative;
  margin: 16px 0;
}

.story-module.dragging {
  opacity: 0.8;
  z-index: 1000;
}

.cover-image-container,
.story-module .image-container {
  background-position: center center !important; // important is needed for pdf rendering
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.story-module .image-container{ position: relative; text-align: center;}
.story-module .image-container .gradient-overlay{
  position: absolute; height: 100%; width: 100%;
  background: rgba(0,0,0,0.2); /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.2)); /* Safari 5.1-6.0 */
  background: -o-linear-gradient(bottom, rgba(0,0,0,0), rgba(0,0,0,0.2)); /* Opera 11.1-12.0 */
  background: -moz-linear-gradient(bottom, rgba(0,0,0,0), rgba(0,0,0,0.2)); /* Firefox 3.6-15 */
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.2)); /* Standard syntax */}
.story-module .image-container .image-caption{ position: absolute; bottom: 8px; margin: 0 !important; padding: 0 12px; width: 100%; text-align: center; color: #ffffff;}

.story-module-content.story-module-text {
  padding: 4px 8px;
  outline: none;
}

.story-module-content.spacer {
  background-color: #fafafa;
}

.story-module-content.custom-section {
  margin-left: 10px;
  padding: 4px 8px 0 8px;
}

.story-module-content.custom-section textarea {
  resize: none;
}

.story-module .metric.mdl-shadow--2dp {
  box-shadow: 1px 1px 2px 0 rgba(0,0,0,.12), -1px 0px 2px 0 rgba(0,0,0,.12);
  overflow: initial;
}

.chart-embedded .metric.mdl-shadow--2dp {
  box-shadow: 1px 1px 2px 0 rgba(0,0,0,.12), -1px 0px 2px 0 rgba(0,0,0,.12);
  overflow: initial;
}

.story-module .metric .mdl-card__menu {
  display: block;
}

.metric .options-story {
  display: block;
}

.chart-embedded .metric .mdl-card__menu {
  display: block;
}

.metric .options-embedded {
  display: block;
}

#chart-edit .metric div.options-story {
  display: none;
}

.metric .pinning {
  display: none;
}

#chart-edit .metric .edit-chart {
  display: none;
}

.story-row .drop-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.story-module-drop-target {
  position: absolute;
  z-index: 10;
}

.story-module-drop-target.can-drop {
  background: #f0f9ff;
  border: 2px dashed #bed2db;
}

.story-row .story-module-drop-target.left {
  left: -145px;
  top: 0;
  width: 150px;
  height: 100%;
}

.story-row .story-module-drop-target.right {
  right: -140px;
  top: 0;
  width: 150px;
  height: 100%;
}

.story-row .story-module-drop-target.top {
  left: 0;
  top: -5px;
  width: 100%;
  height: 10px;
}

.story-row .story-module-drop-target.bottom {
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 15px;
}

.story-row:first-child .story-module-drop-target.top {
  top: -45px;
  height: 50px;
}

.story-row:not(:first-child) .story-module-drop-target.top {
  display: none;
}

.story-row:last-child .story-module-drop-target.bottom {
  bottom: -45px;
  height: 50px;
}

.story-cell .story-module-drop-target.right {
  right: -15px;
  top: 0;
  width: 14px;
  height: 100%;
}

.story-cell:last-child .story-module-drop-target.right {
  display: none;
}

/* -- Dataset List Module -- */
.search-div{ width: 100%;}
.select-tag-filters{ margin-bottom: 20px;}
.tag-filter-list{ top: 108px;}

.dataset-items-list{ overflow: auto; padding: 1px 1px 3px 1px; clear: both;}
.dataset-items-list .dataset-tile{ background: #e4e4e4;}
.dataset-items-list .dataset-tile:first-child { margin-top: 0;}
.dataset-items-list .dataset-tile .header { padding-bottom: 0;}
.dataset-items-list .dataset-tile .header a{ color: rgba(0,0,0,.81); cursor: default;}
.dataset-items-list .dataset-tile .mdl-card__supporting-text { padding-top: 8px;}
.dataset-items-list .dataset-tile .footer{ justify-content: space-between;}
.dataset-items-list .dataset-tile .footer .expanded-buttons{ display: block;}


#story-new-module-dialog-image {
  width: 500px;
}

#story-new-module-dialog-image .mdl-textfield {
  width: 100%;
}

#story-new-module-dialog-image .md-selectfield{
  padding-bottom: 20px;
}
#story-new-module-dialog-image .md-selectfield label{
  font-style: italic;
}

#story-new-module-dialog-image .upload-file .mdl-spinner {
  vertical-align: middle;
}

#story-new-module-dialog-image .upload-file p {
  display: inline-block;
  width: calc(100% - 190px);
  margin: 0px 20px;
  text-overflow: ellipsis;
}

#story-new-module-dialog-image .upload-file input[type=file] {
  visibility: hidden;
}

.story-new-green-icon {
  color: #2eb82e;
}

.story-new-red-icon {
  color: #e60000;
}

.story-new-white-icon {
  color: #ffffff;
}

#story-new-module-dialog-image .upload-file .success-icon {
  vertical-align: middle;
  display: none;
}

#story-new-module-dialog-image .upload-file .failed-icon {
  vertical-align: middle;
  display: none;
}

#story-new-module-dialog-image .upload-file.loaded .success-icon {
  display: inline-block;
}

#story-new-module-dialog-image .upload-file.failed .failed-icon {
  display: inline-block;
}

#story-new-module-dialog-image .upload-file.loaded .mdl-spinner {
  display: none;
}

#story-new-module-dialog-image .upload-file.failed .mdl-spinner {
  display: none;
}

////////////////////////////////////////////////////////////////////////////////
// STORY MODULE SELECTION DIALOG
////////////////////////////////////////////////////////////////////////////////

/* NOTE: these are not getting bound to our element, don't know why,
so we are setting them inline on our html element */
#story-new-module-select-dialog {
  width: 500px;
  height: 95vh;
  overflow-y: scroll;
}

#story-new-module-select-dialog .select-dialog-contents {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

#story-new-module-select-dialog .module-select-title {
  flex: 2 0 100%;
  font-size: large;
}

#story-new-module-select-dialog .module-select-option {
  flex: 0 1 25%;
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
}

#story-new-module-select-dialog .module-select-option p {
  flex: 0 2 100%;
  font-size: small;
}

#story-new-module-select-dialog .module-select-option img {
  flex: 1 0 100%;
  height: 100%;
  cursor: pointer;
}

#story-new-module-select-dialog .module-select-option img:hover {
  background-color: #0DBFD6;
}

////////////////////////////////////////////////////////////////////////////////
// NAVIGATION STORY MODULE
////////////////////////////////////////////////////////////////////////////////

/* We need this select here in order for the next selector to work properly */
/* TODO: Is this an MDL issue? It might be worth reproducing in codepen... */
#story-navigation-module-header {
}

#story-navigation-module-header.sticky {
  top: 0px;
  position: fixed !important;
  z-index: 9999;
  height: 50px;
  min-height: 50px !important;
}

/* prevents the default purple color from showing up on the sides of our nav header */
.mdl-layout__tab-bar-button {
  background-color: transparent !important;
}

.nav-container.grip {
  display: inline !important;
  width: 100%;

  cursor: move;
  /* override settings from original story-admin .grip: */
  padding: 0;
  background: unset;
}

.dotted-line {
  position: relative;
  bottom: 22px;
  border-top: 5px dashed #0DBFD6 !important;
  height: 1px !important;
  width: 100% !important;
  z-index: 0;
}
/* our arrow is for nav module dragging/editing/repositioning: */
.arrow {
  position: relative;
  font-size: 0;
  z-index: 1;
}
/* our arrow body: */
.inner-arrow {
  width: 80px;
  height: 40px;
  display: inline-block;
  background-color: #0DBFD6;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  line-height: 40px;
  vertical-align: middle;
  color: #FDFEFE;
  font-family: 'Roboto', Helvetica Neue, Helvetica, Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* our arrow's head */
.arrow:after {
  content:'';
  display: inline-block;
  width: 0;
  height: 0;
  border: 20px solid transparent;
  vertical-align: middle;
  border-left-color: #0DBFD6;
}

// END NAVIGATION STORY MODULE

////////////////////////////////////////////////////////////////////////////////
// STORY MODULE CREATE/EDIT DIALOGS
////////////////////////////////////////////////////////////////////////////////

// Story Catalog Dialog

/* NOTE: these are not getting bound to our element, don't know why,
so we are setting them inline on our html element */
#story-new-module-dialog-story_catalog {
  width: 70vw;
  height: 95vh;
  overflow-y: scroll;
}

#story-catalog-dialog-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}

.story-catalog-dialog-item {
  flex: 0 1 32%;
  display: flex;
  flex-wrap: wrap;
}

.story-catalog-dialog-item .story-tile {
  cursor: pointer;
  padding: 3px; /* to compensate for our selection border */
}

.story-catalog-dialog-item .story-tile:hover,
.story-catalog-dialog-item .story-tile.selected {
  padding: 0px;
  border: 3px solid #0DBFD6;
}


// END OF STORY MODULE CREATE/EDIT DIALOGS

////////////////////////////////////////////////////////////////////////////////
// STORY MODULES
////////////////////////////////////////////////////////////////////////////////

// Story Catalog Module:
#story-catalog-container {
  cursor: grab;
}

.story-catalog-slide-back {
  left: -40px;
  z-index: 100;
  position: absolute;
  top: 100px
}

.story-catalog-slide-forward {
  right: -40px;
  z-index: 100;
  position: absolute;
  top: 100px
}

.story-catalog-item .story-tile {
  cursor: pointer;
}

// END OF STORY MODULES

.embed-module-container {
  background: #000000;
  width: 100%;
}

.embed-module-container iframe {
  position: absolute;
}

.dragging-module .embed-module-container iframe {
  display: none;
}

.embed-module-overlay{
  display: none;
}

.clickable-iframe {
  z-index: 10;
}

.grip {
  display: none;
  z-index: 20;
}
.material-icons.md-25 {
  font-size: 25px;
}


.story-module-button{
  display: flex;
  justify-content: center;
  align-items: center;
}
.story-module-button button{
  display: block;
}

.module-placeholder-tip {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background: #cacaca;
}

.module-placeholder-tip-text {
  text-align: center;
}

blockquote:before{
    position: initial;
}

.story-footer{
  margin-top: 16px;
  border-top: 2px solid rgba(0,0,0,.14);
}

.story-footer .team-information{
  display: flex;
  height: 144px;
}

.story-footer .team-contact{
  padding: 8px 8px 8px 4px;
  width: 50%;
  position: relative;
}

.story-footer .visit-us {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 4px;
}

.story-footer .team-name, .team-location {
  font-size: 12px;
  color: gray;
  margin-bottom: 2px;
}

.story-footer .team-name {
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.story-footer .team-location{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.story-footer .btn-goto-site{
  text-align: center;
  position: absolute;
  bottom: 8px;
  width: calc(100% - 16px);
}

.story-footer .btn-goto-site .mdl-button {
  background-color: #119eb9;
  color: white;
}

.story-footer .btn-goto-site .mdl-button:hover {
  background-color: #119eb9;
  color: white;
}

.story-footer .team-logo {
  width: calc(50% - 12px);
  margin: 8px 4px 8px 8px;
  background-position: center center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

#story-new-dialog-settings .checkbox-group {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  justify-content: space-between;
}
#story-new-dialog-settings .mdl-textfield {
  width: 100%;
}

#story-shareables {
  position: fixed;
  right: 0px;
  top: calc(50vh - 75px);
  z-index: 20;
  display: none;
}

#story-shareables .story-shareables-img-ctn {
  height: 50px;
  width: 50px;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
}

#story-shareables .story-shareables-img-ctn img{
  height: 50px;
  width: 50px;
}

.show-shareables #story-shareables {
  display: block
}

.filter-container{ position: relative; height: 100%;}
.filter-container select{ position: relative; top: calc(50% - 20px);}

.template-footer-bar {
  position: fixed;
  bottom: 0;
  height: 70px;
  background: white;
  width: 100%;
  display: flex;
  border-top: solid 2px #cacaca;
  justify-content: center;
  z-index: 9999;
}

.template-footer-bar .template-footer-bar-content {
  margin-top: 20px;
}

.template-footer-bar .template-footer-bar-content span {
  margin-right: 15px;
}

.pdf-export-message {
  margin-top: 20px;
}

#clone-to-me {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  opacity: 0.2;
}

#clone-to-me:hover {
  opacity: 1;
}


