body {
  font-family: Arial, sans-serif;
  background-color: #1a202c;
  margin: 0;
  padding: 0;
  color: #e2e8f0;
  min-height: 100vh;
  box-sizing: border-box;
  /* Remove height and flex layout for natural body height */
}

.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Responsive design */
@media (max-width: 600px) {
    #cheatsheet-form {
      width: 90%;
    }
  
    #cheatsheet-form input[type="text"], #cheatsheet-form input[type="submit"] {
      font-size: 1em;
    }
  
    .command {
      width: 100%;
    }

}

/* #cheatsheet-form {
width: 80%;
margin: 20px auto;
} */

#cheatsheet-form {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.input-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* New property */
    width: 60%;
}


#cheatsheet-form input[type="text"] {
display: block;
width: 100%;
font-size: 1.2em;
padding: 10px;
margin-bottom: 20px;
/* height: 40px; */
}

#cheatsheet-form input[type="submit"] {
font-size: 1.2em;
padding: 10px 20px;
height: 48px;
}



h1 {
  text-align: center;
  color: #e2e8f0;
}

#commands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.command {
  background-color: #232946;
  padding: 24px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(32, 40, 80, 0.18), 0 1.5px 4px rgba(0,0,0,0.08);
  width: 360px;
  position: relative;
  border: 1.5px solid #374151;
  transition: transform 0.15s, box-shadow 0.15s;
}

.command:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(32, 40, 80, 0.22), 0 2px 8px rgba(0,0,0,0.10);
  border-color: #60a5fa;
}

.command .title {
  color: #60a5fa;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.command .description {
  color: #cbd5e1;
  margin-top: 10px;
  font-size: 1.08em;
  line-height: 1.5;
}

.command .usage {
  color: #a0aec0;
  font-style: italic;
  margin-top: 8px;
  font-size: 0.98em;
}

.command .copy-button {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: #4c51bf;
  color: #e2e8f0;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.98em;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(76,81,191,0.10);
  transition: background 0.15s;
}

.command .copy-button:hover {
  background-color: #60a5fa;
}

.spinner {
  margin: 100px auto;
  width: 100px;
  height: 50px;
  text-align: center;
  font-size: 10px;
}

.spinner > div {
  background-color: #e2e8f0;
  height: 100%;
  width: 6px;
  display: inline-block;

  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    -webkit-transform: scaleY(0.4);
  }
  20% {
    -webkit-transform: scaleY(1);
  }
}

@keyframes sk-stretchdelay {
  0%,
  40%,
  100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }
  20% {
    transform: scaleY(1);
    -webkit-transform: scaleY(1);
  }
}
