/* @import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap"); */
@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

html {
  box-sizing: border-box;
}

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

body {
  background: #fff;
  color: #333;
  margin: 0;
  font-size: 16px;
  /* font-family: "Fira Code", sans-serif; */
  font-family: Inter, Helvetica, sans-serif;
  overflow: scroll;
}

a {
  color: #1a73e8;
  text-decoration: none;
  display: inline;
}

svg {
  display: inline-block;
}

#content {
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 640px;
  min-height: 100vh;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
}

#toolbar {
  padding: 0 2rem 1rem 2rem;
  /* padding-bottom: 1rem; */
  border-bottom: 1px solid #eee;
}

#toolbar div:first-child {
  margin-right: auto;
}

#form {
  position: relative;
  padding: 0 2rem;
  /* margin-bottom: 2rem; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 144px; */
}

#tweets {
  padding: 1rem 2rem 0 2rem;
  border-top: 1px solid #eee;
}

#status {
  display: flex;
  gap: 1em;
  background-color: #fafafa;
  border-radius: 1rem;
  padding: .5rem 1.25rem;
  display: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.25rem;
}

#your-topic {
  border: none;
  outline: none;
  padding: 0;
  /* font-size: 1.25rem;
  line-height: 1.75rem; */
}

#your-message, #topic-wrapper {
  outline: none;
  border: 1px solid #eceef2;
  /* font-size: 1.25rem;
  line-height: 1.75rem; */
  border-radius: 1em;
  box-shadow: 0px 4px 8px -1px rgba(0, 0, 0, .1) , 0px 1px 0px 0px rgba(0, 0, 0, .05);
}

#topic-wrapper {
  color: #aaa;
  padding: 0.5em 1.25em;
  margin-right: auto;
}

textarea, input {
  font: inherit;
  color: #333;
  outline: none;
}

textarea {
  min-height: 66px;
  padding: 0.5em 1.25em;
  resize:none;
  width:100%;
  margin: 0px;
  overflow: hidden;
  /* padding: 0.75em 1.25em; */
  /* outline: none;
  border: 1px solid #eceef2;
  font-size: 1.25rem;
  line-height: 1.75rem; */
  /* border-radius: 1em;
  box-shadow: 0px 4px 8px -1px rgba(0, 0, 0, .1) , 0px 1px 0px 0px rgba(0, 0, 0, .05); */
}

textarea::placeholder, input::placeholder {
  color: #aaa;
}

button, input[type="submit"] {
  outline: none;
  font: inherit;
  padding: 0.5em 1.25em;
  cursor: pointer;
  background: #1a73e8;
  /* font-family: Inter, Helvetica, sans-serif; */
  color: #fff;
  border: 1px solid #1a73e8;;
  border-radius: 1em;
  /* width: 100px; */
  text-shadow: none;
}

input[type="submit"]:disabled {
  cursor: default;
  opacity: 0.3;
}

#status-connected {
  visibility: hidden;
  width: 100%;
}

#status-disconnected, #status-getphantom {
  position: absolute;
}

#status-getphantom {
  display: none;
}

.post {
  margin-bottom: 1.5rem;
  background-color: #fafafa;
  border-radius: 1rem;
  padding: 1rem;
}

.post:last-child {
  margin-bottom: 0;
}

.time {
  color: #999;
}

.tag {
  color: #1a73e8;
  margin-top: 0.5rem;
}

.author {
  margin-bottom: 0.25rem;
}

/* .content {
  margin-bottom: 0.5rem;
} */

/* HTML: <div class="loader"></div> */
.loader {
  width: 20px;
  padding: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1a73e8;
  --_m:
    conic-gradient(#0000 10%,#000),
    linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
          mask: var(--_m);
  -webkit-mask-composite: source-out;
          mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}

