/* 1.5em werd 1.5vw*/
/* 1em werd 1vw*/
/*font-size 100% werd 1vw*/
html {
  /*font-size: 100%;*/
/*  font-size: 1vw;*/
  font-size: 100%;/*1vw;*/

}

# ex >*{
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
/*  font-family: Arial,"helvetica neue",Helvetica,Verdana,sans-serif;*/
  font-size: 1vw;
}

#cal_wrapper,#cal_wrapper  * {
  /*margin: 0;*/
  /*padding: 0;*/
  font-family: "Times New Roman", Times, serif;
/*  font-family: Arial,"helvetica neue",Helvetica,Verdana,sans-serif;*/
  font-size: 1vw;
  display: flex;
  justify-content: center;
}
.toleft:hover,.toright:hover
{
outline:0;
}
.toleft,.toright
{
  background: transparent; /*inherit does not work on IE*/
  text-decoration: none;
  border: 0;
  align-self: flex-end;
  color: #cccccc;
  cursor: pointer;
  font-size:1vw; /*overwrite user style agent*/
}
.toleft,.toright
{
    display: block;
    position: relative;
	width: 1.8em;
	height: 1.8em;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
/*	background: red;*/
}

.toleft:hover,.toright:hover
{
	background: #ededed;
}


.toleft span,.toright span
{
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -8px;
    top: 50%;
    margin-top: -8px;
}

.c_icon
{
	ext-indent: -99999px;
    overflow: hidden;
    background-repeat: no-repeat;
	background-image: url(../images/ui-icons_444444_256x240.png);
	width: 16px;
    height: 16px;
}

.c_righticon
{
	background-position: -48px -192px;
}

.c_lefticon
{
	background-position: -80px -192px;
}



.calendar,
section {
  max-width: 50rem;
}

.day {
  width: 1.5vw;
  height: 1.5vw;
}


.to.day {
  color: white;
  background: #f09;
  border-radius: 50%;
}

.booked.day {
  color: white;
  background: lightseagreen;
}

.option.day {
  color: white;
  background: #6a4e85;
}

.maintenance.day {
  color: white;
  background: darkslategray;
}


.free.day {
/*  color: gray;*/
}

.holiday{
  color: #f09 !important;
}

.day:nth-of-type(7n+1) {
  color: darkgoldenrod;/* !important;*/
}

.past.day {
  color: gray;
}

#cal_wrapper h3{
  background-color: inherit;
  /*color: green;*/
  font-size: 1vw;
/*  justify-content: flex-start;*/
}

.c_footer{
 /* display: flex;*/
  /*flex-direction: row;*/
  /*align-self: flex-start;*/
 /* justify-content: flex-start;*/
  align-items: center;
}

.month {
  width: calc(1.5vw * 7);
  padding: 1vw;/* !important;*/
/*  cursor: pointer;*/
  color: #cccccc;
}

#cal_wrapper h4 {
  font-size: 1vw;
  text-transform: uppercase;
  color: #f09;
  margin: 0;
  line-height:1.8em;
}

h1#year {
  font-size: 2em;
  height: 29px;
  font-weight: normal;
  padding: 1em 1em .5em 1em;
  margin-bottom: .5em;
  border-bottom: 5px double #d9d9d9;
}

.no-flexbox .day {
  text-align: center;
  float: left;
  line-height: 1.5vw;
}

.no-flexbox h4 {
  text-align: center;
}

.no-flexbox h1 {
  width: 4em;
}


/* FLEXBOX styles*/

bodyx,
bodyx * {
  display: flex;
  justify-content: center;
}

.monthContainer {
 justify-content: center;
 flex: 1 0 100%;
} 


#cal_wrapper h4 {
 /* justify-content: center;*/
  flex: 1 0 80%;
}


h1x {
  justify-content: center;
  align-self: stretch;
}

.calendar,
.month {
  flex-wrap: wrap;
}

section {
  flex-direction: column;
  align-self: center;
}

.month {
  align-items: flex-start;
}

.day {
  align-items: center;
  justify-content: center;
}


/*for a Spanish like calendar  
  .month .day:nth-of-type(1){order:7!important;}
  .month .day:nth-of-type(8){order:-1!important;}
   
*/

script {
  display: none;
}

.cloneCont {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -5em;
  margin-top: -10.89em;
  box-shadow: 0px 0px 5px 1px #ccc;
  transform: scale(2, 2);
  background: rgba(255, 255, 255, .9);
  animation: redimensionar .5s cubic-bezier(.86, 0, .07, 1);
}

.month.cloneMonth {
  display: flex
}

.month.cloneMonth:after {
  content: "\02718";
  color: #f09;
  position: absolute;
  top: 1em;
  right: 1em;
}

.cloneCont.trans {
  transform: translateY(1000px);
  background: rgba(255, 255, 255, .9);
  opacity: 0;
  animation: trasladar .5s cubic-bezier(.86, 0, .07, 1);
}

@keyframes redimensionar {
  0% {
    transform: scale(1, 1);
    background: rgba(255, 255, 255, .9);
    opacity: 0;
  }
  100% {
    transform: scale(2, 2);
    background: rgba(255, 255, 255, .9);
    opacity: 1;
  }
}

@keyframes trasladar {
  0% {
    opacity: 1;
  }
  100% {
    transform: translateY(1000px);
    opacity: 0;
  }
}


@media (min-width: 320px) and (max-width: 480px) { 

/*@media screen and (max-width: 400px)
{*/
	/*mobile vertical*/
#cal_wrapper,#cal_wrapper  * {
  font-size: 3vw;
}
.day {
  width: 6vw;
  height: 6vw;
}
.month {
  width: calc(6vw * 7);
}

#cal_wrapper h4 {
  font-size: 4vw;
}
#cal_wrapper h3{
  font-size: 3vw;
}
}

@media (min-width: 481px) and (max-width: 767px) { 
	/*mobile horizontal*/

#cal_wrapper,#cal_wrapper  * {
  font-size: 2vw;
}
.day {
  width: 3vw;
  height: 3vw;
}
.month {
  width: calc(3vw * 7);
}

#cal_wrapper h4 {
  font-size: 2vw;
}
#cal_wrapper h3{
  font-size: 2vw;
}
}
