/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
	 ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/** Box sizing to each element **/
* {
  box-sizing: border-box;
  outline: none;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
	 ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* ===== Hide outlines from clicked ===== */
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

/* ===== Stop links braking teh layout ===== */
a, p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.footer {
  flex-shrink: 0;
}

/* Fonts */
body {
  font-family: "DM Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
}

h1 {
  font-size: 20px;
}

h2 {
  margin-top: 0;
}

p {
  line-height: 1.5em;
}
p.intro {
  font-size: 1.7em;
}

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

.centre {
  text-align: center;
}

/* ===== Forms ===== */
label {
  font-size: 1em;
}
label span {
  font-size: 0.9em;
  color: #999;
}

input {
  margin: 5px 0 35px 0;
  font-size: 18px;
}

input[type=text], input[type=password], input[type=email] {
  width: 100%;
  padding: 10px;
  color: #666;
  border: 1px solid #999;
  border-radius: 5px;
}

input[type=checkbox] {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

input[type=submit] {
  width: 100%;
  padding: 12px;
  color: #fff;
  background-color: #35b7fb;
  border: 0;
  border-radius: 5px;
}
input[type=submit]:hover {
  background-color: #05a5f8;
}

::placeholder {
  font-size: 0.9em;
}

.form-error {
  margin: -30px 0 30px 0;
  font-size: 0.8em;
  color: red;
}

/* ===== Blocks ===== */
.content-wrapper {
  flex: 1 0 auto;
  width: 100%;
  background: #b8e5fd;
}

.block-1 {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

.block-2 {
  max-width: 400px;
  margin: 0 auto;
}

.inner-block {
  padding: 40px 40px 20px 40px;
  background-color: #fff;
  border-radius: 20px;
}

.block-border {
  border: 0px solid #ccc;
  border-radius: 0px;
  box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.small-print {
  font-size: 0.8em;
}

a {
  color: #35b7fb;
}
a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
.header {
  text-align: center;
  position: relative;
  width: 100%;
  background: white;
}
.header .branding {
  padding: 20px 0;
}
.header .branding a {
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
}

/* ===== Footer ===== */
.footer {
  padding: 20px 0;
  color: #fff;
  background-color: #01273a;
}

.non-mobile-menu, .login-options, .mobile-menu {
  z-index: 99;
  position: absolute;
  top: 20px;
  right: 20px;
}

.account-options {
  display: block;
  position: absolute;
  right: 0px;
  width: 200px;
  padding: 8px 0;
  text-align: left;
  background-color: #01273a;
  border-radius: 10px;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}
.account-options a {
  display: block;
  padding: 5px 12px;
  color: #85d4fd;
  text-decoration: none;
}
.account-options a:hover {
  color: #fff;
}

.mobile-menu .account-options {
  display: none;
  margin-top: 30px;
}
.mobile-menu .account-options.active {
  display: block;
}

.non-mobile-menu {
  display: none;
}
.non-mobile-menu .account-options {
  display: none;
}
.non-mobile-menu:hover .account-options {
  display: block;
}

.my-account-link {
  padding: 3px 10px;
  color: #fff;
  background-color: #67c9fc;
  text-decoration: none;
  border-radius: 20px;
}
.my-account-link:hover {
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  position: absolute;
  top: 0px;
  right: 0px;
  padding: 0;
  display: block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  overflow: visible;
}

.hamburger:hover {
  opacity: 1;
}

.hamburger-box {
  width: 30px;
  height: 30px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: #000;
  border-radius: 5px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -7px;
}

.hamburger-inner::after {
  bottom: -7px;
}

/*
* Boring
*/
.hamburger-boring .hamburger-inner, .hamburger-boring .hamburger-inner::before, .hamburger-boring .hamburger-inner::after {
  /*transition-property: none;*/
}

.hamburger-boring.is-active .hamburger-inner {
  transform: rotate(45deg);
  background-color: #000;
}

.hamburger-boring.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  background-color: #000;
}

.hamburger-boring.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  background-color: #000;
}

@media screen and (min-width: 37.5em) {
  .mobile-menu {
    display: none;
  }
  .mobile-menu .account-options {
    display: none;
  }

  .non-mobile-menu {
    display: block;
  }

  .account-menu .account-options {
    display: none;
  }
}
#block-id-counter {
  display: none;
}

.backlink {
  display: inline-block;
  position: absolute;
  top: 23px;
  left: 20px;
}
.backlink .back-btn {
  padding-left: 5px;
  font-size: 18px;
  color: #a6a6a6;
  text-decoration: none;
  z-index: 99;
}
.backlink .arrow {
  border: solid #a6a6a6;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 4px;
}
.backlink .left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}
.backlink:hover .back-btn {
  text-decoration: underline;
}
.backlink.branding {
  top: 15px;
  padding: 0;
}
.backlink.branding a {
  color: #67c9fc;
}

.add-item-button {
  width: 47px;
  height: 47px;
  padding: 0;
  line-height: 0;
  border: 0;
  background: none;
}

.plus-button {
  width: 60px;
  height: 60px;
  fill: #67c9fc;
}
.plus-button:hover {
  fill: #35b7fb;
}

.no-timelines {
  margin-top: 40px;
  text-align: center;
}
.no-timelines p {
  margin: 0;
}

.has-timelines {
  max-width: 600px;
  margin: 0 auto;
  text-align: right;
}
.has-timelines .add-item-button {
  width: 34px;
  height: 34px;
}
.has-timelines .plus-button {
  width: 42px;
  height: 42px;
}

.delete-timeline {
  width: 23px;
  height: 23px;
  padding: 0;
  line-height: 0;
  border: 0;
  background: none;
}

.delete-button {
  width: 30px;
  height: 30px;
  fill: #fa6aa0;
}
.delete-button:hover {
  fill: #c4074e;
}

.timelines-list-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.timelines-list-container li {
  position: relative;
  padding: 10px 5px;
  border-top: 1px solid #f1f1f1;
}
.timelines-list-container li .small-print {
  color: #666;
}
.timelines-list-container li button {
  position: absolute;
  top: 10px;
  right: 5px;
}
.timelines-list-container a {
  font-size: 1.3em;
  text-decoration: none;
}
.timelines-list-container a:hover {
  color: #059eee;
}

/* ===== Timelines Header ===== */
.single-timeline-header {
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 98;
}
.single-timeline-header .block-1 {
  position: relative;
  padding: 20px;
}
.single-timeline-header h1 {
  width: 80%;
  margin: 15px auto 10px;
  padding: 2px;
  font-size: 24px;
  font-weight: bold;
  line-height: 1em;
  text-align: center;
}
.single-timeline-header h1:focus {
  padding: 1px;
  border: 1px solid #ccc;
}

.single-timeline {
  background-color: #b8e5fd;
}
.single-timeline .block-1 {
  padding: 5px 0;
}
.single-timeline .non-mobile-menu, .single-timeline .mobile-menu {
  position: fixed;
}

.wrapper {
  position: relative;
  flex: 1 0 auto;
  background: white;
  width: 100%;
  margin: -12px auto 0;
  padding-bottom: 60px;
}
.wrapper input {
  width: 100%;
  font-size: 22px;
  font-weight: bold;
  border: 0;
}
.wrapper textarea {
  width: 100%;
  height: 30px;
  border: 0;
}

.add-first-block-notice {
  max-width: 400px;
  margin: -10px auto 0;
  padding-top: 250px;
  font-size: 24px;
  font-weight: bold;
  color: #ececec;
  text-align: center;
  background-image: url("../images/curved_arrow.png");
  background-position: 80px;
  background-repeat: no-repeat;
  background-size: 200px 200px;
}

/* Save button */
.saving {
  position: fixed;
  top: 14px;
  right: 20px;
}

.save-the-timeline {
  padding: 5px 20px;
  font-weight: bold;
  color: #fff;
  background-color: #e6e6e6;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
}

.saving-animation {
  position: fixed;
  top: 7px;
  right: 100px;
  display: none;
  width: 50px;
  height: 50px;
  text-align: center;
  z-index: 99;
  overflow: auto;
}

.saving-animation-dual-ring {
  display: inline-block;
  width: 30px;
  height: 30px;
}

.saving-animation-dual-ring:after {
  content: " ";
  display: block;
  width: 22px;
  height: 22px;
  margin: 8px;
  border-radius: 50%;
  border: 3px solid #fff;
  border-color: #67c9fc transparent #67c9fc transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.save-the-timeline.unsaved {
  background-color: #3daf2c;
}
.save-the-timeline.unsaved:hover {
  background-color: #6bc04b;
}

.block-id-counter {
  display: none;
}

/* ===== Add button ===== */
.add-button {
  display: block;
  width: 24px;
  height: 24px;
  padding-bottom: 2px;
  text-indent: -9999px;
  background: transparent;
  background-image: url("../images/plus.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  border: 0;
  cursor: pointer;
  z-index: 90;
}
.add-button:hover {
  background-image: url("../images/plus_hover.png");
}
.add-button.hidden {
  background-image: none;
  cursor: auto;
}

.first-add-button-wrapper {
  width: 90%;
  margin: 90px auto 0;
  z-index: 10;
}
.first-add-button-wrapper .first-add-button {
  display: block;
  margin-left: -12px;
}

/* ===== Timeline blocks ===== */
.date-block-wrapper {
  margin: 0 auto;
  width: 90%;
}
.date-block-wrapper .date-block {
  position: relative;
  padding-top: 30px;
  padding-bottom: 40px;
}
.date-block-wrapper .date-block h2 {
  margin: 10px 0 0 0;
  padding: 2px;
  font-size: 1.4em;
}
.date-block-wrapper .date-block h2:focus {
  padding: 1px;
  border: 1px solid #ccc;
}
.date-block-wrapper .date-block h2 span {
  font-size: 1em !important;
}
.date-block-wrapper .block-buttons {
  position: absolute;
  padding: 5px;
  border: 1px solid #ccc;
}
.date-block-wrapper .block-buttons.hidden {
  display: none;
  cursor: auto;
}
.date-block-wrapper .block-buttons .block-header-colour {
  height: 25px;
}
.date-block-wrapper .block-button {
  display: block;
  margin: 5px 0;
}
.date-block-wrapper .content {
  padding: 0 0 0 70px;
  text-align: left;
}
.date-block-wrapper .content p {
  margin: 10px 0 0 0;
  padding: 2px;
  line-height: 1.2em;
}
.date-block-wrapper .content p div {
  margin-top: 10px;
}
.date-block-wrapper .content p:focus {
  padding: 1px;
  border: 1px solid #ccc;
}
.date-block-wrapper .fake-block::before {
  display: inline-block;
  content: "";
  border-top: 4px solid black;
  width: 50px;
  margin: 0 20px 0 -70px;
  transform: translateY(3rem);
}
.date-block-wrapper.left .add-button {
  position: absolute;
  bottom: -5px;
  left: -12px;
}
.date-block-wrapper.left .block-buttons {
  top: 20px;
  right: -50px;
}
.date-block-wrapper.left .date-block {
  width: 92%;
  border-left: 1px solid #000;
}
.date-block-wrapper.right .add-button {
  position: absolute;
  bottom: -5px;
  left: -12px;
}
.date-block-wrapper.right .block-buttons {
  top: 20px;
  right: -50px;
}
.date-block-wrapper.right .date-block {
  width: 92%;
  border-left: 1px solid #000;
}

/* Block buttons */
.block-buttons .move-up, .block-buttons .move-down, .block-buttons .delete {
  width: 20px;
  height: 20px;
  fill: #ddd;
}
.block-buttons .move-up:hover, .block-buttons .move-down:hover {
  fill: #999;
}
.block-buttons .move-up:active, .block-buttons .move-down:active {
  fill: #aaa;
}
.block-buttons .move-up {
  margin: 8px 0 0 0;
}
.block-buttons .delete {
  margin: 10px 0 0 0;
  fill: #fa6aa0;
}
.block-buttons .delete:hover {
  fill: #c4074e;
}
.block-buttons .delete:active {
  fill: #f83981;
}

.date-block:hover .mouse-up {
  fill: #000;
}

/* ===== Timeline settinsg box ===== */
.timeline-settings {
  position: fixed;
  top: 140px;
  left: 50%;
  width: 200px;
  margin-left: -700px;
  padding: 10px;
  font-size: 14px;
  background-color: white;
  z-index: 100;
}
.timeline-settings div {
  padding: 10px 0 0;
}
.timeline-settings h2 {
  margin: 0;
  font-size: 18px;
}
.timeline-settings button {
  display: block;
  width: 100%;
  padding: 5px 0;
  background: transparent;
  border: 1px solid #ccc;
  cursor: pointer;
}
.timeline-settings button:hover {
  color: grey;
}
.timeline-settings .font-list {
  display: none;
  margin: -1px 0 0 0;
  border: 1px solid #ccc;
}
.timeline-settings .font-list li {
  margin: 10px 0 10px 20px;
  cursor: pointer;
}
.timeline-settings .font-size {
  display: flex;
}
.timeline-settings .font-size button {
  display: inline-block;
}
.timeline-settings .font-size .font-smaller {
  font-size: 12px;
}
.timeline-settings .font-size .font-larger {
  font-size: 20px;
}
.timeline-settings .font-size .font-reset {
  font-size: 14px;
  border-left: 0;
  border-right: 0;
}
.timeline-settings .background-color-wrapper {
  position: relative;
  margin-top: 10px;
  padding: 3px;
  border: 1px solid #ccc;
}
.timeline-settings .reset-bg-colour {
  position: absolute;
  display: inline-block;
  width: auto;
  border: 0;
  color: #b3b3b3;
  padding: 0 3px;
}
.timeline-settings input {
  margin: 0;
  padding: 0;
}
.timeline-settings .reset-button {
  margin-top: 20px;
  font-size: 0.9em;
}

.confirm-delete-options {
  position: absolute;
  bottom: 0;
}
.confirm-delete-options button {
  display: inline !important;
  font-family: "DM Sans", "Helvetica Neue", Helvetica, arial, sans-serif;
  font-size: 16px !important;
}

.left .confirm-delete-options {
  left: 50px;
}

.right .confirm-delete-options {
  right: 50px;
}

.footer-shared {
  text-align: center;
}

@media screen and (min-width: 37.5em) {
  .timelines-list-container li .delete-timeline {
    display: none;
  }
  .timelines-list-container li:hover {
    background-color: #fafafa;
  }
  .timelines-list-container li:hover .delete-timeline {
    display: block;
  }
}
@media screen and (min-width: 724px) {
  .first-add-button-wrapper {
    width: 100%;
    margin: 90px 0 0;
    z-index: 10;
  }
  .first-add-button-wrapper .first-add-button {
    display: block;
    margin: 0 auto;
  }

  .wrapper {
    max-width: 700px;
  }

  .date-block-wrapper {
    width: 290px;
  }
  .date-block-wrapper .content {
    border-top: 3px solid #000;
  }
  .date-block-wrapper.left .date-block {
    width: 290px;
    padding-bottom: 0;
    margin-left: -145px;
    border-left: 0;
    border-right: 1px solid #000;
  }
  .date-block-wrapper.left .content {
    padding: 0 30px 0 0;
  }
  .date-block-wrapper.left .block-buttons {
    top: 40px;
    left: -50px;
    right: auto;
  }
  .date-block-wrapper.left .add-button {
    left: auto;
    right: -12px;
  }
  .date-block-wrapper.right .date-block {
    width: 290px;
    margin-left: 144px;
    border-left: 1px solid #000;
  }
  .date-block-wrapper.right .content {
    padding: 0 0 0 30px;
  }
  .date-block-wrapper .fake-block::before {
    display: none;
  }
}
@media screen and (min-width: 780px) {
  .wrapper {
    max-width: 720px;
  }

  .date-block-wrapper {
    width: 300px;
  }
  .date-block-wrapper.left .date-block {
    width: 300px;
    margin-left: -150px;
    border-right: 1px solid #000;
  }
  .date-block-wrapper.left .block-buttons {
    top: 40px;
  }
  .date-block-wrapper.right .date-block {
    width: 300px;
    margin-left: 149px;
    border-left: 1px solid #000;
  }
  .date-block-wrapper.right .block-buttons {
    top: 40px;
  }
}
@media screen and (max-width: 723px) {
  .date-block-wrapper .content {
    border: 0 !important;
  }
}
h1 {
  font-size: 20px;
}

h2 {
  margin-top: 0;
}
