/* General body styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0e5d8; /* Beige pentru atmosfera dadaistă */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

/* Header styles */
header {
    background-color: #c94c4c; /* Roșu intens */
    color: white;
    padding: 20px 0;
    width: 100%;
}

header h1 {
    font-size: 3em;
    margin: 0;
}

/* Navigation styles */
nav {
    background-color: #333;
    text-align: center;
    padding: 15px 0;
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
}

/* Main section styles */
main {
    padding: 20px;
    width: 100%;
    max-width: 900px; /* Limita lățimea principală pentru a evita texte prea largi pe ecrane mari */
    margin-top: 20px;
}

/* Centering sections and text */
section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

/* Input styles */
textarea, input[type="file"] {
    width: 80%;
    max-width: 500px;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Button styles */
button {
    background-color: #f8a200; /* Galben Dadaist */
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
}

button:hover {
    background-color: #c97f00; /* Galben mai închis la hover */
}

/* Output section */
#output {
    background-color: #fff;
    border: 2px dashed #c94c4c; /* Bordură roșie, asociată cu Dadaismul */
    padding: 25px;
    margin-top: 30px;
    border-radius: 8px;
    max-width: 80%;
    margin: 0 auto;
}

#poemPreview {
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    font-size: 1.3em;
    color: #222;
    word-wrap: break-word;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    position: absolute;
    bottom: 0;
}

/* Responsive design */
@media (max-width: 600px) {
    main {
        padding: 15px;
        width: 100%;
    }

    h2 {
        font-size: 1.6em;
    }

    textarea {
        width: 90%;
        max-width: 100%;
    }

    button {
        font-size: 1.1em;
        padding: 10px 20px;
    }
}
