/* -------------------------------------------------------------------------------------------------
 * global
 */
:root {
    --typeface: "Helvetica", "Arial", sans-serif;
    --block-padding: 30px;
    --main-font-size: 10pt;
    --main-text-color: #333;
    --main-header-color: #999;
    --background-color: #fcfcfc;
}
* {
    box-sizing: border-box;
    /*text-transform: lowercase;*/
}
body {
    font-family: var(--typeface);
    font-size: var(--main-font-size);
    color: var(--main-text-color);
    background-color: var(--background-color);
}
a:link,
a:visited {
    color: #666;
}
a:hover {
    color: #933;
    text-decoration: none;
}
a:active {
    color: #333;
}

/* -------------------------------------------------------------------------------------------------
 * structure
 */
div#page {
    width: 100%;
}
div#title, div#menu {
    position: absolute;
    top: 0;
    height: 150px;
    padding: var(--block-padding) var(--block-padding) var(--block-padding) var(--block-padding);
}
div#title {
    left: 0;
    width: 300px;
    font-size: 80px;
    font-weight: bold;
    text-shadow: 3px 3px #ccc;
    color: #fff;
    letter-spacing: 10px;
    margin-left: -4px;
}
div#menu {
    left: 300px;
    width: 325px;
    column-count: 2;
    text-align: center;
}
div#content {
    position: absolute;
    top: 140px;
    right: 0;
    width: 100%;
    padding: 0 var(--block-padding) var(--block-padding) var(--block-padding);
}
#menu ul {
    padding: 0;
    margin: 0;
}
#menu li {
    list-style: none;
    font-size: 1em;
    font-weight: normal;
    letter-spacing: 0.2em;
    text-align: left;
    line-height: 1.5em;
}

/* -------------------------------------------------------------------------------------------------
 * tables
 */
table {
    background-color: #aaa;
    border-spacing: 1px;
}
td, th {
    padding: 8px;
    background-color: #eee;
    text-align: left;
}
th {
    font-weight: bold;
    background-color: #ddd;
}


/* -------------------------------------------------------------------------------------------------
 * headings
 */
h1,h2,h3,h4,h5,h6 {
    font-weight: bold;
    color: var(--main-header-color);
    width: 100%;
    display: block;
    padding: 0 0 0.1em 0;
    margin: 1.5em 0 0.5em 0;
    font-size: 1.5em;
}
h1 {
    font-size: 2em;
    font-style: none;
    letter-spacing: 0.15em;
    border-bottom: 1px solid var(--main-header-color);
    margin: 0 0 30px 0;
}

/* ---------------------------------------------------------------------------------------------- */
/*
 * training log
 */
.log {
    display: grid;
/*    grid-template-columns: 75px repeat(7, 150px) minmax(300px, auto);*/
    grid-template-columns: 75px repeat(7, 150px) 150px;
    gap: 0px;
    color: #666;
}
svg {
    display: block;
}
.header-row {
    display: contents;
}
.header-row .pre,
.header-row .post {
    padding: 0;
    background-color: var(--background-color);
}
.header-row .day {
    background-color: #ccc;
    padding: 8px 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-top: none;
    border-bottom: none;
}
.week-row {
    display: contents;
}
.week-row .pre {
    min-height: 150px;
}
.pre {
    text-transform: uppercase;
    text-align: right;
    padding: 10px;
    letter-spacing: 0.2em;
    line-height: 1.5em;
/*    border-right: 1px solid #aaa;*/
}
.day {
    text-align: center;
    font-size: 0.9em;
    background-color: #f0f0f0;
    padding-bottom: 8px;
    border-bottom: 1px dotted #ccc;
    border-left: 1px dotted #ccc;
}
.pre + .day {
    border-left: none;
}
.weekend {
    background-color: #e9e9e9;
}
.today {
    background-color: #f6f6f6;
}
.post {
    text-transform: uppercase;
    text-align: left;
    padding: 10px;
    letter-spacing: 0.1em;
    font-size: 1em;
}
.post .label {
    display: block;
    margin-top: 10px;
    font-size: 0.75em;
    font-weight: bold;
    color: #999;
}
.post .figure {
    letter-spacing: 0;
    font-size: 1.2em;
}
.post .unit {
    font-size: 0.75em;
    color: #999;
    display: none;
}
/* ---------------------------------------------------------------------------------------------- */
a.act {
    font-size: 0.9em;
    letter-spacing: 0.1em;
    color: #666;
    text-decoration: none;
}
a.act:hover {
    color: #333;
    border-bottom: 1px dotted #999;
}
a.svg-act circle {
    fill: #fff;
}
a.svg-act:hover circle {
    fill: #eee;
}
.day img {
    filter: brightness(80%) grayscale(50%);
    opacity: 0.33;
}
.day .weather {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    letter-spacing: 0.2em;
    color: #aaa;
    margin: 0 1em;
}
.weather-desc {
    font-size: 0.8em;
}
.act-name-divider {
    color: #bbb;
}
.goal-percent {
    font-size: 1em;
}

/* -------------------------------------------------------------------------------------------------
 * user profile
 */
table.user-info {
    margin: 0;
}
table.user-info td {
    padding: 8px;
}
table.user-info tr td:nth-child(1) {
    text-align: right;
    font-weight: bold;
    width: 200px;
}
table.user-info tr td:nth-child(2) {
    width: 400px;
}

/* -------------------------------------------------------------------------------------------------
 * graphs
 */
.plotly-graph {
    display: block;
    width: 100%;
    max-width: 1536px;
}
