body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#app-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: row;
}
.automation-container {
  flex: 1;

  padding: 20px;
}

.card-container {
  width: 300px;
  height: 100%;
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  border-right: 1px solid #0056b3;
  background-color: #0056b309;
  cursor: pointer;
}
/* Media Query for screens less than 900px */
@media (max-width: 900px) {
  #app-container {
    flex-direction: column;
  }

  .card-container {
    width: 100%;
    border-bottom: 1px solid #0056b3;
    height: auto;
  }
}

#login-container {
  max-width: 300px;
  margin: 0 auto;
  padding: 20px;
}
input {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  box-sizing: border-box;
}

button {
  padding: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  width: 100%;
}

button:hover {
  background-color: #0056b3;
}

button.instructions {
  padding: 5px;
  background-color: #007bff; /* Same shade of blue as the original button */
  color: #fff; /* Keep the text color white */
  border: none;
  cursor: pointer;
  width: auto; /* Adjust width to auto */
  font-size: 0.875em; /* Slightly smaller text */
  border-radius: 4px; /* Optional: to make the button corners a bit rounded */
  margin-top: 10px; /* Add margin-top */
  position: absolute;
  right: 10px; /* Position 10px from the right edge */
  top: 10px; /* Position 10px from the top edge */
}

button.instructions:hover {
  background-color: #0069d9; /* Slightly darker for hover effect */
}

button.instructions:active {
  background-color: #0056b3; /* Even darker when active */
}

.card {
  font-size: 12px;

  width: 280px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;
}

.automation-card {
  position: relative;
}

#instructions-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 20px;
  overflow-y: scroll;
}

#overlay-content {
  max-width: 1000px;
  margin: 0 auto; /* Center the content horizontally */
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
}

#instructions-overlay button.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px; /* Increased padding for better touch target */
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: #0056b3;
}

#instructions-overlay button.close-button:hover {
  color: #ccc; /* Lighten color on hover */
}

.progress-container {
  display: none;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.progress-text {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.progress-bar {
  width: 100%;
  height: 30px;
}

.log-textbox {
  width: 100%;
  height: 150px;
  margin-top: 10px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
  overflow-y: auto;
  font-family: Consolas, monospace; /* Use a monospaced font for log display */
}

.popup-container {
  background-color: transparent;
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  max-height: 90vh;
  overflow-y: auto;
  color: #333;
}

.popup-container h1 {
  font-size: 24px;
  margin-bottom: 20px;
}

.popup-container h2 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.popup-container h3 {
  font-size: 18px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.popup-container ul,
.popup-container ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.popup-container ul li,
.popup-container ol li {
  margin-bottom: 10px;
}

.popup-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.popup-container table,
.popup-container th,
.popup-container td {
  border: 1px solid #ddd;
}

.popup-container th,
.popup-container td {
  padding: 10px;
  text-align: left;
}

.popup-container th {
  background-color: #f4f4f4;
}

.popup-container blockquote {
  background-color: #f9f9f9;
  border-left: 10px solid #ccc;
  margin: 20px 0;
  padding: 10px 20px;
}

.popup-container footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}
