/*
  Author:  Dominik Richstein
  Created: 30.03.2022
*/

/*-----------------------------
  COMMON
-----------------------------*/
@font-face {
  font-family: 'jaapokki';
  src: url('../fonts/jaapokki-regular.woff') format('woff');
}

[class*="col-"] {
  padding-left: 0px;
  padding-right: 0px;
}

html, body {
  height: 100%;
}

.contentbox {
  /**
  * This needs html and body set to 100 vert. height. The goal is to place
  * the footer exactly at the bottom after the content container, if 
  * the actual content has less height than the viewport. Therefore 
  * expand the content height to 100%, but subtract the height of the
  * footer (108px) and the height of the navbar (54px).
  */
  min-height: calc(100% - 54px - 80px);
}

.scrollbox {
  height: calc(100vh - 54px - 80px);
  overflow-x: hidden;
  overflow-y: scroll;
}

.padbox {
  padding-top: 3em;
  padding-bottom: 1.5em;
  padding-left: 1em;
  padding-right: 1em;
}

.centerbox {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: -webkit-box;
  display: -moz-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.inputbox {
  margin: 0px;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}


.rotateY-0 {
  transform: rotateY(0deg);
}

.rotateY-180 {
  transform: rotateY(180deg);
}

.rotateX-left {
  -webkit-transform: rotate(-90deg) translateY(10px);
  -moz-transform: rotate(-90deg) translateY(10px);
  -ms-transform: rotate(-90deg) translateY(10px);
  -o-transform: rotate(-90deg) translateY(10px);
  transform: rotate (-90deg) translateY(10px);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

.rotateX-right {
  -webkit-transform: rotate(90deg) translateY(20px);
  -moz-transform: rotate(90deg) translateY(20px);
  -ms-transform: rotate(90deg) translateY(20px);
  -o-transform: rotate(90deg) translateY(20px);
  transform: rotate (90deg) translateY(20px);
  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
}

h1, h2, h3, h4, h5, h6 {
  font-family: jaapokki;
  color: black;
  font-weight: bold;
  padding: 5px;
}

h1 {
  font-size: 4em;
}

h2 {
  font-size: 3em;
}

h3 {
  font-size: 2em;
}

svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.svg-push-text {
  margin-right: 10px;
}

.btn {
  color: white;
  background-color: #222;
  border-color: #222;
}

.btn:hover {
  color: white;
  background-color: #666;
  border-color: #666;
}

p {
  text-align: justify;
  text-justify: auto;
}

.wallpaper {
  background-color: black;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto;
}

.popover .col-4 {
  width: 75px;
}

.popover .col-8 {
  min-width: 150px;
}

/*-----------------------------
  NAVBAR
-----------------------------*/
.navbar {
  height: 54px;
  font-family: jaapokki;
  color: white;
  font-size: 14px;
  background-color: #222;
  margin-bottom: 0px;
  border: 0px;
  border-radius: 0px;
  padding: 0px;
}

.navbar .nav-link {
  padding-top: 17px;
  padding-bottom: 16px;
  padding-left: 15px;
  padding-right: 15px;
}

.navbar.fadeIn {
  opacity: 0;
}

.navbar img {
  max-height: 44px;
}

.navbar a:hover {
  background-color: #777777 !important;
}

.navbar .active {
  background-color: #777777;
  color: white !important;
}

.navbar li {
  width: 50%;
  background-color: #222;
}

/*-----------------------------
  FOOTER
-----------------------------*/
footer {
  height: 80px;
  font-family: jaapokki;
  font-size: 14px;
  color: #9d9d9d;
  background-color: #222;
}

footer .centerbox {
  height: 40px;
}

footer .centerbox a {
  color: #9d9d9d;
  text-decoration: none;
}

footer .footer-line {
  margin-top: -1px;
  border-bottom: 1px solid #9d9d9d;
}

footer a:hover {
  color: #777777 !important;
}

/*-----------------------------
  SIDEBAR
-----------------------------*/
.side {
  display: flex;
  flex-direction: row;
  position: absolute;
  z-index: 100;
}

.sidebar-toggler {
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

.sidebar-toggler:focus {
  box-shadow: none;
}

.sidebar {
  height: 100%;
  width: 200px;
  font-family: jaapokki;
  font-size: 14px;
  color: white;
  background-color: #222;
  flex-shrink: 0;
  flex-direction: column;
  display: flex;
  padding-left: 10px;
  padding-right: 10px;
}

.sidebar .banner {
  font-size: 24px;
}

.sidebar a {
  color: white;
  display: flex;
  text-decoration: none;
}

.sidebar .user {
  display: flex;
  align-items: center;
}

.sidebar .user .userinfo {
  display: flex;
  align-items: center;
  font-weight: bold;
  overflow: hidden;
}

.sidebar .user .userinfo img {
  height: 32px;
  width: 32px;
  border-style: solid;
  border-radius: 50%;
  border-width: 2px;
  border-color: white;
}

.sidebar .user .logout {
  margin-left: auto;
  padding-right: 10px;
}

/*-----------------------------
  LANDING
-----------------------------*/
.landing .wallpaper {
  font-family: jaapokki;
  color: white;
  opacity: 100;
  font-weight: bold;
  text-align: center;
  background-size: cover;
}

@media (orientation: portrait) {
  .landing .wallpaper {
    background-image: url("/img/landing/landing_vertical.png");
    font-size: 6vh;
  }
}

@media(orientation: landscape) {
  .landing .wallpaper {
    background-image: url("/img/landing/landing_horizontal.png");
    font-size: 7vw;
  }
}

.karate .section {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
  text-align: center;
}

.karate .flipper {
  width: 100%;
  height: 80%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 1s;
}

.karate .front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
  margin: 0;
  display: block;
  background-color: rgba(255, 255, 255, 0);
  backface-visibility: hidden;
  background-size: contain;
}

.karate .back {
  transform: rotateY(180deg);
  font-size: 1.8vh;
  padding: 40px;
  align-items: center;
  justify-content: center;
  display: flex;
}

.training .trainer {
  height: 100%;
  width: 100%;
  font-family: jaapokki;
  color: white;
  text-align: center;
  font-size: 0.75em;
}

.training .wallpaper {
  background-size: contain;
  background-color: rgba(0, 0, 0, 0);
  height: 80%;
  width: 90%;
  margin: auto;
}

.news span {
  width: 100px;
}

/*-----------------------------
  XS - Phone Potrait
-----------------------------*/
@media (max-width: 575px) {
  .landing .wallpaper {
    background-attachment: scroll;
    height: 100vh;
  }

  .separator .wallpaper {
    background-attachment: scroll;
    height: 300px;
  }

  .about .logo {
    display: none;
  }

  .karate .section {
    height: 300px;
  }

  .karate .flipper {
    height: 250px;
  }

  .training .wallpaper {
    height: 100px;
  }
}

/*-----------------------------
  SM - Phone Landscape
-----------------------------*/
@media (min-width: 576px) and (max-width: 767px) {
  .landing .wallpaper {
    background-attachment: scroll;
    height: 100vh;
  }

  .separator .wallpaper {
    background-attachment: scroll;
    height: 350px;
  }

  .news {
    min-height: 450px;
  }

  .about {
    min-height: 450px;
  }

  .about .logo {
    display: none;
  }

  .karate {
    min-height: 950px;
  }

  .training {
    min-height: 450px;
  }

}

/*-----------------------------
  MD - Tablet
-----------------------------*/
@media (min-width: 768px) and (max-width: 991px) {
  .landing .wallpaper {
    background-attachment: scroll;
    min-height: 100vh;
  }

  .separator .wallpaper {
    background-attachment: scroll;
    height: 500px;
  }

  .news {
    min-height: 400px;
  }

  .about {
    min-height: 400px;
  }

  .karate {
    min-height: 650px;
  }

  .training {
    min-height: 650px;
  }

}

/*-----------------------------
  LG - Desktops
-----------------------------*/
@media (min-width: 992px) {
  .landing .wallpaper {
    background-attachment: fixed;
    min-height: 100vh;
  }

  .separator .wallpaper {
    background-attachment: fixed;
    height: 50vh;
  }

  .news {
    min-height: 60vh;
  }

  .about {
    min-height: 60vh;
  }

  .karate {
    min-height: 75vh;
  }

  .training {
    min-height: 60vh;
  }

}