/* CSS for MPPR (mypestpage replacement) during development */

    /*
       ALL SIZES IN EM BECAUSE THEY SCALE MEANINGFULLY.  I'll make an
       exception for 1px borders.
   */

@font-face{
    font-family:'Stratum2Web';
/*    src:url(https://agsci.oregonstate.edu/sites/all/themes/larch/fonts/Stratum2WebBold.woff2) format('woff2'),url(https://agsci.oregonstate.edu/sites/all/themes/larch/fonts/Stratum2WebBold.woff) format('woff'); */
}

@font-face{
    font-family:'Georgia';   /* proper identifier needed */
    /* src needed */
}

@font-face{
    font-family:'Kievit';   /* proper identifier needed */
    /* src needed */
}


:root {
    --standard-bg-color: #d4ddc0;
/*    --standard-bg-color: #ffffff;  */
    --tab-focus-bg-color: #c4cdb0;
    --inactive-bg-color:  #b7bfa4;
    --OSU-orange: #d73f09;
    background-color: var(--standard-bg-color);
    font-family: Kievit, sans-serif;
}

body {
    font-family: sans-serif;
    background-color: var(--standard-bg-color);
}

/* is this ever used? */
.normal-bg {
    /*    background-color: var(--standard-bg-color);*/
    background-color: red;
}

.no-scroll {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--standard-bg-color);
    z-index: 1; /* force in front of the graph */
}
.title {
    text-align: center;
    font-weight: bold;
    margin-top: 0.5em;
}


.hidden {
    display: none;
}

button {
    margin: 0.3em;
    flex: 1 auto;
    max-width: 17em;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border-top: 1px solid var(--inactive-bg-color);
    background-color: var(--inactive-bg-color);
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    /*border-width: 0.22em 0.15em 0 0.15em;*/
    border-width: 0.15em 0.10em 0 0.10em;
    border-top-left-radius: 0.7em;
    border-top-right-radius: 0.7em;
    border-top-color: black;
    border-left-color: black;
    border-right-color: black;
    outline: none;
    cursor: pointer;
    /*padding: 1.1em 1.2em;*/
    padding: 0.5em 0.8em;
    margin: 0;
    font-weight: bold;
    transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: var(--tab-focus-bg-color);
}

/* And also on focus */
.tab button:focus {
    background-color: var(--tab-focus-bg-color);
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: var(--standard-bg-color);
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 0 0em 0.5em;
    /*border: 1px solid #ccc;
      border-top: none;*/
    border: none;
/*    max-width: 33em; */
    margin-top: 5.2em;  /* manually tune for no-scroll height */
}
.intro-head {
    /*float: left; */
    margin-top: 0.22em;
    margin-bottom: 0;
    margin-right: 0.5em;
    font-size: 100%;
    font-weight: 600;
/*    text-transform: uppercase;*/
}

/* handling +,- pseudo-icons for expand and collapse */
.intro-expanded::before {
    font-size: 125%;
    font-weight: bolder;
    content: "- ";
}
.intro-collapsed::before {
    font-size: 125%;
    font-weight: bolder;
    content: "+ ";
}
.intro-div {
    margin: 0.5em 0 2em;
}
.intro-dl {
    margin-top: 0;
}
dl,ol,ul {
   margin-top: 1em;
}
ol ul {
   margin-bottom: 1em;
}
ol ul li {
   margin: 0.3em;
}
dt {
    float: left;
    font-style: italic;
    font-weight: 500;
}
dt::after {
    content: ": ";
    padding-right: 0.5em;
}
.input-section {
    margin-top: 1em;
    margin-bottom: 1em;
}

.isec-head { /* imitate strong */
    font-weight: bolder;   
}



table {
    margin-bottom: 0.9em;
/*    border: 1px solid green;
    padding: 0.3em;*/
    border-spacing: 0;
}

/* keep the table from getting too wide */
.limited-table {
/*    max-width: 50em;*/
}

.full-dd-table, .short-dd-table, .daily-summary-table, .daily-table, .mi-table {
    font: 90% arial, sans-serif;
}

.large-table-container {
    overflow: auto;
    max-height: 80vh;
    max-width: max-content;
}

.full-dd-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.mi-table dd {
    padding: 0.13em;
}

/* all table head text should be bold */
thead {
    font-weight: bold;
    background-color: #ededed;
}

th {
    font-size: 90%;
}

.year-head {
    border: 1px solid;
}

/* cells in "Risk class" column */
.risk-class-head {
    text-align: center;
}

tr:nth-child(even) {
    background-color: #ededed;
    border-color: red;
}

/* Right-justify numbers in table */
td.numeric-cell, th.numeric-cell, .mtc-max, .mtc-min, .mtc-rain, .mtc-dds-today, .mtc-dds-cumu {
    text-align: right;
    max-width: 3em;
    padding-left: 0.3em;
    padding-right: 0.3em;
}

.mtc-events {
    padding-left: 0.7em;
}

td.risk-class-cell, th.risk-class-cell {
    text-align: center;
/*    font-weight: bold;*/
    padding-left: 0.1em;
    padding-right: 0.1em;
}
td .risk-class-block {
    padding-right: 0.5em;
}
th.source-cell {
    text-align: center;
    padding-left: 0.1em;
    padding-right: 0.1em;
}
td.source-cell {
    text-align: center;
    font-size: 80%;
    padding-left: 0.3em;
    padding-right: 0.3em;
}

td.date-cell, th.date-cell, .mtc-date {
    padding-left: 0.1em;
    padding-right: 0.7em;
}

.center {
    text-align: center
} 

.smaller {
    font-size: 80%;
}

.de-emphasize {
    text-transform: none;
    font-size: 80%;
    font-style: italic;
}

/* make radio buttons a bit bigger and farther apart */
input.biginput {
    margin-left: 0.3em;
    margin-right: 0.3em;
    transform: scale(1.4);
}

.radio-list-item {
    display: block;
}

.extraq-item::marker {
    content: none;
}

/* for images of disease symptoms */
figure {
  margin-top: 0.7em;
}
.fig-image {
    max-width: 100%;
    height: auto;
}

/* for logos in the credits */
.credit-image {
    width: 10em;
    height: auto;
}

/* for messages like "Loading..." */
.temporary-message {
    margin-top: 2em;
    margin-bottom: 2em;
    margin-left: 5em;
}

/* Probably only for date warnings now */
.warningMsg {
    color: red;
}

/* information? */
.request-msg-1 {
    color: black;
}

/* reminder of user options which can go out of date quickly */
.request-msg-2 {
    color: black;
}

/* ? */
.request-msg-3 {
    color: black;
}

/* probable problem */
.request-msg-4 {
    color: red;
}

/* Failure of (non-critical) request */
.request-msg-5 {
    color: red;
}


#GraphWarnings {
    margin-top: 0.3em;
}
#footer {
  padding: 0.25em 1em;
}
.footer-logo {
  margin: 0.2em;
  margin-top: 0;
  height: 3em;
}
/*
.tagline {
  font: italic 80% open-sans;
  margin-bottom: 0.2em;
}
*/

.stanza-box {
    display: flex;
    /*    flex-flow: row wrap;*/
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1em;
    row-gap: 1em;
    margin-top: 1em;
    margin-bottom: 2em;
/*    border: 1px solid green;*/
}

.table-content {
    flex: 1 10em;
}

.stanza-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
/*    border: 1px solid red;*/
/*    max-width: 25em;  *//* FIXME move to button*/
}

.graph-content {
    width: clamp(15em, 95vw, 60em);
/*    border: 1px solid black;*/
}

h1 {
    color: var(--OSU-orange);
    font-family: 'Stratum2Web',sans-serif;
    margin: 0.1em;
}

h2 {
    color: black;
    text-transform: capitalize;
    font-family: 'Georgia', Open Sans, sans-serif;
    margin-bottom: 0.2em;
}

/* from push.pl, https://www.w3schools.com/howto/howto_css_modals.asp */
.modal-wrapper {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(128,128,128,0.8); /* Black w/ opacity */
}
.modal-content {
    /* margin: 1em; */
    padding: 1em;
    margin-left: auto;
    margin-right: auto;
    max-width: 38em;
    background-color: var(--standard-bg-color);
}

.radio-item {
    display: inline-block;
}

.close-x {
    float: right;
    background-color: transparent;
    border: 0;
    font-size:1.3em;
}

#graph-instr ul {
    padding-inline-start: clamp(1em, 5vw, 3em);
}

/* menu stuff borrowed from account/templates/settings.html */
/* one submenu */
.menu-list {
    list-style-type: none;
    padding-left: 1.5em;
}

.modmenu-root {
    padding-left: 0;
}
/* handling inner lists including +,- pseudo-markers */
.modmenu-expanded::before {
    font-size: 125%;
    font-weight: bolder;
    content: "- ";
}
.modmenu-expanded {
    cursor: pointer;
}
.modmenu-collapsed::before {
    font-size: 125%;
    font-weight: bolder;
    content: "+ ";
}
.modmenu-collapsed {
    cursor: pointer;
}
.modmenu-included {
    font-weight: bolder;
}
.modmenu-included::after {
    font-size: 125%;
    content: " \273B";
}
.modmenu-leaf {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    padding-left: 1.15em;  /* to align with no marker or pseudo-marker */
}

.modmenu-subl {
    font-size: 80%;
    font-style: italic;
    padding-left: 2.5em;
    margin-top: 0;
    margin-bottom: 0;
}
.modmenu-oddball {
    padding-left: 1.5em;
}

h4 {
    /*font-weight: 400;*/
    font-size: 87.5%;
}

.invalid {
    border: 0.12em solid red;
}
