#calendari {
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  height: 320px;
  width: 100%;
  font-size: 14px;
  /*box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.4);*/
}
table1 {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(0);
  transition: all 0.3s ease;
}
table1.actiu {
  transform: translateX(0px) top;
}
table1.inactiu {
  transition: all 0.3s 0.01s ease;
}
table1.amagat-esquerra {
  transform: translateX(-299px);
}
table1.amagat-dreta {
  transform: translateX(300px);
}
table1 td,
th {
  text-align: center;
  background-color: #fff;
}
table1 th {
  padding: 10px;
}
table1 tr:first-child th {
  font-size: 20px;
  font-weight: bold;
  border-left: none;
  border-top: none;
  width:77%;
}
table1 td:last-child,
th:last-child {
  border-right: none;
}

table1 th {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #00a556;
  color: #fff;
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
  font-weight: normal;
}
table1 th .any {
  font-size: 12px;
  font-weight: normal;
  display: block;
  text-shadow: none;
  color: #ddd;
}
table1 tr:nth-child(2) th {
  padding: 5px;
  text-transform:uppercase;
}
table1 td {
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
table1 td > span {
  color: #555;
  padding: 10px;
  display: block;
  border: 2px solid transparent;
  transition: border 0.3s ease;
}

table1 td:nth-child(even) > span {
  background-color: rgba(0, 0, 0, 0.02);
}
table1 td:last-child > span,
td:nth-child(6) > span {
  color: #9b59b6;
}
table1 td.avui > span {
  font-weight: bold;
  background-color: #00a556;
  color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.1);
}
table1 td.fora > span {
  opacity: 0.2;
}
table1 td > span:hover {
  background: #ddd;
  color: #555;
}
.boto-next,
.boto-prev {
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
  font-family: inherit;
  border: none;
  font-size: 18px;
  font-weight: bold;
  text-shadow: inherit;
  padding: 2px 10px 5px 10px;
  line-height: inherit;
  height: 30px;
  text-decoration:none;
  cursor:pointer;
  width: 30px;
  vertical-align: middle;
  border-radius: 100%;
  position: absolute;
  top: 14px;
}
.boto-next {
  right: 10px;
  padding-left: 13px;
}
.boto-prev {
  left: 10px;
  padding-right: 13px;
}
.boto-next:hover,
.boto-prev:hover {
  background: rgba(0, 0, 0, 0.2);
  text-decoration:none;
  color:#fff;
}
button:hover {
  cursor: pointer;
}
button:focus {
  outline: none;
}