@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital@0;1&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    border: 0;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: #18191a;
    color: #e4e6eb;
}

header {
    padding-top: 30px;
    padding-bottom: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #242526;
}

header h1 {
    margin-bottom: 20px;
}

main {
    padding-top: 10px;
    width: 100%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prompts-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.form-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    background-color: #242526;
    border: 1.5px solid #3a3b3c;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 0 8px 1px #3a3b3c;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 200px;
}

.form-prompt:focus-within {
    border-color: #7289da;
    box-shadow: 0 0 12px 2px #7289da;
    outline: none;
}

.textarea-form {
    width: 550px;
    min-height: 80px;
    height: 280px;
    padding: 10px;
    border-radius: 5px;
    background-color: #242526;
    color: #e4e6eb;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
    resize: none;
}

.textarea-form:focus {
    outline: none;
}


.btn-form {
    padding: 12px;
    color: #3a3b3c;
    background-color: #e4e6eb;
    border-radius: 10px;
    align-self: flex-end;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.btn-form:hover {
    background-color: #484848;
}


.ia-response {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#ia-response-text {
    width: 550px;
    padding: 10px;
    border-radius: 5px;
    background-color: #242526;
    color: #e4e6eb;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    box-shadow: 0 0 8px 1px #3a3b3c;
    margin-top: 20px;
}


.disabled {
    background-color: #3a3b3c;
    color: #b0b3b8;
    cursor: not-allowed;
}

/* Vista móvil: reduce todo un 20% */
@media (max-width: 600px) {
    .main-container {
        transform: scale(0.8);
    }

    .textarea-form,
    #ia-response-text {
        width: 440px;
        font-size: 13px;
        padding: 8px;
    }

    .form-prompt {
        height: 160px;
        padding: 8px;
        border-radius: 12px;
    }

    .btn-form {
        padding: 10px;
        border-radius: 8px;
        font-size: 13px;
    }

    header {
        text-align: center;
    }

    #ia-response-text {
        margin-top: 16px;
        border-radius: 4px;
    }
}

