/* HEAD */

.head h1 {
  margin-bottom: 10px;
}

/* Validation */

.validations {
  margin-top: 10px;
}

.challenge-container {
    display: flex;
    flex-direction: column;
    padding: 0 10%;
}

input.correct {
  background-color: lightgreen;
}

input.incorrect {
  background-color: #ffcccc;
}

div p {
  white-space: break-spaces;
}

pre {
    overflow-x: scroll;
}

details {
  cursor: pointer;
}

.completed-message {
  padding: 10px;
  background-color: lightgreen;
  margin: 10px 0;
  border-radius: 4px;
}

.code-container pre {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 15px;    /* Adjust font size here */
  line-height: 1.5;
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
  overflow-x: auto;
}

.code-container code {
  background: none;
  font-size: inherit;
  color: inherit;
  border-radius: 8px;
  padding: 0;
}

.code-editor {
  width: 100%;
  margin: 10px 0;
  box-sizing: border-box;
  border: none;
}

.code-editor-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px 10px 0 0;
  padding: 10px 20px;
  padding-top: 15px;
  border: 1.5px solid #E4E6E7;
  border-bottom: none;
  position: relative;
  margin-top: 20px;
}

.code-editor-bar p {
  color: #999999;
  font-size: 13px;
}

.code-editor-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}

.code-container {
  background: white;
  border: 1.5px solid #E4E6E7;
  border-top: none;
  /* margin-top: 20px; */
  border-radius: 0 0 10px 10px;
  /* box-shadow: 0 2px 12px rgba(0,0,0,0.08); */
  padding: 0;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.code-container-solution {
  background: white;
  border: 1.5px solid #E4E6E7;
  /* margin-top: 20px; */
  border-radius: 10px;
  /* box-shadow: 0 2px 12px rgba(0,0,0,0.08); */
  padding: 0;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

pre .line-numbers {
  border-right: none;
}

/* Question Card */
.question-card {
  padding: 15px;
  background-color: white;
  border-radius: 10px;
  border: solid 1px #E4E6E7;
}

.question-title {
  margin: 0;
}

.question-description {
  margin: 0;
}

.question-input {
  width: 100%;
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.question-input input {
  width: 80%;
}

.form-control {
  padding: 8px 12px;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  transition: border 0.2s, background 0.2s;
}

.form-control:focus {
  border-color: #000;
  outline: none;
}

.send_btn {
  background: #B33791;
  color: white;

  width: fit-content;
  display: flex;
  align-items: center;

  padding: 8.5px;
  border: none;
  border-radius: 5px;

  cursor: pointer;
}

.submit-key {
  background-color: #f0f0f0;
  border: solid 1px #E4E6E7;
  display: flex;
  align-items: center;
  color: gray;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 13px;

  font-family: 'Courier New', Courier, monospace;
}

/* Hint Card */
.hint-container {
  text-align: left;
  width: 100%;
  margin: 10px 0;
}

.hint-container details {
  margin: 5px 0;
  background-color: #f0f0f0;
  padding: 10px 15px;
  border-radius: 10px;
  border: solid 1px #E4E6E7;
}

/* REFERENCES */

.references {
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    border: solid 1px #E4E6E7;
}

.ref-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-title .ast {
  background-color: #B33791;
  padding: 5px;
  display: flex;
  justify-content: center;
  border-radius: 4px;
}

.ref-title h2 {
  margin: 0;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px);}
  to { opacity: 1; transform: none;}
}

/* images in write up */
div img {
  max-height:100%; 
  max-width:100%;
}

