@import url("https://fonts.googleapis.com/css?family=Josefin+Sans&display=swap");

.calendar-container {
  width: 100%;
  height: 100%;
  font-family: 'Josefin Sans', sans-serif;
  background-color: #fff;
  overflow: hidden;
  position: relative;
  outline: none;
  perspective: 1000px;
  background-image: none;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom left;
}

.main {
  position: absolute;
  width: 100%;
  max-width: 500px;
  height: 460px;
  top: 50%;
  left: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  transition: all 0.195s ease;
  transform-style: preserve-3d;
}

.main.is-rotated-left {
  transform: translate(-50%, -50%) rotateY(-4deg);
}
.main.is-rotated-right {
  transform: translate(-50%, -50%) rotateY(4deg);
}
.main .sideb,
.main .right-wrapper {
  background-color: white;
  width: 98%;
  border-radius: var(--btn-radius);
  float: right;
  height: 100%;
  box-sizing: border-box;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.main .header {
  font-size: 22px;
  padding: 15px 0 20px;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.main .header i {
  padding: 0 5px;
  cursor: pointer;
}
.main .header span {
  display: inline-block;
  margin: 0 3px;
  /*font-weight: 700;*/
}
.main .right-wrapper {
  background-color: #2d6ff7;
  color: white;
  /*transform: rotateY(110deg);
  transform-origin: left center;*/
  position: absolute;
  transform: rotateY(353deg);
  transform-origin: right center;
  transition: all 1s;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
}
.main .event-testi{
   width: 100%;
    max-height: 310px;
    overflow-y: auto;
    margin-bottom: 10px;
}
.main .evento-descrizione{
    background-color: #f3f9f9e6;
    padding: 3px 10px;
    color: #0439a3;
    border-radius: 10px;
    border: 2px solid #6da4f3;
    width: 100%;
    margin: 5px auto;
}
.main .right-wrapper.is-active {
  /*transform: rotateY(0deg);*/
  transform: rotateY(0deg);
}
.main .right-wrapper .header {
  text-align: left;
  justify-content: center;
}
.main .right-wrapper .day {
  /*font-size: 12em;*/
  display: block;
}
.main .right-wrapper .month {
  /*font-size: 2.5em;*/
}
.main .sideb .showDate {
  color: white;
  text-align: right;
  width: 100%;
}
.main .sideb .showDate i {
  cursor: pointer;
  background: #2d6ff7;
  border-radius: 4px;
  padding: 8px 12px;
  transform: scale(1);
  transition: all 0.3s;
}
.main .sideb .showDate i.is-active { transform: scale(-1); }

.main .sideb table {
  text-align: center;
  font-size: 18px;
  width: 100%;
  margin: 30px auto 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.main .sideb table tbody:before {
  content: "-";
  display: block;
  line-height: 0.75em;
  color: transparent;
}

.main .sideb table th {
  color: #f05855;
  font-size: 0.75em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.main .sideb table td {
  padding: 11px 5px;
  color: #ced0ce;
  font-size: 0.75em;
  transition: all 0.3s;
  position: relative;
}

.main .sideb table td::before {
  content: "";
  display: none;
  width: 50%;
  height: 2px;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -8px);
  background-color: #f05855;
}
.main .sideb table td.currentDay::before {
  display: block;
}
.main .sideb table td.selectable {
  color: #303633;
  cursor: pointer;
}

.main .sideb table td.event-find{
  color: #f5f6f7;
    cursor: pointer;
    background-color: #2d6ff7;
    border-radius: 20px;
}

.main .sideb table td.selectable:hover {
  background: #f05855;
  color: white;
}
.main .sideb table td.between {
  background-color: #333;
  color: white;
}

.main .sideb table td.active, .main .sideb table td.hover {
  background: #f05855;
  color: white;
}

.main .sideb table td.prenotato{ background-color: #c90909bf; }

.main .showDate{
   border: 1px solid #fff;
   padding: 5px 10px;
}