@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300&family=Open+Sans&family=Roboto:wght@300&display=swap');

html{
	background-color: white;
}
html, body{
	margin: 0;
	padding: 0;
}

#menu{
	width: 70px;
	height: 70px;
	position: absolute;
	top: 20px;
	left: 20px;
	background-size: cover;
	background-image: url(images/burger-menu-left-svgrepo-com.svg);

}

.container:not(:hover) .top-left,
.container:not(:hover) .top-right,
.container:not(:hover) .bottom-left,
.container:not(:hover) .bottom-right{
	visibility: hidden;
}

.image-hover-container {
	position: relative;
	height: 100vh;
	width: 100%;
	display: flex;
	.container {
		position: relative;
		height: 514px;
        width: 1200px;
		margin: auto;
		display: -webkit-box;
		&:hover {
			> .bottom-right {
                top: 149px;
                left: 1026px;
                box-shadow: 0px 37px 29px rgba(0, 0, 0, 0.3);
                width: 175px;		
			}
			> .middle {
				/* height: 90%;
				width: 90%; */
				box-shadow: 0px 23px 33px rgba(0, 0, 0, 0.34);
				.overlay {
					opacity: 1;
					z-index: 1;

					p:nth-child(1) {
						padding-top: 0;
					}
				}
			}
			> .top-left {
				left: 157px;
                top: 128px;
                width: 293px;
				box-shadow: 0px 37px 29px rgba(0, 0, 0, 0.3);
			}
			> .top-right {
				left: 741px;
                top: 0px;
                width: 284px;
                height: 190px;
				box-shadow: 0px 37px 29px rgba(0, 0, 0, 0.3);
			}
			> .bottom-left {
                left: 0px;
                top: 359px;
                width: 305px;
				box-shadow: 0px 37px 29px rgba(0, 0, 0, 0.3);
			}
		
		}
		.lancaster {
			background: url(images/NMAH-JN2016-02268-000001.jpg) no-repeat;
			
		}
		.lake-district {
			background: url(images/NMAH-JN2016-02268-000001.jpg) no-repeat;
		}
		.bg-image {
			background-size: 1200px 516px;
			background-attachment: fixed;
			background-position: center center; 
		}
		.middle {
			transition: 500ms all;
			transition-delay: 0.25s;
			transition-timing-function: cubic-bezier(.17,.67,.33,.97);
			position: relative;
			margin: auto;
			height: 100%;
			width: 100%;
			margin: 0px;
			left: 0;
			top: 0;
			/*box-shadow: 0px 17px 23px rgba(0, 0, 0, 0.34);*/
			.bg-image {
				height: 100%;
				width: 100%;	
			}
			.overlay {
				position: absolute;
				top: 0;
				left: 0;
				height: 100%;
				width: 100%;
				z-index: 9;
				background: rgba(67, 27, 12, 0.75);
				display: flex;
				flex-direction: column;
				transition: 300ms all;
			 	transition-delay: 0.37s;
				opacity: 0;
				text-decoration: none;
				z-index: -1;
				p {
					position: relative;
					margin: auto;
					color: #fff;
					text-transform: uppercase;
					font-family: 'Roboto', sans-serif;
					font-size: 1.1em;
					opacity: 0.8;
					&:nth-child(1) {
						margin-bottom: 4px !important;
						padding-top: 30px;
						transition: all 400ms;
						transition-delay: 0.3s;
					}
					&:nth-child(2) {
						margin-top: 4px !important;
					}
					
				}
				.mobile-link {
					display: none;
				}
			}
		}
		.bottom-right {
			transition: 800ms all;
			transition-delay: 0.15s;
			transition-timing-function: cubic-bezier(.17,.67,.33,.97);
			position: absolute;
			left: 0%;
			top: 48%;
			width: 100%;
			box-shadow: 0px 37px 29px rgba(0, 0, 0, 0);
			z-index: 1;
			.bg-image {
				height: 365px;
				width: 100%;	
			}
		}
		.bottom-left {
			transition: 800ms all;
			transition-delay: 0.17s;
			transition-timing-function: cubic-bezier(.17,.67,.33,.97);
			position: absolute;
			left: 0%;
			top: 48%;
			width: 100%;
			z-index: 1;
			.bg-image {
                height: 155px;
                width: 100%;
			}
		}
		.top-left {
			transition-timing-function: cubic-bezier(.17,.67,.33,.97);
			transition: 600ms all;
			transition-delay: 0.19s;
			position: absolute;
			left: 0%;
			top: 0%;
			width: 150px;
			z-index: 1;
			.bg-image {
				height: 190px;
				width: 100%;	
			}
			
			
		}
		.top-right {
			transition: 500ms all;
			transition-delay: 0.08s;
			position: absolute;
			left: 0%;
			top: 0%;
			width: 300px;
			height: 260px;
			z-index: 1;
			transition-timing-function: cubic-bezier(.17,.67,.33,.97);
			.bg-image {
				 float: right;
				 height: 100%;
				 width: 100%;
			}
		}	
	}
}

/* @media (max-width: 920px) {
	.image-hover-container {
		transform: scale(.8) translateX(0px);
		overflow: hidden;
		.overlay {
			p:nth-child(1) {
				 margin-top: 125px;
			}
			p:nth-child(2) {
				margin-bottom: 30px !important;
			}
			.mobile-link {
				display: block !important;
				margin-top: 0px !important;
			}
		}
		.bottom-right, .bottom-left, .top-left, .top-right {
			box-shadow: 0px 0px 0px !important;
		}
		
	}	
}
@media (max-width: 350px) {
	.bottom-right, .bottom-left, .top-left, .top-right {
		display: none !important;
	}
} */


.loading-container {
	position: fixed;
	height: 100vh;
	width: 100%;
	left: 0;
	top: 0;
	background: #fff;
	transition: 600ms all;
	#loading {
	  margin: 0 auto;
	  width: 70px;
	  height: 70px;
		background: rgba(67, 27, 12, 0.75);
	  border-radius: 50%;
	  animation: boing .8s linear infinite;
	  position: relative;
	  top: calc(50% - 35px);
	  &:before {
		 content: '';
		 position: absolute;
		 left: calc(50% - 30px);
		 top: calc(50% - 30px);
		 display: block;
		 width: 60px;
		 height: 60px;
		 border-radius: 50%;
		background: rgba(255, 255, 255, 1);
		  animation: boing-inner .8s linear infinite;
	  }
	}
	@keyframes boing {
	  0% { transform: scale(1); }
	  25% { transform: scale(.75); }
	  100% { transform: scale(1); }
	}
	@keyframes boing-inner {
	  0% { transform: scale(1); }
	  25% { transform: scale(.6); }
	  100% { transform: scale(1); }
	}
}



.branding {
	position: fixed;
  bottom: 20px;
  background: #fff;
  right: 20px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 56px;
  line-height: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Titillium Web', sans-serif;
  background: linear-gradient(54deg, #9164ff, #8bfff4);
  color: #3c3f64;
  overflow-x: hidden;
  padding-bottom: 100px;
}

/* Timeline core */
.timeline ul {
  padding: 50px 0;
}

.timeline ul li {
  list-style: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  background: #fff;
  padding-top: 50px;
}

.timeline ul li::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) rotate(45deg);
  width: 16px;
  height: 16px;
  background: #fff;
}

/* Card */
.timeline ul li > div {
  position: relative;
  width: 420px;
  padding: 20px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Date */
.timeline time {
  position: absolute;
  top: -15px;
  left: 20px;
  background: #f5af19;
  color: #000;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 14px;
}

/* Inner boxes */
.discovery, .scientist {
  flex: 1;
  text-align: center;
}

.discovery h1,
.scientist h1 {
  font-size: 18px;
  margin-bottom: 5px;
}

/* Left / Right */
.timeline ul li:nth-child(odd) > div {
  left: 45px;
}

.timeline ul li:nth-child(even) > div {
  left: -465px;
}

/* Animation */
.timeline ul li > div {
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px) scale(0.95);
  transition: all 0.6s ease;
}

.timeline ul li.in-view > div {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Responsive */
@media (max-width: 900px) {
  .timeline ul li > div {
    width: 280px;
  }
  .timeline ul li:nth-child(even) > div {
    left: -315px;
  }
}

@media (max-width: 600px) {
  .timeline ul li {
    margin-left: 20px;
  }
  .timeline ul li > div,
  .timeline ul li:nth-child(even) > div {
    left: 45px;
    width: calc(100vw - 100px);
  }
}
