@font-face {
  font-family: 'IM Fell Great Primer';
  font-style: italic;
  src: url('assets/fonts/im-fell-great-primer/IMFeGPit29P.ttf') format('truetype');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100vh;
  overflow: hidden; /* Prevent scrolling */
  width: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a; /* Darker grey background */
  font-family: system-ui, sans-serif;
  padding: 2rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  .landing {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .img-wrap {
    max-width: 150px;
    max-height: 150px;
    margin: 0 auto 0.75rem;
  }
  
  .img-wrap img {
    max-height: 150px;
  }
}

.landing {
  text-align: center;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100vh;
  padding: 1rem;
  box-sizing: border-box;
}

.header {
  font-family: 'IM Fell Great Primer', serif;
  font-style: italic;
  font-size: 2.5rem;
  color: #e8e6e3;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.time-display {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 0;
  margin-bottom: 1rem; /* Reduced margin */
}

.img-wrap {
  width: 100%;
  max-width: 200px; /* Smaller max width */
  max-height: 200px; /* Constrain height */
  margin: 0 auto 1rem; /* Reduced margin */
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent shrinking */
}

.img-wrap img {
  max-width: 100%;
  max-height: 200px; /* Smaller max height */
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.img-wrap img.hidden {
  display: none;
}

.enter {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: #c9a227;
  color: #1a1a1a;
  text-decoration: none;
  font-family: 'IM Fell Great Primer', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  /* Old Macintosh-style raised border: white top/left, black bottom/right */
  border: 2px solid;
  border-color: #fff #000 #000 #fff;
  box-shadow: 
    1px 1px 0 0 #000,
    -1px -1px 0 0 #fff;
  transition: all 0.15s;
  position: relative;
}

.enter:hover {
  background: #ddb63a;
  /* Slightly pressed look on hover */
  border-color: #ccc #333 #333 #ccc;
}

.enter:active {
  /* Pressed/inset look: black top/left, white bottom/right */
  border-color: #000 #fff #fff #000;
  box-shadow: 
    inset 1px 1px 2px 0 rgba(0, 0, 0, 0.5),
    inset -1px -1px 1px 0 rgba(255, 255, 255, 0.3);
  transform: translate(1px, 1px);
}

.footer-text {
  margin-top: 0.5rem;
  color: #999;
  font-size: 0.85rem;
  line-height: 1.6;
  flex-shrink: 0; /* Prevent shrinking */
}

.footer-text p {
  margin: 0.1rem 0;
}

.powered-by {
  font-style: italic;
  color: #aaa;
}

.gramps-link {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.gramps-link:hover {
  color: #ccc;
}

.note {
  color: #888;
  font-size: 0.7rem;
}

.user-guide-link {
  color: #aaa;
  text-decoration: underline;
  transition: color 0.2s;
}

.user-guide-link:hover {
  color: #ccc;
}

.mute-button {
  margin-top: 0.1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mute-button img {
  width: 24px;
  height: 24px;
  display: block;
}

.mute-button:hover {
  transform: scale(1.1);
  opacity: 1;
}

.mute-button:active {
  transform: scale(0.95);
}
