/* General reset */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

/* Body and layout */
body {
 font-family: Arial, sans-serif;
 background-color: antiquewhite;
 display: flex;
 flex-direction: column;
 height: 100vh;
 overflow: hidden; 
}

/* Header */
header {
 background-color: orange;
 color: black;
 padding: 15px;
 text-align: center;
 font-size: 20px; 
 position: sticky;
 top: 0;
 z-index: 1000; 
}

 
.logo1{
 width: auto;
 height: 40px;
 margin: 10px 15px;
 border: 10px ;
 border: 20px;
 
 
}
.logo2{
 
 width: auto;
 height: 30px;
 margin: 10px 0px;
}
nav{
 display: flex; 
 align-items: center;
 height: 30px;
 padding: 20px 0;
 }   
 .but2{
  width: 100px;
  height: 30px;
  margin: 10px 10px;
  background-color: rgba(255, 166, 0, 0);
  font-size: 15px;
  border: 2px orange;
} 
.div1{
 margin-left: 50%;
}
a{
 text-decoration: none;
 color: rgba(0, 0, 0, 0.986);
}
a:hover{
 color: antiquewhite;
}
#btn-login{
 color: black;
}

/* Container to hold sidebar and main content */
#container {
 display: flex;
 flex: 1; 
 overflow: hidden; 
}

/* Sidebar (Aside) */
#sidebar {
 width: 25%;
 background-color: orange;
 color: antiquewhite;
 padding: 20px;
 overflow-y: auto; 
 height: 100%;  
 }

#sidebar a {
 color: antiquewhite;
 display: block;
 padding: 10px;
 text-decoration: none;
}

#sidebar a:hover {
 background-color: rgba(255, 68, 0, 0.582);
}
#sidebar ul {
 list-style-type: none;
}
#module-list a:hover {
    background-color: antiquewhite;
    border-radius: 10px;
   color: orange; 
   transition: 3s ease-in-out;
  }

/* Main content area */
#main-content {
 width: 100%;
 overflow-y: auto; 
 padding: 20px;
  height: 100%;  
}
#main-content h3{
 margin: 10px 0;
}
#main-content p{
 margin-bottom: 10px;
}
#main-content pre{
 margin-bottom: 10px;
 font-size: 15px;
}
/* Module content */
#module {
 margin-bottom: 20px;
}

/* Workspace */
#workspace {
 margin-top: 10px;
 
 padding-top: 20px;
}

#editor {
 width: 100%;
 height: 300px;
 background-color: #2e2e2e;
}

/* Buttons */
button {
 padding: 10px 20px;
 margin-top: 20px;
 cursor: pointer;
 border: none;
 background-color: orange;
 color: antiquewhite;
 font-size: 16px;
 border-radius: 5px;
}

button:hover {
 background-color: rgba(255, 68, 0, 0.493);
}

#module-controls {
 margin-top: 20px;
 display: flex;
 justify-content: space-between;
}

/* Iframe for live preview */
#preview-area {
 margin-top: 20px;
 /* border-top: 2px solid #ccc; */
 padding-top: 20px;
}

#preview-frame {
 width: 100%;
 height: 300px;
 border: 1px solid orange;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
 #sidebar {
     width: 100%;
     position: relative;
     height: auto;
 }

 #main-content {
     margin-left: 0;
     width: 100%;
 }
 
 #sidebar a {
     padding: 15px;
     font-size: 18px;
 }
}
