@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

body {
    background-color: #000;
    color: #39FF14;
    font-family: 'Fira Code', monospace;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    text-shadow: 0 0 10px #0f0;
    margin-bottom: 20px;
}

.boards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.boards a {
    padding: 12px 25px;
    border: 2px solid #0f0;
    background-color: #111;
    text-decoration: none;
    color: #39FF14;
    box-shadow: 0 0 10px #0f0;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.boards a:hover {
    background-color: #0f0;
    color: #000;
    box-shadow: 0 0 15px #39FF14;
}

form {
    max-width: 600px;
    margin: 0 auto 30px auto;
    padding: 20px;
    background: #111;
    border: 1px solid #0f0;
    box-shadow: 0 0 10px #0f0;
    border-radius: 5px;
    box-sizing: border-box; /* importante */
}

/* Inputs y textarea */
form input[type="text"],
form textarea {
    width: 100%;
    box-sizing: border-box; /* para incluir padding y border en el ancho */
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #0a0a0a;
    color: #7CFC00;
    border: 2px solid #39FF14;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 1em;
    box-shadow:
        inset 0 0 8px #39FF14,
        0 0 6px rgba(57, 255, 20, 0.6);
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
}

form input[type="text"]:focus,
form textarea:focus {
    background: #141414;
    color: #adff2f;
    border-color: #adff2f;
    box-shadow:
        inset 0 0 12px #adff2f,
        0 0 10px rgba(173, 255, 47, 0.8);
}

form input[type="text"]::placeholder,
form textarea::placeholder {
    color: #55aa22;
    font-style: italic;
}

form textarea {
    min-height: 120px;
}


button {
    background: #0f0;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-family: 'Fira Code', monospace;
    box-shadow: 0 0 10px #0f0;
}

button:hover {
    background: #39FF14;
    box-shadow: 0 0 15px #39FF14;
}

.post {
    max-width: 600px;
    margin: 20px auto;
    background: #111;
    padding: 15px;
    border-left: 4px solid #0f0;
    box-shadow: 0 0 10px #0f0;
    border-radius: 4px;
    word-wrap: break-word;
}


small {
    display: block;
    margin-top: 10px;
    font-size: 0.8em;
    color: #00cc00;
}

a.back {
    display: block;
    text-align: center;
    margin-bottom: 20px;
    color: #0f0;
    text-decoration: underline;
}
.upload-label {
    display: inline-block;
    padding: 8px 12px;
    background-color: #111;
    border: 1px solid #0f0;
    color: #0f0;
    cursor: pointer;
    box-shadow: 0 0 5px #0f0;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
}

.upload-label:hover {
    background-color: #0f0;
    color: #000;
}

.post-img {
    display: block;
    margin: 10px auto 0 auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border: 1px solid #0f0;
    box-shadow: 0 0 8px #0f0;
    border-radius: 4px;
}

#previewContainer {
    position: relative;
    margin-top: 15px;
    padding: 10px;
    background-color: #111;
    border: 1px solid #0f0;
    box-shadow: 0 0 10px #0f0;
    border-radius: 5px;
    max-width: 300px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.preview-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    margin-top: 5px;
    border: 1px solid #39FF14;
    box-shadow: 0 0 6px #0f0;
}


.preview-hidden {
    display: none;
}


.remove-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #300;
    color: #f00;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-family: monospace;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    padding: 0;
    box-shadow: 0 0 6px red;
}

.remove-button:hover {
    background: #f00;
    color: #fff;
    box-shadow: 0 0 10px red;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* para alinear arriba */
    max-width: 600px;
    margin: 0 auto 20px auto;
    padding: 10px 10px 0 10px; /* menos padding abajo */
    color: #39FF14;
    font-family: 'Fira Code', monospace;
    text-shadow: 0 0 10px #0f0;
    /* border-bottom: 1px solid #0f0;  opcional para delimitar */
}

.header h1 {
    font-size: 1.8em;
    margin: 0; /* quitar margen para que quede arriba */
    user-select: none;
}

.header input[type="text"] {
    width: 140px;
    padding: 6px 10px;
    background: #000;
    border: 1px solid #0f0;
    border-radius: 4px;
    color: #0f0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    box-shadow: 0 0 5px #0f0;
    outline: none;
    transition: background-color 0.3s ease;
    margin-top: 0; /* para que quede pegado arriba */
}

.header input[type="text"]:focus {
    background-color: #111;
    box-shadow: 0 0 12px #39FF14;
}
