html {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color-scheme: light dark;
}
body {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  color: black;
  background-color: #f8f8f8;
  margin: 0;
  padding: 0;
  font-family: Verdana, sans-serif;
  font-size: 12px;
  background-image: linear-gradient(to bottom, #e8e8e8 10%, #f8f8f8 40%);
}
#menu {
  margin-bottom: 4px;
}
#navbar {
  width: 100%;
  background-color: black;
  text-align: center;
  margin-top: 8px;
}
#navbar, #title {
  line-height: 26px;
  position: absolute;
  bottom: 0;
  left: 0;
}
#navbar, #navbar a {
  color: white;
}
#navbar ul {
  display: inline;
  padding: 0;
}
#navbar li {
  display: inline;
  padding: 0 10px;
}
#title, #print {
  position: absolute;
  bottom: 0;
  font-size: 12px;
  z-index: 32;
  font-size: inherit;
  font-weight: normal;
  margin: 0 10px;
}
#print a {
  padding-left: 10px;
}
#title {
  color: #eee;
}
#print {
  right: 0;
}
body.addemam-right #print {
  padding-right: 20px;
}
#addemam {
  display: inline-block;
  text-align: center;
}
#addemam-wrapper {
  display: none;
}
#bobs {
  border: none;
  position: absolute;
  overflow: hidden;
  z-index: 25;
}
body.addemam-bottom #addemam-wrapper {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100vw;
}
body.addemam-320x50 #addemam-wrapper,
body.addemam-320x100 #addemam-wrapper,
body.addemam-320x160 #addemam-wrapper {
}
body.addemam-right #addemam-wrapper {
  position: absolute;
  top: 3px;
  right: 10px;
  display: block;
}
#addemam-wrapper {
  z-index: 50;
  cursor: pointer;
  display: none;
}
body.addemam-right #addemam-bottom,
body.addemam-bottom #addemam-right {
  display: none;
}
body.addemam-320x400 #calendar-wrapper,
body.addemam-320x400 #print {
  right: 320px;
}
body.addemam-320x400.addemam-right-full #menu {
  padding-right: 340px;
}
body.addemam-300x1050 #calendar-wrapper,
body.addemam-300x1050 #print,
body.addemam-300x600 #calendar-wrapper,
body.addemam-300x600 #print {
  right: 300px;
}
body.addemam-300x1050.addemam-right-full #menu,
body.addemam-300x600.addemam-right-full #menu {
  padding-right: 320px;
}
body.addemam-160x600 #calendar-wrapper,
body.addemam-160x600 #print {
  right: 160px;
}
body.addemam-250x360 #calendar-wrapper,
body.addemam-250x360 #print {
  right: 250px;
}
body.addemam-120x240 #calendar-wrapper,
body.addemam-120x240 #print {
  right: 120px;
}
body.addemam-160x600.addemam-right-full #menu {
  padding-right: 180px;
}
body.addemam-750x200 #navbar,
body.addemam-750x200 #title,
body.addemam-750x200 #print {
  padding-bottom: 222px;
}
body.addemam-980x120 #navbar,
body.addemam-980x120 #title,
body.addemam-980x120 #print {
  padding-bottom: 142px;
}
body.addemam-970x250 #navbar,
body.addemam-970x250 #title,
body.addemam-970x250 #print {
  padding-bottom: 272px;
}
body.addemam-930x180 #navbar,
body.addemam-930x180 #title,
body.addemam-930x180 #print {
  padding-bottom: 192px;
}
body.addemam-728x90 #navbar,
body.addemam-728x90 #title,
body.addemam-728x90 #print {
  padding-bottom: 162px;
}
body.addemam-320x50 #navbar,
body.addemam-320x50 #title,
body.addemam-320x50 #print {
  padding-bottom: 70px;
}
body.addemam-320x100 #navbar,
body.addemam-320x100 #title,
body.addemam-320x100 #print {
  padding-bottom: 120px;
}
body.addemam-320x160 #navbar,
body.addemam-320x160 #title,
body.addemam-320x160 #print {
  padding-bottom: 167px;
}
body.addemam-468x60 #navbar,
body.addemam-468x60 #title,
body.addemam-468x60 #print {
  padding-bottom: 80px;
}

#calendar-wrapper {
  position: absolute;
  top: 26px; /* 6px below menu */
  left: 10px;
  right: 10px;
  z-index: 30;
}
body.addemam-right #calendar-wrapper {
  margin-right: 21px;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Trebuchet MS, Franklin Gothic Medium, sans-serif;
  transform: translateZ(0);
}
html.loading table {
  opacity: 0;
}
html.loading #calendar-wrapper {
  visibility: hidden;
}
th {
  font-size: 14px;
}
th time {
  overflow: hidden;
  display: block;
}
td {
  padding: 0;
  margin: 0;
  background-color: white;
  border: 1px solid #aaa;
  white-space: nowrap;
  overflow: hidden;
  height: 2%;
  width: 16%;
  line-height: 185%;
}
td.empty {
  border: 0;
  background-color: transparent;
}
abbr.wd {
  float: left;
  width: 14px;
  padding-left: 4px;
  border-bottom: none;
  text-decoration: none;
}
time.d {
  float: left;
  padding-right: 4px;
  margin-right: 4px;
  text-align: right;
}
a.w {
  margin-right: 3px;
  padding-right: 2px;
  float: right;
  font-weight: bold;
  font-size: 110%;
  text-decoration: none;
  color: black;
}
td.wd-6 abbr.wd, td.wd-6 time.d, td.wd-0, td.holiday.official, td.holiday.defacto abbr.wd, td.holiday.defacto time.d {
  background-color: #ccc;
}
span.name {
  font-size: 85%;
  vertical-align: top;
  position: relative;
  display: inline-block;
  line-height: .9em;
  white-space: normal;
  text-wrap: balance;
}
table.long-holiday-names span.name, span.name.long {
  font-size: 75%;
}
a {
  color: inherit;
}

td.highlightSides {
  border-left: 2px solid #cc0000;
  border-right: 2px solid #cc0000;
}
td.highlightTop {
  border-top: 2px solid #cc0000;
}
td.highlightBottom {
  border-bottom: 2px solid #cc0000;
}

#region-select {
  cursor: default;
  background-color: transparent;
  color: white;
  border: 1px solid #999;
  border-radius: 5px;
  padding: 1px 5px 2px;
}
#region-select:hover {
  box-shadow: 0 0 10px #eee;
}
#region-list {
  position: absolute;
  z-index: 31;
  left: -999px;
  background-color: white;
  border: solid black;
  border-width: 1px 1px 0;
  box-shadow: 2px 2px 25px #000;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: height .2s ease-out;
}
#region-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
#region-list li.current a {
  font-weight: bold;
}
#region-list li a {
  display: block;
  padding: 3px 5px;
  text-decoration: none;
}
#region-list li a:hover {
  display: block;
  background-color: black;
  color: white;
}
@media (prefers-color-scheme: dark) {
  body {
    color: #eee;
    background-image: linear-gradient(to bottom, #333 10%, #444 40%);
  }
  th, a.w {
    color: #ccc;
  }
  td {
    background-color: #333;
    border-color: #666;
  }
  td.wd-6 abbr.wd, td.wd-6 time.d, td.wd-0, td.holiday.official, td.holiday.defacto abbr.wd, td.holiday.defacto time.d {
    background-color: #666;
  }
  #navbar a {
    color: #cc3;
  }
  td.highlightSides {
    border-left-color: #cc3;
    border-right-color: #cc3;
  }
  td.highlightTop {
    border-top-color: #cc3;
  }
  td.highlightBottom {
    border-bottom-color: #cc3;
  }
}
@media only screen and (max-height: 600px) {
  #menu {
    margin-bottom: 0;
  }
  #navbar {
    margin-top: 1px;
  }
}
@media only screen and (max-width: 720px) {
  #title, #region-list, #print {
    display: none;
  }
  #navbar {
    line-height: 20px;
    font-size: 13px;
  }
  #navbar li.prev {
    float: left;
  }
  #navbar li.next {
    float: right;
  }
  a.w {
    padding-right: 2px;
  }
}
@media only screen and (orientation : landscape) and (max-device-width: 667px) {
  html {
    overflow: scroll;
  }
  body {
    min-height: 480px;
  }
  #menu {
    display: none;
  }
  #navbar {
    line-height: 15px;
    font-size: 11px;
    padding-bottom: 2px;
  }
  #calendar-wrapper {
    top: 0;
  }
  a.w {
    padding-right: 2px;
  }
}
@media only screen and (orientation : landscape) and (max-device-width: 768px) {
  /* iPad on iOS7 hides navbar 
  #navbar, #title {
    margin-bottom: 18px;
  }
  */
}
@media print {
  @page {
    size: landscape;
    margin: .5cm;
  }
  body {
    background: transparent none;
  }
  * {
    print-color-adjust: exact;
  }
  td {
    border: 1px solid #aaa ! important;
  }
  table {
    width: 100%;
    top: 0;
    left: 0;
    page-break-inside: avoid;
  }
  #title, #navbar, #menu, #addemam-wrapper, #addemam-wrapper, #region-list {
    display: none ! important;
  }
  #calendar-wrapper {
    top: .5cm ! important;
    bottom: .5cm ! important;
    left: .5cm ! important;
    right: .5cm ! important;
    margin-right: 0 ! important;
  }
}

#news {
  position: absolute;
  right: 0;
}
@keyframes down {
  0% { opacity: 0 } 
  20%  { top: -200px; opacity: 0; border-color: #c00; background-color: #c00; }
  40%  { opacity: .5; border-color: #c00; background-color: #c00; }
  100% { top: -70px;  opacity: 1; }
}
.arrow_box {
  animation-name: down;
  animation-duration: 2s;
  position: relative;
  background: #a00;
  opacity: 1;
  top: -70px;
  left: -8px;
  padding: 3px 8px;
  border-radius: 5px;
}
.arrow_box:after {
  top: 100%;
  left: 50%;
  content: " ";
  width: 0;
  height: 0;
  position: absolute;
  pointer-events: none;
  border: solid transparent;
  border-color: rgba(0, 0, 0, 0);
  border-top-color: #a00;
  border-width: 10px;
  margin-left: -10px;
}
