/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 27-Dec-2022, 15:22:06
    Author     : prasadgrajan
*/

* {
  padding: 0;
  margin: 0;
  outline: 0;
}

iframe#code {
  bottom: 0;
  position: relative;
  width: 100%;
  height: 40vh;
  border: unset;
  background: #225588;
}

.CodeMirror {
  font-size: 16px;
}

.cm-s-monokai.CodeMirror {
  height: 100%;
  width: 100%;
}

.prism-live {
  height: 100%;
  width: 100%;
}
div#coding_area > div {
  width: 100%;
  border-left: 15px solid #555865;
}
div#coding_area > div:first-child {
  border-left: none;
}
div#coding_area {
  width: 100%;
  height: calc(60vh - 60px);
  min-height: 125px;
  display: flex;
  overflow: hidden;
  /* border-bottom: 15px solid #555865; */
}
div#code_output {
  height: 100%;
}
* {
  box-sizing: border-box;
}

/* .tutor-tab.tutor-course-spotlight-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; 
  width: 100%; 
  padding: 0;
} */

.tutor-col-xl-8 {
  width: 100% !important ;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  max-width: 100vw;
}

#container {
  display: flex;
  flex-direction: column;
  height: 80vh;
  width: 100vw;
  border-radius: 15px;
  box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background: #ffffff;
}

.row:not(:last-child) {
  /* box-shadow: inset 0px 2px 3px 0px rgba(0,0,0,0.5); */
  border-bottom: 3px solid rgba(0, 0, 0, 0.5);
}

.row {
  display: flex;
  flex-direction: row;
  height: 66.66%;
}

.row-bottom {
  display: flex;
  flex-direction: row;
  height: 33.33%;
}

.col {
  overflow: auto;
  border-right: 1px solid #f0f0f0;
}

/* .col:hover {
  overflow-y: auto;
} */

.col::-webkit-scrollbar {
  width: 0.25em;
}

.col::-webkit-scrollbar-track {
  background-color: transparent; /* Make scrollbar track transparent */
}

.col::-webkit-scrollbar-thumb {
  background-color: transparent; /* Make scrollbar thumb transparent by default */
}
.col:hover::-webkit-scrollbar-thumb {
  background-color: #888; /* Color of the draggable scrolling element when the element is hovered */
}

.col::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Color of the draggable scrolling element when hovering */
}
.problem-description {
  flex: 1 1 33.33%;
  padding: 0px;
}

.ide-editor {
  flex: 2 1 66.66%;
}

.col-stdout {
  flex: 1 1 33.33%;
  position: relative;
  box-shadow: 2px 0px 3px 0px rgba(0, 0, 0, 0.5);
}

.col-results {
  flex: 2 1 66.66%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* or any specific height */
}

/* .button-container {
  padding: 20px;
  display: flex;
  flex-direction: row;
  gap: 10px;

} */

button {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #007bff;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.run-submit-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

button:hover {
  background: #0056b3;
}

.rounded-box {
  background-color: #f9f8f8;
  border-radius: 15px;
  padding: 20px;
  margin: 20px;
  font-family: monospace;
  /* height: 50px; Adjust as needed */
}

.rounded-box pre {
  white-space: pre-wrap; /* Since CSS 2.1 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
}

#description pre {
  white-space: pre-wrap; /* Since CSS 2.1 */
  word-wrap: break-word; /* Internet Explorer 5.5+ */
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
  line-height: 1.25;
  font-size: 15px;
  padding: 20px;
}

#title {
  text-align: center;
  padding-top: 10px;
}

.results-content {
  flex-grow: 1;
  font-size: large;
  position: relative;
  min-height: 100%;
}

.success {
  color: #2db45c;
}

.failure {
  color: #ff7f7f;
}

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

.spin {
  animation: spin 2s linear infinite;
  width: 50px;
  height: 50px;
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stdout-header,
.results-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: #888888;
  font-style: italic;
  font-weight: bold;
}

#countdown {
  display: none;
  cursor: pointer;
}

#modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #f9f8f8;
  margin: 15% auto;
  padding: 20px;
  padding-right: 50px;
  border: 1px solid #888;
  width: 60%;
  max-width: 600px;
  border-radius: 10px; /* Rounded corners */
  position: relative; /* For the close button */
}

#message {
  display: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.notepad-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

#notepadButton {
  display: block;
  /* position: absolute;
  left: 0; */
  transition: background-color 0.3s ease;
}

#notepadButton.pressed {
  background-color: #ddd !important;
}
#editorWrapper {
  position: absolute;
  border: 1px solid black;
  /* padding: 10px; */
  border-radius: 5px;
  top: 100%;
  left: 45%;
  transform: translate(-50%, -50%);
  height: 50%;
  width: 30%;
}

#editor {
  height: 200px;
}

#closeButton {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  display: none;
}

#loadingSpinner {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: loadingSpin 2s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

@keyframes loadingSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.button-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
  gap: 10px;
}

.imgContainer {
  display: flex;
  justify-content: center;
  padding: 20px;
  /* width: 10%;
    height: 10%; */
}

.problem-img {
  height: 100%;
  width: 100%;
}

.fullscreen .ql-editor {
  color: white;
}




.trainBrain-container {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#trainBrain {
  background-color: #F0F0F0; /* neutral light color */
  padding: 10px;
  border-radius: 5px;
}

#help-button {
  background-color: #F0F0F0; /* neutral light color */
  border: none;
  cursor: pointer;
  border-radius: 5px;
  color: black;

}

.hidden {
  display: none;
}

#popup {
  position: absolute;
  padding: 20px;  /* Add padding to prevent overlap */
  border-radius: 5px;
  z-index: 5; /* Sit on top */
  background: white;
  border: 1px solid #000;

}

#popup-close-button {
  position: absolute;
  top: 5px;  /* adjust as needed */
  right: 5px;  /* adjust as needed */
  background: none;
  border: none;
  font-size: 20px; /* adjust size as necessary */
  cursor: pointer;
  border: 1px solid #000; /* Add a border */
  border-radius: 50%; /* Make it circular */
  padding: 1px 5px; /* Add some padding */
  color: #000;  /* Make the 'x' visible */
}

#popup-close-button:hover {
  color: red;
}