
body {
  font-family: sans-serif;
}

.outer_container {
  width: 95%;
  margin-left: 10px;
}

.planner_container {
  position: relative;
  width: 100%;
  left: 0px;
  margin-bottom: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #ddd;
}

.planner {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  grid-template-rows: repeat(26, 40px);
  border-collapse: collapse;
  position: relative;
  width: 98%;
  left: 10px;
  overflow-x: scroll;
  min-width: 700px;
}

.color_swatch {
  width: 10px;
  height: 10px;
  margin-left: 3px;
}

.time-slot {
  border: 1px solid #ccc;
  height: 40px;
  position: relative;
  background: #eee;
}
.time-label {
  position: sticky;
  left: 0;
  background: #eee;
  z-index: 3;
  border: 1px solid #ccc;
  padding: 5px;
  text-align: right;
  font-size: 12px;
}

.date_nav {
  background: #eee;
  font-weight: bold;
  text-align: center;
  position: relative;
  left: 10px;
  width: 25%;
  min-width: 300px;
  border: 1px solid #ccc;
  height: 40px;
  line-height: 40px;
}

.date_nav button {
  font-size: 18px;
  margin: 0 10px;
  padding: 4px 10px;
  cursor: pointer;
}

.reg_button {
  border-radius: 3px;
  height: 20px;
  margin-top: 5px;
}
.header {
  background: #eee;
  font-weight: bold;
  text-align: center;
  border: 1px solid #ccc;
  height: 40px;
  line-height: 40px;
}
.event {
  position: absolute;
  background: dodgerblue;
  font-size: 12px;
  padding: 2px 2px;
  border-radius: 4px;
  z-index: 1;
  left: 3px;
  min-width: 80px;
  border: 1px solid black;
  text-overflow: ellipsis;
  overflow: hidden;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: nowrap;
  transition: box-shadow 0.2s;
}

.event_title {
    font-size: 1em;
  font-weight: bold
}
.event:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  min-width: 150px;
}

.event.class {
background: lightsteelblue;
}

.event.lesson {
background: lightskyblue;
}

.event.workshop {
background: #e684ec;
}

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

.resources {
  font-size: .9em;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: #333;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  white-space: pre-line;
  width: max-content;
  max-width: 200px;
  transition: opacity 0.2s ease-in-out;
}

.popup-menu {
  position: absolute;
  display: none;
  padding: 5px 0;
  background-color: #FFFFFF;
  border: 2px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  min-width: 120px;
  height: auto;
  margin: 2px 0 2px 2px ;
  color: #666;
  font-size: .8em; //asg 12pt;
  -moz-border-radius: 3px;
  -moz-box-shadow: 0 1px 2px #d1d1d1;
  -webkit-border-radius: 3px;
  -webkit-box-shadow: 0 1px 2px #d1d1d1;
  background: #eff1f4;
}

.popup-menu p {
  padding: 3px 3px;
  font-size: 1em;
    /*color: #818181;  */
    color: #744B8D;
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0; border-top: 1px solid #fafafa;
    background: #ededed;
    background: -webkit-gradient(linear, left top, left bottom, from(#ededed), to(#ebebeb));
    background: -moz-linear-gradient(top, #ededed, #ebebeb);
	margin-bottom: 5px;
}
.popup-menu ul {
  padding-left: 2px;
  padding-bottom: 5px;
}
.popup-menu li {
  padding: 6px 12px;
  cursor: pointer;
  list-style: none;
  font-size: .8em;
}

.popup-menu li:hover {
  background: #eee;
}

@media (max-width: 768px) {
  .event {
    font-size: 0.65rem;
  }

  .header {
    font-size: 0.75rem;
  }

  .time-label {
    font-size: 0.7rem;
  }
}
