html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

.scroll-container {
    height: 100vh; /* Full viewport height for container */
    overflow-y: auto; /* Enables vertical scrolling */
    scroll-snap-type: y mandatory; /* Vertical snap */
    scroll-behavior: smooth; /* Optional: For smooth scrolling */
}

h1 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 40px;
}

#landing {
    height: 100vh;
    padding-top: 2px;
    padding-left: 10%;
    padding-right: 10%;
    background: linear-gradient(0deg, rgba(34,33,67,1) 0%, rgba(24,57,110,1) 46%, rgba(4,87,155,1) 100%);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    color: #E7F1F2;
    scroll-snap-align: start;
}

#landing-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 150px;
}

.body-child {
    flex: 1;
}

#how-to {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}   

.legend {
    /* background-color: bisque; */
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
}

.legend-text {
    flex: 2;
}

#text {
    position: relative;
}

#text button {
    position: absolute;
    bottom: 25px;
}

#text a {
    color: #E7F1F2;
}

#text a:visited {
    color: #E7F1F2;
}

#text a:active {
    color: #E7F1F2; 
}

.legend-viz {
    flex: 1;
    /* background-color: orange; */
    position: relative;
}

.legend-viz > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#btn-legend {
    margin: 0;
}

#viz {
    position: relative;
    height: 100vh;
    scroll-snap-align: start;
    background: linear-gradient(0deg, rgba(4,87,155,1) 0%, rgba(24,57,110,1) 46%, rgba(34,33,67,1) 100%);
}

#dot-plot {
    padding-left: 3%;
    margin-top: 10px;

}

.headings {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    fill: #F0F0F0;
    font-size: 14px;
    width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


.x-axis text {
    font-family: Arial, Helvetica, sans-serif;
    fill: #808080;
    font-size: 12px;
}

.x-axis line {
    stroke: #808080;
}

.x-axis path {
    stroke: #808080;
    stroke-width:0.8px;
}

.prices {
    font-family: Arial, Helvetica, sans-serif;
    fill: #F0F0F0;
    font-size: 14px;
}

.prices_l {
    font-family: Arial, Helvetica, sans-serif;
    fill: #F0F0F0;
    font-size: 14px;
}

.cities {
    font-family: Arial, Helvetica, sans-serif;
    fill: #F0F0F0;
    font-weight: bold;
    font-size: 14px;
}

.cities_l {
    font-family: Arial, Helvetica, sans-serif;
    fill: #F0F0F0;
    font-weight: bold;
    font-size: 14px;
}

#scatter-plot-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
}

#bar_chart_container {
    width: 100vw;
}

.scatter-plot-label {
    text-anchor: middle;
}
.flourish-popup {
    pointer-events: none;
}

.city_label {
    writing-mode: tb;
}

.city_label_l {
    writing-mode: tb;
}

#buttons {
    justify-content: center; 
    align-items: center; 
    display: flex;
    flex-direction: row;
    padding-top: 10px;
}

.btn {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #808080;
    color: #808080;
    box-shadow: 0 0 5px #808080, 0 0 5px #808080 inset;
    transition: all 0.3s ease;
    padding: 10px 25px;
    margin-right: 30px;
}

.btn:hover {
    border: 1px solid #6FE8FC;
    color: #6FE8FC;
    box-shadow: 0 0 5px #6FE8FC, 0 0 5px #6FE8FC inset;
    transition: all 0.3s ease;
}

.btn-landing {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #808080;
    color: #808080;
    box-shadow: 0 0 5px #808080, 0 0 5px #808080 inset;
    transition: all 0.3s ease;
    padding: 10px 25px;
    margin-right: 30px;
}

.btn-landing:hover {
    border: 1px solid #6FE8FC;
    color: #6FE8FC;
    box-shadow: 0 0 5px #6FE8FC, 0 0 5px #6FE8FC inset;
    transition: all 0.3s ease;
}

.pressed {
    border: 1px solid #6FE8FC;
    color: #6FE8FC;
    box-shadow: 0 0 5px #6FE8FC, 0 0 5px #6FE8FC inset;
    transition: all 0.3s ease;
}

#bar-chart-container {
    position: absolute;
    bottom: 0;
    /* left: 0; */
    width: 100%;
    /* height: 250px; */
    box-sizing: border-box;
}




