/* -------------------------------- 
Primary style
-------------------------------- */
*, *::after, *::before {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body .eab-site {
  font-size: 1.6rem;
  /*font-family: "Lato", sans-serif;*/
  color: #3d3536;
  /*background-color: white;*/
}

main .eab-site {
  font-size: 1.6rem;
  /*font-family: "Lato", sans-serif;*/
  color: #3d3536;
  /*background-color: white;*/
}


.eab-site a {
  color: #b4d7a8;
  text-decoration: none;
}

.eab-site a:hover {
  color: #4588c5;
  text-decoration: none;
}



.eab-site p {
  margin-bottom: 15px;
  line-height: 1.3em;
}

.story-scrolling-bg__content ul {
  list-style-type: circle;
  margin: 0;
  padding-left: 3em;
}

/* -------------------------------- 
Resource style 
-------------------------------- */
.story {
   position: fixed;
    width: 100%; height: 100%;
    top: 0; left: 0;
    overflow: scroll;
} /* Every story needs to open with this container for the scrollTo to work */

.story-main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  background: #388563;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.story-main-header:after {
  /* clearfix */
  content: "";
  display: table;
  clear: both;
}

.story-main-header__logo {
  float: left;
  margin: 13px 0 0 5%;
  position: absolute;
  top: 5px;
}

.story-main-header__logo img {
  display: block;
  height: auto;
  max-width: 70%;
  opacity: .5;
  position: relative;
  top: 3rem;
  transition: opacity .4s;
}
.story-main-header__logo:hover img {
  opacity: 1;
}

@media only screen and (min-width: 768px) {
  .story-main-header {
    height: 94px;
  }
  .story-main-header__logo {
    margin: 23px 0 0 5%;
  }
  .story-main-header__logo img {
  }
}

.story-main-nav {
  float: right;
  margin-right: 5%;
  width: 44px;
  height: 100%;
  background: url("https://esperanto.org.uk/events/ses/img/story-icon-menu.svg") no-repeat center center;
  background-size: 44px 44px;
  cursor: pointer;
}

.story-main-nav__list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
          transform: translateY(-100%);
}

.story-main-nav__list.story-main-nav__list--is-visible {
  -webkit-transform: translateY(50px);
      -ms-transform: translateY(50px);
          transform: translateY(50px);
}

.eab-site .story-main-nav__list a {
  display: block;
  height: 50px;
  line-height: 50px;
  padding-left: 5%;
  background: #2f292a;
  border-top: 1px solid #453c3d;
  color: #8e7d7f;
}

@media only screen and (min-width: 768px) {
  .story-main-nav {
    /* reset style */
    width: auto;
    height: auto;
    background: none;
    cursor: auto;
  }
  .story-main-nav__list {
    /* reset style */
    position: static;
    width: auto;
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);
    line-height: 70px;
    margin-top: 16px;
  }
  .story-main-nav__list.story-main-nav__list--is-visible {
    /* reset style */
    -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
            transform: translateY(0);
  }
  .story-main-nav__list li {
    display: inline-block;
    margin-left: 1em;
  }
	.eab-site .story-main-nav__list a {
    display: inline-block;
    height: auto;
    line-height: normal;
    background: transparent;
    padding: .6em 1em;
    border-top: none;
    color: #b4d7a8;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.4rem;
  }
  .eab-site .story-main-nav__list a:hover {
    color: #99a478;
  }
}

.story-fixed-bg {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  z-index: 1;
}
.story-fixed-bg.story-fixed-bg--half-screen {
  min-height: 50vh;
}

.story-fixed-bg__content, .story-fixed-bg h2 {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
      -ms-transform: translateX(-50%) translateY(-50%);
          transform: translateX(-50%) translateY(-50%);
  width: 90%;
  max-width: 1170px;
  margin: 0 auto;
  text-align: center;
  font-size: 3em;
  text-wrap: balance;
}

.story-fixed-bg h1, .story-fixed-bg h2 {
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.5);
  color: white;  
  font-size: 3rem;
  font-weight:300;
  line-height:1.1;
}


@media only screen and (min-width: 768px) {
  .story-fixed-bg h1 {
    font-size: 3.3rem;
  }
  .story-fixed-bg h2 {
    font-size: 3.1rem;
  }
}

@media only screen and (min-width: 899px) {
  .story-fixed-bg h1 {
    font-size: 4rem;
  }
  .story-fixed-bg h2 {
    font-size: 3.6rem;
  }
}
@media only screen and (min-width: 1170px) {
  .story-fixed-bg h1, .story-fixed-bg h2 {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1.1;
  }
}
@media only screen and (min-width: 1170px) {
  .story-fixed-bg h1.longer-text, .story-fixed-bg h2.longer-text {
    font-size: 4rem;
  }
}

.story-scrolling-bg {
  position: relative;
  min-height: 100%;
  padding: 4em 0;
  line-height: 1.6;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.story-scrolling-bg.story-no-box-shadow {
  box-shadow: 0 0 0;
}
.story-full-height {
  min-height: 100vh;
}

.story-scrolling-bg.story-scrolling-bg--color-1 {
  background-color: #3d3536;
  color: #a6989a;
}

.story-scrolling-bg.story-scrolling-bg--color-2 {
  background-color: #99a478;
  color: #3d3536;
}

.story-scrolling-bg.story-scrolling-bg--color-3 {
  background-color: #b4d7a8;
  color: #3d3536;
}

.story-scrolling-bg.story-scrolling-bg--color-4 {
  background-color: #388563;
  color: #97D1B8;
}

.story-scrolling-bg.story-scrolling-bg--color-5 {
  background-color: #388563;
  color: #ffffff;
}

.story-scrolling-bg__content {
  width: 90%;
  max-width: 768px;
  margin: 0 auto;
}

@media only screen and (min-width: 768px) {
  .story-scrolling-bg {
    padding: 8em 0;
    font-size: 2rem;
    line-height: 2;
    font-weight: 300;
  }
}
.section-title {
  font-size: 2em;
  text-align: center;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1.3em;
  text-align: center;
  line-height: 1.2;
}
ul.icons {
    cursor: default;
    list-style: none;
    padding-left: 0;
}
ul.icons li {
    display: inline-block;
    padding: 0 0.5em 0 0.5em;
}
ul.icons li a:hover{
    color: #D5FFC7;
}
.icon > .label {
    display: none;
}
.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    text-transform: none !important;
}
footer {
  text-align: center;
}
svg:hover #emblem { fill: darkslateblue; }

/* TYPOGRAPHY */



.text-over-media .text {
	position: absolute;
	min-width: 80%;
	width: 80%;
	margin: 0 auto;
	padding: 5%;
}
.text-over-media.text-over-media-inner {
	font-size: 12rem;
	font-weight: 400;
	line-height: 1.05;
}
.text-over-media.text-over-media-inner {
	font-size: 12rem;
}
@media only screen and (max-width: 767px) {
	.text-over-media.text-over-media-inner {
		font-size: 6rem;
	}
}
.text.on-top {
  top: 20%;
}
.text.right {
	right: 0;
	text-align: right;
}
.text.left {
	left: 0;
	text-align: left;
}

.background-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0,0,0,.2);
}
.background-overlay.background-overlay--very-dark {
  background-color: rgba(0,0,0,.85);
}

.eab-site .text-over-media-caption {
    z-index: 5;
    text-align: left;
    position: absolute;
    margin: auto;
    padding: 15px 30px;
    bottom: 0;
    left: 0;
    right: 0;
    visibility: visible;
    color: #fff;
    background-color: #212121;
    background-color: rgba(0, 0, 0, .4);
}

/* TEXT COLUMNS */

.scrollmation-text {
    z-index: 2;
}
.main-column {
    background: #fff;
    background: rgba(255, 255, 255, .8);
}
.main-column {
    margin: 0 30px;
}
.main-column {
    font-size: 18px;
}
.column-right {
    float: right;
}
.column-left {
    float: left;
}
.main-column {
    width: 100%;
    max-width: 620px;
    padding: 20px 30px;
    font-size: 20px;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}
@media (max-width: 900px) {
	.main-column {
    	margin: 0 auto;
    	float: none;
  }
}

.story-fixed-bg__content.story-fixed-bg__content__backing span {
    background-image: linear-gradient(to right bottom, rgba(17,141,86,0.85), rgba(35,82,61,0.85));
    background-image: linear-gradient(to right bottom, rgba(126,213,111,0.85), rgba(40,180,133,0.85));
    line-height: 1.4;
    padding: .1rem 1rem;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.story-fixed-bg__content.story-fixed-bg__content__backing.story-fixed-bg__content__backing--green span {
    background-image: linear-gradient(to right bottom, rgba(17,141,86,0.85), rgba(35,82,61,0.85));
    background-image: linear-gradient(to right bottom, rgba(126,213,111,0.85), rgba(40,180,133,0.85));
}

/* demo style */

.eab-site .story-nugget-info {
  display: inline-block;
  padding: 1em 1.4em 1em;
  margin-top: 20px;
  background: #b4d7a8;
  font-size: 18px;
  border-radius: .25em;
  color: #3d3536;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.eab-site .story-nugget-info .story-nugget-info-arrow {
  fill: #3d3536;
}

.eab-site .story-nugget-info span {
  vertical-align: middle;
  display: inline-block;
}

.eab-site .story-nugget-info span svg {
  display: block;
}

.eab-site .story-nugget-info:hover {
  background: #99a478;
  color: #3d3536;
}
.button-row {
	display: block;
	margin: 0 auto;
	padding: 15px;
	text-align: center;
}

/* THE MAGIC BIT. CLASS CHANGES TO CENTRED WHEN TEXT REACHES TOP OF VIEWPORT. MUST WORK OUT JS */

.scrollmation-background .scrollmation-slides.sticky-element {
	bottom: auto
}
.scrollmation-background .scrollmation-slides.sticky-centered {
	position: fixed
}
.scrollmation-background .scrollmation-slides.sticky-bottom {
	bottom: 0
}
.scrollmation-background .scrollmation-slide {
	position: absolute;
	top: 50%;
	left: 50%;
	overflow: hidden;
	display: block
}