:root {
    --background-color: #ffffff;
    --secondary-background-color: #fefefe;
    --text-color: #111113;
    --secondary-text-color: black;
    --question-bullet-color: black; /* A dummy color that gets changed in the visualization */
}

/* Dark mode styles */
body.dark-mode {
    --background-color: #0a0a0a;
    --secondary-background-color: #1f1f1f;
    --text-color: #fdfdfd;
    --secondary-text-color: #ffffff;
}


body {
    margin: 0;
    /* font-family: 'PT Sans Narrow', sans-serif; */
    font-family: 'Inter', sans-serif;

    /* Light/Dark mode */
    background-color: var(--background-color);
    color: var(--text-color);

    transition: background-color 0.3s, color 0.3s;
}



/****** Dataset filter ******/

#data-filter {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: var(--secondary-background-color);
}

.dropdown-label {
    font-weight: 600;
    font-size: 15px;
    padding-left: 10px;
    padding-right: 10px;
}

.dropdown-select {
    font-family: "Inter", monospace;
    font-size: 13px;
    padding: 10px;
    border: 1px solid var(--background-color);
    border-radius: 5px;
    /* background-color: #fff; */
    /* color: #333; */
    color: var(--secondary-text-color);
    background: var(--secondary-background-color);
}

/****** Slider styles ******/

.mode-switch {
    position: absolute;
    top: 10px;
    right: 10px;

    & .switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;
    }
    
    & .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
    
    & .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #eceaea;
        transition: .4s;
        border-radius: 34px;
    }
    
    & .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }
    
    & input:checked + .slider {
        background-color: #171717;
    }
    
    & input:checked + .slider:before {
        transform: translateX(24px);
    }
}

/****** Chart ******/

#chart-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    overflow: visible;
}

/****** Tooltip ******/

#question-tooltip {
    position: absolute;
    right: 20px ;
    z-index: 1000;
    background-color: #fff;
    padding: 0 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    background: var(--secondary-background-color);
    
    & #tooltip-content {
        padding: 1em 1.5em 1em 2em;
    }

    & #question-header {
        margin-bottom: 1.1em;
        /* margin-bottom: 0.5em; */
        margin-top: 0em;
        color: var(--secondary-text-color);
    }

    & #question-label {
        font-weight: 700;
        font-size: 14px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        border-bottom: 3px solid #fff;
        line-height: 1.5;
    }

    & #question-list {
        padding-left: 0;
        margin: 0;
    }

    & .question {
        font-size: 14px;
        /* font-style: italic; */
        line-height: 1.5;
        margin-bottom: 1em;
        padding-left: 1.5em;
        list-style: none;
        max-width: 360px;
    }

    & .question::before {
        content: "•";
        display: inline-block;
        width: 1em;
        margin-left: -1em;
        font-size: 1em;
        position: relative;
        color: var(--bullet-color);
    }

    & .question-answer-note {
        font-style: italic;
        font-size: 13px;
        margin-top: 0.3em;
        /* color: #666; */
    } 

    & .question-answer {
        font-weight: 700;
        color: var(--secondary-text-color);
    }
}