* {
	font-family: 'Roboto', sans-serif;
	color: #fff
}

h1 {
	text-align: center;
	border: 0px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: bold;
}

body {
	min-height: 100vh;
	padding-top: 70px;;
	background: #4f0000;
}

body>header {
	color: #dfd1d1;
	background-color: #bf0000;
	box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
	display: -webkit-flex; display: flex;
	justify-content: space-between; -webkit-justify-content: space-between;
	align-items: center; -webkit-align-items: center;
	padding: 0;
	height: 64px;
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 5000;
}

body>header>h1 {
	margin: 0.2em 0.2em 0.2em 0.4em;
	line-height: 82%;
	text-align: justify;
	text-justify: inter-word;
	border: none;
	font-size: 2em;
	flex-grow: 0; -webkit-flex-grow: 0;
}

body>header>a.logo {
	border: 0px !important;
	height: 64px;
	display: -webkit-flex;
	display: flex;
	align-items: center; -webkit-align-items: center;
	padding-left: 8px;
}

body>header>nav {
	flex-grow: 1; -webkit-flex-grow: 1;
}

@media (min-width: 800px) {
	body>header>nav>ul {
		display: -webkit-flex;
		display: flex;
		flex-wrap: wrap; -webkit-flex-wrap: wrap;
		justify-content: flex-end; -webkit-justify-content: flex-end;
		padding: 0px;
		margin-bottom: 0px;
	}

	.menu_button {
		display: none;
	}
}

@media (max-width: 799px) {
	body>header>h1 {
		flex-grow: 10; -webkit-flex-grow: 10;
		text-align: center;
		padding-top: 0.2em;
		height: 54px;
	}
	body>header>a.logo {
		flex-grow: 10; -webkit-flex-grow: 10;
		text-align: center;
	}

	body>header>nav>ul {
		display: -webkit-flex; display: flex;
		flex-direction: column; -webkit-flex-direction: column;
		position: fixed;
		top: 64px;
		right: -220px;
		width: 220px;
		overflow: hidden;
		bottom: 0px;
		background: #bf0000;
		box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
		padding: 0px;
		margin-bottom: 0px;
		font-size: 1.3em;
		transition: right 0.5s;
		z-index: 4000;
	}

	body>header>nav>ul.expanded {
		right: 0px;
		overflow: auto;
	}

	body>header>nav>ul>li>a {
		padding: 12px 0px 12px 0px;
		display: block;
	}

	.menu_button {
		display: inline-block;
		margin: 0px 4px 0px 4px;
	}
}

body>header>nav>ul>li,  body>header>nav>ul>li>a{
	color: #dfd1d1;
	background: #4f0000;
	padding: 0em 0.4em;
	margin: 0.2em 0.6em;
	font-weight: bold;
	border-radius: 8px;
	transition: all 0.1s;
}
body>header>nav>ul>li>a:hover {
	color:#dfd1d1;
	text-decoration: none;
}

body>header>nav>ul>li.active {
}

body>footer, body>main>footer{
	font-weight: bold;
	background: #4d4d4d;
	color: #dfd1d1;
	margin: 0px;
	font-size: 14px;
}
body>footer a, body>main>footer a, body>footer a:hover, body>main>footer a {
	color: white;
	text-decoration: none;
}

.menu_button {
	background: transparent !important;
	box-shadow: none !important;
	color: #dfd1d1;
	align-self: center; -webkit-align-self: center;
	font-size: 1.5em;
}

form * {
	box-sizing: border-box;
}

textarea, input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number]{
	border-bottom: none;
	border-radius: 1px;
	box-shadow: 1px 1px 0px rgba(0,0,0, 0.3);
	color: black;
}

form label {
	font-weight: bold;
}

form textarea {
	min-height: 200px;
}

form>button[type=submit], form>input[type=submit], .submit_button {
	font-size: 1.25em;
	background: #4f0000;
	border: 1px solid #28000;
}

#button_add_img {
	font-size: 1em;
	background: #5f0000;
}

button {
	border: 0px;
	background: #4f0000;
	border-radius: 8px;
	font-weight: bold;
}
button:hover, button:active {
	border: 0px;
	background: #7f0000;
}

.submit_button:hover, input[type=submit]:hover {
	background: #6f0000;
	box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.2);
	outline-offset: -2px; 
}

#button_add_img:hover {
	background: #7f0000;;
	border-color: 1px solid rgba(0, 0, 0, 0.54);
	box-shadow: inset 0 0 4px 0 rgba(0, 0, 0, 0.2);
	outline-offset: -2px; 
}

dl dt {
	font-weight: bold;
}

@media (min-width:651px) {
	dl dt {
		width: 30%;
		display: inline-block;
	}
	dl dd {
		width: 69%;
		display: inline-block;
		margin: 0px;
	}
	form textarea {
		display: inline-block;
		width: 70%;
	}

	form>label {
		display: inline-block;
		width: calc(30% - 1em);
		margin-bottom: 0.5em;
	}

	#label_price {
		width: calc(28% - 1em);
	}
	#input_price {
		margin-left: 0.3em;
	}
	form>input[type=text], form>input[type=password], form>input[type=email], form>input[type=tel],form> input[type=number], form>select, form>button.image_selector {
		width: 70%;
		margin-bottom: 0.5em;
	}
	form>button[type=submit], form>input[type=submit], .submit_button {
		display: block;
		margin: 8px 12px 8px auto;
	}
	#button_add_img {
		display: block;
		margin: 4px auto;
	}
}

@media (max-width:650px) {
	form textarea {
		display: block;
		width: 100%;
	}
	form>label {
		margin-top: 24px;
		display: block;
		width: 100%;
	}

	form>input[type=text], form>input[type=password], form>input[type=email], form>input[type=tel], form>button.image_selector {
		display: block;
		width: 100%;
	}
	#input_price {
		width: 98%;
		margin-left: 0.1em;
	}
	form>button[type=submit], form>input[type=submit], .submit_button {
		display: block;
		margin: 12px 0 12px 0;
		width: 100%;
	}
	#button_add_img {
		display: block;
		margin: 4px 0;
		width: 100%;
	}

}

.card {
	box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
	border-box: 2px;
	background-color: #bf0000 !important;
	padding: 1em;
}

.card>header {
	padding: 0.5em 0 0.51em 0;
	font-size: 130%;
	
}

.square_container {
	display: -webkit-flex; display: flex;
	align-content: stretch; -webkit-align-content: stretch; 
	align-items: stretch; -webkit-align-items: stretch; 
	flex-wrap: wrap; -webkit-flex-wrap: wrap;
}

a.square {
	box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
	border-box: 2px;
	background-color: #bf0001;
	color: white;
	padding: 1em;
	font-size: 2em;
	text-align: center;
	display: inline-block;
	margin: 0.1em;
	flex-grow: 1; -webkit-flex-grow: 1;
}

.alert {
	padding: 1em;
	background-color: #ffcccc;
	color: #990000;
	margin: 1em 0 1em 0;
}

.success {
	padding: 1em;
	background-color: #cfc;
	color: #090;
	margin: 1em 0 1em 0;
}

.warning {
	padding: 1em;
	background-color: #ffffcc;
	color: #994400;
	margin: 1em 0 1em 0;

}

.hidden_form {
	display: none;
}

.popup_form {
	z-index: 6000;
	background: #333;
	display: block; 
	position: fixed;
	top: 8px;
	left: 8px;
	right: 8px;
	bottom: 8px;
	padding: 12px;
	box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
	box-shadow: 0px 0px 24px rgba(0,0,0,0.4);
	transition: opacity 0.3s;
	overflow-y: auto;
}

.popup_form .close_button {
	position: absolute;
	top: 0px;
	right: 0px;
	font-size: 2em;
	background: transparent;
	border-radius: 50%;
	border: none;
	box-shadow: none;
	color: #bf0000;
}


.popup_form .close_button:hover {
	text-shadow:0.3px 1px 2px #f44;
}

.hidden {
	display: none;
}
.invisible-block {
	display: block;
	opacity: 0;
}
.visible-block {
	display: block;
	opacity: 1;
}
.invisible-flex {
	display: -webkit-flex;
	display: flex;
	opacity: 0;
}
.visible-flex {
	display: -webkit-flex;
	display: flex;
	opacity: 1;
}

table.admin_table {
	display: none;
	background: #bf0000;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

table.admin_table th {
	background-color: #8f0000;
}

table.admin_table tr {
	background-color: #bf0000 !important;
	background-image: linear-gradient(#bf0000, #8f0000);
	transition: background-color 0.15s;
}

table.admin_table tr:hover {
	background-color: #8f0000 !important;
	cursor: pointer;
}

table.admin_table tr.unreaded {
	background-color: #ffc;
}

table.admin_table tr.cancelled, table.admin_table tr.deactivate {
	color: #633;
	background-color: #bf3333;
	text-decoration: line-through;
	background-image: linear-gradient(#bf3333, #8f3333);
}

table.admin_table tr.attended {
	color: #008f00;
	background-color: #00bf00;
	background-image: linear-gradient(#00bf00, #008f00);
}
 

table.admin_table .div_thumb {
	background-position: center;
	width: 64px;
	height: 64px;
}



.img_settings_container {
	display: flex; -webkit-display: flex;
	flex-wrap: wrap; -webkit-flex-wrap: wrap;
	justify-content: space-around; -webkit-justify-content: space-around;
	
}

.img_settings {
	display: inline-block;
	width: 192px;
	position: relative;
	box-sizing: border-box;
}

.img_settings button.remove_button {
	position: absolute;
	right: 8px;
	top: 8px;
	font-size: 1.5em;
	padding: 0px 10px 0px 10px;
	box-shadow: 0px 1px 2px rgba(0,0,0,0.4);
	border-radius: 18px;
	background: #f8f8f8;
	border: none;
	color: #800;
}

.img_settings button.add_button {
	background: #6a2;
	border: 1px solid #484;
	width: 100%;
}

.img_settings img {
	width: 100%;
	display: block;
}

.img_settings input, .img_settings select {
	width: 100%;
}

button.image_selector {
	background: #ddd;
	border: #ccc;
	box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
}

button.image_selector:hover {
	background: #ddd;
	border: #ccc;
	box-shadow: 0px 2px 2px rgba(0,0,0,0.5);
}

button.image_selector img {
	max-width: 100%;
}

.container { 
	display: -ms-flexbox; display: -webkit-flex; display: flex;
	-webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row;
	-webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap;
	-webkit-justify-content: space-around; -ms-flex-pack: space-around; justify-content: space-around;
	-webkit-align-items: stretch; -ms-flex-align: stretch; align-items: stretch;
	text-align: center;
}

.category {
	background: white;
	width: 300px;
	box-shadow: 0px 2px 2px rgba(0,0,0,0.2);
	transition: all 0.3s;
	margin-bottom: 1em;
}

.image-tool {
	margin: 1em auto;
	margin-bottom: 0.3em;
	width: 120px;
	height: 120px;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.category:hover {
	box-shadow: 0px 2px 2px rgba(0,0,0,0.5);
}

section.square_container {
	align-items: center;
	width: 50%;
}

section.square_container h2,
section.square_container h4 {
	margin: 0.5em auto;
}

#buscador {
	background-image: url('/css/searchicon.png'); /* Add a search icon to input */
	background-position: 10px 12px; /* Position the search icon */
	background-repeat: no-repeat; /* Do not repeat the icon image */
	width: 100%; /* Full-width */
	font-size: 16px; /* Increase font-size */
	padding: 12px 20px 12px 40px; /* Add some padding */
	border: 1px solid #ddd; /* Add a grey border */
	margin-bottom: 12px; /* Add some space below the input */
}
