body {
    /* Set line height to 1.5 times the font size
         and use the OS’s UI font as the website font
       */
    font: 100%/1.5 system-ui;
    max-width: 100ch;
    margin-inline: max(1em, (100% - 100ch) / 2);
    padding: 1em;
    color: canvastext; 
    background-color: canvas;
}

html {
    accent-color: var(--color-accent);
}

nav {
    display: flex;
    /* margin-bottom: 2em; */
    border-bottom-width: 1px;
    border-bottom-style: solid;
    --border-color: oklch(50% 10% 200 / 40%);
    border-bottom-color: var(--border-color);
}

nav ul, nav li {
    display: contents;
}

nav a {
    flex: 1;
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 0.5em;
}

nav a.current {
    padding-bottom: 0.4em;
    border-bottom-color: var(--border-color);
    border-bottom-style: solid;
    border-bottom-width: 0.4em;
}

nav a:hover {
    border-bottom-color: var(--color-accent);
    border-bottom-style: solid;
    border-bottom-width: 0.4em;
    padding-bottom: 0.4em;
    background-color: color-mix(in oklch, var(--color-accent), canvas 85%);
}


h1 {
    text-align: center;   
}

.device-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    margin-top: 20px;
}

.device-icons .icon {
    width: 60px; 
    height: auto;
    opacity: 0.9;
}

.chart-container img {
    width: 100%; 
    max-width: 250px; 
}



.section {
    opacity: 0;  
    transform: translateY(50px);  
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    min-height: 50vh; 
    padding: 50px 10px; 
   
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:not(.visible) {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; 
    background: rgba(0, 0, 0, 0.1); 
    z-index: 1000;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #007bff; 
    transition: width 0.2s ease-out;
}


#conclusion {
    /* min-height: 100vh;   */
    padding: 50px;
}

.tooltip {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    opacity: 0; 
    pointer-events: none;
    max-width: 250px; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s ease-in-out;
}
 
[id^="dropdown-container"] {
    display: flex;  
    align-items: center; 
    gap: 15px; 
    padding: 10px 15px; 
    background-color: #e3f2fd; 
    border-radius: 8px; 
    width: fit-content; 
    margin: 15px auto; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
}

[id^="dropdown-container"] select {
    padding: 8px;
    border: 1px solid #007bff;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
}

[id^="dropdown-container"] label {
    font-weight: bold;
    font-size: 14px;
}

.label-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.sub-label {
    font-size: 12px;
    font-weight: normal;
    display: block;
    margin-top: 2px;
    color: gray;
    text-align: center; 
}


.tooltip {
    position: absolute;
    border: 2px solid black; 
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    color: black; 
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-out;
    transform: translateY(-5px); 
    max-width: 220px;
}
.chart-container {
    background: #e3f2fd; 
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 0, 0, 0.1); 
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin: 20px auto; 
    width: 80%; 
    max-width: 800px; 
}

.chart-container:hover {
    transform: scale(1.02); 
    transition: all 0.2s ease-in-out;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}




#tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0;
}

.tab-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 8px 8px 0 0;
}

.tab-button:hover {
    background: #dbeeff;
}

.tab-button.active {
    background: #007bff;
    color: white;
    border-bottom: 2px solid white;
}

#content-container {
    border: 2px solid #007bff;
    padding: 50px;
    border-radius: 0 0 10px 10px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    color: black;  
    /* color: #007bff; */
}


.default-message {
    background: #dbeeff;
}

.content-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.content-box:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none;
}

.info-item {
    text-align: center;
    max-width: 250px;
}

.info-item img {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.info-item img:hover {
    transform: scale(1.05);
}

#chart-empatica, #chart-samsung {
    position: relative; /* to fix back button position*/
}

