body {
  background-color: #d2d2d2;
  color: #d2d2d2;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  font-size: larger;
}

.terminal {
  background-color: #1d1f21;
  border-radius: 25px;
  width: 100%;
  height: 100%;
  font-family: "Orbitron", sans-serif;


  overflow: hidden;
  /* max-width: 800px; */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  margin: 20px; /* Add margin for smaller screens */
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap; /* Prevents wrapping on small screens */
  padding: 10px;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fbc2eb, #8ec5fc);
  color: white;
  background-size: 400% 400%;
  animation: gradientBG 5s ease infinite;
  white-space: nowrap; /* Prevent text from wrapping */
}

.terminal-name {
  flex-grow: 1; /* Takes up remaining space */
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  overflow: hidden;
  text-overflow: ellipsis; /* Prevents text overflow */
  max-width: calc(100% - 100px); /* Reserves space for buttons */
}

.btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0; /* Prevents buttons from shrinking */
}

.btn {
  width: 20px;
  height: 20px;
  border-radius: 100%;
  border: none;
}

.close {
  background-color: #ff605c;
}

.minimize {
  background-color: #ffbd44;
}

.maximize {
  background-color: #00ca4e;
}

.terminal-body {
  padding: 20px;
  line-height: 1.5;
  background-color: #2d3748;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.prompt {
  display: flex;
  align-items: center;
}

.user-input {
  outline: none;
  border: none;
  background: none;
  color: #f4f3f3;
  flex-grow: 1;
  display: inline-block;
  margin-left: 10px;
}

p {
  margin: 10px 0;
}

a {
  color: #f4f3f3;
  font-weight: bolder;
}

span {
  color: gray;
}

/* Media Queries for Responsiveness */

/* For tablets and smaller screens (less than 768px) */
@media (max-width: 768px) {
  body {
    font-size: medium;
  }

  .terminal {
    width: 90%;
    max-width: 100%;
  }

  .terminal-header {
    padding: 8px;
  }

  .btn {
    width: 15px;
    height: 15px;
  }
}

/* For mobile devices (less than 480px) */
@media (max-width: 480px) {
  body {
    font-size: small;
  }

  .terminal {
    width: 95%;
    max-width: 100%;
  }

  .terminal-header {
    padding: 8px;
  }

  .btn {
    width: 12px;
    height: 12px;
  }

  .terminal-body {
    padding: 15px;
  }
}
