* {
  box-sizing: border-box;
}

body {
  background-color: black;
  color: #00ff88;
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  padding: 1.5rem;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.terminal {
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: nowrap;
  overflow-x: auto;
}

.line {
  font-size: 1rem;
  margin-bottom: 1rem;
  white-space: normal;
  word-break: break-word;
}

.input-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
}

.input-line span {
  white-space: nowrap;
}

#terminal-input {
  background: transparent;
  border: none;
  color: #00ff88;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  width: auto;
  max-width: 100%;
  min-width: 50px;
  flex-shrink: 1;
}

#errorMsg {
  display: none;
  color: red;
  margin-top: 1rem;
}

#grpCode,
#grpVideo {
  margin-top: 1rem;
  display: none;
}


/* ----------- CSS des folders dans code ----------- */
.folder-button {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}

.folder-button:hover {
  transform: scale(1.1); /* Augmented scale on hover */
}

.folder-container {
  position: relative;
  width: 150px; /* Increased width */
}

.folder-img {
  width: 100%;
  height: auto;
  display: block;
}

.php-icon,
.HtmlCssPhp-icon,
.Swift-icon {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px; /* Increased icon size */
  height: auto;
}


/* ----------- Responsive pour smartphones ----------- */
@media screen and (max-width: 600px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .line {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .input-line {
    flex-direction: row !important;
    justify-content: flex-start;
    gap: 0.3rem;
  }

  #terminal-input {
    font-size: 0.95rem;
    width: auto;
    min-width: 50px;
    flex-shrink: 1;
  }
}