@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;700&family=Lexend+Zetta:wght@400;700&family=Bodoni+Moda:wght@400;700&family=Ubuntu+Mono:wght@400;700&display=swap');

html {
    background-color: #f0f4f9;
    color: #181818;
    font-family: 'Lexend', Arial, sans-serif;
}
  
@media (prefers-color-scheme: dark) {
    html {
      background-color: #1f1f1f;
      color: #f5f5f5;
    }
}
  
.center {
    text-align: center;
}
  
h1, h2, h3 {
    font-size: 300%;
    font-family: 'Lexend Zetta', Arial, sans-serif;
}

h4 {
    font-size: 125%;
    font-family: 'Bodoni Moda', serif;
}

#cmds {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 120%;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  display: block;
  padding: 0;
  margin: 0;
}

.toggle-box {
    display: inline-block;
    border: 2.5px solid #d1d5db;
    border-radius: 0.875em;
    background: #f7fafc;
    box-shadow: inset 0 2px 8px 0 rgba(0,0,0,0.10), inset 0 -2px 8px 0 rgba(0,0,0,0.08);
    padding: 0.5em 1.5em;
}

#typewriter {
  position: relative;
  font-family: 'Ubuntu Mono', monospace;
  font-size: 120%;
  display: inline-block;
  border: 2.5px solid #d1d5db;
  border-radius: 0.875em;
  background: #f7fafc;
  box-shadow: inset 0 2px 8px 0 rgba(0,0,0,0.10), inset 0 -2px 8px 0 rgba(0,0,0,0.08);
  padding: 0.5em 0.7em 0.5em 0.7em;
  margin-top: 0.5em;
  white-space: pre;
  overflow: hidden;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: #1f1f1f;
  vertical-align: text-bottom;
  margin-left: 2px;
  margin-bottom: 1.5px;
  animation: blink-cursor 0.8s steps(1) infinite;
}

@media (prefers-color-scheme: dark) {
  .toggle-box {
    border: 2.5px solid #333a41;
    background: #23272e;
    box-shadow: inset 0 2px 8px 0 rgba(0,0,0,0.30), inset 0 -2px 8px 0 rgba(0,0,0,0.22);
  }
  #typewriter {
    border: 2.5px solid #333a41;
    background: #23272e;
    box-shadow: inset 0 2px 8px 0 rgba(0,0,0,0.30), inset 0 -2px 8px 0 rgba(0,0,0,0.22);
  }
  .cursor {
    background: #f5f5f5;
    animation: blink-cursor-dark 0.8s steps(1) infinite;
  }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes blink-cursor-dark {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Mobile responsive styles for phones in vertical orientation */
@media (max-width: 600px) {
  h1, h2, h3 {
    font-size: 180%;
  }
  
  h4 {
    font-size: 100%;
  }
  
  .toggle-box {
    padding: 0.3em 0.8em;
    margin: 0.5em;
  }
  
  #typewriter {
    font-size: 100%;
    padding: 0.3em 0.8em;
    margin-top: 0.3em;
  }
  
  #cmds {
    font-size: 100%;
  }
  
  .center {
    padding: 0 0.5em;
  }

  .cursor {
    margin-bottom: 0.75px;
  }
}