@import url('https://fonts.googleapis.com/css?family=Roboto+Mono:300,400');

 .editor-menu {
    width: 100%;
    height: 5rem;
    background-color: lightgrey;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 5px 0 5px 1px;
    margin-top: 1px;
     
  }
  
  .btnL {
    color: #fff;
    border: none;
    outline: none;
    background-color: green;
    cursor: pointer;
    padding: 8px 7px;
    border-radius: 3px;
    font-size: 15px;
    margin-right: 8px;
    min-width: 50px;
    transition: all 0.3s;
  }

  .btnr {
    color: #fff;
    border: none;
    outline: none;
    background-color: green;
    cursor: pointer;
    padding: 8px 7px;
    border-radius: 3px;
    font-size: 15px;
    margin-right: 8px;
    min-width: 50px;
    transition: all 0.3s;
  }
  
  .btn:hover {
    background-color: orangered;
  }
  
  .live {
    font-size: 16px;
    margin-left: 120px;
    margin-right: 600px;
    background-color: rgb(198, 240, 179);
    color: #242424;
    font-weight: bold;
    border: 2px solid orangered;
    padding: 7px 7px;
    display: flex;
    align-items: center;
    border-radius: 3px;
    cursor: pointer;
    margin-top: -32px;
  }
  
  .live > * {
    cursor: pointer;
  }
  
  .containercode {
    position: absolute;
    bottom: 0px;
    top: 14rem;
    width: 100%;
    display: flex;
    margin-top: 85px;
    box-sizing: border-box;
  }
  .left {
    height: auto;
    margin-left: 5px;
    width: 50%;
    border: 2px solid #d5d5d5;
  }

    .left2,
    .right {
      height: auto;
    width: 50%;
    border: 4px solid dotted #dfd9d9;
font-size: 20px;
 display: inline-grid;
  vertical-align: top;
  align-items: center;
  position: relative;
  padding: .25em .5em;
  margin: 5px;
  overflow-y: auto;
    }
 .logo {
    margin-right: 90px;
    font-size: 20px;
    margin-left: 25px;
    font-weight: 900;
    color: rgb(0, 111, 238);
    border-bottom: 2px dotted orangered;
    text-shadow: 0px 1px;
    
  }
  
  .editor {
    font-size: 18px;
    width: 100%;
    height: 100%;
    outline: none;
    border-color: #ccc;
    padding: 1rem 0 0 1rem;
    margin-top: 1px;
    border: 12px solid dotted #dfd9d9;
    
  }
  
 
  
  i {
    margin-right: 5px;
  }
  
  .iframe {
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow-y: auto;
    white-space: pre;
    right: 0;
    font-size: 55px;
     margin-top: 1px;
    
    color: #ffffff;
    font-family: consolas,"courier new",monospace!important;
    
    overflow-y: scroll; /* Enable vertical scrolling */
   
  }
/* Style for the home button */
.home-btn {
 border: none;
 color: white;
  margin-left: -20px;
  cursor: pointer;
  outline: none;
    background-color: #17c;
    padding: 8px 7px;
    border-radius: 3px;
    font-size: 15px;
    margin-right: 8px;
    min-width: 50px;
    transition: all 0.3s;
    align-items: center;
    margin-top: -25px;
}

/* Optionally, you can style the button on hover */
.home-btn:hover {
  background-color: #2980b9;
}

/* Define styles for dark mode */
        .dark-mode .editor {
            background-color: #1e1e1e;
            color: white;
        }

        /* Define styles for light mode */
        .light-mode .editor {
            background-color: white;
            color: black;
        }

        

        /* Dark mode for output area */
        .dark-mode .output {
            background-color: #1e1e1e;
            color: white;
        }

        /* Light mode for output area */
        .light-mode .output {
            background-color: white;
            color: black;
        }

        /* Additional styles for output area */
        .output {
            width: 100%;
            height: 200px; /* Adjust height as needed */
            border: 1px solid #ccc;
            padding: 5px;
            font-family: sans-serif;
            overflow-y: auto;
        }

@media (max-width: 768px) {
  body {
    overflow-x: scroll; /* Prevent horizontal scrolling for the entire body */
    max-height: 400px; /* Set a maximum height for the container */
  overflow-y: scroll; /* Allow vertical scrolling */
  }
  
  /* Define styles for dark mode */
        .dark-mode .editor {
            background-color: #1e1e1e;
            color: white;
        }

        /* Define styles for light mode */
        .light-mode .editor {
            background-color: white;
            color: black;
        }

        

        /* Dark mode for output area */
        .dark-mode .output {
            background-color: #1e1e1e;
            color: white;
        }

        /* Light mode for output area */
        .light-mode .output {
            background-color: white;
            color: black;
        }

        /* Additional styles for output area */
        .output {
            width: 100%;
            height: 200px; /* Adjust height as needed */
            border: 1px solid #ccc;
            padding: 5px;
            font-family: sans-serif;
            overflow-y: auto;
        }
  
  /* Style for the home button */
.home-btn {
  border: none;
  color: white;
   margin-left: 1px;
   cursor: pointer;
   outline: none;
     background-color: green;
     padding: 4px 5px;
     border-radius: 3px;
     font-size: 8px;
     margin-right: 8px;
     min-width: 20px;
     transition: all 0.3s;
     align-items: center;
     margin-top: -25px;
 }
  /* Styles for smaller screens */
  .editor-menu {
    width: 98%;
    height: 2rem;
    background-color: rgb(202, 200, 200);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1px 0 5px 10px;
    margin-right: -10px;
    
  }
  .containercode {
    position: absolute;
    bottom: 0px;
    top: 14rem;
    width: 81%;
    display: inline-grid;
    max-width: 100%;
    
  }
  .logo {
    margin-right: -5px;
    font-size: 8px;
    margin-left: 2px;
    font-weight: 800;
    color: green;
    border-bottom: 2px dotted orangered;
    text-shadow: 0px 1px;
    
  }
 
  .btn-dark{
    color: #fff;
    border: none;
    outline: none;
    background-color: green;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 6px;
    margin-left: -100px;
    margin-right: 40px;
    min-width: 1px;
    transition: all 0.3s;
  }
  .btn-light{
    color: #fff;
    border: none;
    outline: none;
    background-color: green;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 6px;
    margin-left: -35px;
    margin-right: 15px;
    min-width: 10px;
    transition: all 0.3s;
  }
  .btnr {
    color: #fff;
    border: none;
    outline: none;
    background-color: green;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 3px;
    font-size: 8px;
    margin-left: 2px;
    min-width: 5px;
    transition: all 0.3s;
  }
  .live {
    font-size: 8px;
    margin-left: 90px;
    margin-right: 120px;
    background-color: rgb(198, 240, 179);
    color: #242424;
    font-weight: bold;
    border: 2px solid orangered;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    border-radius: 3px;
    cursor: pointer;
    margin-top: -25px;
  }
  
  .container {
    flex-direction: column; /* Stack items vertically */
  }
  .left {
    height: auto;
    margin-left: 5px;
    width: 80%;
    
    
  }
  .left21,
  .right2 {
    width: 100%;
    display: flex;
  vertical-align: top;
  align-items: center;
  position: relative;
  border: 2px solid dotted #dfd9d9;
  padding: .25em .5em;
  margin: 5px;
  overflow-y: auto;
  }
  
  .left2,
  .right {
    width: 118%;
    display: inline-grid;
  vertical-align: top;
  align-items: center;
  position: relative;
  border: 2px solid dotted #dfd9d9;
  padding: .25em .5em;
  margin: 5px;
  overflow-y: auto;
  }
  
.iframe {
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow-y: auto;
    white-space: pre;
    right: 0;
    padding: 4px;
    color: #ffffff;
    font-family: consolas,"courier new",monospace!important;

  }

}

div#content-box {
  width: 100%;
  height: 100%;
  position: relative;
}
div#content-box > textarea,
div#content-box > pre#highlight-area {
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: auto;
  padding: 10pt;
  margin: 0;
  line-height: 18pt;
  font-size: 13pt;
  font-family: 'Roboto Mono', monospace;
  font-weight: 20;
}
div#content-box > textarea {
  resize: none;
  border: none;
  background-color: #444;
  color: #444;
  caret-color: #ddd;
  
}
div#content-box > textarea:focus {
  outline: none;
}
div#content-box > pre#highlight-area {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
div#content-box > pre#highlight-area > span {
  word-wrap: break-word;
  white-space: pre-wrap;
}

.highlight-comma,
.highlight-colon,
.highlight-keyword,
.highlight-operator,
.highlight-function,
.highlight-function-name {
  font-weight: 50;
}

.highlight-argument {
  font-style: italic;
}

.highlight-default,
.highlight-colon,
.highlight-semicolon,
.highlight-comma { color: #ddd; }

.highlight-keyword,
.highlight-operator  { color: #ff6192; }

.highlight-function { color: #47A3FF; }

.highlight-function-name { color: #61FFD3; }

.highlight-argument { color: #FFBC61 }

.highlight-string { color: #9AFF76; }

.highlight-number { color: #C049FE; }

.highlight-comment { color: #777; }

.highlight-left-parentheses,
.highlight-right-parentheses,
.highlight-left-bracket,
.highlight-right-bracket { color: #82C0FF; }

/* Add this style for buffering */
.buffering {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 5px solid #3498db;
  border-radius: 50%;
  border-top: 10px solid #fff;
  animation: spin 1s linear infinite;
}

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

#content-box .editor::first-line {
    margin: 0; /* Remove default margin on first line */
}