/* styles.css */

.code-runner-quizzes {
    all: initial;
}

/* tracing block */
.ace-editor-tracing {
    width: 100%;
    border-radius: 0 0 10px 10px;
    background: var(--code-bg, #f6f6f6);
    color: var(--code, black);
    font-family: 'Menlo', 'Roboto Mono', 'Courier New', Courier, monospace;
    font-size: 14px;
    height: auto;
    line-height: 18px;
}

.trace-label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.trace-textarea {
    width: 100%;
    margin-top: 10px;
    border-radius: 5px;
    padding: 8px;
    white-space: pre;
    resize: vertical;
}



.submit-button {
    margin-right: 10px;
    background-color: white;
}

.next-button {
    margin-top: 10px;
    margin-bottom: 10px;
}

.button-row {
  display: flex;
  margin-top: 10px;
  margin-bottom: 10px;
  align-items: center;
}

button {
    background-color: white;
    border-radius: 5px;
    box-shadow: none;
}

button:hover{
    background-color: #f0f0f0;
}

/* testcases */
.testcase-button-container {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto; /* scroll horizontally if too many buttons */
}

.testcase-button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.highlight-actual {
    background-color: #ffd0d0;
    border-radius: 4px;
    padding: 2px;
}

.highlight-expected {
    background-color: #ccf9cc;
    border-radius: 4px;
    padding: 2px;
}

/* hints */
.hint-button-container {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto; /* scroll horizontally if too many buttons */
}

.hint-button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.another-hint{
    margin-top: 10px;
    margin-bottom: 10px;
}

.loader {
  border: 6px solid grey;   
  border-top: 6px solid green;  
  border-radius: 50%;
  width: 25px;                
  height: 25px;
  margin-right: 5px;
  animation: spin 1s linear infinite;
  background: transparent;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hint-loading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: grey;
}

.question-box {
    background-color: #f0f0f0;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 5px;
}

.line-number {
    color: grey;
    user-select: none;
    padding-right: 1em;
    font-size: .8em;
}

.hint-text {
    display: block;
    color: black;
    font-weight: normal;
}

.container-box {
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    border-radius: 5px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

#container-header p {
    text-align: right;
}

#start-button {
    width: fit-content;
    background-color: white;
}

.choicesContainer {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.choicesContainer label {
    padding-left: 8px;
    vertical-align: top;
}

.code-snippet {
    overflow-x: auto;
    width: fit-content;
    margin-left: 10px;
}

.code-snippet-single {
    display: inline-block;
    padding: 8px;
    background-color: #ffffff;
    color: #000000;
    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #cccccc;
    border-radius: 4px;
    white-space: pre-wrap;
}

.reset-button {
    margin-top: 10px;
    margin-left: 15px;
}

.solution-box {
    padding: 10px;                
    border: 1px solid #ccc;       
    border-radius: 5px;          
    background-color: #f3f4f5;   
    margin-top: 10px;
}

.solution-box p {
    margin: 0; /* remove extra spacing from paragraphs generated by Markdown */
}
