@charset "utf-8";
:root {
  --height: 14em; /* change this value to adjust the height */
  --width: 22em;
  --border-color: #cfcfcf;
  --background-color: #ffffff;
  --background-color-alt: #edeef296;
  --font-family: "Oswald", sans-serif;
}

.tabs > div.active.time {
  padding: 0;
}

.timetable {
  font-family: var(--font-family) !important;
  font-weight: normal !important;
  font-style: normal !important;
  box-sizing: border-box;
  position: relative;
  border: 1px solid var(--border-color);
  margin-top: 1em;
  overflow: hidden;
  user-select: none;
}
.timetable .scroll {
  display: flex;
  background: #ffffff;
  /* overflow: hidden; */
}
.grabbing {
  cursor: grabbing;
}
.timings {
  margin: calc(var(--height) / 2) 0 15px;
  padding: 0;
  width: 3em;
  display: flex;
  list-style-type: none;
  position: relative;
  float: left;
  flex-direction: column;
  height: 100%;
}
.timings li:nth-child(even) {
  background: #edeef296;
}
.timings li:nth-child(odd) {
  background: #ffffff;
}
.timings li {
  height: var(--height);
  margin: 0;
  /* padding-left: 0.1em; */
  min-width: calc(var(--width) * 4);
  width: 100%;
  border-top: 2px dotted #9a9a9a;
}
.timings li span {
  text-align: right;
  padding-right: 0.2em;
  width: 3em;
  float: left;
  display: inline-block;
  height: 0px;
}
.timings li:after {
  content: '';
  border: 0;
  border-top: 1px solid #b1b1b1;
  min-width: 100%;
  display: inline-block;
  position: relative;
  top: calc(var(--height) / 2);
  height: var(--height);
  margin-left: 3em;
}
.dia {
  margin: 0;
  display: flex;
  padding: 0;
  width: 100%;
  list-style-type: none;
  overflow-x: scroll;
  overflow-y: hidden;
}
.sala {
  position: relative;
  padding: 0;
  min-width: calc(100% / 3);
  transition: min-width 0.2s ease-in-out;
  background-color: rgb(255 255 255 / 16%);
  border-left: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  height: 100%;
  overflow: visible;
  margin: 0 auto;
  padding-bottom: 0;
  text-align: center;
}
.name {
  height: calc((var(--height) / 2) + 1em);
  width: calc(100% - 0.6em);
  line-height: 1.2em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-overflow: ellipsis;
  word-break: break-word;
  margin: 0.3em auto;
  background-color: #a09e9e;
  color: #ffffff;
  box-shadow: 0 3px 6px 0 #d1d2d6;
  padding: 0.5em;
  font-size: 0.8em;
}
.hour {
  position: absolute;
  width: 100%;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: center;
}
.hour__10-00 {
  top: calc(var(--height) / 2);
}
.hour__11-00 {
  top: calc(var(--height) * 1.5);
}
.hour__12-00 {
  top: calc(var(--height) * 2.5);
}
.hour__13-00 {
  top: calc(var(--height) * 3.5);
}
.hour__14-00 {
  top: calc(var(--height) * 4.5);
}
.hour__15-00 {
  top: calc(var(--height) * 5.5);
}
.hour__16-00 {
  top: calc(var(--height) * 6.5);
}
.hour__17-00 {
  top: calc(var(--height) * 7.5);
}
.hour__18-00 {
  top: calc(var(--height) * 8.5);
}
.hour__19-00 {
  top: calc(var(--height) * 9.5);
}
.hour__20-00 {
  top: calc(var(--height) * 10.5);
}
.hour__21-00 {
  top: calc(var(--height) * 11.5);
}
.hour__10-30 {
  top: calc(var(--height) * 1);
}
.hour__11-30 {
  top: calc(var(--height) * 2);
}
.hour__12-30 {
  top: calc(var(--height) * 3);
}
.hour__13-30 {
  top: calc(var(--height) * 4);
}
.hour__14-30 {
  top: calc(var(--height) * 5);
}
.hour__15-30 {
  top: calc(var(--height) * 6);
}
.hour__16-30 {
  top: calc(var(--height) * 7);
}
.hour__17-30 {
  top: calc(var(--height) * 8);
}
.hour__18-30 {
  top: calc(var(--height) * 9);
}
.hour__19-30 {
  top: calc(var(--height) * 10);
}
.hour__20-30 {
  top: calc(var(--height) * 11);
}
.hour__21-30 {
  top: calc(var(--height) * 12);
}
.min_30 {
  height: calc(var(--height) / 2);
}
.min_60 {
  height: var(--height);
}
.min_90 {
  height: calc(var(--height) * 1.5);
}
.min_120 {
  height: calc(var(--height) * 2);
}
.min_150 {
  height: calc(var(--height) * 2.5);
}
.min_180 {
  height: calc(var(--height) * 3);
}
.min_210 {
  height: calc(var(--height) * 3.5);
}
.min_240 {
  height: calc(var(--height) * 4);
}
/* SCROLLBAR  */
.timetable ::-webkit-scrollbar {
  height: 15px;
  background: #d8d8d8;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-left: none;
}
.timetable ::-webkit-scrollbar-thumb:horizontal {
  background-color: #000;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
.circle-area {
  height: 22px;
  width: 22px;
  margin-right: 5px;
  top: 2px;
  position: relative;
  float: left;
  border-radius: 50%;
  border: 1px;
}
.dia .sala .hour a, .dia .sala .hour span {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  padding: 0.2em;
  line-height: 0.8em;
  text-align: center;
  margin: 0;
  color: #000000;
  text-shadow: 0 0;
  font-size: 130%;
  letter-spacing: normal;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-wrap: nowrap;
  border-radius: 0 0 0.3em 0.3em;
  text-rendering: geometricprecision;
  font-family: 'Roboto', sans-serif;
}
@media (min-width: 768px) {
  :root {
    --height: 7em; /* change this value to adjust the height */
  }
  .dia .sala .hour a, .dia .sala .hour span {
    font-size: 130%;
  }
  .timetable .scroll {
    flex-direction: column;
    display: flex;
  }
  .timetable .scroll {
    overflow: hidden;
    overflow-x: auto;
    margin: 0px;
    padding: 0px;
  }
  .timings {
    margin: 0;
    padding: 0 0 0 calc(var(--width) / 2);
    width: 100%;
    height: 3em;
    flex-direction: row;
    justify-content: space-between;
    list-style-type: none;
  }
  .timings li {
    margin: 0;
    padding-left: 0.5em;
    min-width: var(--width);
    line-height: 3em;
    height: 100%;
    min-height: calc((var(--height) * 5) - 1em);
    border: 0;
    border-left: 2px dotted #9a9a9a;
    position: relative;
    overflow: hidden;
  }
  .timings li span {
    text-align: left;
    background-color: white;
    width: 3em;
    float: left;
    display: block;
  }
  .timings li:nth-child(even) {
    background: #ffffff;
  }
  .timings li:after {
    content: '';
    border: 0;
    border-left: 1px solid #d5d5d5;
    display: block;
    height: 100%;
    position: relative;
    left: 50%;
    margin-left: -0.3em;
    top: 0;
  }
  .name {
    width: calc((var(--width) / 2) + 2em);
    text-align: center;
    text-overflow: ellipsis;
    white-space: break-spaces;
    word-wrap: normal;
    word-break: keep-all;
    align-items: center;
    height: calc(var(--height) * 0.6);
    margin: 0.4em;
  }
  .dia {
    flex-direction: column;
    overflow: hidden;
    width: calc(var(--width) * 11.5);
    position: relative;
  }
  .dia li:nth-child(even) {
    background: #eeeeee91;
  }
  .sala {
    padding: 0;
    min-width: calc(100.5% / 3);
    transition: min-width 0.2s ease-in-out;
    border-top: 1px solid #cfcfcf;
    border-bottom: 0;
    border-left: 0;
    margin: 0px;
    display: flex;
    align-content: center;
    align-items: center;
    position: relative;
  }
  .hour {
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 0;
  }
  .hour > div {
    display: block;
    font-size: 0.9em;
    line-height: 1.3em;
    text-align: center;
  }
  /* Reemplazar los valores fijos por calculos basados en --width */
  .hour__10-00 {
    left: calc(var(--width) * 0.5);
  }
  .hour__11-00 {
    left: calc(var(--width) * 1.5);
  }
  .hour__12-00 {
    left: calc(var(--width) * 2.5);
  }
  .hour__13-00 {
    left: calc(var(--width) * 3.5);
  }
  .hour__14-00 {
    left: calc(var(--width) * 4.5);
  }
  .hour__15-00 {
    left: calc(var(--width) * 5.5);
  }
  .hour__16-00 {
    left: calc(var(--width) * 6.5);
  }
  .hour__17-00 {
    left: calc(var(--width) * 7.5);
  }
  .hour__18-00 {
    left: calc(var(--width) * 8.5);
  }
  .hour__19-00 {
    left: calc(var(--width) * 9.5);
  }
  .hour__20-00 {
    left: calc(var(--width) * 10.5);
  }
  .hour__21-00 {
    left: calc(var(--width) * 11.5);
  }
  .hour__10-30 {
    left: calc(var(--width) * 1);
  }
  .hour__11-30 {
    left: calc(var(--width) * 2);
  }
  .hour__12-30 {
    left: calc(var(--width) * 3);
  }
  .hour__13-30 {
    left: calc(var(--width) * 4);
  }
  .hour__14-30 {
    left: calc(var(--width) * 5);
  }
  .hour__15-30 {
    left: calc(var(--width) * 6);
  }
  .hour__16-30 {
    left: calc(var(--width) * 7);
  }
  .hour__17-30 {
    left: calc(var(--width) * 8);
  }
  .hour__18-30 {
    left: calc(var(--width) * 9);
  }
  .hour__19-30 {
    left: calc(var(--width) * 10);
  }
  .hour__20-30 {
    left: calc(var(--width) * 11);
  }
  .hour__21-30 {
    left: calc(var(--width) * 12);
  }
  .min_30 {
    width: calc(var(--width) * 0.5);
  }
  .min_60 {
    width: var(--width);
  }
  .min_90 {
    width: calc(var(--width) * 1.5);
  }
  .min_120 {
    width: calc(var(--width) * 2);
  }
  .min_150 {
    width: calc(var(--width) * 2.5);
  }
  .min_180 {
    width: calc(var(--width) * 3);
  }
  .min_210 {
    width: calc(var(--width) * 3.5);
  }
  .min_240 {
    width: calc(var(--width) * 4);
  }
}
.flesh-tabs .horario {}
.flesh-tabs .pretty .horario > li a {
  font-size: 16px;
  height: 2em;
  line-height: 2em;
  /* border: none; */
}
/* COLORES */
.timetable .time-entry {
  background-color: #e6e6e6;
  border: 0;
}
.timetable .time-entry.style-others, .style-others {
  border-top: 10px solid #aeaeae;
}
.timetable .time-entry.style-conference, .style-conference {
  border-top: 10px solid #f37b5f;
}
.timetable .time-entry.style-projection, .style-projection {
  border-top: 10px solid #d151ff;
}
.timetable .time-entry.style-fair, .style-fair {
  border-top: 10px solid #ffb550;
}
.timetable .time-entry.style-hub, .style-hub {
  border-top: 10px solid #54bc6e;
}
.timetable .time-entry.style-coffee, .style-coffee {
  border-top: 10px solid #59b6ff;
}
.timetable .time-entry.style-school, .style-school {
  border-top: 10px solid #bb998c;
}
.timetable .time-entry.style-vr, .style-vr {
  border-top: 10px solid #8ed118;
}
.timetable .time-entry.style-fest, .style-fest {
  border-top: 10px solid #3F51B5;
}
.timetable .time-entry.style-work, .style-work {
  border-top: 10px solid #00c0ae;
}
.timetable .time-entry.style-cid, .style-cid {
  border-top: 10px solid #a9abd3;
}
.timetable .time-entry.style-mdgames, .style-mdgames {
  border-top: 10px solid #ff7c00;
}
.timetable .time-entry.style-otb, .style-otb {
  border-top: 10px solid #414340;
}
.timetable .time-entry.style-break, .style-break {
  background-color: #CDCDCD;
  border: 1px solid #b2b2b2;
}
/* ---------- ESTILOS BACK ESPECIALES ------------- */
.timetable .time-entry.style-mediodia, .style-mediodia {
  background-image: repeating-linear-gradient(45deg, #eee 10px, #eee 12px, white 12px, white 20px);
  color: #949494 !important;
}
.timetable .time-entry.style-mediodia small, .style-mediodia small {
  background-color: #ffffff;
  padding: 0.3em 1em;
  border-radius: 2em;
}

.plus-button {
  background-color: #4285F4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  position: absolute;
  right: 10px;
  top: calc(50% - 50px);
}

.plus-button:hover {
  background-color: #3367D6;
}

.plus-icon {
  display: block;
  line-height: 50px;
  text-align: center;
}

