@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&display=swap');

html,
body {
    scroll-behavior: smooth;
}

#novinky, #bonus, #kair-toren, #postavy, #ohlasy, #autor {
  scroll-margin-top: 100px;
}

body {
  height: 100%;
  font-family: "Baskervville", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: black;
  color: black;
  margin: 0;
  padding: 0;
  background: #004552 url('/images/maggie/bg.jpg') top no-repeat;
}

.container {
  margin: 0 auto;
  max-width: 846px;
  width: 100%;
  z-index: 10;
  position: relative;
}

.welcome {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 50px;

  p {
		text-align:center;
    font-size: 1.25rem;
    line-height: 2rem;
    font-weight: 400;
    color: white;
  }
}

p.yellow {
  color: #E7C761;
}

.cite {
  font-size: 24px;
  span {
    color:#E7C761;
  }
  p {
    margin-bottom: 24px;
    &:last-child {
      margin-bottom: 0;
    }
  }
}
.footer {
  margin-top: 80px;
  background: #0F282C;
  color:white;
  padding: 80px 0;  
  .container {
    align-items: center;
    justify-content: space-between;
    display: flex;
		flex-direction:row;
		text-align:left;
    gap:24px;
    p {
      line-height: 1.5rem;
    }
  }
  a {
    color: white;
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }
}
.liska {	
  position: relative;
  a {
    position: absolute;
    top: 640px;
    right: 60px;

    &.liska-prev {
      right: auto;
      left: 240px;
      transform: scaleX(-1);
    }
  }
  div {
    width: 440px;
    position: absolute;
    top: 270px;
    left: 145px;

    .char {
      display: none;
      &.active {
        display: block;
      }
    }

    p {
			text-align:center;
      font-size: 20px;
      color: #E7C761;
      &:first-child {
        font-size: 32px;
        text-transform: uppercase;
        margin-bottom: 20px;
      }
    }
  }
}

.top {
  background: #0F282C;
  position: sticky;
  top: 0;
  z-index: 20;

  nav {
    display: flex;
    height: 80px;
    align-items: center;
    padding: 10px 0;
    align-items: center;
    justify-content: center;
    gap: 30px;

    a {
      color: #E7C761;
      text-transform: uppercase;
      font-size: 1.5rem;
      text-decoration: none;
      font-weight: 400;
      transition: all 0.3s ease-in-out;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

p {
  margin: 0;
  padding: 0;
}

.head {
	padding:0 24px;
  display: flex;
  justify-content: flex-end;
}

.title {
  text-align: center;
	padding:0px;
}

.book {
	padding:0 24px;
  margin: 50px 0 70px;
  display: flex;
  row-gap: 30px;
	column-gap: 140px;
  align-items: start;
	flex-direction: row;
  img {
    height: 423px;
  }

  p {
		align-items: left;
    &:first-child {
      font-size: 2rem;
      font-weight: 400;
      margin-bottom: 20px;
      color: #E7C761;
      margin-top: 0;
    }

    &:nth-child(2) {
      color: #FFFFFF;
      font-size: 1.25rem;
      line-height: 2rem;
      margin: 0;
    }
  }
}
img {
	
}
.bonus {
  margin: 50px 0 70px;
  display: flex;
  column-gap: 140px;
	row-gap: 60px;
  align-items: center;
  text-align: center;

  img {
    height: 423px;
  }

  div {
    display: flex;
    flex-direction: column;
    column-gap: 40px;
		row-gap: 20px;
    align-items: center;
  }

  p {
    &:first-child {
      font-size: 36px;
      font-weight: 400;
      text-transform: uppercase;
      white-space: nowrap;
      color: #E7C761;
      margin-top: 0;
    }

    &:nth-child(2) {
      color: #FFFFFF;
      font-size: 32px;
      line-height: 2rem;
      margin: 0;
    }
  }
}

.links {
  display: flex;
  row-gap: 30px;
	column-gap: 50px;
  justify-content: center;
	padding:0 24px;
}

.link-yellow {
  background: #E7C761;
  color: white;
  text-decoration: none;
  padding: 10px 30px;
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 400;
  border: 2px solid white;
  border-radius: 40px;
  &:hover {
    background: #004552;
    border: 2px solid #004552;
    color: white;
  }
}

.link-white {
  background: white;
  color: #004552;
  text-decoration: none;
  padding: 10px 30px;
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: 400;
  border: 2px solid #E7C761;
  border-radius: 40px;
  &:hover {
    background: #004552;
    border: 2px solid #E7C761;
    color: white;
  }  
}
.mapa {
	max-width:100%;
}
.title, .head {
	img {
		max-width:100%;
	}
}

#liska2 {
	display:none;
}

@media screen and (max-width: 895px) {
	html {
  scroll-behavior: smooth;
}
	#liska1 {
		display:none;
	}	
	#liska2 {
		display:block;
	}
	.title {
		padding:0 24px;
	}
	.book, .bonus, .links  {
		flex-direction: column;
	}	
	#postavy {
		&>img {
			max-width: 620px;
		}
	}
	.top {
		nav {
			gap: 16px;
			a {
				font-size: 1.1rem;
			}
		}
	}	
	.liska {
		text-align:center;
		div {	
			width: 390px;
			left: 80px;
			top: 90px;
		}
		a {
			top: 350px; 
			right: 30px;
		}
		a.liska-prev {
      right: auto;
      left: 120px;
      transform: scaleX(-1);
    }
	}		
}

@media screen and (max-width: 640px) {
	html {
  scroll-behavior: smooth;
}
	#postavy {
		&>img {
			max-width: 450px;			
			margin-left: -80px;
		}
	}

	.book {
		margin: 50px 0 40px;
		p {
			&:first-child {
				font-size: 1.5rem;
			}

			&:nth-child(2) {
				font-size: 1.25rem;
				line-height: 1.5rem;
			}
		}
	}
	.link-yellow,.link-white {
		font-size: 1.2rem;
		text-align: center;
	}
	.bonus {
	  p {
			&:first-child {
				font-size: 26px;
			}

			&:nth-child(2) {
				font-size: 22px;
				line-height: 2rem;
			}
		}
	}
	.top {
		nav {
			padding:0 10px;
			gap: 10px;
			a {
				font-size: 0.8rem;
			}
		}
	}
		.liska {			
			a {
				top: 400px; 
				right: 130px;
			}		
			a.liska-prev {
				right: auto;
				left: 100px;
				transform: scaleX(-1);
			}		
			div {	
							width: 340px;
							left: 4px;
							top: 70px;
				p {
					text-align:center;
					font-size: 17px;
					line-height: 22px;
					&:first-child {
						font-size: 19px;
						margin-bottom:12px;
					}
				}
			}
			
	}
	.footer {
		padding: 40px 0;  
		.container {
			flex-direction:column;
			text-align:center;
		}
	}
	
}
