@import url('https://fonts.googleapis.com/css?family=Montserrat');



.typed {
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative; 
}

.typed p {
  font-size: 3rem;
  padding: 0;
  font-weight: bold;
  letter-spacing: 0.1rem;
  overflow: hidden;
  margin: 0;
}

.typed p span.typed-text {
  font-weight: normal;
  color: #FF7F50;
}

.typed p span.cursor {
  display: inline-block;
  background-color: #ccc;
  margin-left: 0.1rem;
  width: 0.1px;
  animation: blink 1s infinite;
  position: absolute; 
  top: 50%;
  transform: translateY(-50%);
}

.typed p span.cursor.typing {
  animation: none;
}

@keyframes blink {
  0% { background-color: #ccc; }
  49% { background-color: #ccc; }
  50% { background-color: transparent; }
  99% { background-color: transparent; }
  100% { background-color: #ccc; }
}

@media screen and (max-width: 600px) {
  .typed {
    flex-direction: column;
    align-items: flex-start;
  }
  .typed p {
    font-size: 2rem;
    text-align: left;
  }
  .typed p:first-child {
    order: 1; 
    margin-bottom: 20px; 
  }
}