/* General body styling */
body {
    background: #121212; /* Dark background */
    color: #e0e0e0; /* Light gray text */
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Optional: adds a fade-in effect */
}

/* Headings */
h1, h2, h3 {
    color: #e57399; /* Muted pink */
}

/* Links */
a {
    color: #80cbc4; /* Muted teal */
    text-decoration: none;
}

a:hover {
    color: #e57399; /* Muted pink on hover */
}

/* Cards */
.bg-bluegray-800 {
    background-color: #1e293b; /* Dark navy for cards */
    border-color: #e57399; /* Muted pink border */
}

.text-bluegray-400 {
    color: #80cbc4; /* Muted teal for secondary text */
}

/* Buttons or interactive elements */
button {
    background-color: #e57399; /* Muted pink */
    color: #121212; /* Dark text */
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #80cbc4; /* Muted teal on hover */
    color: #121212;
}

/* SVG icons */
svg {
    fill: #80cbc4; /* Muted teal for icons */
}

/* Fader effect for headings */
.fader, .fader-lg {
    font-weight: 500;
    text-transform: uppercase;
    background: linear-gradient(90deg, #e57399, #80cbc4, #ffab91, #e57399);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: softGlow 8s infinite ease-in-out;
}
.fader { font-size: 3rem; }
.fader-lg { font-size: 6rem; }

.button-fader {
    background: linear-gradient(90deg, #e57399, #80cbc4, #ffab91, #e57399);
    background-size: 300% 300%;
    color: #121212;
    animation: softGlow 8s infinite ease-in-out;
}
.button-fader:hover {
    background: #e57399;
    color: #121212;
}

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

.luckiest-guy-regular {
    font-family: "Luckiest Guy", cursive;
    font-weight: 400;
    font-style: normal;
}

a.luckiest-guy-regular {
    text-decoration: none;
    color: #fff;
}

/* Preferences Modal Overlay */
#preferences-modal-overlay {
    transition: opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}
#preferences-modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

/* General navigation link styling */
.nav-link {
    color: #e3e3e3; /* Light text */
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
    margin: 0 5px;
    white-space: nowrap; /* Prevent wrapping */
}
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #00f5d4; /* Cyan on hover */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Dropdown styling */
.header-dropdown {
    -webkit-appearance: none; /* Remove default arrow */
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 -960 960 960' width='24px' fill='%23e3e3e3'%3E%3Cpath d='M480-320 280-520h400L480-320Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px; /* Space for the custom arrow */
    border: 2px solid #555;
    cursor: pointer;
    background-color: #3f3f46; /* truegray-700 equivalent */
    color: #e3e3e3;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.header-dropdown:focus {
    outline: none;
    border-color: #00f5d4;
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.3);
}

/* Modal styling */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* Initially hidden */
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.modal.active {
    display: flex; /* Show when active */
}

/* Responsive adjustments for the header */
@media (max-width: 767px) {
    .header-nav-container {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: flex-start; /* Align to start */
        gap: 10px; /* Reduce gap */
        width: 100%; /* Full width */
    }
    .header-nav-links {
        flex-direction: column; /* Stack links vertically */
        align-items: flex-start;
        width: 100%;
        gap: 5px; /* Smaller gap between links */
    }
    .nav-link, .header-dropdown {
        width: 100%; /* Full width for links and dropdown */
        text-align: left; /* Align text to left */
    }
    .ml-2 {
        margin-left: 0 !important;
    }
    .mt-2 {
        margin-top: 8px !important;
    }
    .gap-2 {
        gap: 8px !important;
    }
}

/* CSS for the Wave Effect (existing) */
@keyframes wave-animation {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-5%) translateY(5px);
    }
    50% {
        transform: translateX(-10%) translateY(0);
    }
    75% {
        transform: translateX(-5%) translateY(-5px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

/* Styles for the new wave animation canvas */
#waveCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it's behind the content */
}

/*Chrome*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
    
    input[type='range']::-webkit-slider-runnable-track {
      height: 10px;
      -webkit-appearance: none;
      color: #13bba4;
      margin-top: -1px;
    }
    
    input[type='range']::-webkit-slider-thumb {
      -webkit-appearance: none;
      height: 10px;
      cursor: ew-resize;
      background: #434343;
      box-shadow: -80px 0 0 80px #43e5f7;
    }

}
/** FF*/
input[type="range"]::-moz-range-progress {
  background-color: #e57399; 
}
input[type="range"]::-moz-range-track {  
  background-color: #80cbc4;
}
/* IE*/
input[type="range"]::-ms-fill-lower {
  background-color: #80cbc4; 
}
input[type="range"]::-ms-fill-upper {  
  background-color: #80cbc4;
}