html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #000000;
  background-color: #ffffff;
}

.flag {
  table-layout: fixed;
}

td.blue {
  width: 33%;
  background-color: #001489;
}

td.white {
  width: 34%;
  background-color: #FFFFFF;
  vertical-align: top;
}

td.orange {
  width: 33%;
  background-color: #FF6319;
}

.content {
  width: 90%;
  margin: 20px auto;
  background-color: #FFFFFF;
  border: 2px outset #CCCCCC;
  padding: 16px;
}

h1 {
  font-family: "Manufacturing Consent", system-ui;
  font-size: 32px;
  font-weight: 400;
  color: #000000;
  margin: 0 0 2px 0;
}

h2 {
  font-size: 14px;
  color: #FF6319;
  margin: 14px 0 6px 0;
  font-weight: bold;
}

p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

ul {
  margin: 0 0 10px 0;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
  line-height: 1.4;
}

a:link    { color: #0000CC; }
a:visited { color: #551A8B; }
a:hover   { color: #FF6319; }

hr {
  margin: 12px 0;
}

.subtitle {
  margin: 0 0 8px 0;
  color: #666666;
}

.footer-text {
  color: #999999;
  margin: 8px 0 0 0;
}

.counter-inner {
  font-family: "Courier New", Courier, monospace;
}

/* Mayor Mamdani corner element */
/* Day availability icons */
.day-key {
  color: #666666;
  display: block;
  margin: 0 0 8px 0;
}

.days {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  font-weight: bold;
  margin-right: 4px;
  white-space: nowrap;
}

.d-on {
  background-color: #006633;
  color: #FFFFFF;
  padding: 1px 3px;
  margin-right: 1px;
}

.d-off {
  background-color: #CC0000;
  color: #FFFFFF;
  padding: 1px 3px;
  margin-right: 1px;
  text-decoration: line-through;
}

.d-req {
  background-color: #FF6319;
  color: #FFFFFF;
  padding: 1px 4px;
  margin-right: 1px;
}

.d-time {
  background-color: #001489;
  color: #FFFFFF;
  padding: 1px 4px;
  margin-right: 1px;
}

/* Category fieldsets */
fieldset.cat {
  border: 2px groove #CCCCCC;
  margin: 0 0 10px 0;
  padding: 6px 10px 4px 10px;
}

fieldset.cat legend {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 0 6px;
}

fieldset.cat-food {
  border-color: #CC6600;
}

fieldset.cat-food legend {
  color: #CC6600;
}

fieldset.cat-shows {
  border-color: #990099;
}

fieldset.cat-shows legend {
  color: #990099;
}

fieldset.cat-irish {
  border-color: #006633;
}

fieldset.cat-irish legend {
  color: #006633;
}

fieldset.cat-explore {
  border-color: #336699;
}

fieldset.cat-explore legend {
  color: #336699;
}

/* Marquee fallback for modern browsers */
marquee {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

marquee > * {
  display: inline-block;
  animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Password gate screen */
.gate {
  text-align: center;
  padding-top: 120px;
}

.gate-box {
  border: 2px outset #CCCCCC;
  background-color: #E8E8E8;
  padding: 24px 32px;
  margin: 0 auto;
}

.gate-title {
  font-family: "Manufacturing Consent", system-ui;
  font-size: 22px;
  font-weight: 400;
  color: #001489;
  margin: 0 0 16px 0;
}

.gate-input {
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  text-align: center;
  border: 2px inset #CCCCCC;
  padding: 4px 8px;
  width: 120px;
}

.gate-btn {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: bold;
  color: #FFFFFF;
  background-color: #001489;
  border: 2px outset #4444AA;
  padding: 4px 16px;
  cursor: pointer;
}

/* Timeline fieldset */
fieldset.cat-timeline {
  border-color: #001489;
  padding: 10px 10px 6px 10px;
}

fieldset.cat-timeline legend {
  color: #001489;
}

.tl {
  table-layout: fixed;
  border-collapse: collapse;
}

/* Day name row */
.tl-day {
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: bold;
  color: #001489;
  padding: 6px 0 2px 0;
  vertical-align: top;
  white-space: nowrap;
}

/* Events row */
.tl-events {
  text-align: center;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10px;
  padding: 4px 3px 2px 3px;
  vertical-align: top;
  line-height: 1.5;
}

.tl-travel {
  font-weight: bold;
  color: #001489;
  font-size: 11px;
}

.tl-item {
  color: #333333;
}

.tl-confirmed {
  background-color: #006633;
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  padding: 1px 4px;
  white-space: nowrap;
}

.tl-tentative {
  background-color: #CC9900;
  color: #FFFFFF;
  font-family: "Courier New", Courier, monospace;
  font-size: 9px;
  padding: 1px 4px;
  white-space: nowrap;
}

.mayor {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 100;
}

.mayor-panel {
  border: 2px outset #D0D0D0;
  background-color: #E8E8E8;
  padding: 8px;
}

.mayor-bubble {
  border: 2px outset #CCCCCC;
  background-color: #FFFFCC;
  padding: 5px 8px;
  margin: 0 0 0 0;
  font-family: "Comic Sans MS", cursive;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.mayor-pointer {
  color: #FFFFCC;
  font-size: 16px;
  text-align: center;
  margin: -3px 0 1px 0;
  padding: 0;
}

.mayor-img {
  border: 2px inset #CCCCCC;
  display: block;
}

.mayor-label {
  font-family: Verdana, sans-serif;
  font-size: 9px;
  text-align: center;
  color: #333333;
  font-weight: bold;
}

/* ==========================================
   MOBILE RESPONSIVE STYLES
   ========================================== */

@media screen and (max-width: 900px) {
  td.blue,
  td.orange {
    display: none;
  }

  td.white {
    width: 100%;
    border-top: 8px solid #001489;
    border-bottom: 8px solid #FF6319;
  }
}

@media screen and (max-width: 600px) {
  .content {
    width: auto;
    margin: 10px 6px;
    padding: 10px;
  }

  h1 {
    font-size: 22px;
    word-wrap: break-word;
  }

  .gate {
    padding-top: 60px;
  }

  .gate-box {
    padding: 20px 16px;
  }

  .gate-title {
    font-size: 18px;
  }

  fieldset.cat-timeline svg {
    width: 100%;
    display: block;
  }

  .tl {
    table-layout: auto;
    width: 100%;
  }

  .tl-day {
    font-size: 9px;
    padding: 4px 1px 2px 1px;
  }

  .tl-events {
    font-size: 9px;
    padding: 2px 1px;
  }

  fieldset.cat {
    padding: 4px 6px;
  }

  ul {
    padding-left: 14px;
  }

  .day-key {
    text-align: center;
  }

  .mayor {
    position: static;
    text-align: center;
    padding: 12px 0;
    background-color: #FFFFFF;
  }

  .mayor-panel {
    margin: 0 auto;
  }

  .mayor-img {
    width: 80px;
    height: auto;
  }
}
