/* Style for the label */
label[for="encodingSelector"] {
    display: block;
    margin: 15px 0 5px; /* Compact spacing */
    font-size: 14px; /* Smaller font size */
    font-weight: bold;
    color: #4af626; /* Terminal green */
    text-align: left; /* Align text to the left */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Light shadow */
    padding-left: 5px; /* Left padding for alignment */
}

/* Style for the dropdown menu */
select#encodingSelector {
    display: block;
    margin: 0 0 20px; /* Compact spacing */
    width: 180px; /* Smaller width */
    padding: 8px 12px; /* Compact padding */
    font-size: 14px; /* Smaller font size */
    font-weight: bold;
    background: #000; /* Pitch black background */
    color: #4af626; /* Terminal green */
    border: 1px solid #444;
    border-radius: 8px; /* Smaller border radius */
    appearance: none; /* Remove default dropdown arrow */
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4), inset -2px -2px 4px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left; /* Align text inside dropdown */
    text-transform: uppercase; /* Uppercase for dropdown options */
}

/* Customize options inside the dropdown */
select#encodingSelector option {
    background-color: #000; /* Pitch black background */
    color: #4af626; /* Terminal green */
    padding: 8px; /* Smaller padding */
    font-size: 14px; /* Smaller font size */
    text-transform: none; /* Preserve case */
    text-align: left; /* Align text inside options */
}

/* Add a custom arrow to the dropdown */
select#encodingSelector::-ms-expand {
    display: none; /* Hide default arrow in IE */
}

/* Hover effect for the dropdown */
select#encodingSelector:hover {
    background: #111; /* Slightly lighter pitch black */
    border-color: #4af626; /* Terminal green */
}

/* Focus effect for the dropdown */
select#encodingSelector:focus {
    outline: none;
    background: #222; /* Slightly lighter pitch black */
    border-color: #4af626; /* Terminal green */
    color: #4af626; /* Terminal green */
}

.tooltip {
    position: absolute;
    background-color: #000; /* Pitch black background */
    color: #4af626; /* Terminal green */
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInTooltip 0.2s ease;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000; /* Pitch black background */
    color: #4af626; /* Terminal green */
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    max-width: 700px;
    margin: 60px auto;
    padding: 30px;
    background-color: #111; /* Slightly lighter pitch black */
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4af626; /* Terminal green */
}

h1 img {
    margin-right: 10px;
    height: 30px;
}

.github-link {
    text-align: center;
    margin-bottom: 10px;
}

.github-link a {
    color: #4af626; /* Terminal green */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.github-link a:hover {
    text-decoration: underline;
}

.about-button {
    display: block;
    margin: 10px auto 20px;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #4af626; /* Terminal green */
    color: #000; /* Pitch black text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    transition: background-color 0.3s ease;
}

.about-button:hover {
    background-color: #3e9e1e; /* Darker terminal green */
}

#aboutModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #111; /* Slightly lighter pitch black */
    color: #4af626; /* Terminal green */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#aboutModal p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#aboutModal .close-button {
    display: block;
    margin: 0 auto;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #4af626; /* Terminal green */
    color: #000; /* Pitch black text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#aboutModal .close-button:hover {
    background-color: #3e9e1e; /* Darker terminal green */
}

.editor-container {
    position: relative;
    margin-top: 20px;
}

.file-manager-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.file-manager-toggle img {
    height: 20px;
}

.fullscreen-toggle {
    position: absolute;
    top: 40px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.fullscreen-toggle img {
    height: 20px;
}

#codeEditor {
    padding: 12px;
    font-size: 16px;
    background-color: #000; /* Pitch black background */
    color: #4af626; /* Terminal green */
    border: 1px solid #ccc;
    border-radius: 5px;
    min-height: 200px;
    max-height: 400px;
    overflow: auto;
    white-space: pre;
    outline: none;
    margin: 0;
}

#dataUrlDisplay {
    margin-top: 20px;
    background-color: #111; /* Slightly lighter pitch black */
    padding: 12px;
    border-radius: 5px;
    word-wrap: break-word;
    font-family: monospace;
    color: #4af626; /* Terminal green */
    white-space: nowrap;
    overflow-x: auto;
}

.copy-button {
    display: block;
    margin: 10px auto;
    padding: 6px 12px;
    font-size: 14px;
    background-color: #4af626; /* Terminal green */
    color: #000; /* Pitch black text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    transition: background-color 0.3s ease;
}

.copy-button:hover {
    background-color: #3e9e1e; /* Darker terminal green */
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background-color: #111; /* Slightly lighter pitch black */
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.modal h2 {
    text-align: center;
    margin-bottom: 20px;
}

.modal button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 14px;
    background-color: #4af626; /* Terminal green */
    color: #000; /* Pitch black text */
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    background-color: #3e9e1e; /* Darker terminal green */
}

.about-button, .file-manager-toggle, .fullscreen-toggle, .copy-button, .convert-button {
    background-color: #4af626; /* Terminal green */
    border: none;
    color: #000; /* Pitch black text */
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.repo-link-container {
    margin-top: 20px;
    text-align: center;
}

.repo-link-container label {
    display: block;
    margin-bottom: 10px;
}

.repo-link-container input {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Custom CSS for black theme */

/* Stars */
#canvas {
    display: block;
    position: fixed;  /* Cover the viewport */
    top: 0;
    left: 0;
    width: 100vw;  /* 100% of the viewport width */
    height: 100vh; /* 100% of the viewport height */
    z-index: -99999;
    pointer-events: none; /* Prevents canvas from interfering with interactions */
}
