html,
body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
position: relative;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
}
main {
max-height: 100%;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
button {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
}
.ui {
position: absolute;
bottom: 40px;
left: 40px;
right: 40px;
display: flex;
justify-content: flex-end;
#companion {
position: relative;
&:hover {
cursor: pointer;
}
#companion-shape {
height: 40px;
width: 40px;
}
#companion-mouth {
position: absolute;
z-index: 2;
bottom: 16%;
left: calc(50% - 15px);
width: 30px;
height: 15px;
border: solid 3px #590c13;
border-color: #590c13 transparent transparent transparent;
border-radius: 70%/15px 15px 0 0;
transform: rotate(180deg);
opacity: 0;
}
#companion-eye {
height: 20px;
width: 20px;
top: 20%;
left: calc(50% - 10px);
position: absolute;
border-radius: 50%;
background-color: #ebeef2;
#companion-pupil {
height: 5px;
width: 5px;
top: 50%;
left: calc(50% - 4px);
position: absolute;
border-radius: 50%;
background-color: #0d0d0d;
}
}
}
#message {
position: absolute;
right: 60px;
bottom: 50px;
margin-right: 100px;
padding: 25px;
border-radius: 10px;
background-color: white;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
min-width: 70%;
#message-text {
margin-bottom: 25px;
font-size: 18px;
}
#message-input {
margin-bottom: 25px;
font-size: 16px;
padding: 6px 10px;
border-radius: 5px;
border: 2px solid #b0b7bf;
min-height: 100px;
}
#message-confirm {
align-self: flex-end;
padding: 6px 15px;
background-color: transparent;
border: 2px solid black;
border-radius: 5px;
font-weight: bold;
max-width: 180px;
&:hover {
cursor: pointer;
background-color: black;
color: white;
}
}
&::after {
content: '';
position: absolute;
right: -10px;
bottom: 10px;
width: 0;
height: 0;
border-top: 14px solid transparent;
border-bottom: 14px solid transparent;
border-left: 14px solid white;
}
}
}