@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,200;0,600;0,900;1,600&display=swap');

* {
  box-sizing: border-box;
}

html {
  font-family: 'Archivo', sans-serif;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 600;
  scroll-behavior: smooth;
}

h1 {
  font-weight: 900;
}
/*
body.template-kniha {
  background-image: url('/assets/images/halky.ilustrace1.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: 100vh;
} */

.logo {
  line-height: 2.5;
  text-decoration: none;
  font-weight: 900;
  position: relative;
  top: .25rem;
}

.logo svg {
  width: 12rem;
  position:absolute;
  left: 2rem;
}

.header {
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
  width: 100%;
}

.header a {
  color: black;
  padding: .1rem .5rem;
  display: inline-block;
}


.flipbook-main-wrapper {
  padding-top: 1.5rem;
}

main {
  position: relative;
  top: 6rem;
  margin: 1rem;
}

main {
  position: relative;
  top: 6rem;
  max-width: 80ch;
  margin: 1rem auto;
  padding: 1rem;
}

.template-home main nav {
  margin: 2rem 0;
}

.template-home main nav a {
  font-weight: 900;
  text-decoration: none;
  color: black;
}

.template-home #menu-kniha {

}

.template-home #menu-kniha svg {
  width: 11rem;
  font-size: 2rem;
}

.template-home #menu-vlozit-vlastni-recept {

  margin: auto;
}

.template-home #menu-vlozit-vlastni-recept svg {
  font-size: 1.5rem;
  width: 11rem;
  margin-left: 3rem;

  /* position:absolute; */
  /* left: 0; */
}

.footer {
  position: relative;
  bottom: 1rem;
  margin: 1rem;
}

svg path  {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 1s linear forwards;
}

svg:hover path  {
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  animation: dash-on 1s linear forwards;
}

#menu-kniha svg path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
#menu-kniha svg:hover path {
  stroke-dasharray: 600;
  stroke-dashoffset: 0;
}

#menu-vlozit-vlastni-recept svg path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
#menu-vlozit-vlastni-recept svg:hover path {
  stroke-dasharray: 900;
  stroke-dashoffset: 0;
}

form {
  display: block;
  margin-bottom: 3rem;
}

form > div {
  margin: .5rem 0;
}

form button {
  background: black;
  color: white;
  font-weight: 900;
  border: 1px solid black;
  border-radius: .25rem;
  padding: .25em .5em;
  cursor: pointer;
}

label {
  padding: .5em 0;
  display: block;
}

input, textarea {
  display: block;
  width: 100%;
  padding: .25em;
  font-weight: 200;
}

textarea {
  resize: vertical;
}



@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dash-on {
  to {
    stroke-dashoffset: 1000;
  }
}

.cssload-speeding-wheel {

  border: 2px solid black;
  border-left-color: rgba(255, 255, 255, 0);
  border-right-color: rgba(255, 255, 255, 0);

  margin-left: -1.5rem;
  margin-top: -1.5rem;
  width: 3rem;
  height: 3rem;

  animation: cssload-spin 750ms infinite linear;
  -o-animation: cssload-spin 750ms infinite linear;
  -ms-animation: cssload-spin 750ms infinite linear;
  -webkit-animation: cssload-spin 750ms infinite linear;
  -moz-animation: cssload-spin 750ms infinite linear;
}
/*
.transition-fade {
  transition: 0.4s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
} */

.popup {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: var(--padding) var(--padding);
  display: flex;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.popup[hidden] {
  display: none;
}

.popup .button-close {
  position: fixed;
  right: 0;
  top: 0;
  width: 5rem;
  padding: 1rem;
  background: none;
  border: none;
  border-radius: none;
  cursor: pointer;
  transition: transform .15s ease;
}

.popup .button-close:hover {
  transform: rotate(90deg);
}

.popup>div {
  position: relative;
  box-sizing: border-box;
  max-width: 60rem;
  margin: auto;
  padding: var(--padding);
  /* background-color: white; */
  animation: fade-in .25s ease-out;
}

.popup h1 {
  margin-top: 0;
  margin-right: 5rem;
}

.container {
  min-width: 80%;
  margin: 50px auto;
}

.visuallyhidden {
  display: none;
}



@keyframes move-from-bottom {
  from {
    opacity: 0;
    transform: translateY(4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes move-from-top {
  from {
    /* opacity: 0; */
    transform: translateY(-7rem);
  }

  to {
    /* opacity: 1; */
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
