body {
  background-color: rgba(254, 246, 226);
}

hr {
  color: darkorange;
  background-color: darkorange;
  height: 5px;
  width: 95vw;
}

.businessCard {
  display: flex;
  flex-flow: row nowrap;
  height: clamp(300px, 30vh, 500px);
  max-width: clamp(300px, 95vw, 800px);
  margin: 20px auto 0 auto;
  background-color: rgba(40, 40, 40, 0.1);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  backdrop-filter: blur(10px) saturate(180%);;
  box-shadow: 2px 4px 10px 1px rgba(0,0,0, 0.5);
  border-radius: 15px;
  align-items: center;
  justify-content: space-evenly;
}

.blurb {
  flex: 1;
  min-width: 0;
  margin: 10px;
  text-align: center;
}

.blurb p,
.blurb h2,
.blurb h4 {
  overflow-wrap:break-word
}
.blurb p {
  font-size: 20px;
}

.avatar {
  max-width: min(30vw, 250px);
  object-fit: contain;
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0, 0.5);
  border: 5px solid darkorange;
}

.vr {
  width: 3px;
  height: 80%;
  margin: 0 20px 0 20px;
  background-color: darkorange;
  align-self: center;
  box-shadow: 2px 4px 10px 1px rgba(0,0,0, 0.5);
}



.container {
  display: flex;
  flex-direction: column;
  max-width: clamp(300px, 95vw, 800px);
  margin: 2rem auto;
}

.ide-theme {
  background-color: #1e1e1e;
  color: #dcdcdc;
  font-family: "JetBrains Mono", 'Fira Code', 'Consolas', monospace;
  border-radius: 0 0 8px 8px;
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
  text-align: left;
}

.ide-theme .keyword { color: #ce8a49; }
.ide-theme .string { color: #82a76b; }
.ide-theme .variable { color: #a381c4; }
.ide-theme .function { color: #dab26d; }
.ide-theme .constant { color: #6e9cbe; }
.ide-theme .comment { color: #6b6b6b; font-style: italic; }
.ide-theme .line-number { 
  color: #4f4f4f; 
  user-select: none;
  margin-right: 15px;
  width: 100%;
}


/* 1. The Container */
.code-editor {
  counter-reset: line; /* Initialize the counter named 'line' */
  background-color: #1e1e1e;
  padding: 1rem;
  font-family: "JetBrains Mono", 'Courier New', monospace;
  text-align: left;
  width: 100%;
}

/* 2. The Line */
.line {
  display: block;
  position: relative;
  padding-left: 4.5rem;
  padding-right: 1rem;
  text-align: left;
  text-indent: -2rem;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  min-height: 1.5em;
}

.indent {
  padding-left: 6rem;
  text-indent: -2rem;
  overflow-wrap: anywhere;
}

.line::before {
  counter-increment: line;
  content: counter(line);
  position: absolute;
  left: 0px;
  width: 1.5rem;
  text-align: left;
  color: #555; /* Dim color for line numbers */
  user-select: none; /* Prevents users from highlighting the numbers */
  border-right: 1px solid #333; /* Adds a faint vertical separator */
  padding-right: 5px;
  text-indent: 0;
}

.code-editor-header {
  background-color: #262626;
  display: flex;
  gap: 8px;
  padding: 12px;
  flex-direction: row-reverse;
  align-self: left;
  border-radius: 8px 8px 0 0;
  margin: 0 auto -8 auto;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.editor-window-title {
  color: whitesmoke;
  margin: auto auto 0 12px;
}

/* The Blinking Cursor */
.cursor {
  display: inline-block;
  width: 8px; /* Change to 2px if you want a thin line instead of a block */
  height: 1.1em;
  background-color: #dcdcdc; /* Matches your text color */
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

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


@media (max-width: 640px) {
  .businessCard {
    flex-flow: column nowrap;
    height: auto;
  } 
  .vr {
    width: 80%;
    height: 3px;
    margin: 20px 0 20px 0;
    box-shadow: 2px 4px 10px 1px rgba(0,0,0, 0.5);
  }
  .avatar {
    max-height: 30vw;
  }
  .blurb {
    width: 80%;
  }
}
