/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 2 version
*/

/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v7.0.29,
* Autoprefixer: v9.7.6
* Browsers: last 2 version
*/

:root {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow-x: hidden;
  
    --black: #14171a;
    --light-blue: 203, 89%, 53%;
    --gray-bg: rgb(0, 0, 0, 0.03);
    --green: 147, 79%, 42%;
    --pink: 341, 75%, 51%;
    --light-gray: #ccd6dd;
    --gray: #657786;
    --link: #087acc;
  }
  
  * {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  }
  
  body {
    min-width: 100%;
    min-height: 100%;
    overflow: hidden;
    color: var(--black);
  }
  
  ul {
    list-style-type: none;
  }
  
  svg {
    display: block;
    margin: 0 auto;
    fill: none;
    stroke: var(--gray);
    stroke-width: 5px;
    overflow: visible;
  }
  
  a {
    text-decoration: none;
    color: var(--link);
  }
  
  p,
  h2 {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0.8rem auto;
  }
  
  .skip-link {
    position: absolute;
    left: -1000vw;
  }
  
  .about li,
  .contact li {
    font-size: 1.1rem;
  }
  
  /* container */
  .grid-container {
    width: 100%;
  }
  
  @media screen and (min-width: 500px) {
    .grid-container {
      display: -ms-grid;
      display: grid;
      -ms-grid-columns: minmax(70px, 2fr) 7fr;
      grid-template-columns: minmax(70px, 2fr) 7fr;
      -ms-grid-rows: auto auto;
      grid-template-rows: auto auto;
    }
    .grid-container > *:nth-child(1) {
      -ms-grid-row: 1;
      -ms-grid-column: 1;
    }
    .grid-container > *:nth-child(2) {
      -ms-grid-row: 1;
      -ms-grid-column: 2;
    }
  }
  
  @media screen and (min-width: 900px) {
    .grid-container {
      -ms-grid-columns: minmax(175px, 2fr) auto 3fr;
      grid-template-columns: minmax(175px, 2fr) auto 3fr;
    }
  }
  
  /* header */
  .header {
    z-index: 10;
    position: fixed;
    bottom: 0;
    border-top: 1px solid var(--light-gray);
    padding: 0.5rem 2rem;
    width: 100vw;
    height: -webkit-fit-content;
    height: fit-content;
    height: -moz-fit-content;
    height: -moz-fit-content;
    background: #fff;
  }
  
  @media screen and (min-width: 500px) {
    .header {
      position: static;
      width: 100%;
      height: 100%;
      -ms-grid-row: 1 / -1;
      grid-row: 1 / -1;
      -ms-grid-column: 1;
      grid-column: 1;
      padding: 2rem 0;
      border-right: 1px solid var(--light-gray);
      border-top: 0;
    }
  }
  
  .header nav {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
  }
  
  .header ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  
  .header li {
    padding: 1rem;
    padding-right: 3px;
    justify-self: flex-end;
  }
  
  @media screen and (min-width: 500px) {
    .header ul {
      position: fixed;
      width: -webkit-fit-content;
      width: fit-content;
      width: -moz-fit-content;
      -webkit-box-orient: vertical;
      -webkit-box-direction: normal;
      -ms-flex-direction: column;
      flex-direction: column;
      -ms-flex-line-pack: start;
      align-content: flex-start;
      -webkit-box-pack: start;
      -ms-flex-pack: start;
      justify-content: flex-start;
      height: -webkit-fit-content;
      height: fit-content;
      height: -moz-fit-content;
      height: 100vh;
      padding: 0;
      margin: 0;
    }
  }
  
  .header svg {
    width: 1.6rem;
    height: 100%;
    stroke-width: 1rem;
  }
  
  .header .text {
    display: none;
    color: var(--black);
    padding-right: 1rem;
  }
  
  .header a {
    border-radius: 5em;
    width: 100%;
  }
  
  .header a:hover {
    background-color: hsla(var(--light-blue), 0.1);
  }
  
  .header a:hover .text {
    color: hsl(var(--light-blue));
  }
  
  .header a:hover svg {
    stroke: hsl(var(--light-blue));
  }
  
  @media screen and (min-width: 900px) {
    .header a {
      display: -ms-grid;
      display: grid;
      grid-auto-columns: 3rem 1fr;
      padding: 0.5em 1em;
    }
  }
  
  @media screen and (min-width: 900px) {
    .header .text {
      display: block;
      -ms-grid-column: 2;
      grid-column: 2;
      -ms-grid-row-align: center;
      align-self: center;
    }
  }
  
  /* top banner */
  
  .top-banner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .top-banner h1 {
    font-size: 1.5rem;
    margin-left: 3em;
  }
  
  .back-button {
    height: -webkit-fit-content;
    height: fit-content;
    height: -moz-fit-content;
  }
  
  .back-button svg {
    width: 1.2rem;
    margin-top: 0.4rem;
    fill: var(--black);
  }
  
  /* main content */
  .content {
    width: 100%;
    height: 100%;
    max-width: 600px;
    grid-column: 2 / -1;
  }
  
  @media screen and (min-width: 500px) {
    .content {
      -ms-grid-column: 2;
      grid-column: 2;
      -ms-grid-row: 1;
      grid-row: 1;
      width: 100%;
    }
  }
  
  /* tweet container */
  .tweet-container {
    position: relative;
    padding: 1rem 1rem 0 1rem;
    overflow: hidden;
  }
  
  .tweet-container > * {
    max-width: 100%;
  }
  
  .tweet-container::before {
    content: "";
    width: 0.1em;
    height: 100%;
    background: var(--light-gray);
    position: absolute;
    left: 2.5em;
    top: 4.5em;
  }
  
  .tweet-container:hover {
    background-color: var(--gray-bg);
  }
  
  /* user profile */
  .tweet-container .user-profile {
    font-size: 0.9em;
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: auto 0.5rem fit-content(5rem) 0.5rem fit-content(5rem)
      0.5rem 1fr 0.5rem 0.1rem;
    grid-template-columns: auto repeat(2, fit-content(5rem)) 1fr 0.1rem;
    -ms-grid-rows: auto 0rem auto;
    grid-template-rows: auto auto;
    gap: 0rem 0.5rem;
    margin-bottom: 1rem;
  }
  .tweet-container .user-profile > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
  }
  .tweet-container .user-profile > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
  }
  .tweet-container .user-profile > *:nth-child(3) {
    -ms-grid-row: 1;
    -ms-grid-column: 5;
  }
  .tweet-container .user-profile > *:nth-child(4) {
    -ms-grid-row: 1;
    -ms-grid-column: 7;
  }
  .tweet-container .user-profile > *:nth-child(5) {
    -ms-grid-row: 1;
    -ms-grid-column: 9;
  }
  .tweet-container .user-profile > *:nth-child(6) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
  }
  .tweet-container .user-profile > *:nth-child(7) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
  }
  .tweet-container .user-profile > *:nth-child(8) {
    -ms-grid-row: 3;
    -ms-grid-column: 5;
  }
  .tweet-container .user-profile > *:nth-child(9) {
    -ms-grid-row: 3;
    -ms-grid-column: 7;
  }
  .tweet-container .user-profile > *:nth-child(10) {
    -ms-grid-row: 3;
    -ms-grid-column: 9;
  }
  
  .user-profile * {
    text-overflow: ellipsis;
    color: var(--gray);
  }
  
  .img {
    background-image: url("https://pbs.twimg.com/profile_images/1314486394828488705/zapTs7sE_400x400.jpg");
    width: 3rem;
    height: 3rem;
    grid-row: 1 / -1;
    -ms-grid-column: 1;
    grid-column: 1;
    border-radius: 50%;
    background-size: cover;
  }
  
  .name {
    font-weight: 700;
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 1;
    grid-row: 1;
    align-self: baseline;
    color: var(--black);
  }
  
  .username {
    font-size: 0.8rem;
    -ms-grid-column: 3;
    grid-column: 3;
    -ms-grid-row: 1;
    grid-row: 1;
    align-self: baseline;
  }
  
  .more svg {
    width: 1.4rem;
    stroke-width: 1.2em;
  }
  
  .user-profile .more {
    grid-column: -1;
    -ms-grid-row: 1;
    grid-row: 1;
  }
  
  .user-profile .date {
    font-size: 0.9rem;
    -ms-grid-column: 4;
    grid-column: 4;
    -ms-grid-row: 1;
    grid-row: 1;
    align-self: baseline;
  }
  
  .user-profile .reply-name {
    font-size: 0.9rem;
    grid-column: 2 / -1;
    -ms-grid-row: 2;
    grid-row: 2;
    align-self: baseline;
    -ms-grid-column-align: start;
    justify-self: start;
  }
  /* tweet content */
  .tweet-content * {
    max-width: 100%;
  }
  
  .tweet-content {
    padding-left: 3rem;
  }
  
  .primary-tweet .tweet-content {
    padding: 0;
  }
  /* tweet buttons */
  .tweet-interaction-buttons,
  .primary-tweet-interaction-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 1rem 0;
    margin-left: 2rem;
    -ms-flex-pack: distribute;
    justify-content: space-around;
  }
  
  .tweet-container .icon svg {
    width: 1.25rem;
    stroke-width: 1.5em;
  }
  
  .tweet-interaction-buttons div {
    display: inline-block;
    vertical-align: middle;
    color: var(--gray);
  }
  
  .tweet-container .icon {
    cursor: pointer;
    margin-right: 0.1em;
    width: 2.05rem;
    height: 2.05rem;
    padding: 0.4em;
    border-radius: 50%;
  }
  
  .comment:hover .icon svg {
    stroke: hsl(var(--light-blue));
  }
  
  .comment:hover .icon {
    background-color: hsla(var(--light-blue), 0.1);
  }
  
  .retweet:hover .icon svg {
    stroke: hsl(var(--green));
  }
  
  .retweet:hover .icon {
    background-color: hsla(var(--green), 0.1);
  }
  
  .like:hover .icon svg {
    stroke: hsl(var(--pink));
  }
  
  .like:hover .icon {
    background-color: hsla(var(--pink), 0.1);
  }
  
  .share:hover .icon svg {
    stroke: hsl(var(--light-blue));
  }
  
  .share:hover .icon {
    background-color: hsla(var(--light-blue), 0.1);
  }
  
  .comment:active .icon svg {
    fill: hsl(var(--light-blue));
  }
  
  .retweet:active .icon svg {
    fill: hsl(var(--green));
  }
  
  .like:active .icon svg {
    fill: hsl(var(--pink));
  }
  
  .share:active .icon svg {
    fill: hsl(var(--light-blue));
  }
  
  /* link preview */
  .project-description ~ p {
    margin-top: 1rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
  
  .project-link {
    display: inline;
    word-wrap: break-word;
    text-overflow: ellipsis;
    margin-left: 0.2em;
    max-width: 80%;
    font-size: 1.1rem;
  }
  
  .project-link::before {
    content: "💻";
    margin-right: 0.2em;
  }
  
  .link-preview {
    max-width: 95%;
    margin: 1rem auto 0 0;
  }
  
  .link-preview p {
    margin: 0;
  }
  
  .link-preview img {
    display: block;
    border-radius: 1rem 1rem 0 0;
    border: 1px solid var(--light-gray);
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    margin-top: 1rem;
  }
  
  .title-box {
    font-size: 1rem;
    width: 100%;
    grid-column: 1 / -1;
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    border: 1px solid var(--light-gray);
    border-top: 0;
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: auto 0.5rem auto;
    grid-template-rows: auto auto;
    gap: 0.5rem;
  }
  
  .title-box:hover {
    background-color: var(--gray-bg);
  }
  
  .title-box :first-child {
    color: var(--black);
  }
  
  .title-box :last-child {
    color: var(--gray);
  }
  
  /* primary tweet */
  .primary-tweet::before {
    content: "";
    height: 0;
  }
  
  .primary-tweet {
    border-bottom: 1px solid var(--light-gray);
    width: 100%;
  }
  
  .user-profile-primary {
    width: 100%;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: auto 0.7rem 1fr 0.7rem 2.8rem;
    grid-template-columns: auto 1fr 2.8rem;
    -ms-grid-rows: auto 0 auto;
    grid-template-rows: repeat(2, auto);
    gap: 0 0.7rem;
    margin-bottom: 1rem;
    color: var(--gray);
  }
  
  .user-profile-primary > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
  }
  
  .user-profile-primary > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
  }
  
  .user-profile-primary > *:nth-child(3) {
    -ms-grid-row: 1;
    -ms-grid-column: 5;
  }
  
  .user-profile-primary > *:nth-child(4) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
  }
  
  .user-profile-primary > *:nth-child(5) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
  }
  
  .user-profile-primary > *:nth-child(6) {
    -ms-grid-row: 3;
    -ms-grid-column: 5;
  }
  
  .user-profile-primary .username {
    font-size: 0.9rem;
    -ms-grid-column: 2;
    grid-column: 2;
    -ms-grid-row: 2;
    grid-row: 2;
  }
  
  .user-profile-primary .more {
    grid-column: -1;
  }
  
  .tweet-details,
  .tweet-engagements {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-gray);
    padding: 1em 0;
    color: var(--gray);
  }
  
  @media screen and (min-width: 500px) {
    .tweet-details,
    .tweet-engagements {
      -webkit-box-pack: start;
      -ms-flex-pack: start;
      justify-content: flex-start;
    }
  }
  
  .tweet-details > *,
  .tweet-engagements > * {
    margin: 0;
    font-size: 0.8rem;
    font-size: clamp(0.8rem, 80vw, 0.9rem);
  }
  
  @media screen and (min-width: 500px) {
    .tweet-details > *,
    .tweet-engagements > * {
      margin-right: 1rem;
    }
  }
  
  .primary-tweet .number {
    font-weight: 700;
    color: var(--black);
  }
  
  .primary-tweet-interaction-buttons {
    margin: 0;
  }
  
  .primary-tweet .icon {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0.7rem;
  }
  
  .primary-tweet svg {
    width: 1.5rem;
    stroke-width: 1em;
    vertical-align: middle;
  }
  
  /* footer */
  .footer {
    max-width: 600px;
    -ms-grid-column: 2;
    grid-column: 2;
  }
  
  @media screen and (min-width: 900px) {
    .footer {
          border-right: 1px solid var(--light-gray);
    }
  }
  
  .footer .tweet-container {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 200px;
  }
  
  .desktop {
    display: none;
    position: relative;
  }
  
  @media screen and (min-width: 900px) {
    .desktop {
      display: initial;
      -ms-grid-column: 3;
      grid-column: 3;
      -ms-grid-row: 1;
      grid-row: 1;
      margin: 0;
      border: 0;
      border-left: 1px solid var(--light-gray);
      height: 100%;
    }
  
    .desktop .tweet-container {
      border: 1px solid var(--light-gray);
      margin: 0;
      border-radius: 1rem;
      margin: 1.5rem;
    }
  
    .desktop .user-profile .reply-name,
    .desktop .user-profile .date,
    .desktop .user-profile .more {
      display: none;
    }
  
    .desktop .tweet-container::before {
      content: "Relevant People";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      background: none;
      padding: 0.5rem 1rem;
      height: 1.5rem;
      border-bottom: 1px solid var(--light-gray);
      font-weight: 700;
      font-size: 1.2em;
    }
  
    .desktop .username {
      -ms-grid-column: 2;
      grid-column: 2;
      -ms-grid-row: 2;
      grid-row: 2;
    }
  
    .desktop .user-profile {
      margin: 0;
      margin-top: 2.5rem;
    }
  
    .desktop .bio {
      margin-bottom: 2rem;
    }
  
    .desktop .user-profile::before {
      content: "Follow";
      grid-row: 1 / -1;
      grid-column: -1;
      -ms-grid-column-align: end;
      justify-self: end;
      -ms-grid-row-align: start;
      align-self: start;
      color: hsl(var(--light-blue));
      border: 2px solid hsl(var(--light-blue));
      border-radius: 20px;
      padding: 5px 20px;
      font-size: 1.1em;
    }
  
    .desktop .user-profile:hover::before {
      background: hsl(var(--light-blue));
      color: #fff;
    }
  }
  
  /* contact section */
  .contact a {
    color: var(--black);
  }
  
  .contact .tweet-content .link {
    margin-left: 0.5em;
  }
  
  .link {
    color: var(--link);
  }  