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

body {
  font-family: 'Recursive', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', 'Courier New', monospace;
  font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 400, 'slnt' 0, 'CRSV' 0;
  background: #272822; /* Monokai background */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow-x: hidden;
}

h1.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 9rem; /* 25% smaller than 12rem */
  font-weight: 900;
  color: rgba(255, 255, 255, 0.02);
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 900, 'slnt' 0, 'CRSV' 0;
  text-transform: lowercase;
  margin: 0;
}

main {
  max-width: 1200px;
  width: 100%;
  padding: 2rem;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.oracle-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
  position: relative;
}

.fortune-container {
  background: transparent;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  flex: 1;
  min-height: 500px; /* Reserve space to prevent layout shift */
}

.cowsay {
  color: #a6e22e; /* Monokai green */
  font-size: 16.8px; /* 20% larger than 14px */
  line-height: 1.3;
  white-space: pre;
  font-family: 'Recursive', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 400, 'slnt' 0, 'CRSV' 0;
  text-shadow: 0 0 8px rgba(166, 226, 46, 0.3);
  display: block;
  text-align: left;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: sticky;
  top: 2rem;
  flex-shrink: 0;
}

.fortune-link {
  color: #e6db74; /* Monokai yellow */
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.2s;
  cursor: pointer;
}

.fortune-link:hover {
  color: #a6e22e; /* Monokai green */
  text-shadow: 0 0 8px rgba(166, 226, 46, 0.4);
}

.github-link {
  color: #75715e; /* Monokai comment */
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.github-link:hover {
  color: #66d9ef; /* Monokai blue */
}

@media (max-width: 900px) {
  h1.watermark {
    font-size: 6rem;
  }
  
  .oracle-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  footer {
    align-items: center;
    align-self: center;
  }
  
  .cowsay {
    font-size: 14px;
  }
  
  main {
    padding: 1rem;
  }
}
