html {
    background-color: black;
    color: white;
  }
  
  .dark-page {
    background-color: black;
    color: white;
  }

  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  .city-wrapper {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20vh; /* Adjust as needed — 20% of viewport height */
    z-index: 1;
  }

  body:not(.cookies-accepted) > *:not(#cookie-overlay) {
    display: none;
  }
  

  #cookie-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
  }


.fade-out {
    animation: fadeOut 1s ease forwards;
  }



#cookie-modal {
    background-color: black;
    color: white;
    border: 2px solid white;
    padding: 1.5rem 2rem;
    text-align: center;
    font-family: monospace;
  }
  

#cookie-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
  }
  
  

.cookie-option .selector {
    visibility: hidden;
  }
  

  .cookie-option.selected .selector {
    visibility: visible;
    animation: blink 1.1s infinite;
  }

#cookie-feedback {
  display: none;
  font-family: monospace;
  color: white;
  text-align: center;
  font-size: 1.5rem;
  opacity: 0;
}
#cookie-feedback.fade-in {
  display: block;
  animation: fadeIn 1s ease forwards;
}
#cookie-feedback.fade-out {
  animation: fadeOut 1s ease forwards;
}


#main-content {
  opacity: 0;
  transition: opacity 1s ease;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
  font-family: monospace;
  line-height: 1.6;
}
#main-content.visible {
  opacity: 1;
}

a {
    color: #ff66cc;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  
  .text-pink {
    color: #ff66cc;
  }

  .snes-button {
    display: inline-block;
    min-width: 100px;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid white;
    background-color: black;
    color: white;
    font-family: monospace;
    text-decoration: none;
    box-shadow: 4px 4px 0 white;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
  }
  
  .snes-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 white;
    background-color: #222;
  }
  
  .snes-button:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 white;
  }


@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
@keyframes blink {
  0%, 90% {
    visibility: visible;
  }
  91%, 100% {
    visibility: hidden;
  }
}

#dialogue-box {
    border: 3px solid white;
    border-radius: 10px;
    padding: 1.5rem;
    background-color: #000;
    font-family: monospace;
    max-width: 700px;
    min-height: 30vh;
    max-height: 30vh;
    margin: 0 auto;
    box-shadow: inset -2px -2px 0 #444, inset 2px 2px 0 #ccc;
    display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;
  }
  @media (max-width: 768px) {
    #dialogue-box {
        min-height: 30vh;
        max-height: 30vh;
    }
}
  
  .portrait-and-text {
    display: flex;
    align-items: flex-start;
  }
  
  .pixel-portrait {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    margin-right: 1rem;
    border: 2px solid white;
  }
  
  .speaker-label {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .typewriter-text {
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    font-family: monospace;
    overflow-wrap: break-word;
    border-right: 2px solid white;
    min-height: 1.4em; 
    opacity: 1; 
    font-size: 1.25rem; 
    line-height: 1.6;
  }

  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  @keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: white; }
  }
  
  .button-row {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: auto;
    gap: 1rem;
    z-index: 2;

  }
  .pixel-portrait,
  .speaker-label,
  .typewriter-text {
    opacity: 0;
  }

  .fade-in {
    opacity: 1 !important;
    transition: opacity 0.6s ease;
  }





.portfolio-background {
    position: relative;
    overflow: hidden;
    height: 60vh;
    background: black;
    border-radius: 10px;
  }
  
  .stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='1' fill='white'/%3E%3Ccircle cx='50' cy='30' r='1' fill='white'/%3E%3Ccircle cx='70' cy='80' r='1' fill='white'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: scrollStars 60s linear infinite;
    z-index: 0;
  }
  
  @keyframes scrollStars {
    from { background-position: 0 0; }
    to { background-position: 0 1000px; }
  }
  .cityscape {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 8vh;
    display: flex;
    align-items: flex-end;
    z-index: 1;
 
    padding: 0 5px;
    flex-grow: 1;
  }
  ul {
    list-style: none !important;
  }
  
  .building {
    width: 24px;
    height: calc(40px + 30 * var(--height-multiplier, 1));
    background: #333;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 6px;

    padding: 4px;
    box-sizing: border-box;
    flex: 1;
    margin: 0 1px;
    min-width: 12px;
    max-width: 30px;
    
  }
  
  .window {
    width: 100%;
    height: 100%;
    background: #222;
    opacity: 0.2;
  }
  
  .window.lit {
    background: yellow;
    opacity: 0.8;
  }
  
  .content-overlay {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    color: white;
  }

  .cityscape,
.stars {
  pointer-events: none;
}

.filesystem-tree a {
    color: white;
    text-decoration: none;
    position: relative;
    font-family: monospace;
    transition: color 0.1s ease;
    z-index: 1;
    list-style: none !important;
  }
  

  .filesystem-tree a:hover,
  .filesystem-tree a:focus,
  .filesystem-tree a:active {
    color: #ff66cc;
    animation: retro-blink 0.8s steps(2, start) 2;
  }
  

  @keyframes retro-blink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0.2;
    }
  }


#dynamic-modal-container {
    z-index: 10000;
  }
  
  .modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }
  
  .modal-dialogue {
    background-color: #000;
    color: white;
    border: 3px solid white;
    border-radius: 10px;
    padding: 1.5rem;
    font-family: monospace;
    box-shadow: inset -2px -2px 0 #444, inset 2px 2px 0 #ccc;
    max-width: 90%;
    width: 500px;
    text-align: center;
  }
  
  .modal-dialogue input[type="email"] {
    width: 90%;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: monospace;
    border: 2px solid white;
    background-color: black;
    color: white;
  }
  
  .modal-dialogue .button-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }


  #loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    font-family: monospace;
    color: #ff66cc;
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-align: center;
  }
  
  .loading-frame {
    border: 3px solid white;
    padding: 2rem 3rem;
    background-color: black;
    box-shadow: inset -2px -2px 0 #444, inset 2px 2px 0 #ccc;
    animation: pulse 1s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }


  .modal-dialogue textarea {
    width: 90%;
    padding: 0.5rem;
    font-family: monospace;
    border: 2px solid white;
    background-color: black; 
    color: white;
    resize: vertical;
    font-size: 0.95rem;
  }
  
  .helper-text {
    font-size: 0.8rem;         
    color: #66ccff;           
    margin-top: 0.5rem;
    text-align: left;
  }


  #music-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10001;
    font-family: monospace;
    font-size: 1.5rem;
    background: black;
    color: white;
    border: 2px solid white;
    padding: 0.5rem 0.75rem;
    box-shadow: 2px 2px 0 white;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
  }
  #music-toggle:hover {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 white;
  }
  
