@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

html{
	scroll-behavior: smooth;
}

.bold{
	font-family: 'Bebas Neue', cursive;
}

body{
	margin: 0;
	font-family: Arial;
	margin-bottom: 40px;
}
canvas { 
	max-width: 400px; 
}
#charts, #storyline{
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: center;
	flex-wrap: wrap;
}
header{
	min-height: 50vh;
	background: lightblue;
	display: flex;
	margin-bottom: 20px;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
header :is(h1, h2){
	margin: 0;
}
header h1{
	font-size: 72px;
}
header h2{
	font-size: 48px;
}
#chatbox{
    width: min(100vw, 500px);
    height: 500px;
    background-position: left;
	background-size: 100%;
	background-image: url("assets/e_coli.jpeg");
	border-radius: 10px;
}
#chatbox__content{
	width: calc(100% - 40px);
	height: calc(100% - 40px);
	background-color: #000000c7;
	overflow: auto;
	font-family: monospace;
	padding: 20px;
	/*display: flex;*/
	flex-direction: column;
	justify-content: flex-end;
	color: white;
	font-size: 18px;
	scroll-behavior: smooth;
}
.story_el{
	padding:5px 0px;
}
#next_event{
	font-size: 18px;
	padding: 10px;
	width: 100%;
	cursor: pointer;
}
footer{
	min-height: 40px;
    padding-top: 20px;
    text-align: center;
	font-size: 18px;
}
.story_el:last-of-type {
    color: yellow;
}
@-webkit-keyframes aaa9ad737373 {
	from {background-color: #aaa9ad;}
	to {background-color: #737373;}
}
::-webkit-scrollbar {
	width: 20px;
}
::-webkit-scrollbar-track {
	background-color: transparent;
}
::-webkit-scrollbar-thumb {
	background-color: #aaa9ad;
	border-radius: 20px;
	border: 6px solid transparent;
	background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
	background-color: #737373;
}
/* The Modal (background) */
.modal {
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
	text-align: center;
}

/* Modal Content/Box */
.modal-content {
	background-color: #fefefe;
	margin: 10% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
	animation: op ease 1s;
	position: relative;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 16px white;
}

@keyframes op{
	from{opacity:0;top: 70px;}
	to{opacity:1;top: 0;}
}
#popup .bold{
	font-size: 48px;
	margin: 0;
}
#popup p{
	font-size: 24px;
}
#popup .close_modal.first{
	background: linear-gradient(45deg, #58d070, #006b15,  #58d070);
}
#popup .close_modal.second{
	background: linear-gradient(45deg, #d05858, #6b0000,  #d05858);
}
#popup .close_modal{
	border: 2px solid black;
	background-position: 0% 0% !important;
	padding: 10px 20px;
	font-size: 24px;
	border-radius: 8px;
	/*box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/
	cursor: pointer;
	transition: 0.5s ease;
	color: whitesmoke;
	background-size: 300% !important;
}


#popup .close_modal:hover{
	background-position: 150% 0% !important;
}
.hide{
	display: none;
	animation: fade 1s ease;
}
@keyframes fade{
	from{display: block; opacity: 1;}
	to{opacity: 0;}
}
#popup span{
	display: none; 
	font-size: 24px;
	margin-top: 20px;
}
#next_event {
	border: 2px solid black;
	color: black;
	background: none;
	border-radius: 12px;
	transition-duration: 0.4s;
}
#next_event:hover {
	background-color: #555555;
	color: white;
}