* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Cabin', sans-serif;
  background-image: url("./assets/bakery.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

h1 {
  font-weight: 800;
  font-size: 44px;
  line-height: 34px;
  color: #2740a5;
  text-align: center;
  font-family: 'BioRhyme', serif;
}

h2 {
  font-weight: 800;
  font-size: 24px;
  line-height: 34px;
  color: #2740a5;
  text-align: center;
  margin-bottom: 36px;
  font-family: 'BioRhyme', serif;
}

p {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Underline so the mailto link in last message is easier to notice */
.mailto {
  text-decoration: underline;
}

input {
  box-sizing: border-box;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #2740a5;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  flex: 1;
}

main {
  margin: 0 auto 36px auto;
  width: 100%;
  max-width: 700px;
  height: 600px;
  border-radius: 20px;
  background: #eaeefa;
  padding: 20px 24px;
  padding-top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.chat {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow: scroll;
  flex-direction: column;
  padding-bottom: 16px;
}

.bot-msg {
  display: flex;
  margin: 16px 8px 0 0;
  flex-shrink: 0;
}

.user-msg {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0 8px;
  flex-shrink: 0;
}

.bot-msg img,
.user-msg img {
  width: 60px;
  height: 60px;
}

.bubble {
  background: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  padding: 16px 24px;
  color: #2740a5;
  max-width: 40%;
}

.bot-bubble {
  border-radius: 0 16px 16px 16px;
  margin-left: 8px;
}

.user-bubble {
  border-radius: 16px 0 16px 16px;
  margin-right: 8px;
}

.input-wrapper {
  display: flex;
  justify-content: center;
}

.input-wrapper form {
  width: 100%;
  display: flex;
}

button {
  width: 200px;
  background-color: #2740a5;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 16px 40px;
  margin-right: 4px;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pink-btn {
  background-color: #F869C0;
}

.green-btn {
  background-color: #87B255;
}

.yellow-btn {
  background-color: #f0ea42;
}

button:hover {
  opacity: 0.9;
  transition: all 0.2s ease;
}

select {
  border: none;
  border-radius: 4px;
  color: #2740a5;
  font-size: 20px;
  font-weight: 600;
  height: 60px;
  font-family: 'Cabin';
  background: #fff;
  width: 100%;
  padding: 0 20px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

footer {
  background-color: #2740a5;
  color: white;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}