body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #f4f4f9; /* Light background for contrast */
  color: #333;
}
#title {
  position: fixed;
  height: 50px;
  width: 100%;
  padding: 10px;
  font-size: 20pt;
  background-color: #4a4e69; /* Deep grayish-purple for a sophisticated look */

  color: #f0f0f5; /* Light font color for contrast */

}

#titleText {
  background-color: #4a4e69; /* Deep grayish-purple for a sophisticated look */
  margin-left:40px;
  background-color:#4a4e69;
}
#searchBar {
  top : 50px;
  position: fixed;
  background-color: #4a4e69; /* Deep grayish-purple for a sophisticated look */
  color: #f0f0f5; /* Light font color for contrast */
  margin: 0;
  padding: 15px;
  width: 100%;
  height: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Cormorant Garamond', serif;
}

input[type=button], #searchInput {
  border: none;
  padding: 8px 12px;
  margin-right: 8px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  transition: background-color 0.3s;
}
input[type=button] {
  background-color: #9a8c98; /* Muted lavender-gray */
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

#searchInput {
  height: 35px;
  border-radius: 5px;
  background-color: #f0f0f5;
  padding-left: 10px;
  width: 40%;
}
#formFilter {
  border: none;
  height: 35px;
  border-radius: 5px;
  background-color: #f0f0f5;
  padding-left: 10px;
  width: 80%;
}

#table{
  border-collapse: collapse;
  margin: 10px;
}
#table tr td {
  padding:6px;
  border-bottom: 1px solid #ccc;
}

#mainWrap {
   max-width: 100%;
   height: 200px;
   margin: 0 auto;  
   display: flex;
   flex-wrap: wrap;
}
#searched {
  background-color: white;
  border: 0.5px solid lightgray;
  width: 41%;
  padding:5px;
  margin-left: 40px;
  border-radius: 5px;
  overflow: auto;
  max-height: 70vh;
}
.searchedContainer{
  color:black;
  cursor:pointer;
  display: inline;
}
.hidden {
  display: none;
}
.item  {
  padding: 10px;
}
.notEmpty {
  background-color: #fff;
  border-left: 1px solid lightgray;
}
.closeIcon {
  width:10px;
  display: inline;
  padding-right: 10px;
}
.matchCount {
  color:darkgray;
}
#stanzasHead{
  padding: 10px;
  padding-left: 0;
  font-weight: bold;
  color: #333;

}

input[type=button]:hover, #searchInput:hover, #toggleButton:hover {
  background-color: #6c7293; /* Lighter shade for contrast */
  color: white;
}


textarea:focus, input:focus{
    outline: none;
}

#resultsDiv, #stanzasWrap, #formarioDiv {
  padding: 30px;
  background-color: #ffffff;
  border-radius: 8px;
  margin-top: 180px ;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: scroll;
  height: calc(89vh - 150px);
}


.fa-star {
  color: lightgray;
}
.fa-star.checked {
  color: orange;
}




/* Sidebar Styling */
#stanzasWrap {
  min-width: 30vw;
  max-width: 50vw;
  width: 40vw;
  border-left: 1px solid #ddd;
}
#formarioDiv {
  background-color: white;
  border-left: 1px solid lightgray;
  border-right: 1px solid lightgray;
}

#table {
  padding-bottom: 100px;

}
.pointer {
  cursor: pointer;
}
.bold{
  font-weight: "Medium";
}
.versNumber {
  color: lightgray;
  padding-left: 40px;
}

#fullText {
  text-align: right;
  color: gray;
  margin: 10px;
  cursor:pointer;
}

.active {
  background-color: rgba(181,217,249, 0.3) !important;
}
.higlighted {
  background-color: rgba(255, 213, 128, 0.3);
}

#toggleButton {
  background-color: #9a8c98;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  font-size: 14px;
  transition: transform 0.3s ease-in-out, background-color 0.3s;
}

#toggleButton.rotate {
  transform: rotate(-90deg);
  background-color: #4a4e69;
}

#resultCountMsg {
  margin-left: 17px;
  color: gray;
  font-size: 10pt;
}


#mainWrap {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

/* Default layout - 50% width for #resultsDiv and #stanzasWrap */
#resultsDiv, #stanzasWrap {
  width: 50%;
}

/* When #formarioDiv is visible, adjust the layout */
#formarioDiv {
  display: none; /* Hidden by default */
  width: 14%;
}

#formarioDiv.visible { /* Use the 'visible' class to display */
  display: block;
}

/* When #formarioDiv is visible, set widths to 20/40/40 */
#mainWrap .visible + #resultsDiv {
  width: 43%;
}

#mainWrap .visible + #resultsDiv + #stanzasWrap {
  width: 43%;
}

/* Container for custom checkboxes */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  margin-right: 20px;
  font-size: 18px;
  color: #f0f0f5;
  cursor: pointer;
  user-select: none;
}

/* Hide the default checkbox */
.checkbox-container input {
  opacity: 0;
  position: absolute;
}

/* Custom checkmark (toggle switch) */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #9a8c98; /* Muted lavender-gray */
  border-radius: 50%;
  transition: background-color 0.3s;
}

/* Checkmark style when the checkbox is checked */
.checkbox-container input:checked ~ .checkmark {
  background-color: #6c7293; /* Deep grayish-purple */
}

/* Indicator inside the checkmark (toggle circle) */
.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* Show the indicator when checked */
.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

#howToUse a{
  position: fixed;
  right: 10px;
  padding: 10px;
  color: white;
  cursor: pointer;
  text-decoration: none;
}
#howToUse a:hover {
  color: #9a8c98;
}


#title_howTo {
  
  padding: 20px;
  font-size: 20pt;
  background-color: #4a4e69; /* Deep grayish-purple for a sophisticated look */
  color: #f0f0f5; /* Light font color for contrast */
}
.intro {
  padding: 40px;
  width: 100%;
}
/* How To */
#mainWrap_howTo {
   max-width: 100%;
   margin: 0 auto;  
   display: flex;
   flex-wrap: wrap;
}

.tip {
  margin: 30px;
  margin-top: 0px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: scroll;
}



/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
}

/* Close Button */
.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-top: -15px;
}

.close-button:hover,
.close-button:focus {
  color: #000;
  text-decoration: none;
}

/* Dropdowns and Labels */
.modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0; /* Adds space between elements */
  justify-content: space-between;
}

.modal-content label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #333;
  width: 45%; /* Adjust width for layout flexibility */
  margin-bottom: 20px;
}

.dropdown {
  position: relative;
  width: 100%; /* Full width inside label */
  margin-top: 5px;
}

#dropdownFilter, #dropdownFilterAuthorsBdT, #dropdownFilterAuthorsName, #dropdownFilterLyricBdT, #dropdownFilterIncipit {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 5px;
}

#filterableDropdown, #filterableDropdownAuthorsBdT, #filterableDropdownAuthorsName, #filterableDropdownLyricBdT, #filterableDropdownIncipit {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  max-height: 150px;
  overflow-y: auto;
}

/* Submit Button */
#searchSubmit {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
  background-color: #4a4e69;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#searchSubmit:hover {
  background-color: #6c7293;
}


/* Disabled search button style */
#searchSubmit:disabled {
  background-color: #ccc; /* Light gray for inactive state */
  color: #666;            /* Darker gray for text */
  opacity: 0.6;           /* Reduced opacity */
  cursor: not-allowed;    /* Change cursor to indicate it's disabled */
}

/* Remove hover effect when disabled */
#searchSubmit:disabled:hover {
  background-color: #ccc;
}


#stanzasFooter {
  color: gray;
  bottom: 10px;
  right: 10px;
  margin-top: 50px;
  cursor:pointer;
  font-family: 'Cormorant Garamond', serif;
  
}
#fullCitation {
  display:none;
  margin-top: 10px;
}
#arrowExpandCitation {
  width: 10px;
  border: none;
  padding: 0;
  padding-bottom: 5px;
  margin-left: 8px;
  font-size: 10px;
  color: gray;
  background-color: transparent;
  transform-origin: 33% 33%;
  transition: transform 0.3s ease-in-out
}
#arrowExpandCitation.active {
  background-color: transparent !important;
  transform: rotate(-90deg);
  transform-origin: 33% 33%;
  transition: transform 0.3s;
}

.checkbox-container {
  padding-bottom: 6px;
}

@media screen and (max-width: 988px) {
  /* CSS rules for screens smaller than 988px */
  #searchBar {
    height: 140px;
  }
  #resultsDiv, #stanzasWrap, #formarioDiv  {
    margin-top: 220px;
  }
}

.dropdown select:focus {
  
  outline: 1px solid #4a4e69 !important;
  border: 1px solid #4a4e69 !important;
}