@import url("https://fonts.googleapis.com/css?family=Montserrat");
@import url("https://fonts.googleapis.com/css?family=Montserrat:600");

body {
  font-family: "Montserrat";
  font-size: 1.2em;
  background: fixed linear-gradient(0deg, #20a39e, #ffba49);
  color: #481620;
}
h1 {
  font-size: 2.5em;
  margin: 0.3em 0 0.1em 0;
}
h2 {
  font-size: 1.2em;
  margin: 0 0 0.1em 0;
}
footer {
  margin-top: 60px;
  margin-bottom: 30px;
}
footer img {
  width: 300px;
  height: 100px;
  margin-bottom: 30px;
}
h1, h2, footer {
  text-align: center;
}
p.display_name, p.user_name {
  font-weight:600;
}
p.display_name {
  display: none;
}

#search-input {
  font-size: 1.5em;
  width: 100%;
}
.search_time {
  margin-top: 4px;
  font-style: italic;
  font-size: 0.8em;
}
.search_text {
  display: inline;
}
.search_link {
  display: inline;
}
#sorting {
  margin-top: 8px;
  line-height: 1.7em;
}
label {
  display: block;
}
.sort-button {
  font-size: 0.8em;
}
.wrapper {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  word-wrap: break-word;
}

.flex-wrap {
  display: flex;
  flex-direction: column;
}
.tweet {
    background-color: #ffccd7aa;
    max-width: 600px;
    padding: 16px;
    font-size: 1.2em;
    border: 2px solid #481620;
    border-radius: 16px;
}
.tweet img {
  max-height: 100%;
  vertical-align: bottom;
  width: 100%;
  object-fit: cover;
}
.tweet video {
  max-height: 100%;
  vertical-align: bottom;
  width: 100%;
}
.tweet ul {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  gap: 8px;
  padding-left: 0px;
  margin-bottom: 0px;
}
.tweet li {
  height: 20vh;
  width: 20vh;
  flex-grow: 1;
}
.tweet .display_name {
  margin-bottom: 0;
  margin-top: 0;
}
.tweet .user_name {
  margin-top: 4px;
}
.tweet .favorite_count {
  display: inline-block;
  margin-bottom: 0;
}
.tweet .retweet_count {
  display: inline-block;
  margin-left: 16px;
  margin-bottom: 0;
}
.tweet .created_at {
  margin-bottom: 0;
  font-style: italic;
  font-size: 0.8em;
}
.tweet .permalink {
  margin-left: 16px;
}
.child {
  margin-top: 16px;
  margin-left: 64px;
  max-width: calc(600px - 64px);
  background-color: white;
}
.parent {
  margin-bottom: 16px;
  margin-right: 64px;
  max-width: calc(600px - 64px);
  background-color: #ffccd777;
}
@media screen and (max-width: 599px) {
  .tweet li {
    height: 15vh;
    width: 15vh;
    flex-grow: 1;
  }
}
