/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #F8FFFF, #FCFFFF);
}

/* Input Wrapper */
.inputWrapper {
    position: relative;
    width: 98%;
    margin: 0 auto 20px auto;
}

.inputWrapper input {
    width: 100%;
    padding-right: 60px;
}

/* Search Input Styles */
input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 66px;
}

input[type="text"] {
    background-color: #f1f1f1;
    width: 100%;
}

.clearButton {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 75px;
    color: #aaa;
    display: none;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
}

.clearButton:hover {
    color: #000;
}

/* Search and Sort Container */
.search-and-sort-container {
    width: 95%;
    margin: 0 auto;
}

/* Sorting Options */
.sort-options {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 98%;
    margin: 0 auto;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 60px;
    margin-right: 30px;
    cursor: pointer;
    font-size: 45px;
    user-select: none;
}

/* Hide the default checkbox */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Custom Checkbox Styling */
.custom-checkbox .checkbox-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 40px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Checked State */
.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-label::before {
    background-color: #2196F3;
    border-color: #2196F3;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.7);
}

/* Checkmark */
.custom-checkbox .checkbox-label::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 6px;
    width: 14px;
    height: 28px;
    border: solid #fff;
    border-width: 0 4px 4px 0;
    transform: scale(0) rotate(0deg);
    transform-origin: center;
    transition: transform 0.2s ease;
}

/* Show the Checkmark when Checked */
.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-label::after {
    transform: scale(1) rotate(45deg);
}

/* Adjust Label Spacing */
.custom-checkbox .checkbox-label {
    margin-left: 10px;
}

/* Autocomplete Items */
.autocomplete {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete-items div {
    font-size:55px;
    padding: 10px;
    cursor: pointer;
    background-color: #f8ffff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

#searchForm {
    padding-top: 2%;
    opacity: 0;
    transition: opacity 0.2s;
    display: none;
}

#noMatches {
    font-size: 200px;
    width: 100%;
    text-align: center;
    display: none;
}

#patienceRequest {
    font-size: 200px;
    width: 100%;
    text-align: center;
    display: none;
    opacity: 0;
}


#featuredPerformance {
    display:none;
}

#featuredPerformanceContainer {
    margin-top:50px;
    text-align:center;
}

#FPText {
    font-size:35px;
    margin:0;
}

#searchResults {
    width: 100%;
    padding-top: 40px;
    margin-bottom: 100px;
    padding-bottom:100px;
}

/* Accordion Styles */
.accordion-item {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 50px;
}

/* Accordion Title Styles */
.AccordionTitle {
    color: #111;
    padding: 15px;
    border: 2px solid gray;
    border-radius: 10px;
    cursor: pointer;
    font-size: 45px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.AccordionTitleText {
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 60px);
}

.AccordionTitle .showTitle {
    font-weight: bold;
}

.AccordionTitle .showSubtitle {
    margin-top: 10px;
    font-size: 35px;
    color: #555;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

.AccordionTitle .showSubtitle span {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    margin: 0 10px;
}

.AccordionSymbol {
    font-size: 45px;
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    border: 2px solid gray;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.panel.open {
    max-height: 3000px; /* Adjust this value to be large enough for your content */
}

.panel-content {
    padding: 15px;
}

/* Show Info Styles */
.showInfo {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.infoItem {
    display: flex;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
    width: 50%;
}

.infoItem .emoji {
    margin-right: 5px;
    font-size: 35px;
}

.infoItem .label {
    font-weight: bold;
    margin-right: 5px;
    font-size: 35px;
}

.infoItem .value {
    color: #555;
    font-size: 35px;
}

.add-to-calendar-link, .location-directions-link {
    font-size: 35px;
    color:#5555FF;
}

/* Show Main Content */
.showMainContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 90%;
}

/* Image Container */
.imageContainer {
    width: 100%;
    margin-bottom: 20px;
}

.showImage {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid #999;
    box-shadow: 0 14px 16px rgba(0, 0, 0, 0.1);
}

/* Description */
.descriptionContainer {
    width: 100%;
    text-align: left;
    margin-top: 20px;
}

.showDescription {
    font-size: 35px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Icons */
.showIcons {
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.showIcons .icon {
    font-size: 35px;
    margin-right: 5px;
    display: inline-block;
}

.buttonContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 50px;
    margin-bottom: 50px;
    flex-wrap: nowrap; /* Prevent buttons from wrapping to next line */
}

.buyButton {
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    font-size: 55px;
    text-decoration: none;
    border-radius: 15px;
    text-align: center;
    margin: 0 100px; /* Increased horizontal spacing */
    white-space: nowrap; /* Prevent text from wrapping */
}

.rateButton, .shareButton {
    background-color: transparent;
    border: none;
    font-size: 55px;
    cursor: pointer;
    margin: 0 60px; /* Increased horizontal spacing */
    white-space: nowrap; /* Prevent emojis from wrapping */
}

.rateButton .emoji, .shareButton .emoji {
    pointer-events: none; /* So the emoji doesn't capture clicks */
}

/* Centered Buy Tickets Button 
.buttonContainer {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.buyButton {
    background-color: #28a745;
    color: white;
    padding: 15px 30px;
    font-size: 55px;
    text-decoration: none;
    border-radius: 15px;
    text-align: center;
}
*/

.buyButton:hover {
    background-color: #218838;
}

/* Responsive Design */
/* Mobile Styles */
@media (max-width: 600px) {
    .AccordionTitle .showSubtitle {
        flex-direction: column;
    }
    .AccordionTitle .AccordionSymbol {
        top: 15px;
    }
    .infoItem {
        width: 100%;
    }
    .imageContainer {
        max-width: 100%;
        margin-right: 0;
    }
    .showMainContent {
        flex-direction: column;
        align-items: center;
    }
    .showDescription {
        text-align: center;
    }
    .buyButton {
        font-size: 30px;
        padding: 10px 20px;
    }
    .infoItem .emoji,
    .infoItem .label,
    .infoItem .value {
        font-size: 30px;
    }
    .location-directions-link, .add-to-calendar-link {
        font-size: 30px;
    }
    .showIcons .icon {
        font-size: 30px;
    }
}

/* Location Warning */
.location-warning {
    padding: 15px;
    background-color: #fff3cd;
    border-left: 6px solid #ffeeba;
    margin-bottom: 15px;
    color: #856404;
    font-size: 45px;
}

/* Footer */
#footer_STATIC {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 130px;
    background-color: #FFF;
    left: 0;
    bottom: 0;
    color: #222;
    padding-left: 5%;
    padding-right: 5%;
    font-size: 15px;
    width: 100%;
    
    background-color: rgba(255, 255, 255, 0); /* fully transparent */
    z-index: 1000; /* stay above other elements */
    pointer-events: none; /* optional: allow clicks to pass through */    
}

#footer2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
    left: 0;
    bottom: 0;
    color: #222;
    padding-left: 5%;
    padding-right: 5%;
    font-size: 15px;
    width: 100%;

    background-color: rgba(255, 255, 255, 0); /* fully transparent */
    z-index: 1000; /* stay above other elements */
    pointer-events: none; /* optional: allow clicks to pass through */    

    
    padding-bottom: env(safe-area-inset-bottom); /* for chrome on ios  */
    
    display:none;
}

#footer {
    display: none; /* hidden by default */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: env(safe-area-inset-bottom); /* iOS safe inset */
    font-size: 15px;
    color: #222;
    background-color: rgba(255, 255, 255, 0);
    z-index: 1000;
    pointer-events: none;
}


#footerLeft, #footerRight {
    flex: 0 0 auto;
    background-color: rgba(255, 255, 255, 0.75); /* soft halo effect */
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* glow */
    pointer-events: auto; /* restore interactivity */
}

#footerCenter {
    flex: 1 1 auto;
    text-align: center;
}

#footer a {
    text-decoration: none;
    font-size: 55px; /* size or ? and control emojis */
}

#footerText {
    font-size: 35px;
}

/* Slideshow Container */
.slideshow-container {
    text-align: center;
    padding: 20px;
    max-width: 95%;
    margin: 40px auto;
    position: relative;
    display:none;

}

/* Slideshow Label */
#slideshow-label {
    margin-bottom: 15px;
    font-size: 45px;
    color: #333333;
    opacity: 0;
}

/* Slideshow Image */
#slideshow-image {
    width: 100%;
    height: auto;
    border: 5px solid #dddddd;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
}

.performanceNumber {
    font-size: 35px;
    line-height: 1.5;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 10px;
}

/* Responsive adjustments for smaller screens */

@media (max-width: 600px) {
    .slideshow-container {
        padding: 15px;
    }

    #slideshow-label {
        font-size: 1.2em;
    }

    #slideshow-image {
        max-width: 100%;
        border: 3px solid #cccccc;
    }
}


#aboutDiv {
    text-align: center;
    font-size: 30px;
    color: blue;
    width: 100%;
}

#aboutURL {
    text-decoration: none;
    text-align: center;
    font-size: 30px;
}


/* Desktop Adjustments */
@media (hover: hover) and (pointer: fine) {
    /* Adjust font sizes for desktop */
    body {
	width:60%;
	margin-left:20%;
	font-size:24px;
    }
    input {
        font-size: 24px;
    }

    .clearButton {
        font-size: 28px;
    }

    .custom-checkbox {
        font-size: 18px;
    }

    .AccordionTitle {
        font-size: 24px;
        padding: 10px;
    }

    .AccordionTitle .showSubtitle {
        font-size: 18px;
    }

    .infoItem .emoji,
    .infoItem .label,
    .infoItem .value {
        font-size: 18px;
    }

    .add-to-calendar-link, .location-directions-link {
        font-size: 18px;
    }

    .showDescription {
        font-size: 18px;
    }

    .buyButton {
        font-size: 24px;
        padding: 10px 20px;
    }

    .location-warning {
        font-size: 20px;
    }

    #slideshow-label {
        font-size: 24px;
    }

    .showIcons .icon {
        font-size: 18px;
    }

    .performanceNumber {
        font-size: 18px;
	text-align:center;
    }

    #aboutDiv {
        font-size: 24px;
	margin:px;
    }

    #aboutURL {
	text-decoration: none;
        font-size: 16px;
    }

    /* Adjust margins and paddings */
    .AccordionTitle {
        padding: 10px;
    }

    .panel-content {
        padding: 10px;
    }

    .buttonContainer {
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .infoItem {
        width: 33.33%;
    }

    .showMainContent {
        width: 80%;
    }

    .slideshow-container {
        max-width: 70%;
    }

    #footer {
	font-size:15px;
	height:80px;
    }
    /* Accordion Styles */
    .accordion-item {
	margin-left: 20px;
	margin-right: 20px;
	margin-bottom: 10px;
    }
       
    .autocomplete-items div {
	font-size:24px;
    }

    /* Checkmark */
    .custom-checkbox .checkbox-label::after {
	left: 10px;
	top: -4px;
	width: 14px;
	height: 28px;
    }
    /* Adjust Label Spacing */
    .custom-checkbox .checkbox-label {
	margin-left: 0px;
    }
}


/**** controls page and dark mode ****/

/* Existing CSS remains unchanged */

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-right: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  background-color: white;
  border-radius: 50%;
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.controls-container {
  margin: 20px;
  display: flex;
  align-items: center;
}

.switch-label {
  font-size: 35px;
}

/* Dark Mode Styles */

body.dark-mode #shareImage {
    filter: invert(1) brightness(0.8);    
}

body.dark-mode {
/*    background: linear-gradient(to bottom, #121212, #1d1d1d); 
 */
    background: #1d1d1d; 
    color: #ffffff;
}

body.dark-mode input[type="text"] {
    background-color: #424242;
    color: #ffffff;
}

body.dark-mode .inputWrapper input {
    background-color: #424242;
    color: #ffffff;
}

body.dark-mode .clearButton {
    color: #ffffff;
}

body.dark-mode .custom-checkbox .checkbox-label::before {
    background-color: #424242;
    border-color: #ffffff;
}

body.dark-mode .custom-checkbox input[type="checkbox"]:checked ~ .checkbox-label::before {
    background-color: #bb86fc;
    border-color: #bb86fc;
}

body.dark-mode .custom-checkbox .checkbox-label::after {
    border-color: #000000;
}

body.dark-mode .autocomplete-items div {
    background-color: #2c2c2c;
    color: #ffffff;
    border-bottom: 1px solid #444444;
}

body.dark-mode .autocomplete-items div:hover {
    background-color: #3c3c3c;
}

body.dark-mode .AccordionTitle {
    color: #ffffff;
    /* background-color: #1e1e1e; */
    border: 2px solid #AAA;
}

body.dark-mode .panel {
    /*  background-color: #1e1e1e; */
    border-left: 2px solid #AAA;
    border-right: 2px solid #AAA;
    border-bottom: 2px solid #AAA;
}

/* Apply a filter to darken accordion-item backgrounds in dark mode 
doesn't work well
body.dark-mode .accordion-item {
    filter: brightness(25%);
}
*/

body.dark-mode .showDescription {
    color: #ffffff;
}

body.dark-mode .showSubtitle {
    color: #ffffff;
}


/* Dark Mode Styles for showInfo */
body.dark-mode .showInfo .value,
body.dark-mode .showInfo .label,
body.dark-mode .showInfo .emoji {
    color: #FFFFFF;
}

body.dark-mode .add-to-calendar-link {
    color: #AAAAFF;
}
body.dark-mode .location-directions-link {
    color: #AAAAFF;
}

/* Brighten emojis before show name in dark mode */
body.dark-mode .emoji-prefix {
    filter: brightness(150%);
}

/* Add text shadow to emojis in dark mode */
body.dark-mode .emoji-prefix {
    text-shadow: 0 0 20px #FFFFFF;
}

/* Brighten emojis in dark mode */
body.dark-mode .emoji {
    filter: brightness(130%);
}

/* Add text shadow to emojis in dark mode */
body.dark-mode .emoji {
    text-shadow: 0 0 20px #AAA;
}



body.dark-mode .buyButton {
    background-color: #bb86fc;
    color: #000000;
}

body.dark-mode .buyButton:hover {
    background-color: #9a67ea;
}

body.dark-mode #footer {
    background-color: #1e1e1e;
    color: #ffffff;
}

body.dark-mode a {
    color: #bb86fc;
}

/* Dark Mode for Switches */
body.dark-mode .slider {
    background-color: #424242;
}

body.dark-mode input:checked + .slider {
    background-color: #bb86fc;
}

body.dark-mode .slider:before {
    background-color: #ffffff;
}

body.dark-mode input:checked + .slider:before {
    background-color: #000000;
}






/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 0; /* Remove default padding */
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    overflow: hidden; /* To round corners properly */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 55px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Modal Body */
.modal-body {
    padding: 20px;
}

.modal-title {
    font-size: 45px;
    margin-bottom: 20px;
    text-align: center;
}


/* Star Container */
.star-container {
    text-align: center;
    font-size: 55px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.star-container .star {
    color: #ffd055; /* Gray color for empty stars */
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
}

.star-container .star:hover,
.star-container .star:hover ~ .star {
    color: #ffd055; /* Lighter gold on hover */
}

.star-container .star.filled {
    color: #ffd055; /* Gold color for filled stars */
}


/* Rating Text */
.rating-text {
    font-size: 55px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

/* Submit Button */
.submit-button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-size: 55px;
    cursor: pointer;
}

/* Adjust modal for dark mode */
body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
}


.compass-emoji {
  cursor: pointer;
  text-decoration: underline;
  color: blue; /* Optional: Make it look like a link */
}

.location-directions-link, .add-to-calendar-link {
}

#shareImage {
    height:80px;
    width:80px;
}


/* Rating Text */
.rating-text {
    font-size: 35px;
    margin-top: 10px;
}

/* Location help styles */
.location-help {
    cursor: pointer;
    color: #007bff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.location-help:hover {
    color: #0056b3;
}

/* Location modal styles */
.location-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.location-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.location-modal-close:hover {
    color: #000;
}

.location-modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 32px;
}

.location-modal-content p {
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-size: 24px;
}

.location-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.location-permission-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s ease;
}

.location-permission-btn:hover {
    background-color: #0056b3;
}

.location-cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.2s ease;
}

.location-cancel-btn:hover {
    background-color: #545b62;
}

/* Dark mode support for location modal */
@media (prefers-color-scheme: dark) {
    .location-modal-content {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .location-modal-content h3 {
        color: #f7fafc;
    }
    
    .location-modal-content p {
        color: #cbd5e0;
    }
    
    .location-modal-close {
        color: #a0aec0;
    }
    
    .location-modal-close:hover {
        color: #f7fafc;
    }
}
