@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

#container {
  font-family: "Roboto";
  background-color: #fff7f7;
  color: #332b24;
  line-height: 1.6;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  border: 1px solid #d3c4a9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#stage2 {
  display: flex;
  flex-wrap: wrap;
}

#stage2Form {
  padding: 12px;
  flex: 1 0 600px;
}

#stage2Preview {
  padding: 12px;
  flex: 1 0 400px;
  max-height: 944px;
  overflow-y: auto;
}

#itemList {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  list-style: none;
}

a {
  color: #407dc4;
}

a:visited {
  color: #c44089;
}

h1,
h3,
h4 {
  color: #8b0000;
  border-bottom: 2px solid #8b0000;
  padding-bottom: 5px;
  text-align: center;
}

/* Form elements */
label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #5d4a3e;
}

input[type="text"],
input[type="file"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #c9bca3;
  border-radius: 4px;
  background-color: #ffffff;
  box-sizing: border-box;
  /* Keeps padding from breaking width */
}

/* The Magic Buttons */
button {
  display: block;
  width: 100%;
  background-color: #8b0000;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 25px;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #a50000;
}

.img-container {
  display: flex;
  justify-content: center;
}

#itemList {
  background-color: #fffaf0;
  border: 1px dashed #d3c4a9;
  border-radius: 4px;
  padding: 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

#itemList li {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

#itemList li:last-child {
  border-bottom: none;
}

/* Success Message */
#successMsg {
  text-align: center;
  background: #e8f8f0;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #2ecc71;
}

/* Stage Transitions */
#stage1,
#stage2 {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}