/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* This is a fix for the bootstrap4 alpha release */
@media (max-width: 47.9em) {
  .navbar-nav .nav-item {
    float: none;
    width: 100%;
    display: inline-block;
  }

  .navbar-nav .nav-item + .nav-item {
    margin-left: 0;
  }

  .nav.navbar-nav.pull-xs-right {
    float: none !important;
  }
}

/* Display django-debug-toolbar.
   See https://github.com/django-debug-toolbar/django-debug-toolbar/issues/742
   and https://github.com/pydanny/cookiecutter-django/issues/317
*/
[hidden][style="display: block;"] {
  display: block !important;
}






/*App custom styles*/
/*general styles*/

body {
	font-family: 'Montserrat', sans-serif;
	color: #4d4d4d;
	background-color: #fcfcfc;
	height: 100%;
	width: 100%;
}

footer {
  padding-bottom: 2em;
  margin-top: 5em;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
}

footer p {
  text-align: center;
  font-size: 0.9em;
}

footer a {
  font-weight: 600;
}

h1 {
	margin: 0;
}

p {
  font-size: 1.1rem;
  line-height: 2rem;
}

a {
	text-decoration: none;
	outline: 0;
	color: #3acccc;
}

a:hover {
  color: #fff;
  background-color: #3acccc;
}

.full-width {
   width: 100%;
   margin-left: auto;
   margin-right: auto;
   max-width: initial;
}

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

.bold {
  font-weight: 700;
}

.wrap-text {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;

}
/*top section styles*/

#top-div {
  background-color: #4527A0;
	min-width: 100%;
  height: auto;
	padding-bottom: 3em;
  padding-top: 4em;
}

#nav-left {
	text-align: left;
	padding-left: 1.5em;
}

#nav-right {
	text-align: right;
	padding-right: 1em;
}

#nav-first-line, #nav-second-line {
  text-align: center;
}

#nav-first-line {
  margin-top: 1em;
}

#nav-second-line {
  margin-top: 3em;
}

#logo {
	max-width: 11em;
	display: inline-block;
	vertical-align: middle;
  text-align: center;
}

#top-home-link {
	text-decoration: none;
	text-align: center;
}

#top-home-link:hover {
	border-bottom: 0px;
}

#menu-list {
	margin: 0;
	padding: 0;
	margin-top: 1em;
	color: #fff;
}

.menu-item {
	display: inline-block;
	margin-right: 1.5em;
	margin-left: 1.5em;
	position: relative;
}

.menu-link {
	font-size: 1.6em;
	font-weight: 400;
	color: #fff;
	transition: all 0.3s ease-in;
	-webkit-transition: all 0.3s ease-in;
	-moz-transition: all 0.3s ease-in;
	-o-transition: all 0.3s ease-in;
}

.menu-link::before {
  content: '';
  height: 5px;
  width: 0;
  background-color: #3acccc;
  display: block;
  transition-property: width;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

.menu-link:hover::before {
  width: 100%;
}

.menu-link:hover {
  background-color: transparent;
}

.active-item::before {
	content: '';
	height: 5px;
	position: absolute;
	width: 100%;
	background-color: #3acccc;
	display: block;
	transition-property: width;
	transition-duration: 200ms;
	transition-timing-function: ease-in-out;
}

#i18n-container {
	margin-top: 2em;
	padding-right: 2.5em;
	text-align: right;
	color: #fff;
}

.i18n-link {
	font-size: 1.1em;
	color: #fff;
	font-weight: 400;
	margin-left: 5px;
	margin-right: 5px;
}

.i18n-link:hover {
	border-bottom: 2px solid #fff;
	padding-bottom: 2px;
}

#cta-section {
	margin-top: 2.5em;
}

.cta-link-container {
	text-align: center;
	margin-top: 1.5em;
}

.cta-copy {
	font-size: 2.5em;
	font-weight: 400;
	color: #fff;
	text-align: center;
}

.i18n-selected {
	font-weight: 700;
}

.tagline-row {
  background-color: #4527A0;
  padding-bottom: 4em;
}

.tagline {
  color: #fcfcfc;
  font-size: 2.5em;
  /* font-weight: 300; */
  text-align: center;
  max-width: 750px;
  margin-right: auto;
  margin-left: auto;
  margin-top: 2em;
  padding-bottom: 0.7em;
  padding-top: 0.7em;
  padding-right: 0.5em;
  padding-left: 0.5em;
  box-sizing: border-box;
  background-color: #3acccc;
  background: linear-gradient(to right, #44E2DE, #3acccc);
  box-shadow: 12px 12px 5px 5px rgba(0,0,0,0.4);
}

@media (max-width: 1024px) {
	.menu-item {
		margin-left: 0.8em;
		margin-right: 0.8em;
	}

  #top-div {
    padding-top: 2em;
    padding-bottom: 1.5em;
  }

  #svg-container {
    height: 16em;
  }

  #logo {
    max-width: 9em;
  }

  #nav-left {
    padding-left: 0;
  }

  .menu-link {
    font-size: 1.4em;
  }
}

@media (max-width: 640px) {
  #nav-first-line {
    margin-top: 0;
  }

  #nav-second-line {
    margin-top: 1.5em;
  }

  #svg-container {
    height: 12em;
  }
  #fourth-squares rect:nth-child(1n) {
    opacity: 0;
    animation-name: show;
    animation-duration: 500ms;
    animation-delay: 3000ms;
    animation-fill-mode: forwards;
  }

  #logo {
		max-width: 7em;
	}

  #menu-list {
		text-align: center;
	}

	.cta-copy {
		font-size: 1.4em;
		max-width: 500px;
		margin-left: auto;
		margin-right: auto;
	}

	#i18n-container {
		margin-top: 4em;
	}

  .menu-link {
		font-size: 1.2em;
	}

  .menu-link::before {
    content: none;
  }

  .active-item:before {
    position: relative;
  }
}

@media (max-width: 550px) {
	.cta-link {
		padding: 1em 3em;
	}

	#i18n-container {
		padding-right: 1em;
	}
}

@media (max-width: 315px) {
	.menu-item {
		margin-left: 0.5em;
		margin-right: 0.5em;
	}

	.menu-link {
		font-size: 1em;
	}
}


/*-------------------*/
/*ends top section styles*/
/*------------------*/

.i18n-section {
  margin-top: 4em;
}

.i18n-title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.i18n-image {
  height: 70px;
  margin-right: 1.5em;
}
.i18n-title {
  font-size: 2.5em;
}

.i18n-link {
  font-weight: 700;
  color: #3acccc;
}

.i18n-text {
  font-size: 1.2em;
}

.search-list, .tag-list {
	margin: 0;
	padding: 0;
	list-style-type: none;
	text-align: left;
  margin-bottom: 1.5em;
}

.tag-list {
  margin-top: 4em;
}

.languages-item, .tag-item {
	display: inline-block;
	margin-right: 0.6em;
    margin-top: 0.5em;
}

.languagues-title, .tag-title {
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.tag {
	text-decoration: none;
	padding: 0.5em;
	border: 1px solid #3acccc;
	border-radius: 2px;
	color: #12A4A4;
  display: block;
}

.languages-tag {
  padding: 0.5em 0.8em;
  background-color: rgba(199, 204, 251, 0.5);
  background: linear-gradient(to left, rgba(199, 204, 251, 0.5), rgba(199,255,253, 0.6));
  border-radius: 2px;
  color: #444;
  display: block;
}

.languages-tag:hover {
  color: #4527A0;
  background: linear-gradient(to left, rgba(199, 204, 251, 1), rgba(199, 255, 253, 1));
}

.language-selected {
    background: rgba(199, 204, 251, 0.6);
}

.tag-active {
  background-color: rgba(58,204,204,0.2);
  padding: 0.5em;
  border: 1px solid #3acccc;
  border-radius: 2px;
  color: #12A4A4;
  text-align: center;
  display: block;
}

.infographic-tag {
  text-decoration: none;
	padding: 0.5em;
	border: 1px solid #3acccc;
	border-radius: 2px;
	color: #12A4A4;
  margin-bottom: 10px;
  display: block;
}

.infographic-tag-list {
  margin-bottom: 1.5em;
  margin-top: 2em;
}

.show-all-link {
  font-weight: 600;
  padding: 10px;
  border: 1px solid #3acccc;
  border-radius: 2px;
  display: block;
}

.content {
	text-align: center;
	margin-top: 1em;
}

.infographic-image-container {
	background-color: #333;
	width: 100%;
	/* height: 20em; */
	overflow: hidden;
	position: relative;
	max-width: 450px;
	margin: auto;
	border-radius: 5px 5px 0 0;
}

.infographic-image {
	width: 100%;
	/* position: absolute; */
  display: block;
	left: 0;
	top: 0;
  -webkit-filter: grayscale(1);
	-webkit-filter: grayscale(100%);
	filter: gray;
	filter: grayscale(100%);
}

.overlay {
	position: absolute;
	top: 0;
	left:0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	/*opacity: 0;*/
	z-index: 3;
	transition: opacity 0.1s ease-in;
	border-radius: 5px 5px 0 0;
  box-shadow: inset 0 0 25px 4px rgba(0,0,0,0.1);
}

.infographic-sample-link:hover > .overlay {
	box-shadow: none;
}

.infographic-sample-link:hover > .infographic-image {
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
}

.featured-infographic .infographic-image-container {
  box-shadow: 0 0 5px 2px #3acccc;
}

.custom-infographic .infographic-image-container {
  box-shadow: 0 0 5px 2px #4527A0;
}

.add-tag, .custom-tag {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #fcfcfc;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 3px 0 0 0;
}

.add-tag {
  background-color: #3acccc;
}

.custom-tag {
  background-color: #4527A0;
}

.title-container {
	background-color: #e9e9e9;
	padding: 0.8em;
	padding-left: 1.6em;
	min-height: 8.8em;
	max-width: 450px;
	margin: auto;
	text-align: left;
}

.infographic-container {
	margin-top: 3em;
}

.infographic-sample-title {
  font-size: 1.5em;
	margin-top: 0.5em;
	margin-bottom: 0;
  display: inline;
}

.infographic-sample-title-link {
  color: #4d4d4d;
  background-color: transparent;
}

.infographic-sample-title-link:hover {
  color: #4527A0;
  background-color: transparent;
}

.infographic-sample-date {
  font-size: 0.9em;
	margin-top: 0.5em;
}

@media (max-width: 700px) {
  .i18n-title {
    font-size: 2em;
  }
}

@media (max-width: 640px) {
  .tag-list {
    margin-bottom: 0;
  }
  .tagline {
    font-size: 2em;
    max-width: 550px;
  }
}

@media (max-width: 600px) {
  .tag-list {
    margin-top: 2em;
  }
}

@media (max-width: 500px) {
  .infographic-container {
    margin-top: 2em;
  }
  .tagline-row {
    padding-bottom: 2.5em;
  }
  .tagline {
    font-size: 1.5em;
  }

  .i18n-title {
    font-size: 1.5em;
  }

  .i18n-text {
    font-size: 1em;
  }

  .i18n-image {
    height: 60px;
    margin-right: 1em;
  }
}

.section-title {
	font-size: 2em;
}

/*--------------*/
/*Support section styles*/
/*--------------*/

#support-container {
  background-color: #3acccc;
  padding: 0 1em 1.5em 1em;;
  width: auto;
  height: auto;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  display: none;
}

.support-text {
  font-size: 1em;
  color: #fff;
  font-weight: 700;
}

.support-text-larger {
  font-size: 1.2em;
}

#support-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 400px;
}

#support-address {
  background: rgba(255,255,255,0.8);
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
  border: 0;
  padding: 9px;
  color: #333;
  font-size: 0.85em;
  flex-grow: 2;
}

.support-button {
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
  margin-left: 4px;
  border-radius: 0;
}

#support-copy-button {
  padding: 9px;
  /* border: 2px solid #fff; */
  background: #fff;
  color: #3acccc;
  font-weight: 700;
  font-size: 1em;
}

#support-qr-code-button {
  background: #fff;
  padding: 4px;
}

#qr-code-scan {
  height: 26px;
}

.hide {
  display: none;
}

.support-feedback {
  color: #fff;
  font-size: 0.9em;
  margin: 0.5em;
  font-weight: 700;
  display:none;
}

#qr-code-container {
  display: block;
  margin: auto;
  margin-top: 1em;
  background-color:rgba(255,255,255,0.2);
  position: relative;
  display: none;
}

#qr-code-close-button {
  position: absolute;
  right: 10px;
  top: 10px;
}

#qr-code-close-icon {
  height: 24px;
  width: auto;
}

#qr-code-image {
  height: 180px;
  width: auto;
  margin: auto;
  display: block;
  padding: 1em 0;
}

#support-container-mobile {
  background-color: #3acccc;
  width: auto;
  height: auto;
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 999;
  display: none;
}

.support-container-link {
  padding: 1em;
  color: #fff;
  font-weight: 700;
  display: block;
}

#support-heart-img {
  height: 20px;
  margin-left: 3px;
  width: auto;
  display: inline;
}

#support-page-address {
  display: block;
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.8);
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
  border: 0;
  padding: 9px;
  color: #333;
  font-size: 0.85em;
}

.support-button-mobile {
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
  margin-left: 4px;
  border-radius: 0;
}

#support-page-copy-button {
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
  margin-left: 4px;
  border-radius: 0;
  padding: 12px;
  /* border: 2px solid #fff; */
  color: #fff;
  font-weight: 700;
  font-size: 1em;
  background: #3acccc;
}

#support-page-copy-button:hover {
  background: #333;
}

#support-page-address-container {
  margin-top: 2em;
  display: flex;
  flex-direction: row;
}

#support-page-qr-code-container {
  margin-top: 2em;
}

#support-page-qr-code {
  width: 180px;
  height: auto;
  margin-left: 0;
  display: block;
  box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
}

.support-page-feedback {
  color: #3acccc;
  font-size: 0.9em;
  margin: 0.5em;
  font-weight: 700;
  display:none;
}

#support-title-container {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

#support-title-heart {
  height: 40px;
  width: auto;
  margin-left: 1em;
}

.support-page-patreon-section {
  margin-top: 3em;
}

@media (max-width: 640px) {
  #support-container {
    display: none !important;
  }

  #support-container-mobile {
    display: block;
  }

  #support-page-qr-code {
    margin: auto;
  }
}
/*--------------*/
/*About page styles*/
/*--------------*/

.page-title {
	font-size: 3em;
  margin-top: 1.5em;
}

.page-subtitle {
	text-align: left;
	font-size: 1.8em;
}

.about-text {
	text-align: left;
  font-size: 1.1em;
}

.bio-info a {
  font-weight: 600;
}

.team-member-picture {
  width: 180px;
  height: auto;
  box-shadow: 3px 3px 4px rgba(0,0,0,0.2);
}

.team-member {
  margin-bottom: 4em;
}

.team-member:last-of-type {
  margin-bottom: 2em;
}

.team-member-info {
  margin-bottom: 0.2em;
  margin-top: 0.2em;
}

.team-member-name {
  font-size: 1.4em;
  margin-bottom: 0.2em;
  margin-top: 0.8em;
}

@media (max-width: 640px) {
  .page-title {
    margin-top: 1em;
    margin-bottom: 0;
    font-size: 2.8em;
  }

  .page-subtitle {
    margin-bottom: 0.5em;
  }

  .author-name {
    margin-top: 1.2em;
    margin-bottom: 0;
  }
}

/*----------------*/
/*Infographic page styles*/
/*----------------*/

.infographic-title {
  font-size: 3em;
  margin-top: 1em;
  margin-bottom: 0;
}

.newer-older-container {
  margin-top: 3em;
  margin-bottom: 2em;
}

.newer-container, .older-container {
  margin-top: 3em;
}

.older-container {
  text-align: right;
}

.newer-link, .older-link {
  color: #4527a0;
  /* padding: 1em; */
}

.newer-arrow-column {
  padding-right: 0;
}

.older-arrow-column {
  padding-left: 0;
}

.newer-list, .newer-list li, .older-list, .older-list li  {
  display: inline-block;
  padding-left: 0;
}

.newer-list li:nth-child(1), .older-list li:nth-child(1) {
  margin-right: 10px;
}

.newer-link:hover, .older-link:hover {
  background-color: transparent;
  color: #4527a0;
}

.newer-link:hover > .newer-title, .older-link:hover > .older-title {
  text-decoration: underline;
}

.newer-title, .older-title {
  font-size: 1.2em;
  font-weight: 300;
  display: inline;
}

.newer-image, .older-image {
  height: 16px;
  margin-top: -2px;
}

.newer-image {
  margin-right: 8px;
}

.older-image {
  margin-left: 8px;
}

.older-link {
  text-align: right;
}

.older-link:hover .older-image, .older-link:focus .older-image{
  animation-name: moveolderArrow;
  animation-duration: 400ms;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
}

.newer-link:hover .newer-image, .newer-link:focus .newer-image {
  animation-name: movenewerArrow;
  animation-duration: 400ms;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in;
}

.patreon-button-container{
  margin-top: 2em;
  margin-bottom: 2em;
  display: block;
}

.patreon-button {
  color: #4527A0;
  font-size: 1.1em;
  font-weight: 700;
  display: inline-block;
}

.patreon-image {
  width: 200px;
  height: auto;
}

.full-infographic-outer-container {
  /* margin-top: 2em; */
  overflow: scroll;
  width: 100%;
  height: auto;
}

.full-infographic-inner-container {
  width: auto;
}

.full-infographic-image {
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.infographic-date {
  font-size: 0.9em;
  margin-bottom: 0;
  margin-top: 0;
}

.separate-content-container {
  margin-top: 2em;
  margin-bottom: 2em;
  max-width: 100%;
}

#sources-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0.2em;
  margin-bottom: 1.5em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.sources-item {
  line-height: 1.7em;
  margin-top: 1em;
}

#sources-list-title {
  margin-bottom: 0em;
  margin-top:2em;
}

@media (min-width: 640px) and (max-width: 1150px) {
  .separate-content-container {
    margin-left: 2em;
  }
  .newer-older-container {
    margin-left: 1em;
    margin-right: 1em;
  }
}

.infographic-text {
  margin-bottom: 1em;
  margin-top: 0.5em;
}

.infographic-text-title {
  margin-bottom: 0;
}

#full-resolution-title {
  margin-bottom: 0.3em;
  margin-top: 2em;
}

.full-resolution-link {
  color: #3acccc;
  font-weight: 600;
  font-size: 1em;
  margin-right: 0.8em;
  margin-bottom:0.5em;
  display: inline-block;
  padding-bottom: 1px;
}

@keyframes moveolderArrow {
    0% {
     transform:translateX(0)
    }
    25% {
     transform:translateX(5px)
    }
    70% {
     transform:translateX(-3px)
    }
    85% {
     transform:translateX(2px)
    }
    100% {
     transform:translateX(0)
   }
}

@keyframes movenewerArrow {
    0% {
     transform:translateX(0)
    }
    25% {
     transform:translateX(-5px)
    }
    70% {
     transform:translateX(3px)
    }
    85% {
     transform:translateX(-2px)
    }
    100% {
     transform:translateX(0)
   }
}

@media(max-width: 950px) {
  .newer-container, .older-container {
    margin-top: 2em;
  }

  .infographic-title {
    font-size: 2.4em;
  }

  .newer-image, .older-image {
    padding: 1em;
    height: 3.5em;
    width: 3.5em;
    background-color: rgba(58,204,204,0.6);
    border-radius: 100%;
  }

  .older-link:hover, .newer-link:hover,
    .older-link:focus, .newer-link:focus,
    .older-link:active, .newer-link:active {
    background-color: transparent;
  }

  .newer-title, .older-title {
    display: none;
  }
}

@media (max-width: 640px) {
  .infographic-title {
    font-size: 1.8em;
  }
}

@media (max-width: 400px) {
  .infographic-title {
    font-size: 1.4em;
  }

  .newer-older-container {
    margin-bottom: 1em;
    margin-top: 1.5em;
  }

  .sources-item {
    font-size: 0.9em;
  }

  .patreon-button-container {
    margin-bottom: 1.5em;
    margin-top: 1.8em;
  }
}

/* translations page */

.translations-title-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.translations-section {
  margin-top: 4em;
}

.translations-button-container {
  margin-top: 3em;
}

.translations-button {
  background: #fcfcfc;
  color: #3acccc;
  font-weight: 700;
  padding: 15px 20px;
  font-size: 1.2em;
  border-radius: 8px;
  border: 3px solid #3acccc;
  box-shadow: 3px 3px 2px 2px rgba(58,204,204,0.3);
  transition: all 0.1s ease-in;
}

.translations-button:hover, .translations-button:focus {
  background-color: #3acccc;
}

.translations-image {
  height: 120px;
  margin-right: 1.5em;
  margin-top: 1.5em;
}

@media(max-width: 640px) {
  .translations-title-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .translations-image {
    margin-top: 0;
    margin-right: 0;
    height: 100px;
  }

  .translations-title {
    margin-top: 0.5em;
    font-size: 2.4em;
  }
}

/*error pages*/

#error404-page, #error500-page, #error403-page {
  background-color: #4527a0;
  height: 100vh;
  padding: 4em 0;
  color: #fff;
}

#error404-page h1, #error500-page h1, #error403-page h1 {
  font-size: 3em;
}

#error404-page p, #error500-page p, #error403-page {
  font-size: 1.2em;
}

#error-svg {
  stroke-dasharray: 500px;
  animation: animateText 2s ease-in;
  animation-fill-mode: forwards;
  animation-delay: 500ms;
  width: 90%;
  max-width: 600px;
  height: auto;
  opacity: 0;
}

.error-svg-container {
  margin-bottom: 3em;
  margin-top: 1em;
}

#error-svg path {
  fill: rgba(0,0,0,0);
  stroke: #fcfcfc;
  stroke-width: 2;
}

@keyframes animateText {
  0% {
    stroke-dashoffset: 500px;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@media(max-height: 500px) {
  #error404-page, #error500-page, #error403-page {
    height: 100%;
  }
}
@media(max-width: 500px) {
  #error404-page h1, #error500-page h1, #error403-page h1 {
    font-size: 1.8em;
  }

  .error-svg-container {
    margin-bottom: 2em;
    margin-top: 0;
  }
}
