body {
  font-family: Arial, sans-serif;
  margin: 0px 50px 50px 50px;
  padding: 0;
}

a.record-caveat {
  text-decoration: none;
}

.pill-div {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.pill-menu {
    display: inline-flex; /* Keeps width as small as possible */
    justify-content: center;
    align-items: center;
    background: #3498db; /* Green to lighter blue */
    padding: 10px 15px;
    border-radius: 50px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4); /* Softer white shadow */
    gap: 12px;
    min-width: fit-content; /* Ensures it only takes up as much space as needed */
}


.pill-menu a {
    text-decoration: none;
    font-size: 16px;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-align: center;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
}

@media (max-width: 768px) {
  .pill-menu a {
      font-size: 14px; /* Smaller font size for smaller screens */
      padding: 8px 16px; /* Adjust padding for smaller screens */
      white-space: nowrap;
  }

  .pill-menu {
    border-radius: 0px;
    scrollbar-width: thin; /* optional: show thin scrollbar */
  }

  .pill-div {
    overflow-x: auto;
    width: 100%;
    justify-content: left;
  }


}


.pill-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.pill-menu-a-active {
    /*background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);*/
  background-color: #2980b9; /* Active state color */
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Optional shadow to make it pop */
}

.map-container {
    position: relative;
    width: 90%; /* Set the width to 80% to allow some extra space on the sides */
    margin: 0 auto; /* Center the container horizontally */
    padding-top: 56.25%; /* Maintain the 16:9 aspect ratio */
    height: 0;
    overflow: hidden; /* Hides overflow content */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Take up full width of container */
    height: 100%; /* Take up full height of container */
    border: 0; /* Removes iframe border */
}


/* Full page calendar container */
.calendar-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 90%; /* Adjust width to be 90% of the screen width */
    max-width: 800px; /* Maximum width for large screens */
    margin: auto;
    height: 100vh; /* Take full height of the viewport */
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 30px;
}

/* Header style */
.calendar-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Month name centered */
.month-name {
    text-align: center;
    font-size: 1.5rem;
    flex-grow: 1;
}

/* Calendar grid layout */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columns for each day of the week */
    grid-gap: 10px; /* Adds spacing between cells */
    width: 100%;
    height: calc(100% - 80px); /* Allow the grid to take up most of the page */
    overflow-y: auto; /* Allow scrolling if needed */
    padding: 0 10px;
    margin: 0;
    box-sizing: border-box;
}

/* Sticky day of the week header */
.calendar-grid .day-of-week {
    position: sticky;
    top: 0;
    background-color: #f0f0f0;
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    border: 1px solid #ddd;
    z-index: 2; /* Ensures the day-of-week header stays above the day cells */
}

/* Individual day cells */
 .day {
    width: 100%;
    height: 0;
    padding-bottom: 100%; 
    position: relative;
    text-align: center;
    line-height: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-grow: 1;
    font-size: 1.2rem;
} 

/* Ensures the date number is at the top */
.day .date-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2em;
    font-size: clamp(14px, 3vw, 20px);
    font-weight: bold;
}

.day .number-of-games {
    top: 50%;
    position: absolute;
    justify-content: center;
    align-items: center;
    font-size: clamp(12px, 2.5vw, 18px); /* Responsive font size */
    font-weight: bold;
}


.day.empty {
    background-color: #f5f5f5;
}

.day:hover {
    background-color: #f0f0f0;
    transform: scale(1.05); /* Slightly enlarges the cell */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
}


.day.filled {
    background-color: #3498db; /* Primary blue */
    color: #fff;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Adds depth */
    border: 2px solid #3498db;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-radius: 8px; /* Slightly rounded edges */
}

.day.opening-day {
  background-color: #4CAF50;
  border: 2px solid #4CAF50;
}

/* Hover effect to make it feel interactive */
.day.filled:hover {
    background-color: #2980b9; /* Darker blue on hover */
    border: 2px solid #2980b9;
    transform: scale(1.05); /* Slightly enlarges the cell */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Click (active) effect */
.day:active, .day.filled:active {
    transform: scale(0.95); /* Slightly shrinks when clicked */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}


/* Styling for the navigation buttons */
.navigation-button {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.navigation-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive adjustment: Make the calendar cells bigger for smaller screens */
@media (max-width: 768px) {
    .calendar-container {
        width: 100%; /* Take full width on smaller screens */
        padding: 10px;
        height: auto;
        max-height: 90vh;  /* Optional: limit max height */
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr); /* Adjust grid to fit the page */
    }

    .date-number {
      font-size: 0.5em !important;
      top: 10px !important;
    }

    .day .number-of-games {
        top: 75%;
        position: absolute;
        justify-content: center;
        align-items: center;
        font-size: 0.35em; /* Responsive font size */
        font-weight: bold;
    }

    
}

@media (max-width: 1000px) and (min-width: 769px) {
  .day .number-of-games {
        top: 75%;
        position: absolute;
        justify-content: center;
        align-items: center;
        font-size: 0.75em; /* Responsive font size */
        font-weight: bold;
    }
}


.available-cell {
  background-color: #4CAF50;
  font-color: white;
  font-weight: bold;
}

.unavailable-cell {
  background-color: #af504c;
  font-color: white;
  font-weight: bold;
}

.team-schedule-link, .date-schedule-link {
  text-decoration: none;
}


@media only screen and (max-width: 600px) {

  body {
    margin: 0px 15px 15px 15px;
  }

  .form-row {
    flex-wrap: wrap;
    margin-bottom: 15px;
  }

  .form-row label {
    flex-basis: 100%;
    margin-bottom: 5px;
  }

  .form-row input,
  .form-row textarea {
    width: 100%;
    font-size: 16px;
    padding: 8px;
  }

  .form-row select {
    width: 100%;
    font-size: 12px;
    padding: 8px;
  }


  .form-row button {
    width: 40%;
    margin: auto;
    padding: 8px 16px;
    font-size: 14px;
  }

  #week_label {
    font-size: 14px !important;
  }

  .column {
    flex: 0 0 46.5% !important;
    padding: 5px !important;
  }

  .empty {
    height: 50px !important;
    pointer-events: none;
  }

}


.note-toggle {
  position: absolute;
  top: 2em;
  right: 2em;
  font-size: 0.8em;
  cursor: pointer;
  text-decoration: none;
  color: #007BFF;
  font-weight: strong;
}

.note-section {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;

  position: relative;
}

.note-section h2 {
  font-size: 16px;
  margin-bottom: 5px;
  margin-left: 10px;
}

.note-section p {
  margin: 0;
  margin-bottom: 5px;
/*  text-indent: 15px;*/
  margin-left: 10px;
}

.note-section p::before {
  content: "\2022";
  margin-right: 5px;
}

.container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.column {
  flex: 0 0 48%;
  background-color: #f2f2f2;
  border-radius: 4px;
  padding: 10px;
}
.column-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: -5px;
  padding: 10px 0;
  text-align: center;
  color: #5A5A5A;
}
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
li {
  background-color: #ffffff;
  padding: 10px;
  margin-bottom: 5px;
  cursor: move;
  position: relative;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#sortable-left li {
	margin-left: 40px;
}

.ui-droppable-hover {
  border: 2px dashed darkgray;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.empty {
	background: #f2f2f2;
	height: 20px;
	box-shadow: none;
}

.form-row {
  flex: 1;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.form-label {
  flex: 0 0 120px;
  font-weight: bold;
  color: #444444;
}
.form-input {
  flex: 1;
  margin-left: 10px;
  padding: 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
}
.form-input[readonly] {
  background-color: #f2f2f2;
  pointer-events:none;
}
.form-input:focus {
  outline: none;
  border-color: #3469e8;
}

.schedule-input[readonly] {
  background-color: #f2f2f2;
  pointer-events:none;
  background-image: none;
}

.schedule-input.game_date[readonly] {
  border-width: 1px;
  padding: 2px;
}

.submit-btn {
  padding: 10px 16px;
  border: none;
  background-color: #3469e8;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
}
.submit-btn:hover {
  background-color: #1e4db3;
}
.form-checkbox {
	display: block;
	align-items: center;
	margin-top: 20px;
	margin-bottom: 20px;
	font-style: italic;
	
}
.form-checkbox-label,input[type="checkbox"] {
	cursor: pointer !important;
}

#sortable-left .ranking {
  position: absolute;
  top: 50%;
  left: -40px;
  width: 30px;
  text-align: center;
  font-weight: bold;
  transform: translateY(-50%);
}

#sortable-right .ranking {
  display: none;
}


.team-record {
  font-size: 14px;
  color: #777;
  display: inline-block;
  margin-left: 0px;
}

@media (max-width: 768px) {
  .team-record {
    font-size: 12px;
    display: block;
    margin-top: 5px;
  }
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 500px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

@media (max-width: 768px) {
  .modal-content {
    width: 75%;
  }
}



.hide-cursor-input {
  caret-color: transparent;
}

#success-modal-text {
	text-align: left;
}

#choose-password-modal-link {
  margin-bottom: 20px;
}

.modal-close, .choose-password-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus,
.choose-password-modal-close:hover,
.choose-password-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


/* Error message style */
.error-message {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ffcccc;
  color: #cc0000;
  border: 1px solid #cc0000;
  border-radius: 5px;
  display: flex;
  justify-content: flex-end;
}

/* Success message style */
.success-message {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ccffcc;
  color: #006600;
  border: 1px solid #006600;
  border-radius: 5px;
  display: flex;
  justify-content: flex-end;
}


/* Warning message style */
.warning-message {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ffffcc;
  color: #666600;
  border: 1px solid #666600;
  border-radius: 5px;
  display: flex;
  justify-content: flex-end;
}

/* Notification message style */
.notification-message {
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ccffff;
  color: #000066;
  border: 1px solid #000066;
  border-radius: 5px;
  display: flex;
  justify-content: flex-end;
}


#success-message-submit, #error-message-submit {
  margin-top: 10px;
/*  margin-bottom: 200px;*/
}


.close-message-btn {
  margin-left: auto;
  color: inherit;
/*  font-size: 25px;*/
  font-weight: bold;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

/* LOGO & HEADER */

header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background-color: #f0f0f0;
  padding: 10px;
  z-index: 999;
}

.logo {
  float: right;
}

.logo img {
  height: 40px;
  width: auto;
  margin-top: -6px;
}


/* SUMMARY TABLE */

/* Table styles */
.table-container {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
}

.inner-table-container {
  overflow-x: auto;
  padding-bottom: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ddd;
}

th {
  background-color: #f5f5f5;
  font-weight: bold;
}

.positive {
  color: green;
}

.negative {
  color: red;
}


th.sorting:after,
th.sorting_asc:after,
th.sorting_desc:after {
    margin-left: 2px;
    font-size: 0.8em;
    color: #888;
}

th.sorting:after {
    content: '⇅'; /* Neutral sort icon */
}

th.sorting_asc:after {
    content: '▲';
}

th.sorting_desc:after {
    content: '▼';
}

th.sorting, th.sorting_asc, th.sorting_desc {
  cursor: pointer;
  white-space: nowrap;
}


#team-schedule-table_filter, #conference-schedule-table_filter, #date-schedule-table_filter, #user-table_filter {
  margin: 10px;
}

#team-schedule-table_filter input, #conference-schedule-table_filter input, #date-schedule-table_filter input, #user-table_filter input {
  border: 1px solid #cccccc;
  border-radius: 4px;
  flex: 1;
  margin-left: 10px;
  padding: 8px;
}

.date-schedule-table-search {
  border: 1px solid #cccccc;
  border-radius: 4px;
  flex: 1;
  padding: 8px;
}

#search-surface {
  width: 50px;
}

#search-location {
  width: 75px;
}

#search-surface::placeholder, #search-location::placeholder {
  font-size: 10px;
}


.nearby-games-cell {
  position: relative;
  cursor: pointer;
}

.nearby-games-cell:hover {
  background-color: #e0e0e0;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}


/* Tooltip styling */
.nearby-games-cell::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 100%; /* Position tooltip to the left of the cell */
  top: 50%; /* Center vertically */
  transform: translateY(-50%); /* Adjust for perfect vertical centering */
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
  white-space: pre-line; /* Allows multi-line text */
  display: none;
  width: max-content;
  max-width: 200px;
  text-align: left;
  margin-right: 10px; /* Space between the tooltip and the cell */
  z-index: 1000;
}

.nearby-games-cell:hover::after {
  display: block;
}


.spacer-row-top {
  border-top: 30px solid #ddd;
}

.export-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #3e76fe;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* LOGIN */

#password {
  min-width: 100px;
}

.password {
  min-width: 100px;
}

.password-toggle {
  padding: 10px;
  height: 25px;
  width: 25px;
  cursor: pointer;
}

.reset-password-button {
/*  display: inline-block;*/
  padding: 10px 20px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-emoji {
  height: 100%;
  vertical-align: middle;
  width: 25px;
  padding-left: 10px;
  padding-right: 10px;
}

.login-status {
  font-style: italic;
  padding-left: 10px;
  padding-right: 10px;
  margin: auto;
}

.reset-password {
  font-style: italic;
  padding-left: 10px;
  padding-right: 10px;
  margin: auto;
}

.bullet {
  margin: auto;
}

.mobile-login-status {
  padding-bottom: 20px;
}

.desktop-login-status {
  display: none;
}

@media screen and (min-width: 780px)  {
    .mobile-login-status { display: none; }
    .desktop-login-status { display: flex; }
}


/**
 * 
 * Navigation modal
 * 
*/


.scroll-buttons {
  position: fixed;
  bottom: 40px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Align buttons to the right */
}

.scroll-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #ffffff;
  border: none;
  border-radius: 10%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 24px;
  color: #333;
  outline: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scroll-button:not(:last-child) {
  margin-bottom: 15px;
}

.scroll-button:hover {
  background-color: #d1f4ff;
}

.scroll-button i {
/*  display: block;*/
  margin: auto;
}

.unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* Media query for mobile devices */
@media (min-width: 600px) {
  .scroll-button {
    display: none; /* Hide the modal on larger screens */
  }

  .footer-nfhca-short {
    display: none !important;
  }


}

@media (max-width: 600px) {
  /* make the teams not highlightable when long holding */
  .connected-sortable li {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  .footer-nfhca-long {
    display: none !important;
  }

}

/* select */

select {
  padding: 10px;
  padding-right: 30px;

  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url('../img/down-caret.svg');
  background-repeat: no-repeat, repeat;
  background-position: right .7em top 50%, 0 0;
  background-size: 1.5em auto, 100%;
}

/* For IE */
select::-ms-expand {
  display: none;
}



/* coming soon banner */


.coming-soon-banner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -50px;
  margin-right: -50px;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;

  filter: brightness(100%);
  background: url("../img/fieldhockey.jpeg") center/cover;
  background-size: cover;
}

.background-image-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  opacity: 0.4;
  filter: brightness(100%);
/*  margin-top: -250px;*/
  background: url("../img/ncaatrophy.avif") bottom/cover;
  z-index: -9999;
}

.banner-content {
  text-align: center;
  color: #ffffff;
  z-index: 1; /* Ensure text appears above the background image */
  margin: 10%;
}

.banner-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}



/* footer */

.site-footer {
  background-color: black;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: 250px;
  margin-bottom: -50px;
  margin-left: -50px;
  margin-right: -50px;
/*  padding-top: 50px;*/
}

.footer-left {
  flex: 1;
  color: white;
/*  margin-left: 10%;*/
}

.footer-right {
  text-align: right;
/*  margin-right: 10%;*/
}

.footer-right a {
  color: white;
  text-decoration: none;
}

@media (max-width: 600px) {

  .site-footer {
    height: 100px;
    margin-right: -15px;
  }

  .banner-content {
    padding-left: 35px;
  }

  .banner-content h1 {
    font-size: 40px;
  }


  .footer-left {
      margin-left: 50px;
      padding-right: 10%;
  }

  .footer-right {
      margin-right: 15px;
  }

  .coming-soon-banner {
    margin-right: -15px;
  }



}


/* Style for the table of contents container */
.toc {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 5px; /* Rounded edges */
}

/* Style for the TOC buttons container */
.toc-list {
    display: flex;
    justify-content: space-between;
}

/* Style for the TOC button */
.toc-link {
    flex: 1;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px; /* Rounded edges */
    margin: 0 5px; /* Spacing between buttons */
}

@media (max-width: 600px) {

  .toc-list {
    flex-direction: column;
  }

  .toc-link {
      margin: 5px 0;
  }
}

/* Style for hover effect on TOC buttons */
.toc-link:hover {
    background-color: #0056b3;
}

