/**
  SEE FOR CSS SELECTORS https://www.w3schools.com/cssref/css_selectors.asp
*/

/* SELFHOSTING MATERIAL ICONS 
  https://developers.google.com/fonts/docs/material_icons
*/
@font-face {
  font-family: 'Material Symbols';
  font-style: normal;
  font-weight: normal;
  src: local('MateriaSymbols-Outlined'),
    /* Check if font is already installed locally on the client */ local('MateriaSymbols-Outlined'),
    url(../fonts/Material_Symbols/MaterialSymbols-Outlined.woff2) format('woff2'),
    url(../fonts/Material_Symbols/MaterialSymbols-Outlined.ttf) format('truetype');
}

.material-symbols {
  font-family: 'Material Symbols';
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

@font-face {
  font-family: AlmendraSC;
  src: local('AlmendraSC-Regular'), url(../fonts/Almendra_SC/AlmendraSC-Regular.woff2) format('woff2'),
    url(../fonts/Almendra_SC/AlmendraSC-Regular.woff) format('woff'),
    url(../fonts/Almendra_SC/AlmendraSC-Regular.ttf) format('truetype');
}

@font-face {
  font-family: Anton;
  src: local('Anton-Regular'), url(../fonts/Anton/Anton-Regular.woff2) format('woff2'),
    url(../fonts/Anton/Anton-Regular.woff) format('woff'), url(../fonts/Anton/Anton-Regular.ttf) format('truetype');
}

@font-face {
  font-family: AntonSC;
  src: local('AntonSC-Regular'), url(../fonts/Anton_SC/AntonSC-Regular.woff2) format('woff2'),
    url(../fonts/Anton_SC/AntonSC-Regular.woff) format('woff'),
    url(../fonts/Anton_SC/AntonSC-Regular.ttf) format('truetype');
}

@font-face {
  font-family: DMRegular;
  src: local('DM-Regular'), url(../fonts/DM/DMSerifDisplay-Regular.woff2) format('woff2'),
    url(../fonts/DM/DMSerifDisplay-Regular.woff) format('woff'),
    url(../fonts/DM/DMSerifDisplay-Regular.ttf) format('truetype');
}

@font-face {
  font-family: DMItalic;
  src: local('DMSerifDisplay-Italic'), url(../fonts/DM/DMSerifDisplay-Italic.woff2) format('woff2'),
    url(../fonts/DM/DMSerifDisplay-Italic.woff) format('woff'),
    url(../fonts/DM/DMSerifDisplay-Italic.ttf) format('truetype');
}

@font-face {
  font-family: DoppioOne;
  src: local('DopioOne-Regular'), url(../fonts/Doppio_One/DoppioOne-Regular.woff2) format('woff2'),
    url(../fonts/Doppio_One/DoppioOne-Regular.woff) format('woff'),
    url(../fonts/Doppio_One/DoppioOne-Regular.ttf) format('truetype');
}

@media only screen and (max-width: 400px) {
  #pageTwo {
    padding: 0 1rem !important;
  }
  #pageThree .top-teaser-section nav {
    top: 0% !important;
  }

  #pageThree .top-teaser-section nav .nav-button {
    margin-top: 0.4rem !important;
    padding: 0.2rem 0.5rem !important;
    font-size: 1.2rem !important;
    width: 65% !important;
  }
}

@media only screen and (min-width: 401px) and (max-width: 600px) {
  #pageThree .top-teaser-section nav {
    top: 10% !important;
  }

  #pageThree .top-teaser-section nav .nav-button {
    margin-top: 0.7rem !important;
    font-size: 1.3rem !important;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  [class*='col-'] {
    width: 100%;
  }

  .row {
    flex-direction: column;
  }

  .column {
    width: 100%;
    display: block;
  }

  .hide-on-small {
    display: none;
  }

  .aboutus-section {
    flex-wrap: wrap;
  }

  .spacer-horizontal {
    margin: 1rem 0 !important;
  }

  .footer {
    padding: 0.2rem 0.5rem 0.2rem 0 !important;
  }
}

/* iPhone 12 -> 1179×2556 pixels at 460ppi */
@media only screen and (max-width: 395px) and (max-height: 860px) {
  .footer {
    padding: 0.2rem 0.5rem 0.2rem 0 !important;
  }
}

/* iPhone 15 and iPhone 15 Pro -> 1179×2556 pixels at 460ppi */
@media only screen and (width: 393px) and (height: 852px) and (-webkit-device-pixel-ratio: 3) {
}

/* iPhone 15 Plus and iPhone 15 Pro Max -> 1284×2778 pixels at 460ppi */
@media only screen and (width: 430px) and (height: 932px) and (-webkit-device-pixel-ratio: 3) {
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 601px) {
  .col-s-1 {
    width: 8.33%;
  }
  .col-s-2 {
    width: 16.66%;
  }
  .col-s-3 {
    width: 25%;
  }
  .col-s-4 {
    width: 33.33%;
  }
  .col-s-5 {
    width: 41.66%;
  }
  .col-s-6 {
    width: 50%;
  }
  .col-s-7 {
    width: 58.33%;
  }
  .col-s-8 {
    width: 66.66%;
  }
  .col-s-9 {
    width: 75%;
  }
  .col-s-10 {
    width: 83.33%;
  }
  .col-s-11 {
    width: 91.66%;
  }
  .col-s-12 {
    width: 100%;
  }

  .hide-on-large-phones-and-up {
    display: none;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 767px) {
  .hide-on-small-and-premedium {
    display: none;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .col-1 {
    width: 8.33%;
  }
  .col-2 {
    width: 16.66%;
  }
  .col-3 {
    width: 25%;
  }
  .col-4 {
    width: 33.33%;
  }
  .col-5 {
    width: 41.66%;
  }
  .col-6 {
    width: 50%;
  }
  .col-7 {
    width: 58.33%;
  }
  .col-8 {
    width: 66.66%;
  }
  .col-9 {
    width: 75%;
  }
  .col-10 {
    width: 83.33%;
  }
  .col-11 {
    width: 91.66%;
  }
  .col-12 {
    width: 100%;
  }

  .hide-on-medium-up {
    display: none !important;
  }
}

@media only screen and (max-width: 900px) and (min-width: 601px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 1199px) {
  .hide-on-medium-and-down {
    display: none;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .col-l-1 {
    width: 8.33%;
  }
  .col-l-2 {
    width: 16.66%;
  }
  .col-l-3 {
    width: 25%;
  }
  .col-l-4 {
    width: 33.33%;
  }
  .col-l-5 {
    width: 41.66%;
  }
  .col-l-6 {
    width: 50%;
  }
  .col-l-7 {
    width: 58.33%;
  }
  .col-l-8 {
    width: 66.66%;
  }
  .col-l-9 {
    width: 75%;
  }
  .col-l-10 {
    width: 83.33%;
  }
  .col-l-11 {
    width: 91.66%;
  }
  .col-l-12 {
    width: 100%;
  }

  .margin-left-right-large {
    margin-left: 1% !important;
    margin-right: 1% !important;
  }

  .margin-left-right {
    margin-left: 1% !important;
    margin-right: 1% !important;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1500px) {
  .col-sl-1 {
    width: 8.33%;
  }
  .col-sl-2 {
    width: 16.66%;
  }
  .col-sl-3 {
    width: 25%;
  }
  .col-sl-4 {
    width: 33.33%;
  }
  .col-sl-5 {
    width: 41.66%;
  }
  .col-sl-6 {
    width: 50%;
  }
  .col-sl-7 {
    width: 58.33%;
  }
  .col-sl-8 {
    width: 66.66%;
  }
  .col-sl-9 {
    width: 75%;
  }
  .col-sl-10 {
    width: 83.33%;
  }
  .col-sl-11 {
    width: 91.66%;
  }
  .col-sl-12 {
    width: 100%;
  }

  .margin-left-right-large {
    margin-left: 12.33% !important;
    margin-right: 12.33% !important;
  }

  .margin-left-right {
    margin-left: 12.33% !important;
    margin-right: 12.33% !important;
  }

  #pageThree .top-teaser-section img {
    aspect-ratio: 5 / 2 !important;
    object-position: 0 20% !important;
  }
}

.z-depth-0 {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* 2dp elevation modified*/
.z-depth-1 {
  -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12),
    0 1px 5px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

/* 6dp elevation modified*/
.z-depth-2 {
  -webkit-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12),
    0 2px 4px -1px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

/* 12dp elevation modified*/
.z-depth-3 {
  -webkit-box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 5px 5px -3px rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
}

/* 16dp elevation */
.z-depth-4 {
  -webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
    0 8px 10px -7px rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
    0 8px 10px -7px rgba(0, 0, 0, 0.2);
}

/* 24dp elevation */
.z-depth-5 {
  -webkit-box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12),
    0 11px 15px -7px rgba(0, 0, 0, 0.2);
  box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12),
    0 11px 15px -7px rgba(0, 0, 0, 0.2);
}

:root {
  --primary-color: 146, 184, 95; /* Green #92b85f */
  --secondary-color: 217, 217, 217; /* DARK GREY */
  --accent-color: 43, 44, 45; /* Grey #6e7072 */
  --secondary-accent-color: 221, 212, 185; /* Yellowish #ddd4b9 */
  --primary-font-color: 255, 255, 255; /* WHITE */
  --secondary-font-color: 0, 0, 0; /* BLACK */
}

/*
  When input is filled with text, a blueish background color is applied.
  Prevent this with this hack
  https://stackoverflow.com/questions/61083813/how-to-avoid-internal-autofill-selected-style-to-be-applied
*/
input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  /* Remove blue outline when focusing on element */
  outline: none;
}

* {
  box-sizing: border-box;
}
*:before,
*:after {
  box-sizing: inherit;
}
/* Column container */
.row {
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: DMRegular;
  font-weight: 400;
  font-size: 1.1rem;
  color: rgb(var(--primary-font-color));
  background-color: rgba(var(--primary-color), 1);
  transition: background-color 1s 0.5s;
}
body.transition {
  background-color: rgba(150, 159, 139, 1);
}
body.final {
  background-color: black;
  transition: background-color 1s;
}
footer {
  display: flex;
  padding-top: 10px;
  padding-bottom: 10px;
  /* position: fixed; 
  bottom: 0; */
  width: 100%;
  width: -moz-available; /* For Mozzila */
  width: -webkit-fill-available; /* For Chrome */
  width: stretch; /* Unprefixed */
  transition: all 0.4s;
}

footer.static {
  position: fixed !important;
  bottom: 0 !important;
}

.btn,
a {
  color: rgba(var(--secondar-font-color), 1);
  text-decoration: none;
}

a:hover {
  color: rgba(var(--secondary-accent-color), 1);
  cursor: pointer;
}

button {
  border: none;
  padding: 0;
  margin: 0;
  font-family: DMRegular;
  color: rgba(var(--secondary-color), 1);
  font-size: 1rem;
  text-decoration: none;
  background: unset;
  transition: 0.3s;
}

button:hover {
  color: rgba(var(--secondary-accent-color), 1);
  cursor: pointer;
}

button:focus {
  text-decoration: underline;
}

.no-touch {
  pointer-events: none;
}

.no-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.center-in-screen {
  position: fixed;
  top: 3vh;
  left: 50%;
  transform: translate(-50%, 0%);
}

.horizontal-align {
  display: flex;
  align-items: center;
}

.singleline-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.center-text {
  text-align: center;
}

.hide {
  display: none;
}

.no-scroll {
  overflow-y: hidden;
}

.out-faded {
  opacity: 0 !important;
  pointer-events: none;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.card {
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.background-blend-bg-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Make touches go through */
  background-color: rgba(0, 0, 0, 1);
  z-index: 0;
  opacity: 0;
  overflow-y: hidden;
  transition: opacity 1s;
}

.background-blend-bg-active {
  pointer-events: visible;
  z-index: 1100;
  opacity: 0.8;
  cursor: pointer;
}

.footerPages-container-initial {
  position: fixed;
  bottom: 3rem;
  left: 0.5rem;
  z-index: -1;
  opacity: 0;
  font-family: DMRegular;
  color: rgba(var(--secondary-font-color), 1);
  background: white;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  transition: opacity 0s;
}

.footerPages-container-active {
  opacity: 1;
  z-index: 1101;
  transition: opacity 1.5s;
}

/* Footer */
.footer {
  padding: 0.5rem 0.5rem;
  text-align: left;
  opacity: 1;
  transition: opacity 1s 2.1s;
}

#footer-imprint {
  color: rgba(var(--primary-font-color), 1);
}

footer.static #footer-imprint {
  color: rgba(var(--accent-color), 1);
}

#footer-imprint:hover {
  color: rgba(var(--secondary-accent-color), 1);
}

footer.static #footer-imprint:hover {
  color: rgba(var(--secondary-color), 1);
}

/* Start custom part of website */
#mainMobileHeader h3 {
  margin: 0;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0.5rem 2rem;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.12);
  transition: opacity 1.5s 0.5s, background-color 1s;
}

#mainMobileHeader h3.active {
  opacity: 1;
  background-color: rgba(0, 0, 0, 1);
}

.page {
  position: absolute;
  top: 0;
  width: 100%;
}

#pageOne,
#pageTwo,
#pageThree {
  transition: all 0.8s;
}

main #pageOne h1 {
  width: 100%;
  font-family: AlmendraSC;
  text-align: center;
  font-size: 3rem;
}

.banner-section {
  justify-content: space-evenly;
  transition: transform 0.8s;
}

#pageOne.out-faded .banner-section {
  transform: translateX(-100%);
}

.banner-section article {
  padding: 1rem 1rem 0.5rem 1rem;
  background-color: white;
}

.banner-section img {
  width: 100%;
  object-fit: contain;
}

.content-section {
  padding: 0 1rem;
}

h2.lower-rank {
  margin-top: 2.2rem;
}

h2.lower-rank.debug {
  color: red !important;
}

.content-section h2 + p {
  margin: 0;
  margin-top: -1.1rem;
}

.aboutus-section {
  margin-top: 1rem;
  justify-content: space-evenly;
  transition: transform 0.8s;
}

#pageOne.out-faded .aboutus-section {
  transform: translateX(200%);
}

.aboutus-section article {
  position: relative;
  padding: 1rem 1rem 0.5rem 1rem;
  background-color: white;
}

.aboutus-section img {
  width: 100%;
  object-fit: contain;
}

.aboutus-section figcaption {
  position: absolute;
  bottom: 2rem;
  width: 100%;
  padding: 0 2rem 0 0;
  font-family: DMItalic;
  text-align: center;
}

.spacer-horizontal {
  margin: 0 1rem;
}

#pageTwo article {
  margin-top: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: DoppioOne;
  color: rgba(var(--secondary-font-color), 1);
  transition: all 0.7s 0.5s;
}

#pageTwo article i {
  cursor: pointer;
}

.pin-container {
  display: flex;
  flex-direction: row;
}

.pin-digit {
  margin-right: 0.5rem;
  padding: 1.2rem 0.5rem;
  width: 3rem;
  text-align: center;
  border-radius: 3px;
  color: rgba(217, 217, 217, 1);
  font-size: 2rem;
  background-color: rgba(var(--accent-color), 1);
}

#mobileInput {
  height: 0;
  opacity: 0;
}

#pageThree {
  font-family: Anton;
}

#pageThree .top-teaser-section {
  position: relative;
}

#pageThree .top-teaser-section img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 2;
  object-position: 0 5%;
}

#pageThree .top-teaser-section nav {
  position: absolute;
  top: 15%;
  padding: 0 2rem;
}

#pageThree .top-teaser-section nav .nav-button {
  margin-top: 1.2rem;
  padding: 0.3rem 0.5rem;
  background-color: #6f7072;
  font-size: 1.4rem;
  text-align: center;
  width: 75%;
}

#pageThree .top-teaser-section nav h1 {
  font-family: AntonSC;
  margin: 0;
  font-size: 2.5rem;
}

#pageThree .content-article {
  padding: 1.2rem 1.5rem 0.5rem 1.5rem;
  clear: both;
}

#pageThree .content-article p {
  font-family: DoppioOne;
  color: #d9d9d9;
  font-size: 1.2rem;
}

.float-section {
  width: 100%;
}

.float-section img {
  width: 100%;
  max-width: 30rem;
  min-width: 8rem;
  object-fit: contain;
}

.float-section.left img {
  padding-right: 2rem;
}

.float-section.right img {
  padding-left: 2rem;
}

.on-error {
  animation: shake-on-error 0.5s;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  font-size: 1.3rem;
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 10px; /* Rounded borders */
  padding: 0.5rem;
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

#snackbar.info {
  color: black !important;
  background-color: rgba(var(--secondary-accent-color), 0.8) !important;
}

#debugContainer {
  position: absolute;
  top: 1rem;
  padding: 0 1rem 0.5rem;
  font-size: 0.9rem;
  color: black;
  max-height: 0;
  background-color: transparent;
  transition: all 0.5s;
}

#debugContainer.active {
  max-height: 10rem;
  word-wrap: break-word;
  max-width: 100%;
  background-color: rgba(255, 255, 255, 0.7);
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-in-out {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade-out-in {
  0% {
    opacity: 1;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}

@keyframes shake-on-error {
  0% {
    transform: translate(30px, 0);
  }
  20% {
    transform: translate(-30px, 0);
  }
  40% {
    transform: translate(15px, 0);
  }
  60% {
    transform: translate(-15px, 0);
  }
  80% {
    transform: translate(8px, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}
