/* SimpleRISC Assembler Web Interface Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  text-align: center;
  border-radius: 5px 5px 0 0;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .main {
    flex-direction: row;
  }

  .editor-container,
  .output-container {
    flex: 1;
  }
}

.editor-container,
.output-container {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.button-group {
  margin-bottom: 10px;
}

button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-right: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

#assemble-btn {
  background-color: #2ecc71;
}

#assemble-btn:hover {
  background-color: #27ae60;
}

textarea {
  width: 100%;
  min-height: 400px;
  padding: 10px;
  font-family: "Courier New", Courier, monospace;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.4;
}

#output-area {
  background-color: #f8f9fa;
}

footer {
  text-align: center;
  margin-top: 20px;
  color: #7f8c8d;
  font-size: 14px;
}

/* Add the GitHub corner icon styling */
.github-corner {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background-color: #333;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.github-corner:hover {
  transform: scale(1.1);
  background-color: #4078c0;
}

.github-corner i {
  font-size: 28px;
}

/* Implementation Details Section Styles */
.implementation-details {
  background-color: #fff;
  padding: 20px;
  margin-top: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.implementation-details h2 {
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.details-content {
  padding: 0 10px;
}

.details-content h3 {
  color: #2c3e50;
  margin-top: 20px;
  margin-bottom: 10px;
}

.details-content p {
  margin-bottom: 15px;
  text-align: justify;
}

.details-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.details-content li {
  margin-bottom: 5px;
}

.instruction-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.instruction-table th,
.instruction-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.instruction-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.instruction-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.instruction-table tr:hover {
  background-color: #f1f1f1;
}
