body {
  /*font-family: sans-serif;*/
  font-family: 'philtype';
  background-repeat: no-repeat;
  background-size: 100%;
  background-color: #eee;
  /*max-width: 1300px;*/
  margin-left: auto;
  margin-right: auto;
}

.content {
  display: inline-block;
  /* background-color: #eee8; */
  padding:           1rem;
  margin:            1rem;
  border-radius:     1rem;
  padding-bottom:    4rem;
  margin-top:        2rem;
  margin-bottom:     4rem;
  max-width:        900px;
  /*min-width:          80%;*/
}

@media screen and (max-width: 600px) {
.content {
  /*display: inline-block;*/
  padding:           0rem;
  margin:            0rem;
}

}
.turn:hover {
 transition: all 0.1s;
 transition-timing-function: ease-in;
 transform: rotate(-90deg);
}

.logo {
  cursor: pointer;
  filter: grayscale(100%);
}

#title-block-header {
  color:     #333;
  min-height; 6rem;
}

em {
  color:     #333;
}

a.flex-link {
  text-decoration: none;
}

a {
  color:     #333;
  text-decoration: underline;
  text-decoration-color: #666;
}

h1,h2,h3,h4,h5,h6 {
  color:     #111;
  padding-left: 1rem;
  padding-right: 1rem;
  width: 100%;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
}

h1 {
  /*text-decoration: underline;*/
  text-decoration-color: #666;
}

@font-face {
    font-family: 'philtype';
    src: url('veteran_typewriter.woff') format('woff')
}

p {
  font-family: 'philtype';
  font-size: 1.1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  text-decoration: none;
}

p.cursive {
    font-family: cursive;
}

li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #333;
  padding-left: 0.2em;
}

li::marker {
  color: #333;
}

ul {
  list-style-type: "- ";
}


button {
    background-color: #fdfdfd;
    border: 1px solid #e8e8e8;
    border-radius: 1rem;
    padding: 1rem;
    padding-left: 4rem;
    padding-right: 4rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: gray;
}
button:hover {
    background-color: #dfdfdf;
    color: white;
}

input,textarea {
  font-size:     1.2rem;
  margin-top:    0.5rem;
  margin-bottom: 2rem;
  padding:       0.5rem;
  font-family:   sans-serif;
  width:         80%;
}

.btn-small {
    font-size: unset;
    margin: 0.5rem;
    padding: 1rem;
}

/** Site header */
img.logo {
  border-radius: 50%;
  width: 50px;
  margin: 10px;
  border: solid;
  border-color: #eee8;
}

img.nav-logo {
  float: left;
  margin: 0.5rem;
  max-height: 83px;
  object-fit: contain;
}

img.nav-right-logo {
  padding: 20px;
  max-height: 83px;
}

.img-container {
    position: relative;
}

summary {
  margin-left: 1rem;
  text-decoration: underline;
}

div:has(> img.center) {
  display: block;
  margin: auto;
  width: 50%;
}


div.caption {
  /* must sit inside img-container for alignment */
  position: absolute;
  background:  #8888;
  border-radius: 3px;
  bottom: 1rem;
  left:   1rem;
  padding: 3px;
  color: #eee;
}


.site-header {
    border-top: 5px solid gray;
    position: relative;
 }

.site-title {
  color: darkblue;
  font-size: 48px;
  font-weight: 600;
  line-height: 54px;
  letter-spacing: 16px;
  margin-top: 12px;
  float: left;
}

.title {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.author {
    /* 2nd %line in md */
}
.date {
    /* 3rd %line in md */
    font-style: italic;
}

.navPages {
  float: right;
}

.site-title, .site-title:visited {color: darkblue; }

.site-nav {
  float:       right;
  padding:     5px;
}

.site-nav .nav-trigger {display: none; }

.site-nav .menu-icon {display: none; }

.page-link-active {font-weight: 700; margin-left: 20px; }

.home-link {
  display: inline-block;
  background: gray;
  color:       white;
  margin:        2px;
  padding:       5px;
  min-width:    40px;
  border-radius: 3px;
}

.folder-link {
  display: inline-block;
  background: #bbb;
  color:      #333;
  margin:        2px;
  padding:       5px;
  min-width:    80px;
  border-radius: 3px;
}

.page-link {
  display: inline-block;
  background: #ccc;
  color:      #333;
  margin:        2px;
  padding:       5px;
  min-width:    80px;
  border-radius: 3px;
  float: right;
}

@media screen and (max-width: 600px) {
    .site-nav {
        position: absolute;
        top: 9px;
        right: 15px;
        background-color: #e8e8e8;
        border: 1px solid #e8e8e8;
        border-radius: 5px;
        text-align: right;
    }
    .site-nav label[for="nav-trigger"] {
        display: block;
        float: right;
        width: 36px;
        height: 36px;
        z-index: 2;
        cursor: pointer;
    }
    .site-nav .menu-icon {
        display: block;
        float: right;
        width: 36px;
        height: 26px;
        line-height: 0;
        padding-top: 10px;
        text-align: center;
    }
    .site-nav .menu-icon > svg {
        fill: #424242;
        }
    .site-nav input ~ 
    .trigger {
        clear: both;
        display: none;
    }
    .site-nav input:checked ~ .trigger {
        display: block;
        padding-bottom: 5px;
    }

    .site-nav .page-link {

        display: block;
        padding: 5px 10px;
        margin-left: 20px;
    }
    .site-nav .page-link:not(:last-child) {
        margin-right: 0;
    }
}



/* Content styles */

a:link.flex-link {
  background-repeat: no-repeat, no-repeat, no-repeat;
}

.flex-container {
 /*  width:         100%; */
  display:       flex;
  flex-direction: row;
  flex-wrap:     wrap;
  background:   #ddd;
  border-radius: 20px;
  padding: 20px;
  margin: 10px;
}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media screen and (max-width: 600px) {
  .flex-container {
 /*   flex-direction: column; */
      border-radius: 5px;
      padding: 5px;
      margin: 5px;
  }
}

.flex-top {
  height: 10px;
  background: linear-gradient(to top right, white -20%, gray 160%);
  border-radius: 10px 10px 0px 0px;
  margin: -10px;
  margin-bottom: 10px;
}

.flex-item {
  background-color: #eeec;
  padding:          10px;
  margin:           10px;
  border-radius:    10px;
  width:           15rem;
}

/* bibliography */

.csl-entry {
  margin-left: 60px;
  margin-bottom: 20px;
  text-indent: -40px;
  color: #666;
}

.nocase {
  color: #666;
}


/* Image styles */

figure {
  max-width: 80vw;
  margin-left: auto;
  margin-right: auto;
}

img {
  max-height: 300px;
  max-width: 90vw;
  border-radius: 5px;
}
@media screen and (max-width: 600px) {
  img {
   /* max-width: 100%; */
  }
}

img.full {
  max-height:  600px;
  width: auto;
  height: auto;
  max-width:  600px;
  max-width:  100vw;
  margin: 0 auto;
}

img.banner {
  min-width: 600px;
  max-width: unset;
  width: 100vw;
  padding: unset;
  border-radius: unset;
  filter: unset;
  position: absolute;
  left: 0px;
  z-index: -1;
  top: 9rem;
  opacity: 0.5;
}

img.home {
  height: 1rem;
  padding-right: 0.5rem;
}

p.right {
  text-align: right;
}

img.right {
  float: right;
  margin: 0.5rem;
  max-width: 20%;
  width: 200px;
}

img.right-up {
  height:          unset;
  float:           right;
  margin:         0.5rem;
  max-width:         20%;
  width:           250px;
  margin-top:     -100px;
  border-radius: 10% 50%;
  border: solid gray 2px;
  filter: grayscale(100%);
}
@media screen and (max-width: 800px) {
  img.right-up {
    width: 0px;
    /*margin-top: unset;
    margin-bottom: 0px;*/
  }
}

img.flag {
  display:      block;
  width:        150px;
  margin-right:  10px;
  margin-bottom: 10px;
}

img.toggle {
  transition: width 0.5s, position 0.5s;
  float: right;
  margin: 0.5rem;
  max-width: 20%;
  width: 200px;
  cursor: zoom-in;
}

img.icon {
  max-width: 80vw;
  float: unset;
  margin: unset;
  padding: unset;
  border-radius: unset;
  filter: unset;
}

img.inline {
  height: 1rem;
  float: unset;
  margin: unset;
  padding: unset;
  width: unset;
  min-width: unset;
}

img.person {
  border-radius: 50%;
  -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
  filter: grayscale(100%);
  float: right;
  margin: 0.5rem;
  max-width: 20%;
  width: 200px;
  margin-top: -150px;
}

img.preview {
  float:         unset;
  margin:        unset;
  min-width:     unset;
  max-width:     unset;
  max-height:    unset;
  border-radius: unset;
  border:        unset;
  padding:       unset;
  width:         100%;
}

div.preview-box {
  height:     200px;
  margin:    -10px;
  overflow: hidden;
}

img.preview-fill {
  height:    unset;
  margin:    -10px;
  overflow: hidden;
  margin:    -10px;
  width:      108%;
  max-width:  unset;
  border-radius: unset;
}

img.thumb {
  height: 300px;
  transition: width 0.5s, position 0.5s;
  cursor: zoom-in;
}
@media screen and (max-width: 600px) {
  img.thumb {
    height: unset;
  }
}

img.big {
  border-radius: 20px;
  width:         100%;
  max-width:    unset;
  max-height:   unset;
  height:       unset;
  transition: width 0.5s, position 0.5s;
}

/* Garmin iFrames */

div.activity-container {
  position: relative;
  max-width: 400px;
  height: 400px;
  /* remove the Garmin trappings: */
  clip-path: inset(38px 0px 36px 0px);
  margin-top: -38px;
}
div.course-container {
  position: relative;
  max-width: 400px;
  height: 400px;
  /* remove the Garmin trappings: */
  clip-path: inset(45px 0px 16px 0px);
  margin-top: -45px;
}

div.garmin-caption {
    /* must sit inside img-container for alignment */
    position: absolute;
    background:  #eee;
    border-radius: 8px;
    top:     3rem;
    right:   2rem;
    padding: 6px;
}



img.item {
  width: 108%;
  margin: -10px;
}

button.icon {
  width: 150px;
  height: 150px;
  padding: 20px;
  margin: 30px;
}

/* for header */
img.img-logo {
  max-width: 4rem;
  padding-right: 10px;
  float: unset;
  margin-bottom: unset;
}

/* for partner logos in footer */
img.partner {
  float: unset;
  width: unset;
  border-radius: unset;
  max-height: 60px;
  padding: 20px;
}

.footer {
    border-top: 5px solid #ccc;
}

img.footer-icon {
  height: 40px;
  float: right;
  padding: 3rem;
  opacity: .5;
}

.footer-text {
  font-size: 12px;
  color: #666;
}


div.open {
  position: absolute;
  top: 1rem;
  left: 1rem;
  cursor: s-resize;
  background: #8888;
  color: white;
  opacity: 70%;
  height: 1.5rem;
  width: 1.5rem;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 50%;
  border-color: black;
  border-width: 1px;
  font-weight: 900;
}





/*******************/
/* Table.js styles */
/*******************/


div.table {
  display: grid;
  gap:     10px;
  padding: 10px;
}
div.table-header {
  font-weight: 800;
}

span.column-hide {
  color:  gray;
  cursor: pointer;
}
span.column-show {
  color:  blue;
  cursor: pointer;
}

div.hiddenCols {
  padding: 10px;
}

div.showCol {
  display: inline;
  color:  gray;
  cursor: pointer;
  font-weight: 800;
  margin: 0px 10px 20px 0px;
}

div.table-line {
  grid-column: 1/-1;
}

hr.table-line {
  grid-column: 1/-1;
  margin-block-start: 0em;
  margin-block-end: 0em;
  border: 0.5px solid #eee;
}
p.hr {
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-left: 40%;
  opacity: 80%;
}

div.newrow {
  grid-column-start: 1;
  overflow-wrap: break-word;
}

div.table-cell {
  overflow-wrap: break-word;
}

.meter {
    background: linear-gradient(to top right, #70ff70 -20%, #22aa22 160%);
}

.renew {
    background: linear-gradient(to top right, #7070ff -20%, #1010ee 160%);
}

.shift0 {
    background: linear-gradient(to top right, orange -20%, darkorange 160%);
}

.edol {
    background: linear-gradient(to top right, #70a0ff -20%, #80c0dd 160%);
}

.feature {
  transition: all 0.3s ease;
}
