/* styles.css */
.hero {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}  
  
h1 {
    font-family: "Gloria Hallelujah", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.subtitle {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.65em;
    margin-bottom: 0.5rem;
    color: rgb(22, 22, 22);
}

h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

h3 {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
}

p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.75em;
    margin-bottom: 1rem;
    color: rgb(22, 22, 22);
}

a {
    color: #0079f1;        
    text-decoration: none;  
  }
  
  a:hover {
    color: #005ab4;        
    text-decoration: underline; 
  }

.tooltip p {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.25em;
    margin-bottom: 0rem;
    color: rgb(22, 22, 22);
}

main {
    max-width: 1000px;
    margin: 2rem auto 0px auto;
    padding-left: 1rem;
    padding-right: 1rem;   
    align-items: center;
}

section {
    padding-bottom: 3rem;
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 2rem;
}

.content-container-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 600px;
    align-items: center;
}

.content-container-column {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
    align-items: left;
}

.svg-wrapper,
.text-wrapper {
    flex: 1 1 0;
    display: block;
    justify-content: center;
    align-items: center;
}

.text-wrapper {
    width: 100%;
    text-align: left;
}

.chart-title p {
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    dominant-baseline: middle;
    fill: #222222;
    margin-bottom: 0.2rem;
}

.annotation {
    font-size: 1.7rem;
    font-family: "Gloria Hallelujah", cursive;
    font-weight: 500;
    dominant-baseline: middle;
    fill: #222222;
    margin-bottom: 0.2rem;
}

.axis-label {
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    dominant-baseline: middle;
    fill: #222222;
}


  

.value-label {
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    dominant-baseline: middle;
    fill: #222222;
}

.chart-container {
    margin-top: 0.3rem;
    margin-bottom: 2rem;
    position: relative;
}

#bar-chart {
    height: 250px;
    width: 100%;
    max-width: 600px;
    min-width: 320px;
    align-items: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sankey-container {
    max-width: 600px;
    width: 100%;
    height: 100%;
    margin-top: 1.5rem;
}

#sankey-chart {
    max-width: 600px;
    min-width: 320px;
    height: 400px;
    align-items: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#scatter-chart {
    width: 100%;
    min-width: 320px;
    max-width: 600px;
    align-items: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

input[type="radio"] {
    margin-right: 0.3rem;
    opacity: 0;
    cursor: pointer;
}

label {
    cursor: pointer;
    font-weight: 400;
    font-size: 1rem;
    font-family: "Open Sans", sans-serif;
    dominant-baseline: middle;
    fill: #222222;
    min-width: 94px;
    text-align: left;
}

.radio-option {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #8e8e8e;
    background-color: white;
}

.radio-option:has(input[type="radio"]:checked) {
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked)::before {
    border-color: #0079f1;
}

.radio-option:has(input[type="radio"]:checked)::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0079f1;
}