@import url("s://fonts.googleapis.com/css2?family=Fira+Code&display=swap");

.container-read {
  max-width: 100%;
  width: 100%;
  max-width: 100%; /* o el tamaño como tope */
  height: auto;
  aspect-ratio: 4 / 3; /* para mantener proporción */
  font-family: "Fira Code", monospace;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(33, 33, 33, 0.75);
  margin: 0 auto; /* centrado */
  max-height: 500px; /* Altura máxima que activa el scroll */
  overflow-y: auto;
}


.terminal_toolbar {
  display: flex;
  height: 30px;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
  justify-content: space-between;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.butt {
  display: flex;
  align-items: center;
}

.btn-brg {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin-right: 5px;
  font-size: 8px;
  height: 12px;
  width: 12px;
  box-sizing: border-box;
  border: none;
  border-radius: 100%;
  background: radial-gradient(circle at 30% 30%, #6c6c6c, #3b3b3b);
  text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2);
  box-shadow:
    0px 0px 1px 0px #41403a,
    0px 1px 1px 0px #474642;
  transition: transform 0.2s ease;
}

.btn-brg-color {
  background: radial-gradient(circle at 30% 30%, #ff5f56, #bf2e2e);
}

.btn-brg:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.btn-brg:focus {
  outline: none;
}

.butt--exit {
  background: linear-gradient(#f37458 0%, #de4c12 100%);
}

.add_tab {
  border: 1px solid #fff;
  color: #fff;
  padding: 0 6px;
  border-radius: 4px 4px 0 0;
  border-bottom: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.add_tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user {
  color: #d5d0ce;
  margin-left: 6px;
  font-size: 14px;
  line-height: 15px;
}

.terminal_body {
  background: rgba(0, 0, 0, 0.4);
  height: calc(100% - 30px);
  padding-top: 8px;
  margin-top: -1px;
  font-size: 13px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.4;

}

.terminal_promt {
  display: flex;
  flex-wrap: wrap;
}

.terminal_promt span {
  margin-left: 4px;
}

.terminal_user {
  color: #00ffae;
  text-shadow: 0 0 4px #00ffae;
}

.terminal_location {
  color: #3d9df6;
  text-shadow: 0 0 4px #3d9df6;
}

.terminal_bling {
  color: #ffffff;
  text-shadow: 0 0 3px #ffffff;
}

.terminal_cursor {
  display: block;
  height: 14px;
  width: 5px;
  margin-left: 10px;
  background: #ffffff;
  animation: curbl 800ms steps(2) infinite;
  border-radius: 1px;
}

@keyframes curbl {
  0%,
  49% {
    background: #ffffff;
  }
  60%,
  99% {
    background: transparent;
  }
  100% {
    background: #ffffff;
  }
}
.btn-red {
  background: radial-gradient(circle at 30% 30%, #ff5f56, #bf2e2e);
}

.btn-yellow {
  background: radial-gradient(circle at 30% 30%, #ffbd2e, #b4820e);
}

.btn-green {
  background: radial-gradient(circle at 30% 30%, #27c93f, #199f2c);
}


/* Scrollbar estilizado para WebKit */
.container-read::-webkit-scrollbar {
  width: 8px;
}

.container-read::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.container-read::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 174, 0.6); /* color tipo terminal */
  border-radius: 8px;
  border: 1px solid #00ffae;
  box-shadow: 0 0 6px rgba(0, 255, 174, 0.5);
}

.container-read::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 174, 0.9);
}

/* Firefox */
.container-read {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 255, 174, 0.6) rgba(0, 0, 0, 0.2);
}


    /* From Uiverse.io by mymiamo */
.card-bg {
  width: 500px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(33, 33, 33, 0.75); /* efecto glass */
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-family: "Fira Code", monospace;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.card-bg:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}


.mac-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.mac-header span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-header .red {
  background-color: #ff5f57;
}

.mac-header .yellow {
  background-color: #ffbd2e;
}

.mac-header .green {
  background-color: #28c941;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px;
  color: #e6e6ef;
}

.card-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.card-bg .card-tag {
  display: inline-block;
  font-size: 10px;
  border-radius: 5px;
  background-color: #0d1117;
  padding: 4px;
  margin-block-end: 12px;
  color: #dcdcdc;
}
.code-editor {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  padding: 15px;
  font-family: "Fira Code", monospace;
  font-size: 14px;
  color: #dcdcdc;
  line-height: 1.5;
  height: 100px;
  overflow: auto;
}


.code-editor::-webkit-scrollbar {
  width: 8px;
}

.code-editor::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.code-editor pre code {
  white-space: pre-wrap;
  display: block;
}