#grav_wrapper {
	background: #D24691;
	display: block;
	padding: 20px;
}

#grav_form {
	display: flex;
	flex-wrap: wrap;
}

label.label {
	color: #fff;
	padding: 1rem 0;
	margin-right: 1rem;
}

#datepicker {
	background-color: rgba(255,255,255,.333);
	margin: 0 1rem 0 0;
	padding: .5rem 1rem;
	color: #fff;;
	border: 1px solid #fff;
	text-align: center;
	width: 120px;
	border-radius: 4px; 
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
}

.cycle {
	display: block;
	background-color: #fbd8e4;
	margin: 0 1rem 0 1rem;
	padding: .5rem 1rem;
	font-size: 12pt;
	border: 1px solid #fff;
	border-radius: 4px; 
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	float: left;
	color: #eb3c76;
}

#reload,
#grav_btn {
	padding: 1rem 20px;
	color: #fff;
	width: auto;
	background-color: rgba(0,0,0,.3);
	text-align: center;
	text-transform: uppercase;
	border: 1px solid #036;
	margin: 0;
	cursor: pointer;
	border-radius: 4px; 
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border: 1px solid #fff;
}

#reload {
	color: #666;
	font-size: 8pt;
	background: #ddd;
	border: 1px solid #999;
}

#reload:hover {
	color: #369;
}

#reload:active,
#grav_btn:active {
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;	
}

#content_result {
	padding: 20px;
	background-color: rgba(230,122,0,1);
	display: none;
	color: #fff;
}

#content_result span {
	font-weight: bold;
}

/* periodo fertile */

#content_result.periodo_fertile {
	background: #fff;
	padding: 0;
}

#pf_legenda {
	display: flex;
	flex-direction: column;
}

#pf_calendario h3,
#pf_legenda h3 {
	font-size: 21px;
	color: #eb3c76;
	width: 100%;
}

#pf_legenda > div {
	font-size: 1.2rem;
	border-left: 2em solid;
	padding-left: 1em;
	line-height: 2em;
	margin-bottom: 1em;
	background-color: transparent;
	color: #000;
	white-space: nowrap;
}

#pf_legenda .pf01 {
	border-left-color: #92aa81;
}

#pf_legenda .pf02 {
	border-left-color: #ccc;
}

#pf_legenda .pf03 {
	border-left-color: rgba(230,122,0,.666);
}

#pf_legenda .pf04 {
	border-left-color: rgba(230,122,0,1);
}

.cal {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}

.week_day,
.pf {
	width: 14.27%;
	padding: 4% 0 3% 0;
	color: #fff;
	border-bottom: 1px solid #fff;
	border-right: 1px solid #fff;
	text-align: center;
	box-sizing: border-box;
}

.empty_day {
	background-color: #ececec;
}

.week_day {
	background-color: #aaa;
	padding: 1em 0;
	text-transform: uppercase;
	font-size: 1.2rem;
}

.pf01 {
	background-color: #92aa81;
}

.pf02 {
	background-color: #ccc;
}

.pf03 {
	background-color: rgba(230,122,0,.666);
}

.pf04 {
	background-color: rgba(230,122,0,1);
	font-weight: bold;
}

.today {
	position: relative;
}

.today::before {
	content: '★';
	position: absolute;
	font-size: 10px;
	text-align: center;
	right: 0;
	left: 0;
	top: 0;
}

.pf_gsett {
	width: 90px;
	display: table-cell;
	padding: 5px 5px 5px 1rem;
	text-align: right;
	font-style: italic;
	font-weight: normal;
	color: rgba(255,255,255,0.8);
}

.pf_giorno,
.pf_mese {
	font-size: 1.2em;
	text-align: center;
	line-height: 1em;
}

.pf_mese {
	font-size: .8em;
}

.grav_explain{
	float: left;
	margin: 5px auto 1rem;
	padding: 5px;
}

#grav_show:hover {   	
	text-decoration: bold;	
	border: 1px solid #aaa;
	background: #777;	
}

.grav_center {
	display: inline;
}

#grav_optional{
	display: none;
	background-color: #ddd;
	float: left;
	margin: 1rem;
	padding: 1rem;
	width: 500px;
}

#grav_show {   	
	padding: 0 5px 1px 5px;
	color: #fff;
	font-weight: bold;
	text-decoration: none;	
	border: 1px solid #666;
	background: #aaa;	
	width: 180px;
	text-align: center;   	
}

.grav_left {	
	float: left;	
}

.grav_right {	
	float: right;	
}

@media screen and (min-width: 750px) {
	
	#pf_legenda {
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: wrap;
	}
	
	.pf {
		padding: 4% 0;
	}

	.pf_mese {
		font-size: 2em;
		line-height: 1em;
	}
	
	.pf_mese {
		font-size: 1em;
		line-height: 1em;
	}

	.today::before {
		font-size: 14px;
		top: 5px;
	}
}


