/*----------------------------------------------------------------------
Description: Main stylesheet of "Ocram one" on www.BitRotation.de
Author: Marco Lammert

Copyright © 2017-2020 by Marco Lammert
----------------------------------------------------------------------*/

/*----------------------------------------
  Resets and overrides
----------------------------------------*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*----------------------------------------
  General Styles
----------------------------------------*/

:root {
  --debug-border-color: #fff;

  --primary-background-color: #050505;
  --primary-text-color: #ccc;
  --primary-heading-color: #3ad7ff;

  --button-color: #3ad7ff;
  --active-button-text-color: #000;

  --indicator-color: #bbb;
  --attention-color: #ffbb33;
  --legal-statement-color: #ccc;
  --flex-footer-text-color: #797979;

  --internal-link-color: #0096ff;
  --internal-link-hover-color: #3affd7;
  --external-link-color: #b76777;
  --external-link-hover-color: #d65021;
  --footer-link-color: #e6e6e6;
  --footer-link-hover-color: #000;

  --trademark-box-color: #797979;
  --trademark-heading-color: #929395;
}

/* Web font: "Noto Sans" */

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-Regular.ttf);
}

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-Italic.ttf);
  font-style: italic;
}

@font-face {
  font-family: "Noto Sans";
  src: url(../../resources/web-fonts/Noto_Sans/NotoSans-BoldItalic.ttf);
  font-weight: bold;
  font-style: italic;
}

body {
  font-family: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  /*font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;*/

  font-size: medium;
  line-height: 1.5em;
  margin: 0;
  background-color: var(--primary-background-color);
  color: var(--primary-text-color);
}

h1,
h2,
h3 {
  color: var(--primary-heading-color);
}

/*
h1:first-child { margin-top: 0em; }
*/

h1 {
  font-size: 1.4em;
  font-weight: 600;

  margin-top: 2em;
  margin-bottom: 0.5em;
}

/*
h2:first-child { margin-top: 0em; }
*/

h2 {
  font-size: 1.1em;
  font-weight: 600;

  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1em;
  font-weight: 600;

  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

p {
  margin-top: 1em;
}

blockquote {
  margin: 1em 0 1em 0;
  padding: 0.5em 1em 0.5em 1em;
  border-left: 4px solid #878787;
}

/*----------------------------------------
  Menu
----------------------------------------*/

.menu-container {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */
  padding: 20px 0;

  display: flex;
  justify-content: center;
}

.logo-and-nav-icon {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* For debugging */
/* Commented because... 'Do not use empty rulesets' */
/*#links {
  border: 1px solid var(--debug-border-color);
}*/

.menu-expanded {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  display: flex;
  align-items: center;
}

.menu-closed {
  display: none;
}

#ocram-one-app-icon {
  width: auto;
  height: 50px;

  text-decoration: none;
  display: block;
}

#ocram-one-logo {
  margin-top: 2em;
  margin-bottom: 1em;

  width: auto;
  height: 1.125em;

  text-decoration: none;
  display: block;
}

#menu-toggle {
  cursor: pointer;
}

.menu-toggle-on {
  display: initial;
}

.menu-toggle-off {
  display: none;
}

div.menu-icon {
  font-size: medium;

  width: 2em;
  height: 0.3em;
  background-color: var(--button-color);
  margin: 0.35em 0;
}

/*----------------------------------------
  (Menu) Button/Links
----------------------------------------*/

.button {
  margin: 0 10px;
  padding: 0.4em 1em;
  font-weight: bold;
  color: var(--button-color);
  border-radius: 4px;
  border: 2px solid var(--button-color);
}

div.button:hover {
  background: #222222;
}

#links a:link {
  text-decoration: none;
}

div.button.active {
  color: var(--active-button-text-color);
  background: var(--button-color);

  border-radius: 4px;
  border: 2px solid var(--button-color);
}

div.button.active:hover {
  color: var(--active-button-text-color);
  background: var(--button-color);
  border-radius: 4px;
  border: 2px solid var(--button-color);
}

/*----------------------------------------
  Main content
----------------------------------------*/

.content-container {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  display: flex;
  justify-content: center;
}

.content {
  display: block;
}

.text-content {
  width: 100%;
}

/* # Term -> Description */
/*
      right | default (left aligned)
    --------+-----------------------  
    Telefon: +49 40 23686986
     E-Mail: Info(at)BitRotation.de
*/
.entity-term-description-entries {
  display: table !important;
}

.entity-term-description-entries-rows {
  display: table-row;
}

.entity-term-entries {
  text-align: right;

  display: table-cell;
}

.entity-description-entries {
  padding-left: 0.5em;

  display: table-cell;
}

/*----------------------------------------
  Screenshots
----------------------------------------*/

.screenshot {
  width: 100%;
  height: auto;
}

/* Caption text */
.screenshot-caption {
  font-size: 0.9em;
  margin: 1em 0;
  width: 100%;
  text-align: left;
}

/* The dots/bullets/indicators */
.indicator-panel {
  text-align: center;
}

.indicator {
  cursor: pointer;
  height: 1em;
  width: 1em;
  margin: 0 0.5em;
  border: solid 2px var(--indicator-color);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.indicator-active {
  background-color: var(--indicator-color);
}

/*----------------------------------------
  Slideshow
----------------------------------------*/

.slideshow-relative-wrapper {
  position: relative;

  margin: 0;
  padding: 0;
}

.slideshow-absolute-wrapper {
  position: absolute;
  left: 0;
  top: 0;
}

.slides {
  width: 100%;
  height: auto;

  transition: opacity 1s ease-in-out;
  opacity: 0;
  filter: alpha(opacity=0);
}

.slides h2:first-child {
  margin-top: 0;
}

.slides:first-child {
  margin-top: 1.5em;
}

.slideshow-relative-wrapper .opaque {
  opacity: 1;
  filter: alpha(opacity=1);
}

.slideshow-image {
  width: 100%;
}

/*----------------------------------------
  Footer
----------------------------------------*/

footer {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  width: 100%;
  padding: 0 1em;

  display: flex;
  justify-content: center;
}

.footer-links a:link {
  text-decoration: none;
  color: var(--footer-link-color);
}

.footer-links a:hover {
  background-color: var(--footer-link-color);
  color: var(--footer-link-hover-color);

  /*font-weight: bold;*/
}

.footer-links a:visited {
  color: var(--footer-link-color);
}

.footer-links a:visited:hover {
  color: va(--footer-link-hover-color);
  background-color: var(--footer-link-color);
}

.flex-footer {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  margin-top: 3em;
  padding: 1em 2em 2em 2em;
  color: var(--flex-footer-text-color);
  font-size: 0.75em;
  border-top: 1px solid #797979;

  display: flex;
  flex-direction: column;

  width: 100%;
}

.mandatory-legal-statement-container {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */

  color: var(--legal-statement-color);
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mandatory-legal-statements {
  display: flex;
  justify-content: center;
}

.copyright {
  /*border: 1px solid var(--debug-border-color);*/ /* For debugging */
  margin-top: 2em;

  display: flex;
  justify-content: center;
}

/*----------------------------------------
  Misc
----------------------------------------*/

/*.space-right-small {
  padding-right: 2em;
}*/

.correction-necessary {
  text-decoration: line-through;
}

.attention {
  border: 2px solid var(--attention-color);
  border-radius: 4px;

  margin: 1em 0em;
  padding: 1em;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.attention-sign {
  width: auto;
  height: 3em;
  margin: 0 1em 1em 0;
}

/*----------------------------------------
  Media Queries
----------------------------------------*/

/* ## Mobile Styles */
/*@media screen and (max-width: 400px) {*/
/* 960 / 16 = 60 */
@media screen and (max-width: 600px) {
  /*1024*/

  .menu {
    width: 100%;

    flex-direction: column;
  }

  .menu-expanded {
    width: 100%;
    flex-direction: column;
  }

  .menu-closed {
    display: none;
  }

  .button {
    margin: 1em 0;
  }

  .home {
    text-align: center;
    /*width: 80%;*/
  }

  .support {
    text-align: center;
    /*width: 100%;*/
  }

  .contact {
    text-align: center;
    /*width: 80%;*/
  }

  .imprint {
    text-align: center;
    /*width: 80%;*/
  }

  .text-content {
    padding: 0 1em;
  }
}

/* ## Tablet Styles */
/*@media screen and (min-width: 601px and max-width: 1024px) {

}*/

/* ## Test */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
  .logo-and-nav-icon {
    width: auto;

    justify-content: flex-start;
  }

  .menu {
    width: 100%;

    flex-direction: row;
    align-items: center;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .button {
    font-size: 0.9em;
    margin: 0 1.5em 0 0;
    padding: 0.25em 0.5em;
  }

  .text-content {
    max-width: 40em;
    padding: 0 1em;
  }

  .flex-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }
}

/* iPad (portrait) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
  #ocram-one-logo {
    width: auto;
    height: 1.5em;
  }

  .logo-and-nav-icon {
    width: auto;

    justify-content: flex-start;
  }

  .menu {
    width: 100%;

    flex-direction: row;
    align-items: center;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  .button {
    font-size: 0.9em;
    margin: 0 1.5em 0 0;
    padding: 0.25em 0.5em;
  }

  .text-content {
    width: 40em;
    padding: 0 1em;
  }

  .flex-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  /*.mandatory-legal-statements {
    padding-right: 2em;
  }*/

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }

  .attention {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
}

/* iPads (landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  #ocram-one-logo {
    width: auto;
    height: 1.5em;
  }

  .logo-and-nav-icon {
    padding-left: 0;
    width: auto;
  }

  .menu {
    width: 900px;

    flex-direction: row;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
  }

  .button {
    font-size: 0.9em;
    margin: 0 0 0 1em;
    padding: 0.25em 0.5em;
  }

  .text-content {
    width: 40em;
    padding: 0 1em;
  }

  .flex-footer {
    width: 900px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }

  .attention {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ## Desktop Styles */
@media screen and (min-width: 1025px) {
  #ocram-one-logo {
    width: auto;
    height: 1.5em;
  }

  .logo-and-nav-icon {
    padding-left: 0;
    width: auto;
  }

  .menu {
    width: 900px;

    flex-direction: row;
  }

  .menu-toggle-on {
    display: none;
  }

  .menu-closed,
  .menu-expanded {
    display: flex;
    flex-direction: row;
  }

  .button {
    font-size: 0.9em;
    margin: 1.5em 0 1.5em 1em;
    padding: 0.25em 0.5em;
  }

  .text-content {
    width: 40em;
    padding: 0 1em;
  }

  .flex-footer {
    width: 900px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mandatory-legal-statement-container {
    display: flex;
    flex-direction: row;

    justify-content: flex-start;
  }

  /*.mandatory-legal-statements {
    padding-right: 2em;
  }*/

  .mandatory-legal-statements:not(:last-child) {
    padding-right: 2em;
  }

  .copyright {
    margin-top: 0;
  }

  /* Die Behandlung des hover-Zustandes führt auf dem iPhone und iPad zum Problem:
      der (per Touch-Auswahl manuell herbeigeführte) 'selektierte' Zustand bleibt dann
      bei dem ausgewählten Indikator/Punkt bestehen und es sind dann, sobald die Dia Show
      automatisch weitergeht, zwei Indikatoren/Punkte farbig markiert ...
      
      Durch diesen Media Query sollten iPhone und iPad ausgeschlossen sein ...
    */
  span.indicator:hover {
    background-color: var(--indicator-color);
  }

  .attention {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
}

/* # Textbox */

.text-box {
  border-width: 1px;
  border-style: solid;

  padding: 1.5em;
  margin: 4em 0 0 0;

  font-size: 0.9em;
}

/*----------------------------------------
  Trademarks
----------------------------------------*/

.text-box-markenzeichen {
  border-color: var(--trademark-box-color);
}

.markenzeichen-heading {
  color: var(--trademark-heading-color);
  font-weight: bold;
  margin-bottom: 1em;
}

/* # Press Kit */
a.internal-download-link {
  color: var(--internal-link-color);
}

a.internal-download-link:hover {
  color: var(--internal-link-hover-color);
}

a.external-link,
a.external-link:visited {
  color: var(--external-link-color);
}

a.external-link:hover,
a.external-link:visited:hover {
  color: var(--external-link-hover-color);
}
