/* Basics */

* {
    box-sizing: border-box;
    transition: all 100ms;
}

html {
    margin: 0;
    min-height: 100%;
}

body {
    margin: 0;
    background-color: #f0f0f0;
    color: #111111;
    min-height: 100vh;
    font-family: 'fira_sansregular', sans-serif;
}

article {
    max-width: 800px;
    margin: auto;
}

/* Common */

.button {
    display: inline-block;
    color: white;
    font-family: 'fira_sansmedium', sans-serif;
    font-weight: 700;
    background-color: #ff9d00;
    padding: 5px 20px;
    border-radius: 3px;
}

a.button {
    text-decoration: none;
}

.button:hover {
    background-color: #ffaf2e;
}

/* Menu bar */

nav {
    font-family: 'fira_sansmedium', sans-serif;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 3.5rem;
    background-color: #000000D0;
    color: white;
    width: 100%;
    position: sticky;
    top: 0;
}

nav>a {
    color: white;
    padding: 0 1rem;
    height: 100%;
    line-height: 3.5rem;
    text-decoration: none;
}

nav>a:hover {
    background-color: #ffffff20;
    box-shadow: inset 0 -0.2rem #ff9d00;
}

/* Main screen */

#catgallery {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 15rem;
    margin: 3.5rem auto;
}

.profile {
    min-width: 10rem;
    min-height: 10rem;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.profile>* {
    margin: 1rem;
}

.profile-pic {
    max-width: 8rem;
    border-radius: 100%;
    box-shadow: 0 0.2rem 1rem 0 #11111142;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

footer>* {
    margin-left: 10px;
    margin-right: 10px;
}

#message-composer {
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    border: none;
    border-bottom: 2px solid #ff9d00;
    background-color: #FFFFFF30;
}

#message-composer:active {
    border-bottom: 3px solid #ff9d00;
}

#message-composer:focus-visible {
    outline: none;
    border-bottom: 3px solid #ff9d00;
}

/* Messages */
#history {
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    padding: 10px;
    max-height: calc(100vh - 100px - 3.5rem);
}

.message {
    padding: 10px 25px;
    margin-bottom: 10px;
    width: fit-content;
}

.catmessage {
    background-color: #c4c4c4;
    align-self: flex-start;
    border-radius: 10px 10px 10px 0;
}

.humanmessage {
    background-color: #ff9d00;
    color: white;
    align-self: flex-end;
    border-radius: 10px 10px 0 10px;
}

img.previewpic {
    border-radius: 10px;
    max-width: 500px;
    max-height: 300px;
}