/* Global Styles */
body {
    background-color: #000;
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  header {
    padding: 20px;
    display: flex;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
  }
  
  .icon {
    width: 40px;  /* Adjust to your icon size */
    height: 40px;
    margin-right: 10px;
  }s
  
  /* Hacking Simulation Box */
  .hacking-simulation {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .code-box {
    background-color: #000;
    border: 2px solid #00FF00;
    padding: 20px;
    width: 80%;
    min-width: 80%;
    max-width: 80%;
    height: 70%;
    min-height: 70%;
    max-height: 70%;
    font-size: 1.2em;
    text-align: left;
    white-space: nowrap; /* No text wrapping */
    word-wrap: normal;
    color: #00FF00;
    overflow: hidden; /* Prevent scrolling */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  /* Footer Styling */
  footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #000;
    color: #00FF00;
    font-size: 0.8em;
    border-top: 2px solid #00FF00;
  }
  
  .footer-left p {
    margin: 0;
  }
  
  .footer-right {
    display: flex;
    gap: 10px;
  }
  
  footer .btn {
    background: none;
    border: none;
    color: #00FF00;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  footer .btn:hover {
    color: #00FF00;
    text-shadow: 0 0 5px #00FF00, 0 0 10px #00FF00, 0 0 15px #00FF00, 0 0 20px #00FF00;
  }  
  
  /* Center the page content */
  body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }
  
  /* Global Styles */
body {
    background-color: #000;
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 20px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.icon {
    width: 40px;  /* Adjust to your icon size */
    height: 40px;
    margin-right: 10px;
}

/* Hacking Simulation Box */
.hacking-simulation {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-end;  /* Align the box at the bottom */
}

.hacking-platform {
    border-radius: 20px;
    border: 2px solid #00FF00;
    scrollbar-width: thin; /* Thin scrollbar */
    scrollbar-color: #00FF00 #000; /* Green thumb with black track */
    padding: 8px; /* Add some padding to avoid text overlapping with the border */
    box-sizing: border-box; /* Ensures padding is included in the element's total size */
    position: relative; /* Enable z-index to work */
    z-index: 1; /* Ensure the textbox content is on top of the scrollbar */
}

/* Remove default focus styling */
.hacking-platform:focus {
    outline: none; /* Remove outline on focus */
    border: 2px solid #00FF00; /* Keep border color the same when focused */
}

/* Webkit Scrollbar Styling */
.hacking-platform::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
    position: absolute; /* Ensure scrollbar is positioned behind the content */
    z-index: 0; /* Puts the scrollbar behind the content */
}

.hacking-platform::-webkit-scrollbar-thumb {
    background-color: #00FF00; /* Green thumb color */
    border: none; /* No border around the thumb */
}

.hacking-platform::-webkit-scrollbar-track {
    background-color: #000; /* Dark track background */
}

/* Remove the arrows in the scrollbar */
.hacking-platform::-webkit-scrollbar-button {
    display: hidden; /* Hides the arrows */
}

.code-box {
    background-color: #000;
    border: 2px solid #00FF00;
    padding: 20px;
    width: 80%;
    height: 70%;
    font-size: 1.2em;
    color: #00FF00;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

textarea {
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #00FF00;
    font-family: 'Courier New', Courier, monospace;
    border: none;
    padding: 10px;
    resize: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    scroll-behavior: smooth;
}

/* Footer Styling */
footer {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #000;
    color: #00FF00;
    font-size: 0.8em;
    border-top: 2px solid #00FF00;
}

.footer-left p {
    margin: 0;
}

.footer-right {
    display: flex;
    gap: 10px;
}

footer .btn {
    background: none;
    border: none;
    color: #00FF00;
    font-size: 1em;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer .btn:hover {
    color: #00FF00;
    text-shadow: 0 0 5px #00FF00, 0 0 10px #00FF00, 0 0 15px #00FF00, 0 0 20px #00FF00;
}

/* Center the page content */
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
