@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Main body settings */
body {
  margin: 0px;
  max-width: 100vw;
  font-family: Noto Sans;
}
/* Global td settings */
td {
  font-family: Noto Sans, sans-serif;
  font-size: 15px;
  color: #333333;
  padding: 3px 4px;
}

b {
  font-weight: 800;
  font-family: Noto Sans, sans-serif;
}

/* New input styling for text */

input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  color: #64748b;
  white-space: nowrap;
  align-items: start;
  border-radius: 8px;
  border: 1px solid #c7c7c7;
  background-color: #fff;
  margin-top: 12px;
  margin-bottom: 6px;
  width: 100%;
  justify-content: center;
  padding: 14px 12px;
  font: 500 14px/20px Noto Sans, sans-serif;
  word-wrap: break-word;
  white-space: pre-wrap;
}

#number_div,
#cvv_div {
  color: #64748b !important;
  white-space: nowrap !important;
  align-items: start !important;
  border-radius: 8px !important;
  border: 1px solid #c7c7c7 !important;
  background-color: #fff !important;
  margin-top: 12px !important;
  margin-bottom: 6px !important;
  width: 100%;
  justify-content: center !important;
  font: 500 14px/20px Noto Sans, sans-serif !important;
}

/* New global button */
button {
  width: 100%;
  padding: 14px 40px;
  border-radius: 8px;
  gap: 8px;
  background: #6d66e5;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  font: 500 14px/20px Noto Sans, sans-serif;
}

button[name='process'] {
  margin-top: 20px;
}

/* Introduce btn-light (without affecting global links) */
.link.btn-light {
  color: #0a0f1c;
  text-align: center;
  letter-spacing: -0.14px;
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 8px;
  background-color: #dde1e5;
  padding: 14px 40px;
  font: 600 14px/20px Noto Sans, sans-serif;
  max-width: 100%;
  display: block;
  text-decoration: none !important;
  border: none !important;
}

/* For reports responsiveness*/
.h-0 {
  height: 0;
}

/* Hides reports */
.overflow-hidden {
  overflow: hidden;
}

/* Align body items horizontally */
.d-flex {
  display: flex;
}

/* Cell styling on schedule */
.book {
  text-align: center;
  font-size: 10px;
  color: #0a0f1c;
  border-bottom: 1px solid #dde1e5;
  border-right: 1px solid #dde1e5;
  font-family: Noto Sans;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0em;
  text-align: center;
}
.book1 {
  text-align: center;
  font-size: 10px;
  color: #0a0f1c;
  border-bottom: 1px solid #dde1e5;
  border-right: 1px solid #dde1e5;
  font-family: Noto Sans;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0em;
  text-align: center;
}

/* Set size of cells in schedule */
tr td.book:not(:first-child),
tr td.book1:not(:first-child) {
  padding: 0;
}

/* All links in blue, no underline except on hover */
a,
a:visited {
  color: #0033ff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

svg {
  width: 20px; /* Adjust according to your needs */
  height: 20px;
  margin-right: 5px;
  overflow: visible; /* Adjust according to your needs */
}

/* Nav settings (font size and padding) */
.nav {
  font-size: 14px;
  line-height: 1.3;
  vertical-align: bottom;
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Align Nav items in columns */
td.nav {
  display: flex;
  flex-direction: column;
  width: 240px;
  transition: ease-in-out 0.3s;
  overflow-y: scroll;
  position: sticky;
  left: 0;
  background: #fff;
}

/* Collapsed Nav */
.nav.collapsed a span,
.nav.collapsed li span,
.nav.collapsed .logged-in-as {
  display: none;
}
td.nav.collapsed {
  width: 50px;
}
td.nav.collapsed .logo {
  width: 50px;
}
td.nav.collapsed .logo img {
  width: 50px;
}

/* Organise logo in Nav */
td.nav .logo {
  height: 60px;
  background: white;
  top: 0;
  padding-top: 22px;
  padding-bottom: 5px;
  transition: ease-in-out 0.3s;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
td.nav .logo img {
  max-height: 60px;
  max-width: 180px;
  text-align: center;
  object-fit: contain;
}

td.nav ::-webkit-scrollbar-track {
  background-color: #6d66e5; /* Track color */
}

/* Style links in Nav */
td.nav a {
  padding: 14px 16px;
  color: #64748b;
  font-family: Noto Sans;
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
  letter-spacing: -0.14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border-radius: 12px;
  border: none;
}

.nav > a > svg {
  margin-right: 9px;
}

/* Style text in game screen when entering scores */
td[style='width: 50%'] select {
  color: #000;
}

/* Style locations links in Nav */
ul.locations > li {
  padding: 6px 16px;
  color: #64748b;
  font-family: Noto Sans;
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
  letter-spacing: -0.14px;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
}

a[title='Today'] {
  display: flex;
  margin-top: 5px;
  margin-bottom: 3px;
}

ul.locations li:not(:first-child) {
  display: flex;
  flex-direction: column;
}
ul.locations li:first-child {
  display: inline-block;
  vertical-align: middle;
}
ul.locations li:first-child svg {
  vertical-align: middle;
}

ul.locations {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  padding-top: 7px;
  padding-bottom: 7px;
}

ul.locations ul {
  list-style-type: none;
  padding-left: 0;
  transition: ease-in-out 0.3s;
}
ul.locations li > ul:not(.h-0) {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
/* Style functions links in Nav */
ul.functions > li {
  padding: 6px 16px;
  color: #64748b;
  font-family: Noto Sans;
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
  letter-spacing: -0.14px;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
}
ul.functions li:not(:first-child) {
  display: flex;
  flex-direction: column;
}
ul.functions li:first-child {
  display: inline-block;
  vertical-align: middle;
}
ul.functions li:first-child svg {
  vertical-align: middle;
}
ul.functions {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  padding-top: 7px;
}
ul.functions ul {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
ul.functions li > ul:not(.h-0) {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
/* Style reports links in Nav */
ul.reports > li {
  padding: 6px 16px;
  color: #64748b;
  font-family: Noto Sans;
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
  letter-spacing: -0.14px;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
}
ul.reports li:not(:first-child) {
  display: flex;
  flex-direction: column;
}
ul.reports li:first-child {
  display: inline-block;
  vertical-align: middle;
}
ul.reports li:first-child svg {
  vertical-align: middle;
}
ul.reports {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  padding-top: 7px;
}
ul.reports ul {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
ul.reports li > ul:not(.h-0) {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
/* Style scripts links in Nav */
ul.scripts > li {
  padding: 6px 16px;
  color: #64748b;
  font-family: Noto Sans;
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
  letter-spacing: -0.14px;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
}
ul.scripts li:not(:first-child) {
  display: flex;
  flex-direction: column;
}
ul.scripts li:first-child {
  display: inline-block;
  vertical-align: middle;
}
ul.scripts li:first-child svg {
  vertical-align: middle;
}
ul.scripts {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  padding-top: 7px;
}
ul.scripts ul {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
ul.scripts li > ul:not(.h-0) {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
/* Style notes links in Nav */
ul.notes > li {
  padding: 6px 16px;
  color: #64748b;
  font-family: Noto Sans;
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
  letter-spacing: -0.14px;
  cursor: pointer;
  border-radius: 12px;
  align-items: center;
}
ul.notes li:not(:first-child) {
  display: flex;
  flex-direction: column;
}
ul.notes li:first-child {
  display: inline-block;
  vertical-align: middle;
}
ul.notes li:first-child svg {
  vertical-align: middle;
}

ul.notes {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  padding-top: 7px;
}
ul.notes ul {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
ul.notes li > ul:not(.h-0) {
  list-style-type: none;
  padding-left: 0;
  padding-top: 10px;
  transition: ease-in-out 0.3s;
}
/* Add background colour to Nav links on hover */
td.nav a:hover,
ul.locations:hover,
ul.functions:hover,
ul.reports:hover,
ul.scripts:hover {
  background-color: rgba(10, 15, 28, 0.025);
}

select[name='duration'] {
  width: auto;
}

#mobile-nav-toggler {
  display: none;
}
#mobile-nav-toggler svg {
  display: none;
}

/* Calendar Styling */
.calendar-container {
  margin-bottom: 10px;
}

.calendar-container table {
  width: auto !important;
}

table.calendar-container a {
  padding: none !important;
  font-size: 12px;
}

.calendar-container a {
  padding: 0;
}

.calendar-container .title {
  text-align: left;
  font-weight: 400;
  width: 100%;
  font-size: 14px;
  padding-right: 8px;
}
.calendar-container .title a {
  padding: 0px;
  font-size: 14px;
}

.calendar-layout tbody tr td {
  color: #0a0f1c;
  padding: 0;
}
.calendar-layout tbody tr td a {
  color: #78687d;
  font-size: 13px;
  padding: 0;
  display: block;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 5px;
  padding-right: 5px;
}
.calendar-layout tbody tr td.active {
  background-color: #6d66e5;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  font-size: 13px;
}
.calendar-layout tbody tr:first-child td {
  font-size: 13px;
}
/* Active page in Nav (add black background)*/
td.nav a.active {
  background-color: #6d66e5 !important;
  color: white !important;
}

/* Spacing between logo and first Nav link*/
td.nav a:nth-child(2) {
  width: auto;
}

td.nav.collapsed a:nth-child(2) {
  width: 16px;
}

/* Hiding the old booking schedule heading */
tbody.d-flex > tr:nth-child(2) {
  display: none;
}

/* Heading Styling */
.heading {
  color: #000;
  font-weight: 700;
  padding-top: 40px;
  padding-bottom: 40px;
  background: #e9e7ff;
  font-size: 18px;
  text-align: center;
  font-family: Noto Sans, sans-serif;
}

/* Footer Styling */
.footer {
  font-size: 11px;
  color: #ffffff;
  background-color: #20b0a0;
  padding-top: 2px;
  padding-bottom: 2px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Calendar Button */
#calendar-toggler {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
  background-color: #dddddd;
  padding: 4px;
  border-radius: 5px;
  cursor: pointer;
}

table {
  border-spacing: 0px !important;
}

.timeline-container table td {
  border: 0.5px solid #ccc;
  font-size: 12px;
}

.timeline-container table tr:nth-child(even) {
  background-color: #f8f8ff;
}

.timeline-container.sports table tr:nth-child(even) {
  background-color: #fff;
}

.timeline-container td[colspan='100%'] {
  background: #6d66e4;
  color: #fff;
  border-left: 0.5px solid #ccc;
}

.timeline-container tr:nth-child(2) {
    border-left: 0.5px solid #ccc;
}

.timeline-container tr:first-child > td[colspan='100%'] {
  border-top-left-radius: 10px;
}

.notes ul{
    overflow: visible:
    max-height: 1000px;
}

.timeline-container td[colspan='100%'] b {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.14px;
}

form[name='scan'] {
  display: block;
}

form[name='scan'].collapsed {
  display: none;
}

/* Move input fields underneath labels */
.text-field {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

td a[href="javascript:pop('login.cfm')"] {
  width: 100%;
  padding: 14px 60px;
  border-radius: 5px;
  background: #6d66e5;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  font: 500 14px/20px Noto Sans, sans-serif;
}

td a[href="javascript:pop('../roster.cfm')"] {
  width: 100%;
  padding: 14px 60px;
  border-radius: 5px;
  background: #6d66e5;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  font: 500 14px/20px Noto Sans, sans-serif;
}

td a[href="javascript:pop('../avail.cfm')"] {
  width: 100%;
  padding: 14px 60px;
  border-radius: 5px;
  background: #6d66e5;
  color: #fff !important;
  text-decoration: none !important;
  border: none !important;
  font: 500 14px/20px Noto Sans, sans-serif;
}

/* Events Page CSS */

.events {
  padding-left: 10px;
}

.events tr td {
  color: #0a0f1c;
  font-family: Noto Sans;
  font-size: 11px !important;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0em;
  padding: 4px 8px;
}

.events tr:not(:first-child):nth-child(2n) td:not([colspan='6']),
.events
  tr:not(:first-child):nth-child(2n)
  td[colspan='6']
  ~ td:not([colspan='6']) {
  background-color: #fff !important; /* Your desired background color */
}

.events tr td[align='right'],
.events tr td[title='Capacity'],
.events tr td:nth-child(n + 4),
.events tr td:nth-child(n + 2),
.events tr td[title='Registrations'],
.events tr td[title='Open'] {
  width: auto;
  border: 0.5px solid #eee;
  background: rgb(228, 241, 255, 0.6);
}

.events tr td:nth-child(8) {
  width: 45px;
}



.events tr td:nth-child(5) {
  width: auto;
}
.events tr td:nth-child(6) {
  width: auto;
}
.events tr td:nth-child(-n + 6) * {
  color: #64748b !important;
  border: none;
}
.events tr td:nth-child(n + 6) * {
  font-weight: 600 !important;
  border: none;
  color: #0a0f1c;
}
.events tr:hover td:nth-child(n + 6) a {
  color: #6d66e5;
}
.events tr td:nth-child(-n + 6) .text-white {
  color: #fff !important;
}

.events td[colspan='6'] b {
  font-size: 12px;
  color: white !important;
  padding: 6px 18px;
  margin-left: -8px;
  background-color: #6d66e5;
  border-radius: 0px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
  overflow: hidden;
  box-shadow: 0px 0px 20px 5px rgba(0, 12, 20, 0.1);
}
.events td[colspan='4'] b {
  font-size: 12px;
  color: white !important;
  padding: 6px 18px;
  margin-left: -8px;
  background-color: #6d66e5;
  border-radius: 0px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
  overflow: hidden;
  box-shadow: 0px 0px 20px 5px rgba(0, 12, 20, 0.1);
}

.events td[colspan='6'] a {
  font-size: 12px;
  color: white !important;
  padding: 6px 18px;
  margin-left: -8px;
  background-color: #211951;
  border-radius: 0px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
  overflow: hidden;
  box-shadow: 0px 0px 20px 5px rgba(0, 12, 20, 0.1);
}


.events td[colspan='4'] a {
  font-size: 13px;
  color: blue !important;
  margin-left: -8px;
  border-radius: 0px;
  text-decoration: underline;
  font-weight: 600;
  overflow: hidden;
}



.events td[colspan='8'] b {
  font-size: 12px;
  color: white !important;
  padding: 6px 18px;
  margin-left: -8px;
  background-color: #6d66e5;
  border-radius: 0px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
  overflow: hidden;
  box-shadow: 0px 0px 20px 5px rgba(0, 12, 20, 0.1);
}

.events td[colspan='8'] a {
  font-size: 12px;
  color: white !important;
  padding: 6px 18px;
  margin-left: -8px;
  background-color: #211951;
  border-radius: 0px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
  overflow: hidden;
  box-shadow: 0px 0px 20px 5px rgba(0, 12, 20, 0.1);
}

.intraclogo {
  height: 40px;
}

.logged-in-as {
  text-align: center;
  margin-top: 15px;
}

/* Style labels & input fields */
tr.text-field td:nth-child(1) {
  color: #0a0f1c;
  width: 100%;
  font: 500 14px/20px Noto Sans, sans-serif;
  margin-top: 6px;
}

/* Links in bold */
.link {
  font-weight: 600;
}

.active svg {
  stroke: white;
  border: white;
}

/* Media Queries */

/* Elements above 768px */
@media (min-width: 768px) {
  .timeline-container {
    width: auto;
    overflow: scroll;
    transition: ease-in-out 0.3s;
  }
  .timeline-container.expanded {
    width: calc(100vw - 312px);
  }
  .timeline-container.expanded-right {
    width: calc(100vw - 217px);
  }
  .timeline-container.expanded-full {
    width: calc(100vw - 87px);
  }
  #mobile-nav-toggler {
    display: none !important;
  }
  .mobile-nav {
    display: none;
  }
  .calendar-indicator {
    display: none;
  }
  .d-block-sm {
    display: none;
  }
}

@media (max-width: 950px) {
  td[valign='top'] {
    padding-left: 30px;
    padding-right: 30px;
  }
  .timeline-container {
    margin-left: -30px;
    margin-right: -30px;
  }
}

/* Media Queries for mobile under 768px */
@media (max-width: 768px) {
  .timeline-container table td {
    min-width: 80px;
  }
  td {
    font-size: 13px;
  }

  input:not([type='checkbox']):not([type='radio']),
  select,
  textarea {
    color: #64748b;
    white-space: nowrap;
    align-items: start;
    border-radius: 8px;
    border: 1px solid #c7c7c7;
    background-color: #fff;
    margin-top: 8px;
    width: auto;
    justify-content: center;
    padding: 14px 12px;
    font: 500 14px/20px Noto Sans, sans-serif;
    word-wrap: break-word;
    white-space: pre-wrap;
  }
  button {
    width: auto;
  }

  td.nav {
    // position: fixed;
    // left: -212px;
    // top: 0;
    z-index: 10;
    background-color: white;
  }
  td.nav.expanded {
    left: 0;
  }
  .right-aside {
    position: fixed;
    right: -100vw;
    top: 0;
    z-index: 0;
    background-color: white;
    transition: ease-in-out 0.3s;
  }
  td.nav.expanded {
    left: 0;
    top: 0;
  }
  .right-aside.expanded {
    right: 0;
    top: 0;
  }

  .timeline-container.expanded {
    width: calc(100vw - 312px);
  }
  .timeline-container.expanded-right {
    width: calc(100vw - 233px);
  }
  .timeline-container.expanded-full {
    width: calc(100vw - 102px);
  }
  .mobile-nav {
    display: none;
  }

  .page-title {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    color: #0a0f1c;
    letter-spacing: -0.14px;
    flex-grow: 1;
    white-space: nowrap;
    margin: auto 0;
    font: 600 14px/20px Noto Sans, sans-serif;
  }
  #calendar-toggler {
    display: none;
  }
  .img-2 {
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .calendar-indicator {
    align-items: center;
    display: none;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
    position: absolute;
    top: 0;
    width: 50vw;
    background: white;
    z-index: 12;
    right: 0;
  }

  .right-section {
    display: none;
  }
  .calendar-left {
    display: none;
  }

  .date-month {
    color: #0a0f1c;
    text-align: center;
    letter-spacing: -0.14px;
    flex-grow: 1;
    white-space: nowrap;
    font: 600 14px/20px Noto Sans, sans-serif;
  }
  @media (max-width: 991px) {
    .date-month {
      white-space: initial;
    }
  }
  .calendar-right {
    align-items: center;
    border-radius: 8px;
    border: 1px solid #f8fafc;
    align-self: stretch;
    display: flex;
    aspect-ratio: 1;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 2px;
    position: absolute;
    right: 20px;
    top: 10px;
  }
  .d-block-sm {
    display: none;
  }
}
/* Media Queries for mobile under 450px */
@media (max-width: 450px) {
  .timeline-container table td {
    min-width: 55px;
  }
}

@media screen and (max-width: 576px) {
  form {
    padding: 0 10px;
  }
}

@media print {
  .nonprint {
    display: none;
  }
}
