:root {
    --radius: .1rem;
    --table-width: 80%;
    --tbody-max-height: 50vh;
}

body {
    margin-left: min(5vw, 7rem);
    margin-right: min(5vw, 7rem);
    overflow: auto;
}

section {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    color: var(--darker-gray);
}

.column {
    margin: 10px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;

    padding: 10px 0;
    text-align: center;
    font-size: 1rem;
    background-color: rgb(85, 122, 149, .5);

    border: 1px solid transparentize(white, 0.25);
    background-color: transparentize(white, 0.8);
    color: transparentize(white, 0.1);
}

@media screen and (max-width: 600px) {
    .small_screen_table {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    #div_chart_daily,
    #div_chart_month,
    #div_chart_year {
        display: none;
    }

    .divTableCell {
        vertical-align: middle;
    }

    .divTableCell.right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .fancy-button {
        margin: .2em;
        font-size: .7em;
        padding: .2rem;
    }

    h1.title {
        margin-top: 0;
        margin-bottom: 0;
    }

    .rawTable thead th {
        font-size: .5rem;
    }

    .rawTable tbody td {
        font-size: .4rem;
    }
}

@media screen and (min-width: 601px) {
    .small_screen_table {
        display: none;
    }

    #div_chart_daily,
    #div_chart_month,
    #div_chart_year {
        width: auto;
        height: 400px;
    }

    .fancy-button {
        margin: .3em;
        font-size: .8em;
    }
}

.divTable {
    margin: 0.5em 0;
    /* margin-right: 0; */
}

.charts {
    width: 100vw;
}

.small_screen_data {
    margin: 5px;
    /* text-align: center; */
    font-size: 1rem;
    padding: .5em;
    background-color: hsla(198, 62%, 63%, 0.2);
    flex-basis: 25%;
    flex-grow: 0;
}

.today {
    background-color: hsl(198, 62%, 63%, .6);
}

.hide {
    display: none;
}

.bold {
    font-weight: 500;
}

/* ===================================== */
.rawTable,
.tblRainYearCompare {
    border-collapse: collapse;
    table-layout: auto;
    width: 100%;
}

.rawTable thead th,
.tblRainYearCompare thead th {
    background: var(--accent);
    border-bottom: 1px solid var(--light-gray);
    color: white;
    font-size: 1rem;
    height: 2rem;
    vertical-align: middle;
    padding: .2rem;
    padding-top: .4rem;
    text-decoration: none;
    white-space: nowrap;
}

.rawTable tbody td,
.tblRainYearCompare tbody td {
    color: var(--font-color-darker);
    font-size: .8rem;
    padding: .3rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--accent);
    border-top: none;
    white-space: nowrap;
}

.rawTable tbody td:first-child,
.rawTable thead th:first-child {
    padding-left: .4rem;
    text-align: center;
    width: 13%;
}

.rawTable tbody td,
.rawTable thead th {
    width: 25%;
    margin: auto;
    text-align: center;
}

.tblRainYearCompare tbody td:first-child,
.tblRainYearCompare thead th:first-child {
    padding-left: .4rem;
    text-align: left;
    width: 10%;
}

.tblRainYearCompare tbody td,
.tblRainYearCompare thead th {
    width: 15%;
    margin: auto;
    text-align: center;
}

.tblRainYearCompare tbody td:last-child,
.tblRainYearCompare thead th:last-child {
    font-weight: bold;
}

.tblRainYearCompare tbody tr:last-child td {
    /* font-size: 1.02rem; */
    text-decoration: underline;
    background-color: rgba(0, 0, 0, 0.1);
}

#rawBodyContainer {
    height: var(--tbody-max-height);
    overflow-y: scroll;
}

#rawBodyContainer::-webkit-scrollbar-track {
    border-radius: 3px;
    opacity: 0;
}

#rawBodyContainer::-webkit-scrollbar {
    width: 1px;
    opacity: 0;
}

#rawBodyContainer::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: var(--accent);
    height: 7vh;
    -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0);
}

/* ======================================================== */