body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 375px) {
  /* iPhone X has a 375px width in portrait mode */
  .score-card {
    scale: 80%; /* Scale down font size slightly */
    margin-left: -40px;
  }
}

img {
  display: block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

main {
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

p {
  margin-bottom: 15px;
}

p.notice,
p.alert {
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  position: fixed;
  top: 60px;
  right: 20px;
}

p.notice {
  border-color: #d6e9c6;
  background-color: #dff0d8;
  color: #3c763d;
}

p.alert {
  border-color: #ebccd1;
  background-color: #f2dede;
  color: #a94442;
}

:root {
  --primary-color: #55a550;
  --primary-color-dark: #3e783a;
  --secondary-color: #edce1c;
  --text-color: #333;
  --top-nav-height: 55px;
  --primary-green: #55a550;
  --primary-green-dark: #3e783a;
  --primary-yellow: #edce1c;
  --primary-yellow-dark: #cbaf10;
  --header-bg-color: #2f3f4d;
  --primary-red: #a94442;
  --neutral-light: #eee;
  --neutral-medium: #ddd;
  --neutral-dark: #999;
}

body {
  color: var(--text-color);
}

a {
  color: var(--primary-color-dark);
  text-decoration: none;
}

a:hover {
  color: var(--primary-green);
}

header {
  background-color: transparent;
  color: var(--primary-color);
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

footer {
  background-color: #333;
  color: #fff;
}

#react {
  margin: 0;
  padding: 0;
}

.devise-wrapper {
  padding: 10px;
  margin: 10px auto;
  width: min-content;
}

input[type="text"]:not(.MuiInputBase-input),
input[type="email"]:not(.MuiInputBase-input),
input[type="password"]:not(.MuiInputBase-input),
input[type="number"]:not(.MuiInputBase-input),
input[type="date"]:not(.MuiInputBase-input),
input[type="time"]:not(.time-input):not(.MuiInputBase-input),
input[type="datetime-local"]:not(.MuiInputBase-input),
input[type="search"]:not(.MuiInputBase-input),
input[type="tel"]:not(.MuiInputBase-input),
input[type="url"]:not(.MuiInputBase-input),
textarea:not(.MuiInputBase-input),
select:not(.MuiInputBase-input) {
  display: inline-block;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  width: 200px;
}

input[type="time"].time-input {
  width: 100px;
  border: none !important;
}

label {
  display: block;
  margin-bottom: 5px;
}

form {
  width: fit-content;
}

.notes {
  color: var(--neutral-dark);
  font-style: italic;
}

button,
input[type="submit"] {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  background-color: var(--primary-color);
  color: #fff;
}

button.secondary,
input[type="reset"].secondary,
input[type="button"].secondary,
input[type="submit"].secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

button.secondary:hover,
input[type="reset"].secondary:hover,
input[type="button"].secondary:hover,
input[type="submit"].secondary:hover {
  background-color: var(--primary-yellow-dark);
}

.available,
.not-available {
  border-radius: 5px;
  border: 1px solid var(--neutral-medium);
  max-width: 200px;
}

.available {
  color: var(--text-color);
  background-color: var(--header-bg-color);
}

td.booked,
td.not-booked {
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid var(--neutral-medium);
}

td.booked {
  color: var(--text-color);
  background-color: var(--primary-yellow);
}

td.booked:hover {
  background-color: var(--primary-yellow-dark);
}

td.not-booked {
  color: var(--text-color);
  background-color: transparent;
}

td.not-booked:hover {
  color: var(--neutral-dark);
  border-color: var(--primary-yellow-dark);
}

/* Basic form styles */
form {
  margin-bottom: 20px;
  display: block;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Top navigation styles */
.top-nav {
  background-color: var(--header-bg-color); /* Change background color */
  overflow: hidden;
}

.top-nav .logo {
  height: var(--top-nav-height);
  width: var(--top-nav-height);
  background-image: url(/assets/logo-bf0dda0726954acac07bc40984ef69a82d349463d3d2c66effd05951967294a3.png);
  background-size: 64px 64px;
  background-position: center;
  margin-right: 10px;
  float: right;
}

.top-nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.top-nav li {
  float: left;
}

.top-nav li a {
  display: block;
  color: white; /* Text color */
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  /* height: var(--top-nav-height); */
}

/* Change color on hover */
.top-nav li a:hover {
  background-color: var(
    --primary-green-dark
  ); /* Change hover background color */
}

/* Active tab */
.top-nav li.active a {
  background-color: #55a550; /* Change active tab background color */
}

.top-nav li.active {
  /* Your active navigation item styles */
  /* For example, change background color or text color */
  background-color: #f0f0f0;
  /* Add other styles as needed */
}

/* CSS for the iOSStyleSwitch component */
.switch {
  display: inline-block;
  width: 60px;
  height: 30px;
  border-radius: 15px;
  background-color: #ddd;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch .track {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.switch .track::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  background-color: #888;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.switch .thumb {
  width: 26px;
  height: 26px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.switch.on {
  background-color: var(--primary-green);
}

.switch.on .track::before {
  transform: translateX(100%);
}

.switch.on .thumb {
  transform: translateX(30px);
}

.switch.off {
  background-color: var(--header-bg-color);
}

.switch.off .track::before {
  transform: translateX(0);
}

.switch.off .thumb {
  transform: translateX(0px);
}

/* CSS for MultiSelectDropdown component */

.multiselect-dropdown {
  display: inline-block;
  position: relative;
  font-family: Arial, sans-serif;
}

.dropdown-header {
  padding: 0 12px 0 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background-color: #fff;
}

.dropdown-header:hover {
  background-color: #f5f5f5;
}

.dropdown-options {
  position: absolute;
  top: calc(100%);
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  background-color: #fff;
  z-index: 1000;
}

.dropdown-options label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown-options label:hover {
  background-color: #f0f0f0;
}

.dropdown-options input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-main {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #ddd;
  max-width: 80%;
  width: fit-content;
  position: relative;
  border-radius: 6px;
}

.modal button.close {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 10px;
  height: 24px;
  width: 24px;
  font-size: 24px;
  border-radius: 50%;
  border: none;
  background-color: var(--neutral-medium);
  cursor: pointer;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
}

.modal button.close:hover {
  background-color: var(--neutral-light);
}

.display-block {
  display: block;
}

.display-none {
  display: none;
}

.toast {
  position: sticky;
  top: 60px;
  right: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
  z-index: 1000;
}

.toast.success {
  border-color: #d6e9c6;
  background-color: #dff0d8;
  color: #3c763d;
}

.toast.error {
  border-color: #ebccd1;
  background-color: #f2dede;
  color: #a94442;
}

.toast.warning {
  border-color: #faebcc;
  background-color: #fcf8e3;
  color: #8a6d3b;
}

.toast.info {
  border-color: #bce8f1;
  background-color: #d9edf7;
  color: #31708f;
}

.toast button.close {
  position: absolute;
  top: -10px;
  right: -10px;
  padding: 10px;
  height: 24px;
  width: 24px;
  font-size: 24px;
  border-radius: 50%;
  border: none;
  background-color: var(--neutral-medium);
  cursor: pointer;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
}

.toast button.close:hover {
  background-color: var(--neutral-light);
}

.toast button.close::before {
  content: "×";
}

.close {
  padding: 10px;
  height: 10px;
  width: 10px;
  font-size: 20px;
  border-radius: 50%;
  border: none;
  background-color: var(--neutral-medium);
  cursor: pointer;
  margin: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
}

.close:hover {
  background-color: var(--neutral-light);
}

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
}

.filters-buttons-mobile {
  display: none;
}

@media screen and (max-width: 600px) {
  .filters-buttons {
    display: none !important;
  }

  .filters-buttons-mobile {
    display: block;
    margin: 20px 0;
  }

  .notistack-SnackbarContainer {
    bottom: 75px !important;
    display: none !important;
  }
}

.switch-label {
  display: inline-block;
  margin-right: 10px;
  width: 60px;
  text-align: center;
}

.score-button {
  width: 50px;
  height: 50px;
  color: white !important;
}

.score-small {
  width: 28px;
  height: 28px;
  color: white !important;
  text-align: center;
  box-sizing: border-box;
  margin: auto;
}

.disclaimer {
  text-align: left;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Chat container style */
.chat-container {
  width: 100%;
  margin: 0 auto;
  overflow: auto;
  flex: 1;
}

/* Common style for all messages */
.message {
  position: relative;
  max-width: 80%;
  margin: auto;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  word-wrap: break-word;
}

/* Style for messages sent by the user */
.sent-by-app {
  background-color: #dcf8c6; /* Light green background */
  align-self: flex-start;
}

/* Style for messages sent by the app */
.sent-by-user {
  background-color: #eaeaea; /* Light gray background */
  align-self: flex-end;
}

/* Style for text inside messages */
.message .body {
  margin: 0; /* Remove default paragraph margin */
  font-size: 14px;
  color: #333; /* Text color */
}

.message .datetime {
  margin: 0;
  font-size: 12px;
  color: #666;
  text-align: right;
}

/* Arrow pointing left (sent by the user) */
.sent-by-app::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px; /* Adjust distance from the right */
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent #dcf8c6; /* Arrow color matches message background */
  transform: translateY(-50%) rotate(135deg) skewY(115deg);
  background-color: #dcf8c6;
}

/* Arrow pointing right (sent by the app) */
.sent-by-user::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -10px; /* Adjust distance from the left */
  border-width: 10px;
  border-style: solid;
  border-color: transparent #eaeaea transparent transparent; /* Arrow color matches message background */
  transform: translateY(-50%) rotate(135deg) skewY(115deg);
  background-color: #eaeaea;
}

.sms-module {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: calc(100vh - 80px);
  overflow: hidden;
}

.send-input {
  bottom: 0;
  background: white;
  left: 0;
  display: flex;
  flex-direction: row;
  right: 0;
  flex: 0;
}

.text-container {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  flex-direction: row;
}

.charter {
  font-family: "Charter BT Roman", serif !important;
}

.score-card-row__course {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-color);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  overflow: hidden;
  height: auto;
  transition: height 0.5s ease-in-out;
  align-items: center;
}

.score-card-row__course.show {
  height: 140px;
}

.score-card-row__course.hide {
  height: 0;
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  background-color: var(--neutral-light);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.backdrop-filter {
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}

.chatbox {
  margin: auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  background: linear-gradient(
    315deg,
    rgba(101, 0, 94, 1) 3%,
    rgba(60, 132, 206, 1) 38%,
    rgba(48, 238, 226, 1) 68%,
    rgba(255, 25, 25, 1) 98%
  );
  animation: gradient 15s ease infinite;
  background-size: 400% 400%;
  background-attachment: fixed;
}

.chatbox .messages {
  color: rgba(0, 0, 0, 0.5);
  font-weight: bold;
  margin-bottom: 20px;
}

.chatbox .bot-messages {
  color: rgba(0, 0, 0, 0.8);
  font-weight: bold;
  text-shadow: rgba(48, 238, 226, 1) 0px 0px 10px;
  margin-bottom: 20px;
}

@keyframes gradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.wave {
  background: rgb(255 255 255 / 25%);
  border-radius: 1000% 1000% 0 0;
  position: absolute;
  width: 200%;
  height: 12em;
  animation: wave 10s -3s linear infinite;
  transform: translate3d(0, 0, 0);
  opacity: 0.8;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.wave:nth-of-type(2) {
  bottom: -1.25em;
  animation: wave 18s linear reverse infinite;
  opacity: 0.8;
}

.wave:nth-of-type(3) {
  bottom: -2.5em;
  animation: wave 20s -1s reverse infinite;
  opacity: 0.9;
}

@keyframes wave {
  2% {
    transform: translateX(1);
  }

  25% {
    transform: translateX(-25%);
  }

  50% {
    transform: translateX(-50%);
  }

  75% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(1);
  }
}

.menu-item-card {
  cursor: pointer;
  background-color: #f7fff6;
}

.script {
  font-family: "Quintessential", cursive;
}

.live-scoreboard thead tr th {
  color: #166534;
  font-weight: bold;
  padding-bottom: 25px;
}

.live-scoreboard tbody tr td {
  border-bottom: 1px solid #eee;
}
.devise-wrapper {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}

body.pin-signup {
  background-color: #f7f9fc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.pin-signup #react {
  display: none;
}

/* Specific styles for pin signup page */
body.pin-signup .devise-wrapper {
  margin-top: 0;
  max-width: 90%;
  padding: 25px;
  border: 1px solid #ddd;
  margin: 0 auto;
}

body.pin-signup #root > div {
  display: none; /* Hide React app on this page */
}

body.pin-signup h2 {
  font-family: "Charter BT Roman", serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #333;
}

body.pin-signup h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #333;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
  padding-top: 10px;
}

.form-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
  display: block;
}

.form-intro {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.devise-wrapper {
  width: 92%;
  padding: 20px;
  margin-top: 20px;
  max-width: 350px;
}

body.pin-signup .devise-wrapper {
  margin-top: 100px;
  margin-bottom: 100px;
  width: 90%;
  max-width: 350px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"] {
  padding: 12px 8px;
  width: 80%;
  font-size: 16px; /* Prevent zoom on input focus on iOS */
}

.actions input[type="submit"] {
  padding: 14px;
  font-size: 18px;
}

.devise-wrapper h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"] {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field input[type="password"]:focus,
.field input[type="tel"]:focus {
  border-color: #55a550;
  outline: none;
  box-shadow: 0 0 0 1px rgba(85, 165, 80, 0.25);
}

.field small {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.85rem;
}

.checkbox-field {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.checkbox-field input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #55a550;
}

.actions {
  margin-top: 25px;
}

.actions input[type="submit"] {
  width: 100%;
  padding: 14px;
  background-color: #55a550; /* Primary green color */
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.actions input[type="submit"]:hover {
  background-color: #3e783a; /* Darker green on hover */
}

.disclaimer {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 0 10px;
}

.disclaimer a {
  color: #55a550;
  text-decoration: none;
  font-weight: 500;
}

.disclaimer a:hover {
  text-decoration: underline;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */
