@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: auto; /* fjernet smooth scroll */
}

/* Grundlæggende */
body {
  font-family: 'Crimson Text', 'Times New Roman', Georgia, serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  overscroll-behavior-y: none; /* forhindrer bounce/overscroll */
}

html {
  overscroll-behavior-y: none; /* forhindrer bounce/overscroll på html også */
}

/* Wrapper til flex layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 200vh;
  position: relative;
  width: 100%;
}

/* Baggrundsbilleder */
.top-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../billeder/hjemmeside-baggrund-top1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  z-index: -3;
}

/* Bund-baggrund nederst i siden */
.bottom-image {
  margin-top: auto;
  width: 100%;
  height: 1080px;
  background-image: url('../billeder/hjemmeside-baggrund-bund1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  z-index: -1;
  position: relative;
}

/* Header & navigation */
header {
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid #000;
  padding: 0;
  position: relative;
  z-index: 10;
  width: 100%;
}

nav {
  max-width: 650px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav h1 a {
  color: #000;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: normal;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  min-width: 0;
}

nav ul li a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  font-weight: normal;
  padding: 0.25rem 0;
}

nav ul li a:hover { 
  color: #000;
}

nav ul li a.active { 
  font-weight: 600; /* fed i stedet for underline */
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  min-width: 160px;
  z-index: 1;
  border: 1px solid #000;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #000;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Main */
main {
  max-width: 650px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
}

.page-title {
  font-size: 2rem;
  font-weight: normal;
  color: #000;
  margin-bottom: 2rem;
}

/* Content wrapper for konsistent layout */
.content {
  width: 100%;
  max-width: 100%;
}

/* Bøger og info */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.book-item {
  background: #fff;
  border: 1px solid #000;
}

.book-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.book-info { 
  padding: 1rem; 
}

.book-title { 
  font-weight: bold; 
}

/* Kontakt styling */
.contact-info {
  text-align: left;
  width: 100%;
  padding: 0;
  margin: 0;
}

.contact-item {
  margin-bottom: 1.5rem;
  padding: 0;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item p {
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: #000;
  text-decoration: underline;
}

.contact-item a:hover {
  text-decoration: none;
}

/* Footer */
footer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: #fff;
  font-size: 0.9rem;
  z-index: 5;
  background: transparent;
  pointer-events: none;
}

/* Splash Screen Overlay - RETRO VERSION */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../billeder/hjemmeside-baggrund-top1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* FJERNET transition */
}

#splash-screen.hidden {
  display: none; /* instant skjul i stedet for fade */
}

.splash-content {
  text-align: center;
  padding: 40px;
  max-width: 500px;
}

.splash-content h1 {
  font-family: 'Crimson Text', 'Times New Roman', Georgia, serif;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #000;
  letter-spacing: 2px;
}

.splash-content p {
  font-family: 'Crimson Text', 'Times New Roman', Georgia, serif;
  margin-bottom: 3rem;
  font-size: 1.2rem;
  color: #333;
  font-style: italic;
}

.enter-btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Crimson Text', 'Times New Roman', Georgia, serif;
  font-size: 2rem;
  color: #000;
  background-color: transparent;
  border: 2px solid #000;
  cursor: pointer;
  font-weight: 400;
}

.enter-btn:hover {
  background-color: transparent; /* ingen farveændring */
  color: #000; /* beholder sort tekst */
}
