html{
	box-sizing: border-box;
}

body{
	background-color: rgb(240,240,240);
	padding-top: 20px;
}

h1 {text-align:center; margin-bottom: 15px; margin-top: 15px;}

#box{
	width: 100%;
	height: 100%;
	background-color: rgb(220,220,220);
	overflow: hidden;
}

#card_selection{
	position:relative;
	float: right;
	display: inline-block;
	width: 30%;
	height: 100%;
	overflow-y: scroll;
	background-color: rgb(220,220,220);
}

.right_column{
	width: 30%;
	float: right;
}

.text_editor{
	width: 60%;
	position: relative;
}

.custom_row{
	margin-bottom: 5px;
	padding: 3px;
}

.custom_row p{
	display: inline-block;
	margin: 0px;
	padding: 7px;
}

.custom_row input{
	position: absolute;
	right: 10px;
	display: inline-block;
	width: 90%;
}

.edit_button{display:inline-block;
	padding: 10px;
	color: white;
	font-size: 1.3em;
	cursor: pointer;}

#new_card{
	background-color: rgb(100,100,255);
}

#delete_card{
	background-color: rgb(255,100,100);
}

#submit_card{
	background-color: rgb(100,100,255);
}

.selection{
	background-color: rgb(200,200,200);
	padding: 10px;
	padding-left: 15px;
	margin-top: 3px;
}

.selection p{
	margin: 0px;
	padding: 0px;
	pointer-events: none;
}

.selection:hover{
	background-color: rgb(220,220,220);
}

.selected{
	background-color: rgb(100,100,255);
	color: white;
}

.selected:hover{
	background-color: rgb(100,100,255);
}

.flashcard{
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-animation-duration: 0.5s;
	animation-duration: 0.5s;
	background-color: white;
	overflow: hidden;
}

.flashcard h2, .flashcard p{
	margin: 15px 30px;

}

.flashcard h2{
	font-size: 3em;
	border-bottom: 1px solid black;
}

.flashcard_B_side h2{
	color: white;
	border-bottom: 1px solid white;
}

.flashcard p{
	font-size: 4em;
}

.custom_center{
	margin: 0px;
	padding: 0px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);}



#flashcard_position{
	position: relative;
	height: 80%;
	width: 80%;
	margin: auto;
	top: 10%;
}

.hidden{
	display: none;
}


.button_b{
	position:absolute;
	top: 100%;
	cursor:pointer;
	color: rgb(30,30,30);
	text-align: center;
	height:20vh;
}

.button_b p{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 5em;
	margin: 0px;
	padding: 0px;
}

.b_next{
	right: 0px;
	left: 50%;
	background-color: rgb(85,240,185);
}

.b_next:hover{
	background-color: rgb(100,255,200);
}

.b_prev{
	left:0px;
	right: 50%;
	background-color: rgb(240,135,135);
}

.b_prev:hover{
	background-color: rgb(255,150,150);
}

#main{
	display: inline-block;
	position: relative;
	width: 70%;
	height: 100%;
}

#container{
	width: 90%;
	margin: auto;
	padding: 0px;
	height: 60vh;
}

.flashcard_A_side{
	position:absolute;
	height: 100%;
	width: 100%;
	background-color: white;
}

.flashcard_B_side{
	position:absolute;
	height: 100%;
	width: 100%;
	background-color: rgb(100,100,100);
	color: white;
	top: 100%;
	transition: top 0.2s linear;
}

.flashcard .big{
	font-size: 6em;
	border-bottom: none;
}

.visible{
	top: 0%;
}


@media screen and (orientatioon: landscape){

	#flashcard_position{
		width: 60%;
		top: 10vh;
		height: 80vh;
	}

	.button_b{
		height: initial;
		top: 0px;
		bottom:0px;
		width: 5em;
	}

	.b_next{
		right: 0px;
		left: inherit;
	}

	.b_prev{
		left:0px;
		right: inherit;
	}

	#main{
		width: 100%;
		height: 100vh;
	}

}

@media screen and (min-widnth: 640px){

	#flashcard_position{
		width: 50%;
		height: 30vh;
		top: 15vh;
	}

	.button_b{
		height: initial;
		top: 0px;
		bottom: 0px;
		width: 5em;
	}

	.b_next{
		right: 0px;
		left: inherit;
	}

	.b_prev{
		left:0px;
		right: inherit;
	}

	#main{
		width: 70%;
		height: 60vh;
	}

}
