/*navigacija*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

@font-face {
  font-family: 'Harry.ttf';
  src: url('Harry.ttf') format('truetype');
}

@font-face {
  font-family: 'hocus_pocus.ttf';
  src: url('hocus_pocus.ttf') format('truetype');
}



body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: #ececee;
  background-color: #785029;
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat-back.svg");
  background-position: center;
  background-repeat: repeat;
  background-size: 4%;
  height: 80vh;;
  width: 100%;
  overflow-x: hidden; /* Hide horizontal scrollbar */
}

html{
  height:min-content;
}

.footer1{ /*carolije*/
margin-top: -20px;
position: absolute; 
width: 100%;
background-color: #A67B56; 
color: white;
text-align: center;
}

.footer2{ /*galerija*/
  margin-top: -20px;
  position: absolute; 
  width: 100%;
  background-color: #A67B56; 
  color: white;
  text-align: center;
  }

  .footer3{ /*knjige*/
    margin-top: -20px;
    position: absolute; 
    width: 100%;
    background-color: #A67B56; 
    color: white;
    text-align: center;
    }
  

.section-center {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: 6;
  text-align: center;
  transform: translateY(-50%);
}

.footer {
  position: absolute; 
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #A67B56; 
  color: white;
  text-align: center;
}
	
 

h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 7vw;
  line-height: 1;
  color: #ffeba7;
  text-align: center;
  -webkit-text-stroke: 2px #ffeba7;
  text-stroke: 2px #ffeba7; /*debljina/stroke slova*/
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent; /*nema filla u slovima nema boje*/
  color: transparent;
}

h2 {
  font-family: 'Harry.ttf';
    font-weight: 400;
    font-size: 3vw;
    line-height: 1;
    color: #ffeba7;
    text-align: center;
    -webkit-text-stroke: 1px #ffeba7;
    text-stroke: 2px #ffeba7; /*debljina/stroke slova*/
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /*nema filla u slovima nema boje*/
    color: transparent;
  }

  p{
    color: #ffeba7;
    font-family: 'hocus_pocus.ttf';
    font-size: 18px;
    text-align: center;
  }

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
  position: absolute;
  left: -9999px;
}
.menu-icon:checked + label,
.menu-icon:not(:checked) + label {
  position: fixed;
  top: 63px;
  right: 75px;
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 10;
}
.menu-icon:checked + label:before,
.menu-icon:not(:checked) + label:before {
  position: absolute;
  content: "";
  display: block;
  width: 30px;
  height: 20px;
  z-index: 20;
  top: 0;
  left: 0;
  border-top: 2px solid #ececee;
  border-bottom: 2px solid #ececee;
  transition: border-width 100ms 1500ms ease,
    top 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
    height 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-icon:checked + label:after,
.menu-icon:not(:checked) + label:after {
  position: absolute;
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  z-index: 20;
  top: 10px;
  right: 4px;
  background-color: #ececee;
  margin-top: -1px;
  transition: width 100ms 1750ms ease, right 100ms 1750ms ease,
    margin-top 100ms ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-icon:checked + label:before {
  top: 10px;
  transform: rotate(45deg);
  height: 2px;
  background-color: #ececee;
  border-width: 0;
  transition: border-width 100ms 340ms ease,
    top 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
    height 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms 500ms ease,
    transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-icon:checked + label:after {
  width: 30px;
  margin-top: 0;
  right: 0;
  transform: rotate(-45deg);
  transition: width 100ms ease, right 100ms ease, margin-top 100ms 500ms ease,
    transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav {
  position: fixed;
  top: 33px;
  right: 50px;
  display: block;
  width: 80px;
  height: 80px;
  padding: 0;
  margin: 0;
  z-index: 9;
  overflow: hidden;
  box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.3);
  background-color: #af865d; 
  animation: border-transform 7s linear infinite;
  transition: top 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
    right 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 250ms 1100ms ease,
    width 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1),
    height 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes border-transform {
  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  14% {
    border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
  }
  28% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }
  42% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }
  56% {
    border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
  }
  70% {
    border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
  }
  84% {
    border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
  }
}

.menu-icon:checked ~ .nav {
  animation-play-state: paused;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 200%;
  height: 200%;
  transition: top 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
    right 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1), transform 250ms 700ms ease,
    width 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1),
    height 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav ul {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: 6;
  text-align: center;
  transform: translateY(-50%);
  list-style: none;
}
.nav ul li {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 10px 0;
  text-align: center;
  list-style: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 250ms linear;

  /*animacija navigacije*/
}
.nav ul li:nth-child(1) {
  transition-delay: 200ms;
}
.nav ul li:nth-child(2) {
  transition-delay: 150ms;
}
.nav ul li:nth-child(3) {
  transition-delay: 100ms;
}
.nav ul li:nth-child(4) {
  transition-delay: 50ms;
}
.nav ul li:nth-child(5) {
  transition-delay: 50ms;
}
.nav ul li:nth-child(6) {
  transition-delay: 50ms;
}

.nav ul li a {
  font-family: "Montserrat", sans-serif;
  font-size: 9vh;

 
  line-height: 1.2;
  font-weight: 800;
  display: inline-block;
  position: relative;
  color: #ececee;
  transition: all 250ms linear;
}
.nav ul li a:hover {
  text-decoration: none;
  color: #ffeba7;
}
.nav ul li a:after {
  display: block;
  position: absolute;
  top: 50%;
  content: "";
  height: 2vh;
  margin-top: -1vh;
  width: 0;
  left: 0;
  background-color: #353746;
  opacity: 0.8;
  transition: width 250ms linear;
}
.nav ul li a:hover:after {
  width: 100%;
}

.menu-icon:checked ~ .nav ul li {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 350ms ease, transform 250ms ease;
}
.menu-icon:checked ~ .nav ul li:nth-child(1) {
  transition-delay: 1400ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(2) {
  transition-delay: 1480ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(3) {
  transition-delay: 1560ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(4) {
  transition-delay: 1640ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(5) {
  transition-delay: 1640ms;
}
.menu-icon:checked ~ .nav ul li:nth-child(6) {
  transition-delay: 1640ms;
}


.logo {
  position: absolute;
  top: 60px;
  left: 50px;
  display: block;
  z-index: 11;
  transition: all 250ms linear;
}
.logo img {
  height: 26px;
  width: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .menu-icon:checked + label,
  .menu-icon:not(:checked) + label {
    right: 55px;
  }
  .logo {
    left: 30px;
  }
  .nav {
    right: 30px;
  }
  h1 {
    font-size: 9vw;
    -webkit-text-stroke: 2px transparent;
  }
  .nav ul li a {
    font-size: 8vh;
  }
}
/*lenta vremena*/
@import url("https://fonts.googleapis.com/css?family=Cardo|Pathway+Gothic+One");
.timeline {  
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  flex-direction: column;
  max-width: 700px; /*sirina cijele lente tj. teksta i slika iznad*/
  position: relative;
}
.timeline__content-title {
  font-weight: normal;
  font-size: 60px;
  margin: -10px 0 0 0;
  transition: .4s;
  padding: 0 10px;
  box-sizing: border-box;
  font-family: "Pathway Gothic One", sans-serif;
  color: black;
}
.timeline__content-desc1 {
  margin: 0;
  font-size: 15px;
  box-sizing: border-box;
  color: black;
  background-color: rgba(142,152,164,0.7);
  font-family: Cardo;
  font-weight: normal;
  line-height: 25px;
  padding: 15px;
}

.timeline__content-desc2 {
  margin: 0;
  font-size: 15px;
  box-sizing: border-box;
  color: black;
  background-color: rgba(141,161,152,0.7);
  font-family: Cardo;
  font-weight: normal;
  line-height: 25px;
  padding: 15px;
}

.timeline__content-desc3 {
  margin: 0;
  font-size: 15px;
  box-sizing: border-box;
  color: black;
  background-color:rgba(157,143,168,0.7);
  font-family: Cardo;
  font-weight: normal;
  line-height: 25px;
  padding: 15px;
}

.timeline__content-desc4 {
  margin: 0;
  font-size: 15px;
  box-sizing: border-box;
  color: black;
  background-color: rgba(143,160,167,0.7);
  font-family: Cardo;
  font-weight: normal;
  line-height: 25px;
  padding: 15px;
}

.timeline__content-desc5 {
  margin: 0;
  font-size: 15px;
  box-sizing: border-box;
  color: black;
  background-color: rgba(201,132,171,0.7);
  font-family: Cardo;
  font-weight: normal;
  line-height: 25px;
  padding: 15px;
}

.timeline__content-desc6 {
  margin: 0;
  font-size: 15px;
  box-sizing: border-box;
  color: black;
  background-color: rgba(145,167,144,0.7);
  font-family: Cardo;
  font-weight: normal;
  line-height: 25px;
  padding: 15px;
}

.timeline__content-desc7 {
  margin: 0;
  font-size: 15px;
  box-sizing: border-box;
  color: black;
  background-color: rgba(151,169,183,0.7);
  font-family: Cardo;
  font-weight: normal;
  line-height: 25px;
  padding: 15px;
}



.timeline:before {
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  content: "";
  background: rgba(255, 255, 255, 0.07);
}
@media only screen and (max-width: 767px) {
  .timeline:before {
    left: 40px;
  }
}
.timeline-item {
  padding: 40px 0;
  filter: blur(2px);
  transition: .5s;
  box-sizing: border-box;
  width: calc(50% - 40px);
  display: flex;
  position: relative;
  transform: translateY(-80px);
}
.timeline-item:before {
  content: attr(data-text);
  letter-spacing: 3px;
  width: 100%;
  position: absolute;
  color: rgba(0, 0, 0, 1);
  font-size: 15px;
  font-family: "Pathway Gothic One", sans-serif;
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  top: 70%;
  background-color: rgba(211, 203, 203, 0.6);
  margin-top: -5px;
  padding-left: 15px;
  opacity: 0;
  right: calc(-100% - 56px );
}
.timeline-item:nth-child(even) {
  align-self: flex-end;
}
.timeline-item:nth-child(even):before {
  right: auto;
  text-align: right;
  left: calc(-100% - 56px );
  padding-left: 0;
  border-left: none;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  padding-right: 15px;
}
.timeline-item--active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}
.timeline-item--active:before {
  top: 50%;
  transition: .3s all .2s;
  opacity: 1;
}
.timeline-item--active .timeline__content-title {
  margin: -50px 0 20px 0;
}
@media only screen and (max-width: 767px) {
  .timeline-item {
    align-self: baseline !important;
    width: 100%;
    padding: 0 30px 150px 80px;
  }
  .timeline-item:before {
    left: 10px !important;
    padding: 0 !important;
    top: 50px;
    text-align: center !important;
    width: 60px;
    border: none !important;
  }
  .timeline-item:last-child {
    padding-bottom: 40px;
  }
}
.timeline__img {  /*slikica ispred teksta*/
  max-width: 100%;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}
.timeline-container { /*sirina slike s desna*/
  width: 100%;
  position: relative;
  padding: 80px 0;
  background-attachment:fixed;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.3s ease 0s;
  background-attachment: fixed;
  background-size: cover;
}
.timeline-container:before {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  
  content: "";
}
.timeline-header {
  width: 100%;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}
.timeline-header__title {
  color: #fff;
  font-size: 46px;
  font-family: Cardo;
  font-weight: normal;
  margin: 0;
}
.timeline-header__subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-family: "Pathway Gothic One", sans-serif;
  font-size: 16px;
  letter-spacing: 5px;
  margin: 10px 0 0 0;
  font-weight: normal;
}

.demo-footer {
  padding: 60px 0;
  text-align: center;
}
.demo-footer a {
  color: #999;
  display: inline-block;
  font-family: Cardo;
}
/*zavrsetak lente*/

/*galerija*/
  #container {
    max-width: 80%;
    margin: 1.25rem auto;

    
  }
  .card-container {
    display: flex;
    flex-wrap: wrap;
    margin: 1.25rem;
    padding: 20px;
  
  }
  .card {
    flex: 1 0 12.5rem;
    margin: 0.625rem;
   
  }
  .card-image {
    display: block;
    height: 21.875rem;
    background-size: cover;
    box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);
    transition: transform 500ms ease-in;
    filter: grayscale(100%);
   
  }
  .card-image:hover {
    transform: scale(1.1);
    filter: grayscale(0%);
  }
  .card-image.card-1 {
    background-image: url(slike/1.jpg);
  }
  .card-image.card-2 {
    background-image: url(slike/2.jpg);
  }
  .card-image.card-3 {
    background-image: url(slike/3.png);
  }
  .card-image.card-4 {
    background-image: url(slike/4.jpg);
  }
  .card-image.card-5 {
    background-image: url(slike/5.jpg);
  }
  .card-image.card-6 {
    background-image: url(slike/6.jpg);
  }

  .card-image.card-7 {
    background-image: url(slike/7.jpg);
  }
  .card-image.card-8 {
    background-image: url(slike/9.jpg);
  }
  .card-image.card-9 {
    background-image: url(slike/8.jpg);
  }
/*gotova galerija*/  



.trace-motion {
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  opacity: 0.8;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

main {
  margin: 4em auto 8em;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.spell-card {
  background: linear-gradient(315deg, #9d523c 0%, #f2a65a 74%);
  flex: 0 0 300px;
  padding: 5px;
  margin: 2em;
  border-radius: 20px;
  box-shadow: 0 0 0 14px #333;
  text-align: center;
  position: relative;
}
.spell-card:before {
  content: "Harry Potter spells";
  font-family: "Cinzel";
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.5px;
  border-radius: 20px;
  background: linear-gradient(to top, #9d523c 0%, #f2a65a 74%);
  position: absolute;
  z-index: 1;/* sto ce mi bit ispred nazad...*/
  max-width: 225px;
  top: -8px;
  padding: 5px;
  left: 0;
  right: 0;
  margin: auto;
}
.spell-card__inner {
  border-radius: 17px;
  overflow: hidden;
  
}
.spell-card h5 {
  font-family: "Cinzel Decorative", "Bahianita";
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 15px;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.spell-card p {
  font-family: "Cinzel", "Alice";
  font-size: 16px;
  width: 90%;
  margin: 0 auto 20px;
  min-height: 45px;
}
.spell-card__shape {
  width: 100%;
  height: 300px;
  background: #333;
  display: grid;
  place-items: center;
  position: relative;
  margin-top: 20px;
}
.spell-card__shape svg {
  width: 70%;
  max-width: 250px;
  filter: drop-shadow(0 0 12px #0ff) drop-shadow(-2px -2px 12px #00bcd4); /*ono sta se mice*/
}
.spell-card__trace {
  position: absolute;
  width: 100%;
  opacity: 0.4;
  height: 100%;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: center;
}
.spell-card:hover {
  cursor: pointer;
}
.spell-card:hover .trace-motion {
  animation: draw 0.7s linear forwards;
}

@media screen and (min-width:300px){
  
  h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 1000;
    font-size: 7vw;
    line-height: 1;
    color: #ffeba7;
    text-align: center;
    -webkit-text-stroke: 2px #ffeba7;
    text-stroke: 2px #ffeba7; /*debljina/stroke slova*/
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /*nema filla u slovima nema boje*/
    color: transparent;
  }
}

@media screen and (min-width:700px){
  
  h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 7vw;
    line-height: 1;
    color: #ffeba7;
    text-align: center;
    -webkit-text-stroke: 2px #ffeba7;
    text-stroke: 2px #ffeba7; /*debljina/stroke slova*/
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /*nema filla u slovima nema boje*/
    color: transparent;
  }
}

@media screen and (min-width:1000px){
  
  h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 7vw;
    line-height: 1;
    color: #ffeba7;
    text-align: center;
    -webkit-text-stroke: 2px #ffeba7;
    text-stroke: 2px #ffeba7; /*debljina/stroke slova*/
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent; /*nema filla u slovima nema boje*/
    color: transparent;
  }
}

/*knjige*/

.bookshelf--frame {
  max-width: 1200px;
  margin: 0 auto;
}

.bookshelf--frame {
  background: tan;
  background: url("https://static.tumblr.com/8x9m588/C8ho55ylx/bg-wood2.png"), linear-gradient(#776b43 290px, #776b43 292px);
  background-size: auto, 10px 300px;
  border-left: 10px solid #776b43;
  border-right: 10px solid #776b43;
  text-align: center;
}
.bookshelf--frame:first-of-type {
  border-top: 10px solid #776b43;
}
.bookshelf--frame .book-wrapper {
  display: inline-block;
  width: 290px;
  vertical-align: bottom;
  height: 280px;
  position: relative;
  margin: 10px 0;
  max-width: 100%;
}
.bookshelf--frame .book-wrapper img {
  height: auto;
  width: auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-height: 100%;
  max-width: 100%;
}












