html {
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* HEADER */

header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  background-color: #0d182e;
  background-image: url(/images/background.png);
  background-repeat: no-repeat;
  background-position: 60px center;
  height: 200px;
}

@media (min-width: 600px) {
  header {
    background-position: right center;
    background-size: 70vw;
  }
}

header h1 {
  color: #32cd32;
  font-family: "Big Shoulders", sans-serif;
  font-weight: 800;
  font-size: 3rem;
}

header p {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 700;
}

/* MAIN */

main {
  width: 100%;
  display: flex;
  justify-content: center;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border: 3px solid black;
  border-radius: 15px;
  width: calc(100% - 1rem);
  max-width: 420px;
  margin-top: 1rem;
  padding: 2rem 1rem 1rem 1rem;
}

.output-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.chatbox {
  padding: 1.2rem 1rem;
  width: 95%;
}

.system-message {
  display: flex;
  flex-direction: row;
  background-color: #035a9d;
  border-radius: 0 12px 12px 12px;
  align-self: flex-start;
  justify-content: space-between;
}

.system-message .speaker-btn {
  font-size: 1.5rem;
}

.system-message p {
  color: #fff;
  font-weight: 600;
}

.user-message {
  background-color: #65da65;
  border-radius: 12px 0 12px 12px;
  align-self: flex-end;
}

.user-message p {
  color: #333333;
  font-weight: 600;
}

form {
  display: flex;
  border: 2px solid #586e88;
  background-color: #fff;
  border-radius: 10px;
  width: 100%;
}

.user-input {
  font-family: inherit;
  background-color: transparent;
  border: none;
  outline: none;
  resize: none;
  flex-grow: 1;
  padding: 0.8rem;
  font-size: 1rem;
}

button {
  align-self: center;
  border: none;
  background-color: transparent;
  padding-right: 0.8rem;

  cursor: pointer;
  width: 50px;
  height: 50px;
}

.language-choices {
  margin: 0 auto;
  display: flex;
  gap: 2rem;
}

.flag img {
  opacity: 0.5;
  cursor: pointer;
  border: 2px solid #ccc;
}

.flag img:hover {
  opacity: 1;
}

.flag input[type="radio"] {
  appearance: none;
  display: none;
  border-radius: 50%;
  outline: none;
}

.flag input[type="radio"]:checked + img {
  border: 2px solid #035a9d;
  opacity: 1;
}
