body {
  padding: 5px;
  /*font: 18px "Lucida Grande", Helvetica, Arial, sans-serif; */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
}

a {
  color: #00B7FF;
}

.sidebar-nav {
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*background-color: rgb(49, 51, 53);  Black background */
  /*background-color: #0f2f52;*/ /* Primary blue background */
  /*background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%); */
  background: linear-gradient(90deg, rgba(115,4,4,1) 0%, rgba(175,55,55,1) 38%, rgba(204,0,69,1) 100%);
  padding: 10px 20px;
  color: white; /* Text color for contrast */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */

  position: relative;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
  color: rgb(214, 128, 128); /* Matches button text */
  text-transform: uppercase; /* Modern look */
  user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
}
.navbar .logo div:hover{
  color: rgb(211, 168, 168); 
  transform: translateY(-2px); /* Lift effect */
  transition: all 0.3s ease;
}
.navbar .menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.navbar .nav-links {
  display: flex;
  gap: 15px;
  z-index: 1000;
}
.navbar .nav-links a {
  text-decoration: none;
  color: white;
  margin: 0 10px;
  font-size: 16px;
  z-index: 1000;
  padding: 8px 4px; /* Add spacing around links */
  border-radius: 4px; /* Matches the rounded style of the button */
  transition: all 0.3s ease; /* Smooth hover transition */
}

.navbar .nav-links a:hover {
  color: lightgray; /* Hover effect */
  background-color: #730404; /* Darker blue for hover */
}

@media (max-width: 768px) {
  .navbar .menu-toggle {
    display: block; /* Show toggle button on small screens */
  }

  .navbar .nav-links {
    display: none; /* Hide links by default */
    flex-direction: column; /* Stack links vertically */
    position: absolute;
    top: 60px;
    right: 0;
    /*background-color: #1d3c5e; */ /* Same as navbar background */
    background: linear-gradient(90deg, rgba(115,4,4,1) 0%, rgba(175,55,55,1) 38%, rgba(204,0,69,1) 100%);
    width: 50%;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .navbar .nav-links a {
    padding: 10px 15px;
  }

  .navbar .nav-links.active {
    display: flex; /* Show links when toggled */
  }
}


.title {
  font-size: 22px;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}
.subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}
.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.formcontrols {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
label {
  font-size: 16px;
}

select {
  padding: 5px 10px;
  font-size: 16px;
  width: 250px; /* Set the desired width */
  max-width: 100%; /* Ensure it doesn't exceed the parent container's width */
}

button {
  padding: 5px 15px;
  font-size: 16px;
  cursor: pointer;
  width: 80px;
  padding: 10px 20px;
  font-size: 16px;
  color: white; /* Text color */
  background-color: #007bff; /* Primary blue background */
  border: none;
  border-radius: 5px; /* Rounded corners */
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  transition: all 0.3s ease; /* Smooth transitions for hover */
}
button:hover {
  background-color: #0056b3; /* Darker shade on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* Stronger shadow */
  transform: translateY(-2px); /* Lift effect */
}

button:active {
  background-color: #003f7f; /* Even darker shade for active */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduced shadow */
  transform: translateY(0); /* Remove lift effect */
}
button.longbutton {
  
  width: 200px;
  
}
a.navigate-button{
  
  transition: all 0.3s ease; /* Smooth transitions for hover */

}
/*
button.record-button {
  
  width: 110px;
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  cursor: pointer;
  font-family: Inter,-apple-system,system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 14px;
  height: 30px;
  height: 40px;
  line-height: 40px;
  padding: 0 16px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: pre;
} */
.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 450px;
  min-width: 300px;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.card2 {
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 600px;
  min-width: 450px;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between; /* Align elements to opposite ends */
  align-items: center; /* Vertically center items */
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
}

.card-info {
  font-size: 14px;
  color: #5a5a5a;
  font-weight: bold;
}

.card-body {
  padding: 15px;
  font-size: 16px;
}

.card input:checked + .card-header {
  border: 2px solid #007bff;
  background-color: #135597;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
  border-radius: 8px;
  background-color: #e9f5ff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.cardhouse {
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 450px;
  min-width: 300px;
  margin: 20px auto;
  box-shadow: 0 2px 4px rgba(250, 7, 7, 0.1);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.cardhouse-header {
  display: flex;
  justify-content: space-between; /* Align elements to opposite ends */
  align-items: center; /* Vertically center items */
  padding: 10px 15px;
  background: linear-gradient(90deg, rgba(148,42,218,1) 0%, rgba(240,13,13,1) 39%, rgba(209,122,0,1) 100%);
  border-bottom: 1px solid #ddd;
  color:#ffffff;
}
.cardhouse-header-disabled {
  display: flex;
  justify-content: space-between; /* Align elements to opposite ends */
  align-items: center; /* Vertically center items */
  padding: 10px 15px;
  background-color: #cac9c9;
  border-bottom: 1px solid #ddd;
  opacity: 0.7;
}
.cardhouse-header-scheduled {
  display: flex;
  justify-content: space-between; /* Align elements to opposite ends */
  align-items: center; /* Vertically center items */
  padding: 10px 15px;
  background-color: #E04C52;
  border-bottom: 1px solid #ddd;
  color:#ffffff;
  opacity: 0.7;
}
.cardhouse-info {
  font-size: 14px;
  color: #ffffff;
  font-weight: bold;
}

details {
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
}
summary {
  font-weight: bold;
  cursor: pointer;
}

/*table*/
/* General table styling */
.styled-table {
  width: 98%; /* Full-width table */
  border-collapse: collapse; /* Remove extra space between cells */
  font-size: 18px;
  font-weight: bold;
  /*font-family: Arial, sans-serif; */
  text-align: left; /* Align text to the left */
  border: 1px solid #ddd; /* Light border */
}

/* Header styling */
.styled-table thead tr {
  background-color: #343a40; /* Dark header background */
  color: #ffffff; /* White text color */
  text-align: left;
  font-weight: bold;
}

/* Row styling */
.styled-table tbody tr {
  border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3; /* Light gray background for alternate rows */
}

.styled-table tbody tr:hover {
  background-color: #f1f1f1; /* Highlight row on hover */
}

/* Cell padding */
.styled-table th,
.styled-table td {
  padding: 5px 5px; /* Add padding to cells */
}

/* Footer row styling (optional) */
.styled-table tfoot tr {
  background-color: #f3f3f3;
  font-weight: bold;
}

/* Responsive design */
@media screen and (max-width: 768px) {
  .styled-table {
    font-size: 14px; /* Smaller font size on smaller screens */
  }
}
/* The overlay background */
.progress-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
  z-index: 9999; /* Ensure it is above all other elements */
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden; /* Hidden by default */
}

/* The progress message box */
.progress-message {
  background: white;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

/* Show the overlay when active */
.progress-overlay.active {
  visibility: visible;
}

.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Space between elements */

  justify-content: center; /* Center the form groups horizontally */
  align-items: center;

  max-width:1000px; 
  margin-left: auto; 
  margin-right: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 200px; /* Minimum width for each group */
}

@media (min-width: 600px) {
  .form-group {
    flex: 1; /* Allow groups to grow evenly */
  }
}

label {
  margin-bottom: 0.5rem;
}

.dragging { opacity: 0.7; }


/* Christmas-themed card styles */
.christmascard {
  background-color: #f4f4f4; /* Light gray for contrast */
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Red and green alternating borders for festive look */
.christmascard:nth-child(odd) {
  border-color: #ff0000; /* Red border */
}

.christmascard:nth-child(even) {
  border-color: #008000; /* Green border */
}

/* Active card highlight */
.christmasactive-card {
  background-color: #ffe4e1; /* Light pinkish-red for highlighting */
  border-color: gold;
  box-shadow: 0 8px 12px rgba(255, 215, 0, 0.7); /* Gold glow */
  transform: scale(1.05); /* Slightly enlarged */
}

/* Card header */
.christmascard-header {
  font-size: 1.5rem;
  font-weight: bold;
  color: #008000; /* Green for Christmas theme */
}

/* Card hover effect */
.christmascard:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

#borderimg { 
  /*
  border: 10px solid transparent;
  padding: 15px;
  border-image: url(/images/border01.png) 30 round;
  */
  border: 10px solid transparent;
  padding: 0px;
  border-image: url(/images/border02.jpg) 80 round;
  transform: scale(1.05);
}

/* Content container to constrain width across pages */
.content-container {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
}

/* Song lyrics card - Christmas-themed */
.lyrics-card {
  font-family: Georgia, 'Times New Roman', Times, serif; /* elegant serif for lyrics */
  color: #2f2f2f;
  background: linear-gradient(180deg, #fff8f5 0%, #fff 100%); /* warm cream */
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid #e2b7b7; /* subtle warm border */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  white-space: pre-wrap; /* preserve line breaks */
  word-wrap: break-word; /* long words wrap */
  line-height: 1.6;
  font-size: 18px;
  position: relative;
}

/* Add a subtle decorative stripe to the left as a festive accent */
.lyrics-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  background: linear-gradient(180deg, #9c2b2b 0%, #3d7a3d 100%); /* mix of red and green */
}

/* Slightly change the heading color if present inside lyrics */
.lyrics-card strong, .lyrics-card b { color: #7a0d0d; }

