@font-face {
  font-family: HarrietDisplay-Regular;
  src: url(../fonts/HarrietDisplay-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: HarrietDisplay-Bold;
  src: url(../fonts/HarrietDisplay-Bold.ttf) format("truetype");
  font-weight: 900;
}

@font-face {
  font-family: OpenSans;
  src: url(../fonts/OpenSans-Variable.ttf) format("truetype");
}

:root {
  --gray: #202122;
  --red: #cc0a0a;
  
  --header-font-size: 30px;
  --main-padding-right-left: 100px;
  --main-font-size: 20px;
  --content-max-width: 1350px;
  --generator-shadow: 5px 5px 15px rgba(0,0,0,.5);
  --quotebox-height: 425px;
  --quote-font-size: 25px;
  --stage-container-shadow:  3px 3px 10px rgba(0,0,0,.5);
  
  --stage-4-3-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .2963);
  --stage-4-3-container-max-width: 400px;
  --stage-4-3-container-height: calc(var(--stage-4-3-container-width) * .75);
  --stage-4-3-container-max-height: calc(var(--stage-4-3-container-max-width) * .75);
  
  --stage-1-1-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .2223);
  --stage-1-1-container-max-width: 300px;
  --stage-1-1-container-height: var(--stage-1-1-container-width);
  --stage-1-1-container-max-height: var(--stage-1-1-container-max-width);
  
  --stage-3-4-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .1667);
  --stage-3-4-container-max-width: 225px;
  --stage-3-4-container-height: calc(var(--stage-3-4-container-width) / 3 * 4);
  --stage-3-4-container-max-height: calc(var(--stage-3-4-container-max-width) / 3 * 4);
  
  --button-font-size: 20px;
  --h2-font-size: 30px;
  
  --link-width-factor: .095;
  --link-height-factor: calc(var(--link-width-factor) / 1.027);
  
  --author-name-font-size: 40px;
  
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  width: 100vw;
}

body {
  box-sizing: border-box;
  background-color: #fff;
  font-family: 'OpenSans', sans-serif;
  overflow-x: hidden;
}

a {
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.button {
  padding: .5em 2em;
  border: none;
  outline: 0;
  font-family: inherit;
  font-weight: 600;
  font-size: var(--button-font-size);
  color: #fff;
  cursor: pointer;
  transition: transform .3s ease-out;
}

#finalize-button {
  display: none;
  background-color: #000;
}

#cookie {
  position: fixed;
  bottom: 0;
  width: 100vw;
  padding: 30px;
  background-color: #fff;
  box-shadow: var(--generator-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 9;
}

#cookie-text {
  
}

#cookie-button {
  background-color: #000;
  color: #fff;
  padding: 7px 15px;
  cursor: pointer;
}

#cookie-button:hover {
  opacity: 0.8;
}

header {
  width: 100%;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .25em;
  background-color: var(--gray);
  font-family: 'HarrietDisplay-Bold', serif;
  font-size: var(--header-font-size);
  color: #fff;
}

h1 {
  font-size: inherit;
  margin-left: 50px;
  white-space: nowrap;
}

h1 > a {
  text-decoration: none;
  color: inherit;
}

h2 {
  margin: 0;
  font-size: var(--h2-font-size);
  text-transform: uppercase;
}

#header-description {
  text-align: right;
  margin-right: 50px;
}

main {
  min-height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 var(--main-padding-right-left);
}

#inputs {
  width: 100%;
  margin: 60px auto 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#start-button {
  background-color: var(--red);
}

#start-button:hover {
  transform: scale(1.05);
}



section#generator {
  width: 100%;
  max-width: var(--content-max-width);
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 0;
  margin: 30px 0 0 0;
  -webkit-box-shadow: var(--generator-shadow);
  -moz-box-shadow: var(--generator-shadow);
  box-shadow: var(--generator-shadow);
  font-family: 'HarrietDisplay-Regular', serif;
}

.quotebox {
  width: 100%;
  height: var(--quotebox-height);
  background-color: #fff;
  overflow: hidden;
  position: relative;
}

.quotebox:after,
.quotebox:before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 25%;
  z-index: 3;
}

.quotebox:before {
  top: 0;
  background: linear-gradient(to bottom, #fff 0, rgba(255, 255, 255, 0) 100%);
}

.quotebox:after {
  bottom: 0;
  background: linear-gradient(to top, #fff 0, rgba(255, 255, 255, 0) 100%);
}

#quotebox-second {
  border-right: 2px solid #000;
  border-left: 2px solid #000;
}

.quotes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

@keyframes first-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(var(--quotebox-height) * calc(var(--quotes-first-count) + 1)));
  }
}

@keyframes second-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(var(--quotebox-height) * calc(var(--quotes-second-count) + 1)));
  }
}

@keyframes third-scroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(var(--quotebox-height) * calc(var(--quotes-third-count) + 1)));
  }
}

.quote-container {
  width: 100%;
  height: var(--quotebox-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote {
  width: 100%;
  text-align: center;
  font-size: var(--quote-font-size);
  padding: 20px;
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.selected-quote {
  position: absolute;
  z-index: 2;
  width: 100%;
  animation-name: pop;
  animation-duration: .3s;
  animation-timing-function: ease-out;
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-direction: alternate;
}

section#stages {
  width: 100%;
  max-width: var(--content-max-width);
  display: none;
  justify-content: center;
  gap: 60px;
  margin: 30px 0 60px;
}

.stage-button-container {
  flex-shrink: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.stage-container {
  box-shadow: var(--stage-container-shadow);
  cursor: pointer;
  transition: transform .3s ease-out;
  overflow: hidden;
}

#stage-4-3-container {
  width: var(--stage-4-3-container-width);
  height: var(--stage-4-3-container-height);
}

#stage-1-1-container {
  width: var(--stage-1-1-container-width);
  height: var(--stage-1-1-container-height);
}

#stage-3-4-container {
  width: var(--stage-3-4-container-width);
  height: var(--stage-3-4-container-height);
}

.download-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background-color: #000;
  transition: transform .3s ease-out;
}

.stage-container:hover,
.download-button:hover {
  transform: scale(1.05);
}

.download-button .download-wait {
  display: none;
}

section#links {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 60px 0;
}

.link-description {
  width: 100%;
  max-width: 1100px;
  font-size: var(--main-font-size);
  display: flex;
  align-items: center;
  gap: 30px;
}

.link-description img {
  float: left;
  width: 30vW;
}

.links-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.link {
  display: flex !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: calc(100% * var(--link-width-factor));
  height: calc((100vw - var(--main-padding-right-left) * 2) * var(--link-height-factor));
  max-height: 125px;
}

#genialokal {
  background-image: url(../images/logo-genialokal.png);
}

#thalia {
  background-image: url(../images/logo-thalia.svg);
}

#hugendubel {
  background-image: url(../images/logo-hugendubel.svg);
}

#amazon {
  background-image: url(../images/logo-amazon.svg);
}

#buecher {
  background-image: url(../images/logo-buecher.svg);
}

#yourbook {
  background-image: url(../images/logo-yourbook.jpg);
}

section#authors {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 60px 0;
}

.authors-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.author {
  width: 45%;
  display: flex;
  align-items: center;
  gap: 30px;
}

img.author-photo {
  width: auto;
  height: 300px;
}

.author-information {
  display: flex;
  flex-direction: column;
}

.author-name {
  margin-bottom: .75em;
  font-family: 'HarrietDisplay-Bold', serif;
  font-size: var(--author-name-font-size);
}

.author-instagram {
  width: 40px;
  height: 40px;
  display: flex;
  background-image: url(../images/logo-instagram.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

section#call2action {
  width: 100%;
  max-width: var(--content-max-width);
  display: flex;
  justify-content: center;
  margin: 60px 0;
}

.call2action-text {
  max-width: 1100px;
  font-size: var(--main-font-size);
}

footer {
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  padding: 30px;
  background-color: var(--gray);
  font-size: 14px;
  color: #fff;
}

footer > * {
  line-height: 1.4;
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

footer a:hover {
  text-decoration: underline;
}

#cookie-text footer {
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  padding: 30px 0 0 0;
  background-color: #fff;
  font-size: 14px;
  color: #000;  
}

#cookie-text footer a {
  color: #000;
}

#admin {
  padding: 30px;
}

#admin h1 {
  font-size: 30px;
  margin-left: 0;
}

#admin h2 {
  margin: 20px 0;
  font-size: 20px;
  text-transform: initial;
}

.admin-texts {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.admin-text-container {
  height: 30px;
  width: 800px;
  max-width: calc(100vw - 60px);
  display: grid;
  grid-template-columns: 1fr auto;
}

.admin-text {
  border: 1px solid #000;
  width: 100%;

  padding: 3px 7px;
}

.admin-text-delete {
  width: 30px;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-text-add {
  width: 30px;
  height: 30px;
  margin: 5px 0 5px auto;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-button {
  color: #fff;
  background-color: #000;
  margin: 10px 0;
  padding: 7px 15px;
  font-size: 16px;
}


@media screen and (max-width: 1200px) {
  :root {
    --main-padding-right-left: 50px;
    --header-font-size: 25px;
    --button-font-size: 18px;
    --h2-font-size: 25px;
    --link-width-factor: .11;
    --author-name-font-size: 30px;
  } 
}

@media screen and (max-width: 1000px) {
  :root {
    --header-font-size: 20px;
    --quotebox-height: 285px;
    --quote-font-size: 20px;
    --stage-4-3-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .4);
    --stage-1-1-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .3);
    --stage-3-4-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .225);
    --link-width-factor: .15;
  }
  section#stages {
    flex-wrap: wrap;
  }
  .links-container {
    justify-content: center;
    gap: 10%;
    flex-wrap: wrap;
  }
  .authors-container {
    flex-direction: row;
    gap: 30px;
  }
  .author {
    width: 100%;
    flex-direction: column;
  }
  .author-information {
    align-items: center;
  }
/*  .author:nth-of-type(2) {
    flex-direction: row-reverse;
  }*/
  
/*  .author:nth-of-type(2) .author-information {
    align-items: flex-end;
    text-align: right;
  }*/
}

@media screen and (max-width: 768px) {
  :root {
    --quotebox-height: 245px;
    --quote-font-size: 15px;
    --stage-4-3-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .5);
    --stage-1-1-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .5);
    --stage-3-4-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .5);
    --link-width-factor: .2;
  }
  header {
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    height: 100px;
    box-sizing: border-box;
  }
  header h1{
    margin-left: 0;
  }
  #header-description{
    text-align: center;
    margin-right: 0;
    font-size: calc( var(--header-font-size) * 0.8 );
  }
  section#generator {
    width: 100vw;
  }
  .links-container {
    justify-content: space-between;
  }
  .link-description {
    flex-direction: column;
  }
  .link-description img {
    width: 100%;
  }  
}

@media screen and (max-width: 600px) {
  :root {
    --main-padding-right-left: 25px;
    --quotebox-height: 200px;
    --link-width-factor: .3;
  }
  .links-container {
    justify-content: space-around;
  }
  .authors-container {
    gap: 60px;
    flex-direction: column;
  }
  .author,
  .author:nth-of-type(2),
  .author-information,
  .author:nth-of-type(2) .author-information {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 450px) {
  :root {
    --main-padding-right-left: 15px;
    --quotebox-height: 175px;
    --stage-4-3-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .75);
    --stage-1-1-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .75);
    --stage-3-4-container-width: calc((100vw - var(--main-padding-right-left) * 2) * .75);
    --link-width-factor: .45;
  }
  .links-container {
    justify-content: space-between;
  }
}

@media screen and (max-width: 375px) {
  :root {
    --quote-font-size: 13px;
  }
}