body {
    font-family: Arial, sans-serif;
    margin: 0;
    overflow: hidden;
    background-color: #eef6ff;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#main {
    display: flex;
    width: 100%;
    height: calc(100vh - 40px); /* Subtract the footer height */
    padding-bottom: 40px; /* Give space for the footer */
}

.controls-container {
    display: flex;
    align-items: center; /* Vertically align the items */
    gap: 20px; /* Adjust spacing between the switch and search bar */
    margin-bottom: 20px; /* Add spacing below the container */
}

.switch {
    display: flex;
    align-items: center;
}

.search-container {
    margin: 0; /* Remove extra margin */
}


.chart-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.chart-heading {
    text-align: center;
    color: rgb(0, 0, 0);
    font-size: 36px;
    margin-bottom: 25px;
    font-weight: bold;
}

#chart {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navigation-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
}

#trail {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: large;
    padding: 10px;
    min-height: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 90%;
    text-align: center;
}

#trail .trailpart {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    text-align: center;
    padding: 0 10px;
    position: relative;
    background: #f0f0f0;
    color: #333;
    margin-right: 20px;
    margin-bottom: 10px;
}

#trail .trailpart:after {
    content: '';
    position: absolute;
    top: 0;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #e5e5e7;
}

#explanation {
    font-weight: bolder;
    font-size: x-large;
    color: rgb(32, 32, 142);
    min-height: 30px;
    padding: 0px;
    text-align: center;
    width: 90%;
}

#derived-raagams {
    width: 100%;
    margin-top: 0px;
    display: none;
    font-size:small;
}

#derived-raagams table {
    width: 100%;
    border-collapse: collapse;
    background: #ecf6ff;
    box-shadow: 0 1px 7px rgba(0,0,0,0.2);
    border-radius: 7px;
    overflow: hidden;
}

#derived-raagams thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

#derived-raagams tbody {
    display: block;
    max-height: 300px; /* Height of 5 rows (assuming each row is ~40px) */
    overflow-y: auto;
    overflow-x: hidden;
}

#derived-raagams td:first-child {
    font-weight: bold; /* Make the text bold */
    color: rgb(32, 32, 142);
    text-align: left; /* Align text to the left */
}
#derived-raagams th:first-child,
#derived-raagams td:first-child {
    width: 18px; /* Adjust this value as needed */
    text-align: center;
}

#derived-raagams thead tr,
#derived-raagams tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    
}

#derived-raagams th, 
#derived-raagams td {
    padding: 5px;
    text-align: left;
    border: 1px solid rgb(32, 32, 142);
}

#derived-raagams th {
    background-color: rgb(32, 32, 142);
    color: white;
    font-weight: bold;
}

/* #derived-raagams tbody tr:hover {
    background-color: #859ed4f1;
} */

#derived-raagams-title {
    color: rgb(0, 0, 0);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}
.switch {
    padding: 0;
    /* position: relative;
    display: inline-block;
    align-items: right; */
    /* justify-content: right; */
}

.tooltip-wrapper {
    margin-left: 10px; /* Adjust spacing between the slider and text */
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    /* bottom: -2700%; Position above the text */
    left: 200%;
    transform: translateX(-50%);
    width: 500px;
    background-color: white;
    border: 2px solid rgb(32, 32, 142);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.tooltip img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.tooltip-text {
    text-align: center;
    color: rgb(32, 32, 142);
    font-weight: bold;
}


/* Ensure the link matches the heading style */
.chart-heading a {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Match the parent color */
    font-size: inherit; /* Match the parent font size */
    font-family: inherit; /* Match the parent font family */
    font-weight: inherit; /* Match the parent font weight */
    text-align: center; /* Keep it centered */
    display: inline; /* Ensure it doesn't break layout */
}

.chart-heading a:hover {
    text-decoration: underline; /* Optional underline on hover */
    color: #0056b3; /* Optional hover color */
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #eef6ff;
    text-align: center;
    padding: 10px 0;
    font-size: 12px;
    color: gray;
    /* border-top: 1px solid #ccc; */
    font-family: Arial, sans-serif;
    z-index: -1; /* Ensures it's above other content */
}

.search-container {
    position: relative;
    display: inline-block;
    margin-left: 2px;
}

#raga-search {
    padding: 5px;
    width: 200px;
    border: 1px solid rgb(32, 32, 142);
    border-radius: 4px;
}

.raga-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgb(32, 32, 142);
    border-top: none;
    background-color: white;
    z-index: 1000;
    display: none;
}

.raga-dropdown-item {
    padding: 5px;
    cursor: pointer;
}

.raga-dropdown-item:hover {
    background-color: #f0f0f0;
}