/* Font Import */
@font-face {
  font-family: 'NaNHolo';
  src: url('https://res.cloudinary.com/deecyf6kh/raw/upload/v1754120072/NaNHoloMono-Medium_imlgue.woff2') format('woff2');
  font-display: swap;
}

/* Base Styles */
body {
  background-color: #f5f5f5;
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ASCII Art Library */
.ascii-art {
  font-family: 'NaNHolo', 'Courier New', monospace;
  font-size: 18px;
  color: #333;
  line-height: 1.2;
}

.library-container {
  position: relative;
  display: inline-block;
}

/* Interactive Book Overlays */
.book-overlay {
  position: absolute;
  cursor: pointer;
  background-color: transparent;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  z-index: 10;
}

.book-overlay:hover {
  background-color: rgba(70, 130, 180, 0.3);
  border: 1px solid rgba(70, 130, 180, 0.8);
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(70, 130, 180, 0.4);
}

/* Book Display Area */
.book-display {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-right: 180px;
}

/* Book States */
.book-closed, 
.book-open {
  font-family: 'NaNHolo', 'Courier New', monospace;
  font-size: 16px;
  color: #444;
  line-height: 1.2;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-open {
  color: #2c5aa0;
  font-size: 14px;
  cursor: pointer;
  min-height: 140px;
}

.book-open:hover {
  color: #1e3a78;
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Notion Content Styles */
.notion-embedded {
  font-family: 'NaNHolo', 'Courier New', monospace;
  font-size: 11px;
  color: #000;
  line-height: 1.2;
  transition: all 0.3s ease;
  min-height: 140px;
  display: block;
  background: #fff;
  border: 2px solid #000;
  overflow: hidden;
}

.notion-error {
  color: #d32f2f;
  text-align: center;
  padding: 20px;
  background: #ffebee;
  border-radius: 6px;
  margin: 20px 0;
}

.notion-error a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: bold;
}

.notion-error a:hover {
  text-decoration: underline;
}