:root {
    /* See also const declarations in views/activity.rs */
    --grid-block-size: 10px;
    --activity-box-width: 600px;
}

/* TBD DELETE ME */
.tbd {
    color: white;
    font-size: 300%;
    margin: 0;
}

label, #entity-finder {
    margin-right: 1ex;
}

#activity-main {
    display: flex;
}

#activity-graphs {
    display: flex;
    flex: 1;
    flex-direction: column;
}

#activity-propagation {
    display: flex;
    flex: 2;
    flex-direction: column;
}

#entity-name, .sub-title {
    flex: 0;
    text-align: center;
    margin-bottom: 4pt;
}

.scroll-container {
    overflow-x: scroll;
    width: var( --activity-box-width );
}

.activity-box {
    flex: 1;
    display: grid;
    height: 100%;
    border-radius: 5px;
    background-color: #666;
    margin: 2ex;
}

.activity-header {
    display: flex;
    justify-content: center;
    background-color: #afafaf;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding: 2px;
}

.activity-header > div {
    margin: 0 3px 0 3px;
    padding: 0 4px 0 4px;
    border-radius: 2px;
}

.grid-container {
    /* The first two rows overlap */
    display: grid;
    transition: transform 1s;
}

.grid-background-container, .grid-time-slots {
    /* The background and time slots share the first row of .grid-container */
    grid-column: 1;
    grid-row: 1;
}

.grid-background-container {
    overflow: clip;
}

.grid-background {
    display: flex;
    z-index: 100;

    background-color: white;
    height: 100%;
}

.grid-background .background-marker:nth-child(n+2) {
    border-left: 1px solid #bbb;
}

.background-marker {
    flex: 1;
}

.grid-time-slots {
    display: flex;
    column-gap: 1px;
    z-index: 200;
}

.grid-blocks {
    display: flex;
    flex-direction: column;
    row-gap: 1px;
}

.grid-block {
    width: var( --grid-block-size );
    height: var( --grid-block-size );
}

.grid-labels-container {
    overflow: clip;
}

.grid-labels {
    display: flex;
}

.grid-labels .grid-label-base:nth-child(n+2) {
    /* all but the first label have a left border */
    border-left: 1px solid white;
}

.grid-label-base {
    color: white;
    padding-left: 3px;
}

.grid-label {
    flex: 1;
}

#find-entity {
    flex: none;
    margin: 2ex;
    text-align: right;
}

#propagation-map {
    flex: 1;
    align-content: center;
    text-align: center;
}

#propagation-prediction {
    flex: 1;
    align-content: center;
    text-align: center;
}

.day-blank-item {
    background-color: #eee;
}

.past-day-active-item {
    background-color: #0f0;
}

.past-week-blank-item {
    background-color: #eee;
}

.past-week-active-item {
    background-color: orange;
}

.past-week-item {
    background-color: #ddd;
}

.active-item-mode-0 {
    background-color: #ED2024;  /* SSB */
}

.active-item-mode-1 {
    background-color: #F26422;  /* RTTY */
}

.active-item-mode-2 {
    background-color: #F6AA1B;  /* CW */
}

.active-item-mode-3 {
    background-color: #F7EC13;  /* FT8 */
}

.active-item-mode-4 {
    background-color: #BAD532;  /* FT4 */
}

.active-item-mode-5 {
    background-color: #08AD8E;  /* Other */
}

.active-item-band-1 {
    background-color: #ED2024;
}

.active-item-band-2 {
    background-color: #F26422;
}

.active-item-band-3 {
    background-color: #F6AA1B;
}

.active-item-band-4 {
    background-color: #F7EC13;
}

.active-item-band-5 {
    background-color: #BAD532;
}

.active-item-band-6 {
    background-color: #66BC46;
}

.active-item-band-7 {
    background-color: #08AD8E;
}

.active-item-band-8 {
    background-color: #5e6fa5;
}

.active-item-band-9 {
    background-color: #9065a5;
}

.active-item-band-10 {
    background-color: #C84097;
}

.active-item-band-11 {
    background-color: #EE3F97;
}
