:root {
  --primary-blue: #3b82f6;
  --secondary-blue: #06b6d4;
  --primary-purple: #a855f7;
  --secondary-purple: #ec4899;
  --yellow-accent: #facc15;
  --pink-accent: #f9a8d4;
  --cyan-accent: #f9a8d4;
  --red-accent: #ef4444;
  --orange-accent: #f97316;
  --green-accent: #22c55e;
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --bg-dark: #111827;
  --bg-darker: #1f2937;
  --border-light: #374151;
  --shadow-dark: rgba(0, 0, 0, 0.5);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, rgba(26, 56, 59, 1), rgba(51, 66, 92, 1));
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

html, body {
    height: 100%; /* Ensure the body takes the full height */
    margin: 0; /* Remove default margin */
}


header {
    background: rgba(51, 66, 92, 0.95);
    text-align: center;
    padding: 8px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
header h1 {
    font-size: 1.8em;
    color: rgba(247, 144, 171, 1);
    text-shadow: 2px 2px 6px rgba(197, 98, 99, 0.8);
    margin-bottom: 4px;
}
header p {
    font-size: 1em;
    color: rgba(170, 170, 172, 1);
    max-width: 90%;
    margin: 0px auto;
    line-height: 1.3;
}
.summary {
    text-align: centre;
    padding: 8px;
    font-size: 1em;
    background: rgba(107, 58, 117, 0);
    border-radius: 10px;
   
   
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
   
    top: 70px;
    z-index: 10;


}
.summary span {
    font-weight: bold;
    color: rgba(255, 246, 116, 1);
}




.buttonscontainer {
    display: flex;
    justify-content: space-between; /* Distributes space between buttons */
    margin: 10px 15px;
    z-index: 10;
    position: absolute;
    width: calc(100% - 30px); /* Adjust width to account for margins */
}

.buttons {
    color: #fff;
}

.buttonsleft {
    color: #fff;
}

button {
    background: rgba(255, 255, 255, 0);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

button:hover {
    background: linear-gradient(45deg, rgba(0, 75, 140, 1), rgba(0, 100, 180, 1));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:focus {
    outline: 2px solid rgba(255, 246, 116, 0);
    outline-offset: 2px;
}

button span {
    
    align-items: center;
}



#buttonPanel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: rgba(51, 66, 92, 0.95);
    border-radius: 8px;
    margin-bottom: 12px;
    justify-content: center;

}
#subPanel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: rgba(51, 66, 92, 0.95);
    border-radius: 8px;
    margin-bottom: 12px;
    justify-content: center;

}
.main-button {
    padding: 6px 12px;
    font-size: 0.9em;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, border 0.2s;
    color: white;
min-height: 50px;
}
.main-button:hover {
    transform: translateY(-1px);
color: aqua;
}
.main-button.active {
    border: 3px solid magenta !important;
    opacity: 1;
}
#moodAnalysisButton {
    background-color: #D3D3D3;
}
#hormonesButton {
    background-color: #4CAF50;
}

#conditionsButton {
    background-color: purple;
}

#emotionsButton {
    background-color: magenta;
}

#hormonesButton {
    background-color: #4CAF50;
}

.sub-button {
    padding: 6px 12px;
    font-size: 0.9em;
    border: 1px solid #000;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, border 0.2s;
    color: navy;
 background: yellow;
min-height: 40px;
}
.sub-button:hover {
    transform: translateY(-1px);
color: yellow;
}
.sub-button.active {
    border: 3px solid aqua !important;
    opacity: 1;
}
.slider-container {
    display: flex;
    align-items: center;
    margin: 6px 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s;
    max-width: 90vw;
}
.slider-container:hover {
    background: rgba(255, 246, 116, 0.2);
    transform: translateX(5px);
}
.slider-container label {
    width: 200px;
    font-size: 0.95em;
    padding: 6px 10px;
    border-radius: 6px;
    text-align: right;
    background: rgba(3, 65, 73, 0.85);
    margin-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slider-wrapper {
    position: relative;
    flex: 1;
    height: 28px;
    max-width: calc(100% - 340px);
}
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: rgba(195, 206, 215, 1);
    outline: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: opacity 0.2s;
}
.slider:hover {
    opacity: 1;
}
.slider:focus {
    box-shadow: 0 0 8px rgba(255, 246, 116, 0.6);
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--webkit-slider-thumb-background, rgba(255, 246, 116, 1));
    cursor: pointer;
    border: 2px solid var(--thumb-border-color, rgba(255, 246, 116, 1));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--moz-range-thumb-background, rgba(255, 246, 116, 1));
    cursor: pointer;
    border: 2px solid var(--thumb-border-color, rgba(255, 246, 116, 1));
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.thumb-emoji {
    display: none;
}
.state-display {
    margin-left: 8px;
    font-size: 0.95em;
    width: 200px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.emoticon {
    font-size: 1.2em;
    margin-right: 6px;
}
.Dopamine { color: rgba(237, 34, 82, 1); }
.Serotonin { color: rgba(240, 121, 65, 1); }
.Oxytocin { color: rgba(226, 243, 253, 1); }
.Endorphins { color: rgba(252, 198, 183, 1); }
.Adrenaline { color: rgba(255, 250, 16, 1); }
.Norepinephrine { color: rgba(116, 246, 234, 1); }
.Cortisol { color: rgba(199, 236, 180, 1); }
.GABA { color: rgba(200, 199, 205, 1); }
.Glutamate { color: rgba(222, 188, 219, 1); }
.modal {
    display: none;
top: 0;
    position: fixed;
    padding: 15px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background: rgba(107, 58, 117, 0.95);
    padding: 15px;
    border-radius: 12px;
    width: 600px;
    min-width: 600px;
    max-width: 90vw;
padding: 15px;

min-height: 95%;
max-height: 100%;
   
    overflow-y: auto;
    color: #fff;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;

border: 3px solid white;        /* gold color */        
 

 font-family: 'Segoe UI', Arial, sans-serif;
  /* Put gradient first so it overlays the image; rgba values control overlay opacity */
  background-image:
    linear-gradient(135deg, rgba(0,0,255,0.9), rgba(255,255,255,0.6)),
    url('determinismedge.jpg');
  background-size: cover;        /* cover, contain, or specify sizes */
  background-position: center;   /* adjust focal point */
  background-repeat: no-repeat;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;


}





.modal.show .modal-content {
    transform: scale(1);
}
.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(3, 65, 73, 0.5);
 background: gold;
 background: rgba(3, 65, 73, 0);
    color: magenta;
    border: none;
    padding: 5px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 0.95em;
}
.close-button:hover {
    background: rgba(0, 75, 140, 1);
    transform: translateY(-2px);
}
.modal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0;
    line-height: 1.5;
}



.emotion-bar-container {
    margin: 10px 0;
}
.emotion-bar-container label {
    display: block;
    margin-bottom: 5px;
}
.emotion-bar {
    height: 20px;
    color: #000;
    text-align: center;
    line-height: 20px;
    background-color: #ddd;
}
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 128, 0, 0.95);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.notification.show {
    opacity: 1;
    transform: translateY(0);
}
.notification.error {
    background: rgba(255, 99, 71, 0.95);
}



footer {
margin-top: 5px;
    background: linear-gradient(90deg, #2a2a2a, #444, #2a2a2a);
    color: var(--cyan-accent);
    padding: 0.3rem;
    text-align: center;
    width: 100%;
height: 100%;
    box-sizing: border-box;
    border-top: 3px solid gray;
    position: relative; /* Change to fixed if you want it always at the bottom */
    bottom: 0; /* This will work with position: fixed */
}

footer-container {
    position: relative; /* Ensure it is positioned correctly */
    bottom: 0; /* This will work with position: fixed */
}

footer a {
  color: var(--cyan-accent);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
}


footer a img {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
}

footer a:hover {
  color: #00f2fe;
  transform: scale(1.1);
}

footer span {
  font-size: 0.875rem;
}

.footer-views {
  margin-top: 0.5rem;
  color: var(--primary-blue); 
  font-size: 0.75rem;
min-width: 100px;
}

.view-counter {
  margin-top: 0.5rem;
  color: var(--primary-blue);
  font-size: 0.75rem;
}




@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    header h1 {
        font-size: 1.3em;
    }
    header p {
        font-size: 0.8em;
        max-width: 95%;
    }
    .summary {
        font-size: 0.9em;
        padding: 6px;
       
        top: 60px;
    }
    .buttons {
        flex-direction: column;
        top: 60px;
        right: 10px;
        gap: 6px;
    }
    button {
        padding: 6px 12px;
        font-size: 0.9em;
    }
    .slider-container {
        flex-direction: column;
        align-items: center;
        padding: 8px;
        width: 100%;
        max-width: 100%;
        margin: 6px auto;
    }
    .slider-container label {
        width: 100%;
        text-align: center;
        margin-bottom: 6px;
    }
    .slider-wrapper {
        width: 100%;
        max-width: 100%;
        padding-top: 20px;
    }
    .state-display {
        text-align: center;
        margin-left: 0;
        margin-top: 6px;
        width: 100%;
    }
    .modal-content {
        width: 90vw;
        min-width: 0;
        padding: 12px;
 font-size: 0.85em;
    }
    .footer {
        font-size: 0.8em;
    }

    #buttonPanel {
        justify-content: center;

    }

#subPanel {

}

}


@media (min-width: 601px) {
    #sliders {
        margin: 0 auto;
        padding-top: 20px;
    }
}


@media (orientation: landscape) {
    .slider-container {
        max-width: 90vw;
    }
    #sliders {
        padding-top: 20px;
    }
}

body.modal-open {
    overflow: hidden; /* Prevent scrolling of the body */
}