/* Global styles */
body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Top bar */
#logout {
    height: 30px;
    margin-right: 100px;
    margin-top: 20px;
}
#logout-button {
    position : fixed;
    top: 20px;
    right: 50px;
    background-color: lightgrey;
    color: #49494b;
    font-size: 1rem;
    padding: 5px 10px;
    float: right;
    border-radius: 10px;
    text-decoration: none;
}
#language_selection {
    margin-right: 100px;
    position: fixed;
    top: 20px;
    right: 80px;
    font-size: 1rem;

}

/* Header content */
#topcontent {
    width: 100%;
    height: 200px;
}
.toptitle {
    font-size: 24px;
    text-align: center;
    margin: 10px;
}
#intro {
    width: 80%;
    margin-left: 50px;
}

/* Dropdown and filters */
#choices {
    height: 50px;
    font-size: 18px;
    display: flex;
    align-items: flex-end;
    margin: 50px 50px 10px 50px;
    width: 1000px;
}
#dropdownList {
    display: flex;
    align-items: center;
}
#dataSelection {
    vertical-align: bottom;

}
.checkbox {
    display: inline;
}

/* Main content area */
#results {
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
    text-align: center;
    max-width: 95%;
    width: 100%;
}

/* Charts container */
.chart {
    position: relative;
    max-width: 800px;
    width: 100%;
    aspect-ratio: 1;
    margin: auto;
}

.chart-container {
    width: 600px;
    height: 600px;
    position: relative;
    margin: auto;
}

/* Canvas style – base */
canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    max-width: 700px;

}

#labelsContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.chart-label {
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    text-align: center;
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
}

/* Main charts and overlays – z-index distinction */
#resultChart1, #resultChart2 {
    z-index: 2;
}

#overlayChart1, #overlayChart2 {
    z-index: 1;
}

/* Description below charts */
#descriptions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 200px;
    margin: 0 20px 20px 20px;
}

.feedback {
    text-align: justify;
    font-size: 14px;
}

#betweenLine {
    border: none;
    height: 1px;
    background-color: #ccc;
    width: 100%;
    margin: 20px;
    grid-column: 1 / -1;
}

.chart-title {
    display: flex;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}