* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 24px;
    /* background: #f5f6fa; */
    background: #fff;
}

.container {
    flex-direction: column;
}

.questions {
    max-width: 100%;
    height: calc(100vh - 400px);
    /* adjust based on chart height */
    overflow-y: auto;
}

.chart-container {
    position: sticky;
    top: 0;
    max-width: 100%;
    height: auto;
    z-index: 10;
    /* background: #f4f4f4; */
    align-items: center;
}

.heading-container {
    padding: 20px;
    font-family: sans-serif;
    margin: 28px 0;
}

.heading-container h1 {
    color: #333;
    font-size: 1.75em;
    font-weight: bolder;
    margin: 0;
}

.heading-container h1 a {
    color: inherit;
    text-decoration: none;
    /* pointer-events: none; */
    cursor: default;
}

.heading-container p {
    color: #7B7B7B;
    font-weight: 300;
    font-size: 0.90em;
    margin: 0;
}

@media (min-width: 768px) {
    body {
        padding: 0 64px;
    }

    .heading-container {
        margin: 64px 0;
        padding: 0;
    }

    .heading-container p {
        margin: 4px 0px;
    }

    .container {
        display: flex;
        flex-direction: row;
        height: 100vh;
        overflow: hidden;
    }

    .questions {
        flex: 1;
        max-width: 65%;
        height: 100vh;
        overflow-y: auto;
        padding: 4px;
        box-sizing: border-box;
        /* background: #ffffff; */
    }

    .chart-container {
        flex: 1;
        max-width: 35%;
        padding: 0px;
        position: sticky;
        top: 0;
        height: 100vh;
        /* background: #f4f4f4; */
        box-sizing: border-box;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }
}

.question {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.question label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.input-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-bottom: 4px;
}

.input-row label {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
}

.input-row input[type="range"] {
    flex: 2;
    width: 100%;
}

.score-description {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 16px;
    padding-left: 4px;
}

.submit-button {
    display: block;
    margin: 30px auto 0;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background: #2f80ed;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.submit-button:hover {
    background: #1c60bd;
}

canvas {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}
