/* Custom scrollbar for Microsoft Edge style */
select::-webkit-scrollbar,
.code-box::-webkit-scrollbar,
.console-box::-webkit-scrollbar {
  width: 12px;
}

select::-webkit-scrollbar-track,
.code-box::-webkit-scrollbar-track,
.console-box::-webkit-scrollbar-track {
  background: #f4f4f9;
  border-radius: 6px;
}

select::-webkit-scrollbar-thumb,
.code-box::-webkit-scrollbar-thumb,
.console-box::-webkit-scrollbar-thumb {
  background: #007bff;
  border-radius: 6px;
}

select::-webkit-scrollbar-thumb:hover,
.code-box::-webkit-scrollbar-thumb:hover,
.console-box::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}

/* Other styles remain unchanged */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

h1 {
  color: #333;
}

select {
  padding: 10px;
  margin: 20px 0;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}

.links {
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
}

.links a {
  color: #007bff;
  text-decoration: none;
  margin: 5px;
}

.links a:hover {
  text-decoration: underline;
}

.code-box {
  position: relative; /* Needed to position the button inside the box */
  width: 85%;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  color: #e0e0e0;
  padding: 20px;
  margin-top: 30px;
  border-radius: 12px;
  font-family: "Fira Code", monospace;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.console-box {
  width: 85%;
  background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
  color: #e0e0e0;
  padding: 20px;
  margin-top: 30px;
  border-radius: 12px;
  font-family: "Fira Code", monospace;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.code-box:hover,
.console-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #f5f5f5;
  letter-spacing: 0.5px;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
}

.console-box {
  background-color: #232323;
  min-height: 180px;
  border-radius: 10px;
  padding: 15px;
}

#console-output {
  color: #76c7c0; /* Console green color */
}

#raw-code {
  color: #f7f7f7;
}

.code-box code,
.console-box code {
  color: #f8f8f2;
  background-color: transparent;
}

.code-box,
.console-box {
  box-sizing: border-box;
}

.copy-btn {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
  transition: background-color 0.3s;
}

.copy-btn:hover {
  background-color: #45a049;
}

.copy-btn:active {
  background-color: #397c38;
}
