@font-face{
	font-family: friendly;
	src: url("Friendly Schoolmates.otf");
}

@keyframes moveIn{
	from{transform: translateY(100%);}
	to{transform: translateY(0);}
}

@keyframes backgroundChange{
	0%{background-color: rgb(200, 0, 0)}
	50%{background-color: rgb(0, 200, 0)}
	100%{background-color: rgb(0, 0, 200)}
}

body {
	transition: 0.5s;
    margin: 0;
    background-image: url('img/background.gif');
    background-size: cover;
}

body *{
	font-family: friendly;
}

#first_half_body{
	transition: 0.5s;
	margin-top: 130px;
}

#search_bar_container{
	margin: 10px;
	text-align: center;
}

#search_bar_container > input{
	border: 0;
	border-bottom: 2px solid white;
	margin: 10px;
	padding-bottom: 5px;
	color: white;
	max-width: 80%;
	background-color: transparent;
	text-align: center;
	font-size: 40px;
	text-shadow: 2px 2px rgba(0, 0, 0, 0.4);
	outline: none;
}

h1{
	margin: 10px 0;
	padding: 0 0 30px 0;
	font-size: 80px;
	color: white;
	text-shadow: 3px 6px rgba(0, 0, 0, 0.9);
	user-select: none;
	transition: 0.7s;
}

h1:hover{
	transition: 0.3s;
	transform: translateY(6px);
	text-shadow: 3px 0px rgba(0, 0, 0, 0.9);
}

label{
	font-size: 40px;
	padding-right: 20px;
	user-select: none;
	color: white;
	text-shadow: 2px 2px rgba(0, 0, 0, 0.2);
}


#searchCity{
	transition: .5s;
	padding: 20px 50px 20px 50px;
	margin: 10px 0 20px 20px;
	border-radius: 10px;
	border: 0;
	background-color: rgba(0, 0, 0, 0.3);
	color: white;
	box-shadow: 0 15px rgba(0, 0, 0, 0.5);
	font-size: 30px;
	outline: none;
}

#searchCity:hover{
	transition: .1s;
	transform: translateY(8px);
	box-shadow: 0 7px rgba(0, 0, 0, 0.3);
}

#searchPosition{
	transition: 0.6s;
	padding: 8px 10px;
	margin: 20px 0 0 20px;
	font-size: 25px;
	border: 0;
	border-radius: 50px;
	background-color: rgba(0, 0, 0, 0);
	user-select: none;
	color: white;
}

#searchPosition:hover{
	transition: 0.6s;
	color: black;
	background-color: white;
	user-select: none;
}

#second_half_body{
	margin: 10px;
	transition: .5s;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	color: white;
}

.city_name{
	text-align: center;
	font-size: 50px;
	width: 100%;
	text-shadow: 3px 2px rgba(0, 0, 0, 0.8);
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50px;
	padding: 20px 0;
	margin-bottom: 0;
}

.tab_day{
	animation: moveIn 1s;
	animation-fill-mode: forwards;
	transition: 0.4s;
	flex: 1;
	text-align: center;
	display: inline-block;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background-color: rgba(0, 0, 0, 0.3);
	margin: 5px;
}

.tab_day:hover{
	transition: 0.4s;
	background-color: rgba(255, 255, 255, 0.1);
	z-index: 1;
}

.tab_day_title{
	margin: 10px 0;
	font-size: 50px;
	color: white;
	text-shadow: 0px -4px rgba(0, 0, 0, 0.8);
}

.tab_time_container{
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: stretch;
}

.tab_time{
	transition: 0.5s;
	display: flex;
	flex-direction: row;
	align-items: center;
	cursor: pointer;
}

.tab_time:hover{
	border-radius: 20px;
	transition: 0.5s;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 1;
	transform: scale(1.05);
}

.tab_time_p{
	flex: 1;
	margin: 2px;
	text-shadow: 0.5px 0.5px rgba(255, 255, 255, 0.5);
	font-size: 22px;
}

.tab_time_img{
	flex: 1;
	padding-left: 10px;
	max-width: 60px;
	max-height: 60px;
}

.tab_time_min{
	color: blue;
	font-size: 18px;
}

.tab_time_max{
	color: red;
	font-size: 18px;
}

.tab_info{
	display:flex;
	flex-direction: row;
	align-items: center;
	margin: 0px 5px;
	border-radius: 50px;
	background-color: rgba(0, 0, 0, 0.4);
}

.tab_info > p{
	flex: 1;
	padding: 4px;
	margin: 0;
	text-shadow: 1px 1px #000;
}

#footer{
	box-sizing: border-box;
	margin-top: 15px;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

#footer > p{
	flex: 1;
	color: white;
	text-shadow: 2px 2px black;
	padding-left: 10px;
	font-size: 20px
}

.icon{
	flex: 1;
	transition: 0.5s;
	filter: grayscale(100);
	margin: 5px 20px;
	border-radius: 50%;
	max-width: 50px;
	max-height: 50px;
}

.icon:hover{
	transition: 0.5s;
	transform: scale(1.1);
	filter: grayscale(0);
}

.error{
	visibility: hidden;
	color: red;
	display: block;
	font-size: 25px;
	text-shadow: 1px 1px rgba(0, 0, 0, 0.5);
	margin: 20px 0 20px 50px;
}

#city_input {
	max-width: 100%;
	margin: 0;
}

@media only screen and (max-width: 700px){
	#search_bar_container{
		margin-top: 30px;
	}

	#second_half_body{
		flex-direction: column;
	}

	#footer{
		flex-direction: column;
		align-items: center;
	}

	.tab_time_p{
		font-size: 30px;
	}

	.tab_time_img{
		flex: 2;
		padding: 5px;
		max-width: 50px;
		min-height: 50px;
	}

	.tab_time_min{
		color: rgb(100, 100, 255);
		font-size: 22px;
	}

	.tab_time_max{
		color: red;
		font-size: 22px;
	}
}
