@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: #3c3962; /* I don't get why I need to set this if it's set in the index.js file */
  background: #f5f1ec;
  font-family: "Inter", sans-serif;
  /*font-weight: 400;*/
  font-size: 16px;
}

a {
  color: #7946ff;
}

h1 {
  font-size: 2em;
  line-height: 1em;
  color: lightgray;
}

h1,
h2 {
  font-weight: inherit;
  font-size: 1.4em;
  line-height: 1.4em;
  padding: 0;
  margin: 0 0 0.5em 0;
  max-width: 600px;
}

.tweet-list {
  margin: 2em 0;
}

.tweet {
  margin-bottom: 2em;
}

.highlight {
  border-radius: 0.6em 0.2em 0.6em 0.2em;
  background-image: linear-gradient(
    -100deg,
    rgba(255, 224, 0, 0.3),
    rgba(255, 224, 0, 0.7) 90%,
    rgba(255, 224, 0, 0.1)
  );
}

.container {
  width: 100%;
  max-width: 900px; /* Set a max width for larger screens */
  margin: 50px auto; /* Center the container horizontally */
  position: relative;
}

header {
  color: lightgray;
  padding: 10px;
  margin: -40px 0 -20px 0;
}

main {
  padding: 10%;
}

strong {
  font-weight: 700;
}

main h1 {
  font-weight: 500;
}

main h2 {
  font-weight: 300;
}

article {
  padding: 10px;
}

article h1 {
  font-weight: 700;
  color: inherit;
  letter-spacing: -1px;
  line-height: 1em;
}

article h2 {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  text-transform: uppercase;
}

article img {
  max-width: 100%;
  border-radius: 12px;
}

article blockquote {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid lightgray;
  color: gray;
}

footer {
  padding: 10px;
}

footer a {
  color: lightgray;
}

/* Styles for tablets and small desktops */
@media (min-width: 769px) {
  body {
    font-size: 18px;
  }

  header {
    padding: 20px;
    margin: -20px 0 -30px 0;
  }

  main {
    padding: 20%;
  }

  article {
    padding: 20px;
  }

  article img {
    margin: 20px auto 40px auto;
    max-width: 100%;
    max-height: 100vh;
    float: right;
  }

  footer {
    padding: 20px;
  }
}

/* Styles for larger desktop screens */
@media (min-width: 1000px) {
  body {
    font-size: 16px;
    line-height: 26px;
  }

  article {
    padding: 0 0px 0 200px;
  }

  article img {
    margin: 20px 0px 40px -200px;
    max-width: calc(100% + 200px);
    max-height: 100vh;
    float: right;
  }

  header {
    position: absolute;
    top: 20px;
    left: 0;
    padding: 0;
  }

  footer {
    position: absolute;
    top: 35px;
    left: 0;
    padding: 0;
  }
}
