/* HA3FLT, 2020-2026 */
body {
  background-color: var(--colorBodyBackground);
  color: var(--colorWhite);
  padding: 0.2rem;
}

/* Visible on Android when touching the links */
*:focus:not(.focus-visible) {
  outline: 0.15rem solid var(--colorGold);
  /*outline:none;
  border: 0.15rem solid var(--colorGold);
  border-radius: 3px;*/
}
/* Normal focus rectangle */
.focus-visible {
/*  outline: var(--colorDivBorderTurcuoise) solid 0.25rem;*/
/*outline:none;*/
}

.media-aware-flex, .media-aware-horiz-flex {
  display: flex;
  flex: auto;
  flex-direction: row;
}
.media-aware-clear {
  clear: none;
}

.container-nav {
  padding: 0;
  margin: auto;
  width: 95%;
}

h1 {
  padding: 0;
  margin: 0.3125rem;
  padding-bottom: 1.25rem;
  display: block;
}
h2 {
  padding: 0;
  margin: 0.3125rem;
  padding-bottom: 1rem;
}

hr {
  clear:both;
  height: 0.0625rem;
  border: none;
  border-top: 0.0625rem dashed var(--colorGold);
  margin-top: 1rem;
  margin-bottom:1rem;
}

.myHeader {
  margin: auto;
  width: auto;
  border: 0 solid gray;
  text-align: center;
}
.myFooter {
  margin: auto;
  width: auto;
  border: 0 solid gray;
  text-align: center;
  font-size: 0.8em;
  color: var(--colorFooter);
  background-color: var(--colorBodyBackground) !important;
}

.myImg { 
  margin: 0;
  border: 0.0625rem var(--colorImgBorder) solid;
  border-radius: 0.125rem;
  padding: 0px;
} 
.myImg25, .myImg33 { 
  float: left;
  margin: 1em;
  margin-left: 0.5em;
  border: 0.0625rem var(--colorImgBorder) solid;
  border-radius: 0.125rem;
  padding: 0.125rem;
  width: 25%;
} 
.myImg33 { 
  width: 33%;
} 
.myImgRight12, .myImgRight20, .myImgRight25, .myImgRight33, .myImgRight40, .myImgRight50,
.myFigureRight40 { 
  float: right;
  margin: 1em;
  border: 0.0625rem var(--colorImgBorder) solid;
  border-radius: 0.125rem;
  padding: 0.125rem;
  width: 20%;
}
.myImgRight12 { 
  width: 12.5%;
}
.myImgRight25 { 
  width: 25%;
}
.myImgRight33 { 
  width: 33%;
}
.myImgRight40 { 
  width: 40%;
}
.myImgRight50 { 
  width: 50%;
}

.myFigureRight40 {
  float: right;
  margin: 1em;
  border: none;
  padding: 0.125rem;
  width: 40%;
}
.myFigureRight40Border {
  border: 0.0625rem var(--colorImgBorder) solid;
  border-radius: 0.125rem;
}

.my {
  margin: auto;
  margin-left: 0.15rem;
  margin-right: 0.15rem;
  width: auto;
  background-color: var(--colorDivBackgroundBlueBase);
  border-radius: 0.5625rem;
  padding: 0.5625rem;
  display: block;        
  /*max-width: 1200px;*/
}

.myRed {
  border: 0.1875rem var(--colorDivBorderRed) solid;
}
.myGold {
  border: 0.1875rem var(--colorDivBorderGold) solid;
}
.myTurcuoise {
  border: 0.1875rem var(--colorDivBorderTurcuoise) solid;
}
.myBlackGold {
  border: 0.1875rem var(--colorDivBorderGold) solid;
  background-color: #000000 !important;
}
.myBlueGold {
  border: 0.1875rem var(--colorDivBorderGold) solid;
  background-color: var(--colorDivBackgroundBlue) !important;
}
.myBrownishTurcuoise {
  border: 0.1875rem var(--colorDivBorderTurcuoise) solid;
  background-color: #181400 !important;
}

.colorWhite {
  color: var(--colorWhite);
}
.colorBrightWhite {
  color: var(--colorBrightWhite);
}
.colorGray {
  color: var(--colorGray);
}
.colorRed {
  color: var(--colorRed);
}
.colorGold {
  color: var(--colorGold);
}
.colorTurcuoise {
  color: var(--colorTurcuoise);
}

.myBreadCrumb {
}
.myBreadCrumb ol {
  display: flex;
  margin: 0;
  padding: 0;
}
.myBreadCrumb li::before {
  content: '>';
  margin: 0.33rem;
}
.myBreadCrumb li {
  margin: 0;
  padding: 0;
}

.jsSpanButton {
  cursor: pointer;
  font-family: var(--font-stack);
  font-size: var(--font-size);
  background-color: inherit;
  color: var(--primary-color);
  border: none;
  margin: 0;                                                   	
  padding: 0;
}

.jsSpanButton:hover {
  background-color: var(--primary-color);
  color: var(--colorDivBackgroundBlue);
}

.jsSpanButtonRevealed {
  cursor: normal;
  font-family: var(--font-stack);
  font-size: var(--font-size);
  background-color: inherit;
  color: var(--colorWhite);;
  border: none;
  margin: 0;                                                   	
  padding: 0;
}

.jsSpanButtonRevealed:hover {
  background-color: var(--colorDivBackgroundBlue);
  color: var(--colorWhite);;
}

.gallery {
  width: 95%;
  margin: auto;
  padding-bottom: 1rem;
  text-align: center;
}
.gallery img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 95vh;
  margin: auto;
  margin-bottom: 2em;
  padding: 0;
  border: 0.3125rem rgb(152,152,152) solid;
  border-radius: 0.8125rem;
}
.gallery-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 95%;
  max-height: 95vh;
  margin: auto;
  margin-bottom: 2em;
  padding: 0;
  border: 0.3125rem rgb(152,152,152) solid;
  border-radius: 0.0625rem;
}

/* Modal window */
.modal-window {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
}
.modal-window:target {
  opacity: 1;
  pointer-events: auto;
}
.modal-window>div {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  margin: 10vh auto;
  padding: 0;
/*  background: var(--colorBodyBackground);
  border: 0.15rem solid var(--colorGold);
  border-radius: 0.33rem;*/
  text-align: center;
}
.modal-window img {
  position: relative;
  margin: 0.5rem;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 66.7vh;
}
.modal-close {
  position: absolute;
  font-size: 0.85rem;
  line-height: 1.25rem;
  top: 0;
  right: 0.5rem;
  margin-top: 0.5rem;
  text-align: right;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.modal-content {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
/* Modal window */

.accessibility-aid {
  height: 1px;
  width: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  position: absolute;
  margin: 0;
}
.accessibility-aid:focus {
  height: auto;
  width: auto;
  clip: auto;
  z-index: 1;
  top: 0;
  line-height: 3.0625rem;
  padding: 0 0.625rem;
  background: #f5f5f5;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.clublog-container {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  /*padding-top: 34%;*/ /* Aspect Ratio must follow iframe's ratio */
}
/* align="top" frameborder="0" height="400" name="iframe" scrolling="no" */

.clublog-responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  border: none;
  width: 540px;
  height: 420px;
  margin-left: auto; 
  margin-right: auto; 

  -ms-zoom: 1.25;
  -moz-transform: scale(1.25);
  -moz-transform-origin: 50% 0;
  -o-transform: scale(1.25);
  -o-transform-origin: 50% 0;
  -webkit-transform: scale(1.25);
  -webkit-transform-origin: 50% 0;
}

.sfi-grid-container {
  display: grid;
  grid-template-columns: repeat(13, 1fr) auto auto;
  gap: 5px;
  padding: 5px;
  overflow-x: auto;
  color: var(--colorTurcuoise);
}

.sfi-grid-container > div {
  font-size: 1.2em;
  margin: 0;
  padding: 5px;
  text-align: center;
}

.sfi-grid-container > div:not(.sfi-grid-header):not(.sfi-grid-item1) {
  font-family: sans-serif;
  font-size: 1em;
  background-color: black;
  color: var(--colorGold);
}

.sfi-grid-item1 {
  grid-column-start: 1;
  grid-column-end: 1;
}
.sfi-grid-item-highlited {
  background-color: #03543d !important;
  color: var(--colorWhite) !important;
}

/* TODO: Use x:y ratio instead, at least for the iframe */
@media screen and (max-width: 800px) {
  .media-aware-flex {
    flex-direction: column;
  }
  .media-aware-flex-element {
    max-width: 95% !important;
    width: 95% !important;
  }
  .media-aware-horiz-flex {
  }
  .media-aware-clear {
    clear: both;
  }

  .my {
    margin-left: 0.05rem;
    margin-right: 0.05rem;
  }

  .myImg33, .myImgRight20, .myImgRight25,
  .myImgRight33, .myImgRight40, .myImgRight50 { 
    display: block;
    width: 95%;
  }
  .myFigureRight40 { 
    display: block;
    width: 97.5%;
  }

  .clublog-responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: none;
    width: 540px;
    height: 420px;
    margin-left: auto; 
    margin-right: auto; 
  }
}
