/* Customize Dark Mode */
:root {
  --bg-color: #1e1e1e;
  --text-color: #ffffff;
  --primary-color: #007acc;
  --secondary-color: #292929;
  --border-color: #3e3e3e;
  --hover-color: #2c2c2c;
}

/* Customize Light Mode */
.light-mode {
  --bg-color: #ffffff;
  --text-color: #333333;
  --primary-color: #0056b3;
  --secondary-color: #f0f0f0;
  --border-color: #cccccc;
  --hover-color: #e0e0e0;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

h1 {
  color: var(--primary-color);
  margin: 0;
}

select,
button {
  padding: 10px;
  margin-bottom: 20px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  filter: brightness(1.1);
}

.content {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex: 1;
}

.problem-section,
.code-section {
  flex: 1;
  background-color: var(--secondary-color);
  padding: 15px;
  border-radius: 4px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
}

.problem-header,
.code-header {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.copy-btn {
  margin-top: 10px;
  width: auto;
  padding: 5px 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.problem-section,
.code-section {
  animation: fadeIn 0.5s ease-out;
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }
}
