/* ========= BASE PAGE ========= */
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at bottom, #02020f, #000000 80%);
    font-family: "Courier New", monospace;
    color: #e8faff;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ========= STARFIELD ========= */
.star {
    position: absolute;
    background: #ffffff;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    opacity: 0.8;
    animation: drift 18s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    from { transform: translateY(0); }
    to   { transform: translateY(-1500px); }
}

/* ========= PORCH FRAME ========= */
.porch-frame {
    width: 600px;
    background: rgba(20, 20, 30, 0.75);
    border: 2px solid #3beaff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 25px #00baff;
    position: relative;
    z-index: 2; /* Above the stars */
}

/* ========= TITLE ========= */
.title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #6ff7ff;
    text-shadow: 0 0 10px #2cd2ff;
}

/* ========= BASE PAGE ========= */
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at bottom, #02020f, #000000 80%);
    font-family: "Courier New", monospace;
    color: #e8faff;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ========= STARFIELD ========= */
.star {
    position: absolute;
    background: #ffffff;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    opacity: 0.8;
    animation: drift 18s linear infinite;
    pointer-events: none;
}

@keyframes drift {
    from { transform: translateY(0); }
    to   { transform: translateY(-1500px); }
}

/* ========= PORCH FRAME ========= */
.porch-frame {
    width: 600px;
    background: rgba(20, 20, 30, 0.75);
    border: 2px solid #3beaff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 25px #00baff;
    position: relative;
    z-index: 2; /* Above the stars */
}

/* ========= TITLE ========= */
.title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #6ff7ff;
    text-shadow: 0 0 10px #2cd2ff;
}

/* ========= MESSAGE BOX ========= */
.message-box {
    height: 200px;
    background: rgba(0, 0, 0, 0.45);
    padding: 15px;
    border-radius: 6px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #3beaff;
}

.message-box p {
    margin-bottom: 12px;
}

.message-box strong {
    color: #6ff7ff;
}

/* ========= INPUT ROW ========= */
.input-area {
    display: flex;
    gap: 10px;
}

#userInput {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #3beaff;
    background: #000;
    color: #b7f7ff;
}

#userInput::placeholder {
    color: #4ea0b5;
}

/* ========= BUTTON ========= */
#sendBtn {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    background: #19bfff;
    color: #000;
    font-weight: bold;
    border: none;
    transition: 0.2s;
}

#sendBtn:hover {
    background: #8ff6ff;
}
