/* -----------------------------------------------------------
// Project:   Flight Logbook Generator / GPXparser CSS
// Author:    Christian Marck
// Date:      14.12.2021 7:50 CET
// -----------------------------------------------------------
*/


/* Basics
-----------------------------------------------------------*/
html { scroll-behavior: smooth }
.hide { display: none }
.show-block { display: block }
.show-inline-block { display: inline-block }
.show-flex { display: flex }
.bold { font-weight: bold }
.italic { font-style: italic }
.underline { text-decoration: underline }
.line-through { text-decoration: line-through }
.text-left { text-align: left }
.text-center { text-align: center }
.text-justify { text-align: justify }
.text-right {  text-align: right }
.float-left { float: left }
.float-right { float: right }
.float-clear { clear: both }
.parallax {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-attachment: fixed !important;
}
.overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.overlay.dark {
  background-color: rgba(0,0,0,0.4);
}
.overlay.bright {
  background-color: rgba(255,255,255,0.6);
}


/* Navi
-----------------------------------------------------------*/
#navicontainer {
  z-index: 111;
}
.navi {
  -webkit-transition: all 0.25s;
  z-index: 111;
  cursor: pointer;
  width: 100%;
  background-color: transparent;
  background-color: rgba(255, 255, 255, 0.1); /* Comment out? */
  height: 65px;
  left: 0;
  top: 0;
  position: absolute;
}
.navi .icon {
  -webkit-transition: all 0.25s;
  position: absolute;
  width: 30px;
  height: 1px;
  right: 15px;
  top: 30px;
  background-color: white;
}
.navi .icon:before, .navi .icon:after {
  -webkit-transition: all 0.25s;
  width: 30px;
  height: 1px;
  right: 0;
  background: white;
  position: absolute;
  content: "";
}
.navi .icon:before {
  top: -10px;
}
.navi .icon:after {
  top: 10px;
}
.navi:hover {
  background-color: rgba(255, 255, 255, 0.3); /* Comment out? */
}
.navi:hover .icon:before {
  top: -12px;
}
.navi:hover .icon:after {
  top: 12px;
}
.navi.active  {
  background-color: #fff;
}
.navi.active .icon {
  transform: rotate(180deg);
  background-color: transparent;
  right: 10px;
}
.navi.active .icon:before, .navi.active .icon:after {
  top: 0;
}
.navi.active .icon:before {
  -webkit-transform: rotate(45deg);
  background-color: #212121;
}
.navi.active .icon:after {
  -webkit-transform: rotate(-45deg);
  background-color: #212121;
}
#menu {
  z-index: 111;
  -webkit-transition: all 0.5s;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 65px;
  font-size: 22px;
  width: 100%;
  height: 0;
  overflow: hidden;
}
#menu ul {
  list-style: none;
  padding: 0;
}
#menu li:first-child {
  margin-top: 0;
}
#menu li {
  -webkit-transition: all 0.2s;
  margin-top: 20px;
  padding: 5px 0;
  color: white;
}
#menu a {
  padding: 8px;
  -webkit-transition: all 0.25s;
  cursor: pointer;
}
#menu a:hover {
  letter-spacing: 0.2em;
  text-decoration: underline;
}
#menu.open {
  height: auto;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
}

/* Content
-----------------------------------------------------------*/
header {
  padding-top: 125px !important;
}
@media only screen and (max-width: 768px) {
  header {
    padding-top: 6rem !important;
  }
}

.logo {
  max-width: 100px;
  box-shadow: 0px 0px 10px 5px rgba(255,255,255,0.5); 
  border-radius: 5px; 
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}
.logo:hover {
  box-shadow: 0px 0px 10px 5px rgba(255,255,255,0.9);
  border: 1px solid #fff;
  transition: all 0.5s ease;  
}
@media only screen and (max-width: 1017px) {
  .logo {
  	max-width: 75px;
  }
}

.btn.download {
  background-color: white;
  color: #157b75;
}
.btn.download:hover {
  text-decoration: underline !important;
}

#submit {
  font-weight: bold;
  color: #fff;
  background-color: #aaa;
  border: 1px solid #eff0f1 !important;
  border-radius: 5px;
  text-align: center;
  padding: 15px;
  width: 100%;
  margin-top: 15px;
  opacity: 0.6;
  transition: all 0.3s ease;
}
#submit:hover {
  background-color: #2196F3;
  opacity: 1;
  transition: all 0.3s ease;
}

h1 a {
  color: #fff;
}

pre {
  margin-top: 25px;
}

.divider {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: solid 1px #eff0f1;
}

.options-wrap {
border: 1px solid #eff0f1;
padding: 10px;
border-radius: 5px;
}

.options {
margin-bottom: 10px !important;
margin-top: 20px !important;
}

/* Content tables
-----------------------------------------------------------*/
.table-responsive {
  overflow-x: auto;
}
.content-table {
  display: inline-table !important;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  min-width: 100%;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.content-table thead tr {
  background-color: #157b75;
  color: #fff;
  text-align: left;
  font-weight: bold;
}

.content-table.latest thead tr {
  background-color: #155799;
}

.content-table th,
.content-table td {
  padding: 12px 15px;
}

.content-table tbody tr {
  border-bottom: 1px solid #ddd;
}

.content-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.content-table tbody tr:last-of-type {
  border-bottom: 2px solid #157b75;
}
.content-table.latest tbody tr:last-of-type {
  border-bottom: 2px solid #155799;
}

.content-table tbody tr.active-row {
  font-weight: bold;
  color: #157b75;
}
.content-table.latest tbody tr.active-row {
  color: #155799;
}


/* 2D Map
-----------------------------------------------------------*/
.mapwrap {
  margin-top: -75px;
}

#map {
  min-height: 500px; 
  width: 100%;
  border-radius: 0.3rem;
}

.ui-button {
  background-color: #fff;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
  margin: 10px;
  padding: 0 0.5em;
  font: 400 18px Roboto, Arial, sans-serif;
  overflow: hidden;
  height: 40px;
  cursor: pointer;
}
.ui-button:hover {
  background: #ebebeb;
}

/* 3D Map
-----------------------------------------------------------*/
.map3dlogo {
  max-width: 85px;
  box-shadow: 0px 0px 10px 5px rgba(255,255,255,0.5);
  border-radius: 5px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;

  position: absolute;
  z-index: 99999;
  top: 15px;
  right: 15px;
}
.map3dlogo:hover {
  box-shadow: 0px 0px 10px 5px rgba(255,255,255,0.9);
  border: 1px solid #fff;
  transition: all 0.5s ease;
}
@media only screen and (max-width: 768px) {
  .map3dlogo {
    max-width: 50px;
  }
}

#heartrate {
  position: absolute;
  z-index: 99999;
  bottom: 150px;
  right: 150px;
}

/* 3D Map loader
-----------------------------------------------------------*/
*.hidden {
  display: none !important;
}

div.loading{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(16, 16, 16, 0.5);
}

.loading-message {
  color: #fff;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: .25rem;
  font-size: 14px;
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.remaining {
  color: #159957;
  font-weight: bold;
  text-shadow: 0 1px 0 #fff;
}

@-webkit-keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-webkit-keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-ms-keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-moz-keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-webkit-keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@-o-keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loader-ring-anim {
  0% {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
.loader-ring-css {
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 200px;
  height: 200px;
}
.loader-ring-css > div {
  position: absolute;
  display: block;
  width: 160px;
  height: 160px;
  top: 20px;
  left: 20px;
  border-radius: 80px;
  box-shadow: 0 6px 0 0 #ffffff;
  -ms-animation: loader-ring-anim 1s linear infinite;
  -moz-animation: loader-ring-anim 1s linear infinite;
  -webkit-animation: loader-ring-anim 1s linear infinite;
  -o-animation: loader-ring-anim 1s linear infinite;
  animation: loader-ring-anim 1s linear infinite;
}

/* Toggle Switches
-----------------------------------------------------------*/
.toggle-switch {
  position: relative;
}

.toggle-switch:last-child {
 margin-bottom: 0;
} 
@media only screen and (max-width: 750px) {
  .toggle-switch {
    margin-bottom: 30px !important;
  }
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  transform: scale(0.7);
  margin-left: -10px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}
input:checked + .slider {
  background-color: #2196F3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

.visualize {
  position: absolute; /* in relation to '.toggle-switch' */
  top: 5px;
}
.warning {
  color: #999; !important;
  font-size: 14px;
}

/* Alerts
-----------------------------------------------------------*/
.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    border-radius: .25rem;
    font-size: 14px;
}

.alert.info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
  opacity: 0.5;
} 

/* Footer
-----------------------------------------------------------*/
footer .text-italic {
  font-color: #aaa;
}

.love {
  color: #157b75;	
}
