html {
    height: 100%; background: url(/img/windieBackground.jpg) no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}
html *
{
   font-size: 0.75rem;
   color: #eeeeee;
   font-family: sans-serif !important;
}
@media only screen and (min-width: 600px) {
    html *
    {
       font-size: 1rem;
    }
}

h1 {
    font-size: 1.5rem; 
    margin: 0;
    display: inline;
}
h1 span {
    font-size: 1rem;
    display: none;
    font-weight: normal;
}
@media only screen and (min-width: 450px) {
    h1 span {
        display: inline;
    }
}
@media only screen and (min-width: 600px) {
    h1 {
        font-size: 2rem; 
    }
    h1 span {
        display: none;
    }
}
@media only screen and (min-width: 950px) {
    h1 span {
        display: inline;
    }
}
h2 {
    margin-top: 1.5rem;
    line-height: 1;
}
@media only screen and (min-width: 600px) {
    h2 {
        margin-top: 1rem;
    }
}
.dynamic h2 {
    font-size: 1.5rem;
}
.dynamic p {
    font-size: 1rem;
}

nav {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-self: center;
}
nav a {
  display: block;
  text-decoration: none;
  margin-right: 2rem;
  margin-top: 0.75rem;
}
nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}
nav .icon {
  display: none;
}
@media screen and (max-width: 600px) {
    nav {
        justify-content: flex-end;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 0;
    }
    nav a { 
        display: none; 
        margin-top: 0;
    }
    nav a.icon {
        margin-right: 0.5rem;
        display: block;
        height: calc(3rem + 1px - 0.5rem);
        margin-top: 0.5rem;
    }
    nav.responsive a {
        display: block;
        text-align: right;
        font-size: 1rem;
    }
    nav.responsive a:not(.icon) {
        background-color: rgba(32,28,0,0.85);
        padding: 0.75rem 0.65rem 0.75rem 1rem;
        margin-right: 0;
    }
    nav.responsive div {
        border-bottom: 1px solid #555555;
        border-left: 1px solid #555555;
    }
}

.active {
    font-weight: bold;
}

body { 
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: url(/img/favicon-16x16.png), auto;
}
a, button {
    cursor: pointer;
}

table { 
    border-collapse: collapse; 
    margin-top: 1rem; 
    margin-bottom: 1rem; 
    width: 100%;
}
@media only screen and (min-width: 600px) {
    table { 
        width: auto;
    }
}

th,td { 
    padding: 0.20rem; 
    border: 1px solid rgba(128,128,128,1); 
    background-color: rgba(128,128,128,0.2);
}
td { text-align: right; }
#best td { text-align: left; }

table.small th, table.small td {
    font-size: 0.6rem;
}
@media only screen and (min-width: 600px) {
    table.small th, table.small td {
        font-size: 1rem;
    }
}

#container {
    position: fixed;
    top: calc(3rem + 1px);
    padding: 0;
    height: calc(100% - 3rem);
    width: 100%;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}

#content {
    margin: 0;
    flex: 1 0 auto;
}
.dynamic {
    margin: 0 1rem 0 1rem;
}
@media only screen and (min-width: 600px) {
    #content {
        margin: 1rem 2rem 1rem 2rem;
    }
    .dynamic {
        margin: 0;
    }
}

#header { 
    position: fixed;
    top: 0;
    margin: 0;
    background-color: rgba(32,28,0,0.5);
    border-bottom: 1px solid #555555;
    width: 100%;
    height: 3rem;
    z-index: 50;
}

#header > div {
    margin: 0 0 0 6.5rem;
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap: 1rem;
    align-items: center;
    height: 100%;
}
@media only screen and (min-width: 600px) {
    #header > div {
        margin: 0 2rem 0 8rem;
        grid-template-columns: auto auto 0;
        grid-column-gap: 2rem;
    }
}

#windie {
    position: fixed;
    top: 0;
    left: 1rem;
    z-index: 100;
    cursor: pointer;
}
@media only screen and (min-width: 600px) {
    #windie {
        top: 0.25rem;
        left: 2rem;
    }
}

#lastUpdate { display: none; }
@media only screen and (min-width: 800px) {
    #lastUpdate { font-size: 0.75rem; display: inline-block; align-self: start; justify-self: end; margin-top: 0.5rem;}
    #header > div {
        grid-template-columns: auto auto 200px;
    }
}

footer {
    margin: 0;
    background-color: rgba(32,28,0,0.5);
    border-top: 1px solid #555555;
    width: 100%;
    min-height: 4rem;
    flex-shrink: 0;
}

footer > div {
    font-size: 0.75rem;
    text-align: center;
    margin: 0.45rem auto 0 auto;
}
footer > div.flex {
    justify-content: center;
    flex-wrap: wrap-reverse;
}
@media only screen and (min-width: 400px) {
    footer > div.flex {
        flex-wrap: wrap;
    }
}

footer > div > span {
    margin: 0.45rem 1rem 0.45rem 1rem;
    font-size: 0.75rem;
    text-align: center;
}
footer > div > span:nth-child(2) {
    display: none;
}
@media only screen and (min-width: 400px) {
    footer > div > span:nth-child(2) {
        display: inline;
    }
}

.donationForm {
    float: left;
}

footer form {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}
footer form > span {
    white-space: nowrap;
}

#forWindie {
    vertical-align: top;
    position: relative;
    top: 0.45rem;
    outline: 0;
    border: 0;
}
img, #forWindie:focus { outline: 0; }
@media only screen and (min-width: 600px) {
    #forWindie {
        top: 0.25rem;
    }
}

.flex {
    clear: both;
    display: flex;
    flex-wrap: wrap;
}

#containers {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    margin-left: 1px;
}

.container {
    height: 400px; 
    width: calc(100% - 1px);
    background-color: rgba(128,128,128,0.2);
    border: 1px solid rgba(128,128,128,1);
    margin:-1px 0 0 -1px;
}
@media only screen and (min-width: 600px) {
    .container {
        width: 800px;
    }
}

text {
    color: #eeeeee;
    fill: #eeeeee !important;
    font-size: 0.6rem !important;
}
text tspan {
    font-size: 0.6rem;
    color: #eeeeee;
    fill: #eeeeee;
}
text.highcharts-title tspan {
    font-size: 0.75rem;
    font-weight: bold;
}
@media only screen and (min-width: 600px) {
    text {
        font-size: 0.75rem !important;
    }
    text tspan {
        font-size: 0.75rem;
    }
    text.highcharts-title tspan {
        font-size: 1rem;
    }
}

.highcharts-grid-line {
    stroke: rgba(128,128,128,1);
}
.noBottomMargin {
    margin-bottom: 0;
}

.flexColumn {
    clear: both;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}
img.windiePortrait {
    width: 120px;
    border: 1px solid rgba(0,0,0,1);
}
img.windiePortraitFull {
    width: 100%;
    border: 0;
    margin-bottom: 1rem;
}
@media only screen and (min-width: 600px) {
    .flexColumn {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        align-items: flex-start;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    img.windiePortraitFull {
        width: 600px;
        border: 0;
        margin-bottom: 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        flex: 1 0 calc(27% - 1rem);
        box-sizing: border-box;
    }
}

.spacer {
    margin-top: 1rem;
}
.spacerBottom {
    margin-bottom: 1rem;
}

/* popup */
.popup-overlay {
  position: fixed;
  top: 0;bottom: 0;left: 0;right: 0;
  background: rgba(255,255,255,0.9);
  display: none;
}
.popup {
  border-radius: 5px;
  background: rgb(2,0,36);
  background: linear-gradient(177deg, rgba(124, 181, 236, 0.95) 0%, rgba(99, 156, 211, 0.95) 27%, rgba(99, 156, 211, 0.95) 73%,rgba(149, 206, 255, 0.95) 100%);
  position: relative;
  margin: 4.5rem auto;
  width: 90%;
  height: calc(100% - 5.5rem);
  overflow-y: scroll;
  border: 1px solid rgba(220,220,220,0.9);
  -webkit-box-shadow: 2px 2px 13px 5px rgba(51,51,51,0.8); 
  box-shadow: 2px 2px 13px 5px rgba(128,128,132,0.8);
}
.popup-content {
    margin: 0.5rem;
    text-shadow: 1px 1px 2px rgba(51,51,51,0.75);
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 164px 132px 180px;
}
@media only screen and (min-width: 600px) {
    .popup {
        overflow: hidden;
        height: auto;
        min-height: 6rem;
        margin: 1rem auto 1rem auto;
        width: 600px;
    }
    .popup-content {
      margin: 1rem;
      text-shadow: 1px 1px 2px rgba(51,51,51,0.75);
      display: grid;
      grid-template-columns: 200px 180px 180px;
      grid-template-rows: 240px 280px;
    }
    img.windiePortrait {
        width: 160px;
        border: 1px solid rgba(0,0,0,1);
    }
}
.popup-close {
  position: absolute;
  top: 0; right: 10px;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
  color: rgba(220,220,220,0.9);
  margin: 0; padding: 0;
  vertical-align: top;
}
.popup-close:hover {
  color: rgba(255,255,255,1);
}

/* beta */
video#windieVideo {
    opacity: 0.2;
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    -ms-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}