/* external css: flickity.css */
@import url("https://fonts.googleapis.com/css2?family=Catamaran:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

:root {
	--img-width: 290px;
	--img-height: 194px;
	--img-padding: 10px;
}

/* THIS PLACE IS A MESS DON'T LOOK TOO CLOSELY */

bodys {
	font-family: Outfit;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	height: 100%;
	color: #070707;
}

.header2 {
	display: flex;
	font-family: Outfit;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin: calc(var(--img-padding) * 4) 0 calc(var(--img-padding) * 2);
	margin-bottom: 40px;
}
h1 {
	font-size: 4.5rem;
	font-family: Outfit;
	font-weight: 700;
	color: #212b60;
	margin-bottom: 40px;
}
h3 {
	font-size: 2.5rem;
	font-family: Outfit;
	font-weight: 700;
	color: #212b60;
	margin-bottom: 10px;
}
p {
	font-size: 1rem;
	font-family: Outfit;
	font-weight: 300;
}
.flickity-viewport {
	overflow: visible;
}

.timeline {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	margin-bottom: calc(var(--img-padding) * 4);
}

.timeline:before,
.timeline:after {
	display: block;
	position: absolute;
	content: "";
	background-size: auto 100%;
	background-position: left center;
	width: 12%;
	height: 120%;
	position: absolute;
	z-index: 100;
}

.timeline:before {
	left: 0;
	transform-origin: center center;
	transform: scaleX(-1);
}

.timeline:after {
	right: 0;
}

.timeline .carousel {
	/*    border: 1px solid red;*/
	width: 76%;
	height: calc(var(--img-height) + calc(var(--img-padding) * 8));
}

.timeline .carousel-cell {
	background: white;
	border-radius: 8px;
	width: calc(var(--img-width) + calc(var(--img-padding) * 2));
	height: calc(var(--img-height) + calc(var(--img-padding) * 2));
	margin: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 4px transparent, 0 8px 20px 0 rgba(0, 0, 0, 0.2);
	margin-top: calc(var(--img-padding) * 4);
}

.timeline .carousel-cell .img-wrapper {
	/*    padding: 20px;*/
	background: white;
	border-radius: 8px;

	position: relative;
}

.timeline .carousel-cell:before,
.timeline .carousel-cell:after,
.timeline .carousel-cell .img-wrapper:before,
.timeline .carousel-cell .img-wrapper:after {
	content: "";
	border-radius: 50%;
	display: block;
	height: 6px;
	overflow: hidden;
	position: absolute;
	width: 6px;
	z-index: 100;
}

.timeline .carousel-cell:before,
.timeline .carousel-cell:after {
	bottom: 8px;
}

.timeline .carousel-cell:before {
	left: 8px;
}

.timeline .carousel-cell:after {
	right: 8px;
}

.timeline .carousel-cell .img-wrapper:before,
.timeline .carousel-cell .img-wrapper:after {
	top: -12px;
}

.timeline .carousel-cell .img-wrapper:before {
	left: -12px;
}

.timeline .carousel-cell .img-wrapper:after {
	right: -12px;
}

.timeline .carousel-cell .img-wrapper img {
	display: block;
	width: var(--img-width);
	height: var(--img-height);
	height: auto;
	border-radius: 4px;
	position: relative;
}

.timeline .carousel-cell .img-wrapper img:before {
	position: absolute;
	width: 10px;
	height: 10px;
	background: red;
	z-index: 100;
}

.timeline .carousel-cell time {
	font-size: 38px;
	font-family: Outfit;
	font-weight: 800;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	/*    margin-bottom: 10px;*/
	position: absolute;
	top: -68px;
	color: #212b60;
	/*    margin-top: 20px;*/
}

.timeline .carousel-cell > span {
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	position: absolute;
	bottom: 0;
	/*
    padding: 20px;
    padding-bottom: 0;
*/
}

.timeline .carousel-cell time span {
	font-size: 16px;
	font-weight: 600;
}

.timeline .carousel-cell.is-selected {
	box-shadow: 0 0 0 4px #212b60, 0 8px 20px 0 transparent, 0 0 0 4px transparent,
		0 8px 20px 0 rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 0;
	height: calc(var(--img-height) + calc(var(--img-padding) * 10));
}

/* ---- previous/next buttons ---- */

.flickity-button:hover {
	background: black;
	cursor: pointer;
}

.flickity-prev-next-button {
	top: 0;
	bottom: 0;
	width: 60px;
	height: 60px;
	transform: none;
	background: #212b60;
	display: flex;
	align-items: center;
	top: 100%;
	transform: translateY(-50%);
	transition: all 0.2s ease;
	display: none;
}

.flickity-prev-next-button.previous {
	left: -10px;
	border-radius: 60px;
	justify-content: flex-end;
}

.flickity-prev-next-button.next:hover {
	right: 0;
}

.flickity-prev-next-button.previous:hover {
	left: 0;
}

.flickity-prev-next-button.next {
	right: -10px;
	border-radius: 60px;
	justify-content: flex-start;
}

/* right to left */
.flickity-rtl .flickity-prev-next-button.previous {
	left: auto;
	right: 0;
}

.flickity-rtl .flickity-prev-next-button.next {
	right: auto;
	left: 0;
}

.flickity-prev-next-button .flickity-button-icon {
	position: absolute;
	left: auto;
	top: auto;
	width: 60%;
	height: 40%;
	fill: white;
	margin: 12px;
}

.flickity-page-dots {
	display: none;
}

.timeline-desc {
	width: 100%;
	height: auto;
	position: relative;
	background-color: #212b60
}

.timeline-desc .carousel {
	width: 100%;
}

.timeline-desc .carousel-cell {
	width: 100%;
}

.timeline-desc .carousel-cell .card {
	width: 40%;
	left: calc(var(--img-padding) * 2);
	margin: 40px auto;
	padding: 0 40px 0;
	border-radius: 25px;
	border: 1px solid #f0f0f0;
	background: white;
	height: 250px;
	position: relative;
	text-align: center;
}

.timeline-desc .carousel-cell .card h3 {
	font-size: 30px;
	margin-bottom: calc(var(--img-padding) * 1.5);
	position: sticky;
	top: 0;
	color: #212b60;
	padding-top: calc(var(--img-padding) * 2);
	line-height: 1;
}

.timeline-desc .carousel-cell .card h3:before {
	position: absolute;
	content: "";
	width: 100%;
	height: calc(var(--img-padding) * 1.5);
	/*    border: 1px solid red;*/
	bottom: calc(calc(var(--img-padding) * 1.5) * -1);

}
.timeline-desc .flickity-button {
	display: none;
}

html { overflow-y: scroll; }

@media (max-width: 480px) {
    .timeline-desc .carousel-cell .card {
	width: 80%;
	left: 1%;
	margin: 20px auto;
	padding: 0 10px 0;
	border-radius: 25px;
	border: 1px solid #f0f0f0;
	background: white;
	height: 370px;
	position: relative;
	text-align: center;
   }
   h1 {
	font-size: 2.5rem;
	font-family: Outfit;
	font-weight: 700;
	color: #212b60;
	margin-bottom: 20px;
   }
   h3 {
	font-size: 2.1rem;
	font-family: Outfit;
	font-weight: 700;
	color: #212b60;
	margin-bottom: 10px;
	text-align: center;
   }
   p {
	font-size: 0.95rem;
	font-family: Outfit;
	font-weight: 400;
 } 
}