.calendar {
  margin: 0;
  padding: 0;
}

.calendar .info * {
  color: white;
}

.calendar .info {
  background-color: rgb(var(--second-color));
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.calendar h1 {
  text-align: center;
  margin: 0 0;
  font-size: 1.5rem;
}

.calendar .month {
  width: 80%;
}

.calendar * {
  color: #36383a;
}

.calendar .back,
.calendar .next {
  width: 10%;
  text-align: center;
}

.calendar .back i,
.calendar .next i {
  font-size: 1.6rem;
  line-height: 3.75rem;
}

.calendar table {
  width: 100%;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  border-collapse: collapse;
  empty-cells: show;
  background: white;
  border-radius: 0.5rem;
}

.calendar td {
  width: 14%;
  margin: 0;
  padding: 0;
  background-color: rgba(var(--background-color), 0.7);
}

.calendar table tr:first-child td {
  background-color: unset;
  vertical-align: middle;
  height: 3rem;
  color: white;
  border-bottom: 2px solid rgb(117, 118, 121);
  text-align: center;
}

.calendar table tr:first-child {
  background-color: rgba(34, 66, 209, 0.4);
}

.calendar p {
  font-size: 0.8rem;
  line-height: 0.8rem;
  margin: 0;
  padding: 0;
  text-align: center;
  color: white;
}

.calendar .nothing p {
  color: rgb(var(--text-color));
}

/*.calendar table td.today {
  border: 5px solid rgb(var(--text-color));
}*/

.roomlist {
  width: 100%;
  text-align: center;
  vertical-align: middle;
}

.event,
.spel,
.nothing {
  display: inline-block;
  text-decoration: none;
  margin: 1.25%;
  padding: 36.25%;
  width: 25%;
  height: 25%;
  color: white;
}

.nothing {
  color: black;
  background-color: rgba(var(--second-color), 0.1);
}

.spel {
  background-color: rgba(52, 45, 153, 0.5);
  transition: 0.5s;
}

.event {
  background-color: rgb(173, 6, 48);
  transition: 0.5s;
}

.event:hover {
  background-color: rgb(114, 4, 31);
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}

.spel:hover {
  background-color: rgb(14, 35, 131);
  transition: 0.5s;
}

.eventinfo {
  line-height: 1rem;
  font-size: 0.9rem;
}

.calendar .info {
  display: flex;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext * {
  color: white;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 10rem;
  background-color: rgb(var(--text-color));
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  border-width: 5px;
  border-style: solid;
}

.tooltip .tooltiptext.top {
  bottom: 125%;
  left: 50%;
  margin-left: -5rem;
}

.tooltip .tooltiptext.top::after {
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-color: rgb(var(--text-color)) transparent transparent transparent;
}

.tooltip .tooltiptext.left {
  top: -5px;
  right: 110%;
  margin-left: -5rem;
}

.tooltip .tooltiptext.left::after {
  top: 25px;
  left: 100%;
  margin-top: -5px;
  border-color: transparent transparent transparent rgb(var(--text-color));
}

.tooltip .tooltiptext.right {
  top: -5px;
  left: 110%;
  margin-right: -5rem;
}

.tooltip .tooltiptext.right::after {
  top: 25px;
  right: 100%;
  margin-top: -5px;
  border-color: transparent rgb(var(--text-color)) transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

#kalender .tbl-left {
  margin-top: 0rem;
}

.body .hours {
  width: 100%;
  text-align: center;
}

.body .hours .table {
  width: 19%;
  margin-right: 1%;
  background-color: rgba(var(--second-color), 0.7);
  color: white;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.body .hours .table:hover,
.body .hours .table.selected {
  background-color: rgba(var(--second-color), 1);
}

.body .hours .table a:not(.nothing) {
  color: white;
  font-size: 1.15rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.body #hoursinfo table {
  margin-top: 1rem;
  width: 100%;
}

.body #hoursinfo table td {
  width: 20%;
}

@media (max-width: 1000px) {
  .body .hours .table {
    width: 90%;
    margin-right: 5%;
    margin-left: 5%;
    margin-bottom: 3%;
  }
  .body #hoursinfo table {
    width: 90%;
    margin-right: 5%;
    margin-left: 5%;
    margin-top: 0;
  }
}
