#timeline-hide {
	display: none;
}

#timeline {
	margin: 0;
	padding: 0;
	/* background: #9e9e9e; */
	position: relative;
	/* overflow: hidden; */
	color: #595959;
}

#timeline .timeline-wrapper {
	position: relative;
	width: 90%;
	margin-inline: auto;
}

#timeline .chart {
	width: 100%;
	height: 100%;
	background: #fff;
	margin-right: 0;
	margin-left: 170px;
	/* padding: 10px; */
	overflow: hidden;
}

/* ==============================
tooltip
============================== */
#timeline #tooltip {
	background-color: rgba(255, 255, 255, 0.9);
	padding: 15px 20px;
	border: 2px solid #7a0708;
	border-radius: 5px;
	pointer-events: none;
	z-index: 10;
}
#timeline #tooltip .tooltip-text {
	color: #7a0708;
	text-align: center;
}

#timeline #tooltip .tooltip-text span {
	color: #595959;
}
#timeline #tooltip .tooltip-text span.click-text {
	font-weight: 700;
}

/* ==============================
Modals
============================== */
#timeline .modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(45, 10, 10, 0.9);
}
#timeline .modal-wrapper {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -45%);
	width: 80%;
	max-width: 1200px;
	min-height: 500px;
	max-height: 80vh;
	overflow: hidden;
}

#timeline .modal-content {
	background-color: #fefefe;
	padding: 75px 100px;
}

#timeline .modal-content a {
	word-wrap: break-word;
	font-weight: 700;
	color: #9e0b0f;
}

#timeline .close-wrapper {
	text-align: right;
	margin-bottom: 25px;
	padding-top: 10px;
}

#timeline .close {
	font-size: 15px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	font-weight: bold;
	cursor: pointer;
	color: #fff;
	position: relative;
	padding-right: 48px;
	transition: all 0.3s;
}

#timeline .close:hover {
	color: #b59b86;
}

#timeline .close::after {
	position: absolute;
	right: 8px;
	top: -6px;
	transition: all 0.3s;
	content: url(../../../uploads/2023/07/kohiti-small.png);
}

#timeline .close:hover::after {
	content: url(../../../uploads/2023/08/close-hover.png);
	transition: all 0.3s;
}

#timeline .modal-title {
	margin-bottom: 50px;
}

#timeline .modal-details {
	display: flex;
	gap: 50px;
	max-height: 50vh;
}

#timeline .modal-left {
	width: 40%;
}

#timeline .modal-label {
	text-transform: uppercase;
	color: #4b0a0a;
	font-weight: 500;
	font-size: 17px;
}

#timeline .modal-year {
	font-weight: 700;
}

#timeline .modal-right {
	width: 60%;
	overflow-y: auto;
	max-height: 45vh;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding-right: 10px;
	padding-bottom: 40px;
}

/* event-modal  */
#timeline #event-modal .modal-content {
	max-height: 80vh;
	overflow: hidden;
	padding-left: calc(100px - 16px);
}

#timeline #event-modal .tab-content {
	display: flex;
	max-height: 35vh;
}

#timeline #event-modal #cat-desc {
	width: 90%;
	margin: 16px 16px 0 16px;
}

#timeline #event-modal #cat-desc p {
	font-size: 16px;
	line-height: 1.1em;
}

#timeline #event-modal .left-column,
#timeline #event-modal .right-column {
	overflow-y: auto;
	margin-top: 20px;
}

#timeline #event-modal .left-column {
	width: 40%;
	border-right: 1px solid #9e0b0f;
}

#event-modal .right-column {
	width: 60%;
}

#timeline #event-modal ul#event-titles {
	margin: 10px 0 0 0;
}

#timeline #event-modal #event-details {
	/* padding: 24px 16px; */
	padding: 16px;
}

#timeline #event-modal #event-titles li {
	cursor: pointer;
	list-style-type: none;
	padding: 12px 16px;
	transition: all 0.3s;
}

#timeline #event-modal #event-titles .single-event-title {
	color: #9e0b0f;
	font-size: 25px;
	font-weight: 500;
	line-height: 28px;
}

#timeline #event-modal #event-titles .single-event-category {
	color: #4b0a0a;
	font-size: 17px;
	font-weight: 500;
	line-height: 19px;
	text-transform: uppercase;
}

#timeline #event-modal #event-titles .single-event-date {
	color: #595959;
	font-size: 18px;
	font-weight: 300;
	line-height: 22px;
}

#timeline #event-modal #event-titles li:hover {
	background: #f5e6e7;
}

#timeline #event-modal #event-titles li.active {
	background: #9e0b0f;
}

#timeline #event-modal #event-titles li.active span {
	color: #fff !important;
}

/* event-modal tab */
#timeline #event-modal-title {
	margin-left: 16px;
}
#timeline .tabs {
	display: flex;
	margin-top: 5px;
	margin-left: 16px;
}

#timeline .tab {
	cursor: pointer;
	color: #9e0b0f;
	font-size: 15px;
	font-weight: 700;
	line-height: 16px;
	letter-spacing: 1.3px;
	text-transform: uppercase;
	padding-right: 8px;
}

#timeline .tab:not(:first-child) {
	padding-left: 8px;
	border-left: 1px solid #9e0b0f;
}

#timeline .tab:hover {
	color: #b59b86;
}

#timeline .active {
	color: #595959;
}

/* ==============================
Labels
============================== */
#house-ownership {
	height: 447px;
	top: 0;
	background: #4b0a0a;
}

#page .label {
	width: 170px;
	position: absolute;
	left: 0;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

#page .label p {
	font-size: 18px !important;
	line-height: 20px;
	font-weight: 700;
	text-align: right;
	color: #fff;
	padding-right: 10px;
}

#government {
	top: 447px;
	background: #595959;
	height: 70px;
}

#period-event {
	top: calc(447px + 70px);
	height: 100px;
	background: #de9200;
}

#single-event {
	top: calc(447px + 70px + 100px);
	background: #9e0b0f;
	height: 43px;
}

/* ==============================
Media query 
============================== */
@media only screen and (max-width: 1600px) {
	#timeline .modal-details {
		max-height: 30vh;
	}
}

@media only screen and (max-width: 1200px) {
	#timeline-hide {
		display: block;
		padding-inline: 50px;
	}
	#timeline {
		display: none;
	}
}

@media only screen and (max-width: 768px) {
	#timeline-hide {
		padding-inline: 20px;
	}
}
