* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Georgia', serif;
  font-size: 1.0rem;
  scroll-behavior: smooth;
  color: #EEE;
}

body {
  overflow-x: hidden;
  background: #000;
}

a {
  color: #EEE;
}

.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 80vh;
  width: 100%;
}

#first {
  height: 15vh;
}

.overlay {
  background: rgba(0, 0, 0, 0.75);
  padding: 4rem 0.5rem;
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}
h1 img{
  width: 90%;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.annotation {
  font-size: 1.8rem;
  letter-spacing: 0.05rem;
  text-indent: 1em;
  line-height: 1.4em;
  margin-bottom: 3rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
  opacity: 0.7;
}
#preview {
  color: #000;
  background: #FFF;
  letter-spacing: 0.03rem;
  word-spacing: 0.4rem;
  text-wrap: pretty;
  text-indent: 1em;
  line-height: 1.6em;
}
.preview {
  font-size: 1.1rem;
  margin-bottom: 0rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  text-align: start;

  color: #000;
  background: #fff;
  #border: 1px solid red;
  padding: 0.5rem 0rem 0.5rem 0.8rem;
}

.aboutauthor {
  font-size: 1.2rem;
  margin-bottom: 0rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  #font-style: italic;
  opacity: 0.7;
  text-align: left;
  padding: 0.5rem 0rem 0.5rem 0.8rem;
  text-indent: 1em;
  line-height: 1.4em;
  #border: 1px solid red;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #5ab9ea;
  padding: 1rem 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  width: 22rem;
}

.btn:hover {
  background: #3a9bcf;
}

.db-link {
  color: #a4d4f2;
  text-decoration: underline;
}

.kafe-tag {
  position: fixed;
  bottom: 50px;
  right: 0;
  background-color: #a4422b;
  color: black;
  padding: 3px 4px 4px 8px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.9;
}

.kafe-tag:hover {
  opacity: 1.0;
}

.qr-code {
  position: fixed;
  bottom: 125px;
  right: -300px;
  width: 260px;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  transition: right 0.5s ease;
  z-index: 999;
}

.qr-code.visible {
  right: 20px;
  border: 1px solid black;
}

.qr-code img {
  width: 100%;
  height: auto;
}

/* Default styles for left and right pages */
.leftpage, .rightpage {
  width: 100%;
  box-sizing: border-box;
}

#footr{
  opacity: 0.6;
  background: #333;

}
.footr{
  font-size: 0.9rem;
  letter-spacing: 0.03rem;
  word-spacing: 0.3rem;
  text-wrap: pretty;
  text-indent: 0em;
  line-height: 1.4em;
  text-align: left;
  max-width: 1300px;
  
  margin: 0 auto;
  #margin-top: 0rem;
  #margin-left: auto;
  #margin-right: auto;
  text-align: left;
  padding: 0.5rem 0rem 0.5rem 0.8rem;
  #border: 1px solid red;
  
}
#footr a{
	text-decoration: none;
	color: #FFF;
}
#footr a:visited{
	text-decoration: none;
	color: #FFF;
}


/* Media query for larger screens (laptop/desktop) */
@media (min-width: 1081px) {
  .leftpage, .rightpage {
    width: 49%;
    display: inline-block;
	#display: flex;
    vertical-align: top;
	max-width: 650px;
  }
  .preview {
    padding: 0.5rem 2rem;
  }
  .aboutauthor {
    padding: 0.5rem 2rem;
  }
  .footr {
    padding: 0.5rem 2rem;
  }
}

  h1 img{
	max-width: 30rem;
  }
}
@media (min-width: 801px) {
  .overlay {
    padding: 4rem 2rem;
    #padding: 0.5rem 2rem;
  }
  h1 img{
	  width: 50%;
  }
}
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll; /* Fallback: disables parallax */
    background-size: cover;
    background-position: center;
    #height: 50vh; /* Optional: reduce height on small screens */
  }
}
