body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #3e382e;
    color: #e2dfcb;
    font-family: 'Courier New', Courier, monospace;
}

.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.container {
    width: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 50px; /* 👈 Moves everything below the sticky header down */
}

.title {
    height: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #3cff77;
    text-align: center;
}

.main-title {
    font-size: 2em;
    font-weight: bold;
}

.subtitle {
    font-size: 0.9em;
    margin-top: 10px;
    color: #e2dfcb;
    text-align: center;
    width: 100%;
}

.signal-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.input-section {
    height: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

input[type="text"] {
    padding: 10px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
}

button {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #3cff77;
    border: none;
    color: #3e382e;
    cursor: pointer;
}

#response {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

#loadingBarContainer {
    width: 100%;
    height: 20px;
    background: #444;
    margin-top: 20px;
    display: none;
    overflow: hidden;
    border-radius: 3px;
}

#loadingBar {
    width: 0%;
    height: 100%;
    background: #3cff77;
    text-align: center;
    line-height: 20px;
    color: #3e382e;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 5px #3cff77; }
    50% { box-shadow: 0 0 15px #3cff77; }
    100% { box-shadow: 0 0 5px #3cff77; }
}

.footer {
    text-align: center;
    font-size: 0.7rem;
    color: #888;
    padding: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Fullscreen black overlay */
#fadeToBlack {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    z-index: 1000;
    transition: opacity 4s ease;
    display: none;
}

/* Blinking green circle */
#blinker {
    width: 50px;
    height: 50px;
    background-color: #3cff77;
    border-radius: 50%;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Typewriter container */
#typewriter {
    width: 300px;
    color: white;
    font-family: monospace;
    font-size: 1.5em;
    white-space: pre-wrap;
    white-space: pre-line;
    margin: 40px auto 0;
    text-align: center;
    display: none;
}

/* Whiteout screen */
#whiteout {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    color: black;
    font-size: 1.5em;
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    display: none;
}

.sticky-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: #222;
    color: #3cff77;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    box-sizing: border-box;
    overflow-x: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.sticky-header span {
    flex: 1;
}

.support-button {
    background-color: #3cff77;
    color: #3e382e;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.support-button:hover {
    background-color: #32e86d;
}

.inner-header {
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
}

body {
    overflow-x: hidden;
}

html, body, .page-wrapper {
    height: 100%;
}