:root {
    --primary: #525252be;
    --secondary: #eb2bdb;
    --ternary: #eb912b;
    --msg-bot: #f1dabf;
    --msg-user: #bfdff1;
    --success: #218f21;
    --error: #8f2121;
}

* {
    font-family: 'Bree Serif', serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

h1 {
    color: var(--primary);
    margin: .15rem auto .25rem auto;
    display: flex;
    align-items: center;
}

h1 p {
    margin: 0;
    padding: 0;
    margin-right: .75rem;
}

h1 p::first-letter {
    font-size: 3rem;
}

h1 span {
    display: block;
    transform: rotate(10deg);
    font-size: 3rem;
}

.link {
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    background: var(--secondary);
    color: #fff;
    padding: 0 1rem .25rem 1rem;
    margin-left: 1.5rem;
}

.link.add {
    border-radius: 50%;
    font-size: 2rem;
}

.link.back {
    border-radius: .75rem;
    font-size: 1.5rem;
}

button {
    font-size: 1.25rem;
    user-select: none;
    cursor: pointer;
    padding: .5rem 1rem;
    border: none;
    border-radius: 1.5rem;
    background: var(--primary);
    color: #fff;
}

#app-container, .bot-form, .msg-form {
    max-width: 400px;
    width: 100%;
}

#app-container button {
    margin: 1rem .5rem;
}

#app-container img {
    max-width: 300px;
    width: 100%;
}
.wait-image {
    margin-top: 35vh;
    max-width: 200px !important;
}


.categorie {
    margin: 0 auto .75rem auto;
    font-size: 1.1rem;
    padding: .25rem .75rem;
}

.question {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    border-radius: 2rem;
    background-color: var(--msg-bot);
    position: relative;
    user-select: none;
}

.question.answer {
    background-color: var(--msg-user);
}

.triangle {
    display: block;
    height: 0;
    width: 0;
    border-top: 43px solid var(--msg-bot);
    border-right: 25px solid transparent;
    border-left: 25px solid transparent;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.bot-info {
    padding-top: 0;
    margin-top: 0;
}
.bot-image {
    border-top: 1px solid #000000b4;
    border-left: 1px solid #000000b4;
    border-right: 1px solid #000000b4;
    border-radius: 2rem 2rem 0 0;
}

.bot-hobby, .bot-name {
    padding: 0;
    margin: auto;
    max-width: 300px;
}
.bot-name {
    border-radius: 0 0 1.5rem 1.5rem;
    background: #000000b4;
    color: #fff;    
}
.bot-name span {
    display: inline-block;
    font-size: 110%;
    margin: 0 .5rem;
}
.bot-hobby {
    text-transform: capitalize;
}
.bot-hobby span {
    font-style: italic;
    margin-right: .35rem;
}

.hidden {
    display: none;
}

/* FORM */

.form-item {
    display: flex;
    flex-direction: column;
    margin: .5rem .75rem;
}

.form-item label {
    text-align: start;
}

.form-item input, .form-item select, .form-item textarea {
    font-size: 1.15rem;
    padding: 0 .5rem;
    border: 1px solid #0000006e;
    border-radius: .15rem;
}

.form-item input[type="submit"] {
    font-size: 1.175rem;
    padding: .3rem 1.25rem;
    margin: .75rem auto;
    border: none;
    cursor: pointer;
    border-radius: .15rem;
    background: var(--ternary);
    color: #fff;
    width: max-content;
}

.bot-error, .msg-error {
    color: red;
}

.success, .errors {
    border-radius: 1rem;
    font-size: 1.25rem;
    padding: 0 .75rem;
}
.success {
    margin: 1rem auto 0 auto;
    background-color: var(--success);
    color: #fff;
}
.errors {
    background-color: var(--error);
    color: #fff;
}