/* Global Styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  body {
    margin: 0;
    padding: 0;
    background: url('download (1).png') no-repeat center center fixed;
    background-size: cover; /* Adjust to cover the entire viewport */
    background-attachment: fixed; /* Ensure image is fixed relative to viewport */
    position: relative;
    overflow-x: hidden;
  }
  
  /* Wrapper */
  .wrapper {
    display: flex;
    position: relative;
    z-index: 1;
  }
  
  /* Sidebar */
  .wrapper .sidebar {
    width: 200px;
    height: 100%;
    background: black;
    padding: 30px 0;
    position: fixed;
    z-index: 3;
  }
  
  .wrapper .sidebar h2 {
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .wrapper .sidebar ul li {
    padding: 15px;
    border-bottom: 1px solid rgba(206, 197, 197, 0.245);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .wrapper .sidebar ul li a {
    color: #bdb8d7;
    display: block;
    text-decoration: none;
  }
  
  .wrapper .sidebar ul li:hover {
    background-color: #594f8d;
  }
  
  .wrapper .sidebar ul li:hover a {
    color: #fff;
  }
  
  /* Banner */
  .banner {
    position: relative;
    width: calc(100% - 200px); /* Adjusted for sidebar */
    height: 100vh;
  
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Arial, sans-serif;
    margin-left: 200px; /* Adjusted for sidebar */
  }
  
  .banner img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
  }
  
  .banner img.hidden {
    opacity: 0;
  }
  
  .banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(21, 25, 30, 0.848);
    background-size: cover;
    z-index: 1;
  }
  
  .overlay {
    position: relative;
    text-align: center;
    z-index: 3;
  }
  
  .overlay h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-family: 'Pacifico';
    color: #fff703;
  }
  
  .overlay p {
    margin-bottom: 30px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  }
  
  /* Button */
  .btn {
    position: relative;
    display: inline-block;
    padding: 20px 30px;
    color: #b79726;
    font-size: 30px !important;
    text-decoration: none;
    text-transform: uppercase;
    overflow: hidden;
    transition: .5s;
    margin-top: 40px;
    letter-spacing: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
  }
  
  .btn:hover {
    background: #f4d7a9 !important;
    color: black !important;
    border-radius: 5px;
  }
  
  .btn span {
    position: absolute;
    display: block;
  }
  
  .btn span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f4c003);
    animation: btn-anim1 1s linear infinite;
  }
  
  @keyframes btn-anim1 {
    0% {
      left: -100%;
    }
    50%,
    100% {
      left: 100%;
    }
  }
  
  .btn span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #f4bc03);
    animation: btn-anim2 1s linear infinite;
    animation-delay: .25s;
  }
  
  @keyframes btn-anim2 {
    0% {
      top: -100%;
    }
    50%,
    100% {
      top: 100%;
    }
  }
  
  .btn span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #f4dc03);
    animation: btn-anim3 1s linear infinite;
    animation-delay: .5s;
  }
  
  @keyframes btn-anim3 {
    0% {
      right: -100%;
    }
    50%,
    100% {
      right: 100%;
    }
  }
  
  .btn span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #f4b003);
    animation: btn-anim4 1s linear infinite;
    animation-delay: .75s;
  }
  
  @keyframes btn-anim4 {
    0% {
      bottom: -100%;
    }
    50%,
    100% {
      bottom: 100%;
    }
  }
  
  /* Tabs Section */
  .tabs {
    position: relative;
    width: calc(100% - 200px); /* Adjusted for sidebar */
    margin-left: 200px;
  }
  
  .tabs .title {
    padding: 50px 20px 100px;
    text-align: center;
    font-size: 45px;
    color: #fff;
    background: rgb(16, 13, 28);
  }
  
  .tabs .tab-header,
  .tabs .tab-indicator,
  .tabs .tab-body {
    margin: 0 auto;
    max-width: 650px;
    width: 100%;
  }
  
  .tabs .tab-header {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    height: 60px;
    margin-top: -60px;
    z-index: 2;
  }
  
  .tabs .tab-header>div {
    width: 25%;
    text-align: center;
    padding: 15px 0;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: color 300ms ease-in-out;
  }
  
  .tabs .tab-header>div.active {
    color: #30181d;
  }
  
  .tabs .tab-indicator {
    position: relative;
    height: 60px;
    margin-top: -60px;
  }
  
  .tabs .tab-indicator>div {
    position: absolute;
    left: 0;
    width: 25%;
    height: 100%;
    background: #fff;
    border-radius: 10px 10px 0 0;
    transition: all 300ms ease-in-out;
  }
  
  .tabs .tab-body {
    position: relative;
  }
  
  .tabs .tab-body>div {
    position: absolute;
    width: 100%;
    padding: 10px;
    opacity: 0;
    top: -100vh;
  }
  
  .tabs .tab-body>div>* {
    margin: 10px 0;
  }
  
  .tabs .tab-body>div>p {
    color: #555;
    font-size: 15px;
  }
  
  .tabs .tab-body>div.active {
    top: 0;
    opacity: 1;
    transition: top 0ms ease-in-out 0ms, opacity 500ms ease-in-out 0ms;
  }
  
  /* Swap Box */
  .login-box {
    
      position: absolute;
      margin-top: 40% !important;
      left: 50%;
      width: 800px;
      padding: 40px;
      transform: translate(-50%, -50%);
      background: rgba(63, 63, 63, 0.999);
      box-sizing: border-box;
      box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
      border-radius: 10px;
    }
  
  .login-box h2 {
    margin: 0 0 30px;
    padding: 0;
    color: #fff;
    text-align: center;
  }
  
  .login-box .user-box {
    position: relative;
    margin-bottom: 30px;
  }
  
  .login-box .user-box input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
    border: none;
    border-bottom: 1px solid #fff;
    outline: none;
    background: transparent;
  }
  
  .login-box .user-box label {
    position: absolute;
    top: 50%;
    left: 0;
    padding: 10px 0;
    font-size: 16px;
    color: #fff;
    pointer-events: none;
    transition: 0.5s ease-in-out;
    transform: translateY(-50%);
  }
  
  .login-box .user-box input:focus ~ label,
  .login-box .user-box input:not(:placeholder-shown) ~ label {
    top: -20px;
    left: 0;
    color: #03e9f4;
    font-size: 12px;
    transform: translateY(0);
  }
  
  .button-container .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
  }
  
  .btn {
    padding: 10px 10px;
    border: none;
    cursor: pointer;
    font-size: 16px !important;
    text-transform: uppercase;
    color: #fff;
    border-radius: 5px;
  }
  
  .btn.submit {
    background-color: #28a745;
  }
  
  .btn.reset {
    background-color: #dc3545;
  }
  
  /* Responsive Styles */
  @media (max-width: 1068px) {
    .login-box {
      width: 95%;
      padding: 30px;
      max-width: none; /* Remove max-width constraint */
    }
  
    .login-box h2 {
      font-size: 24px;
    }
  
    .login-box .user-box input {
      font-size: 14px;
    }
  
    .login-box .user-box label {
      font-size: 14px;
    }
  
    .button-container .btn {
      font-size: 14px;
      padding: 8px 16px;
    }
  }
  
  @media (max-width: 768px) {
    .login-box {
      width: 95%;
      padding: 20px;
    }
  
    .login-box h2 {
      font-size: 22px;
    }
  
    .login-box .user-box input {
      font-size: 14px;
    }
  
    .login-box .user-box label {
      font-size: 14px;
    }
  
    .button-container .btn {
      font-size: 14px;
      padding: 8px 16px;
    }
  }
  
  @media (max-width: 480px) {
    .login-box {
      width: 90%;
      padding: 15px;
    }
  
    .login-box h2 {
      font-size: 20px;
    }
  
    .login-box .user-box input {
      font-size: 12px;
    }
  
    .login-box .user-box label {
      font-size: 12px;
    }
  
    .button-container .btn {
      font-size: 12px;
      padding: 6px 12px;
    }
  }
  
  
  /* Container for the code editor */
  .heading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25vh; 
    background: rgb(16, 13, 28);
    color: white;
    margin-top: 65vh; /* 60% of viewport height */
    width: 95%;
    position: relative;
    margin-left: 7.5%; /* Center horizontally */
  }
  
  @media (max-width: 768px) {
    .heading-container {
      margin-top: 50vh; /* Adjust gap for tablets */
      width: 90%; /* Adjust width for smaller screens */
      margin-left: 5%; /* Adjust centering */
    }
  }
  
  @media (max-width: 480px) {
    .heading-container {
      margin-top: 40vh; /* Adjust gap for very small screens */
      width: 95%; /* Ensure it fits small screens */
      margin-left: 2.5%; /* Adjust centering */
    }
  }
  
  .editor-heading {
    font-size: 2.5rem; 
    font-weight: bold;
    padding-left: 4%;
  }
  
  
  /* Editor container */
  .editor-container {
    background-color: #2d2d2d;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    max-width: 60%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    
    position: relative;
    transform: translateX(-50%);
    left: 37%;
  }
  
  /* Tabs for editor and output */
  .editor-tabs {
    display: flex;
    background-color: #333;
  }
  
  .editor-tab {
    background-color: #444;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    flex-grow: 1;
    text-align: center;
  }
  
  .editor-tab.active {
    background-color: #007acc;
  }
  
  /* Editor textarea */
  .editor {
    padding: 10px;
    display: none;
  }
  
  #html {
    display: block;
  }
  
  textarea {
    background-color: #1e1e1e;
    border: none;
    border-radius: 3px;
    color: #dcdcdc;
    width: 100%;
    height: 200px;
    padding: 10px;
    font-size: 14px;
    resize: none;
    font-family: 'Courier New', Courier, monospace;
  }
  
  textarea:focus {
    outline: none;
  }
  
  button {
    background-color: #007acc;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
  }
  
  /* button:hover {
    background-color: #005999;
  } */
  
  /* Output console */
  pre {
    background-color: #1e1e1e;
    padding: 10px;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 200px;
    border-radius: 3px;
  }
  
  #outputConsole {
    background: #1e1e1e;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-family: monospace;
    font-size: 1rem;
    color: white;
  }
  
  /* Additional Responsive Styles */
  @media (max-width: 768px) {
    .heading-container {
      margin-top: 0;
      height: auto;
      width: 100%;
      margin-left: 0;
    }
    .login-box {
      z-index: 2;
    }
    .editor-container {
      max-width: 80%; /* Adjusted width for better fit on smaller screens */
      margin: 20px auto;
      transform: translateX(-35%); /* Move slightly to the left */
    }
  }
  
  @media (max-width: 480px) {
    .heading-container {
      height: 15vh;
      margin-top: 15%;
    }
    .editor-container {
      max-width: 95%;
      transform: translateX(-25%); /* Move slightly to the left for very small screens */
    }
    textarea {
      height: 100px;
    }
    pre {
      min-height: 100px;
    }
  }
  
  
  
  
  
  
  
  
  
  
  /* Footer section */
  .footer {
    background-color: #282828;
    color: #f4f4f4;
    padding: 40px 0;
    text-align: left;
    width: calc(100% - 200px); /* Adjust width to account for sidebar */
    margin-left: 200px; /* Align with sidebar */
    box-sizing: border-box; /* Ensure padding and width are calculated correctly */
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }
  
  .footer-col {
    flex: 1;
    margin: 10px;
    min-width: 200px; /* Adjust min-width for more columns */
  }
  
  .footer-col h4 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-col h4::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #f4c003;
  }
  
  .footer-col ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-col ul li {
    margin-bottom: 10px;
  }
  
  .footer-col ul li a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
  }
  
  .footer-col ul li a:hover {
    color: #f4c003;
  }
  
  .social-links a {
    display: inline-block;
    margin-right: 15px;
    font-size: 18px;
    color: #f4f4f4;
    transition: color 0.3s;
  }
  
  .social-links a:hover {
    color: #f4c003;
  }
  
  .footer-col.logo h4::before {
    display: none; /* Remove the underline for the logo */
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 10px;
    font-size: 14px;
  }
  
  .footer-bottom p {
    margin: 0;
  }
  
  @media (max-width: 768px) {
    .footer-col {
      flex: 1 1 100%;
      margin: 20px 0;
    }
  
    .footer {
      width: 100%; /* Full width on smaller screens */
      margin-left: 0; /* No margin on smaller screens */
    }
  }
  