tweet-timeline status-update::selection {
  color: black !important;
  background-color: lightskyblue !important;
}

tweet-timeline main-box {
  display: block;
  height: calc(100vh - 97px);
  overflow: hidden;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: light-dark(rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.3))
    transparent;
  scroll-padding-top: 100px;
  scrollbar-gutter: auto;
  &::-webkit-scrollbar {
    width: 4px;
  }
}

tweet-timeline main-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

tweet-timeline {
  display: block;
  height: 100%;
  overflow-y: auto;
  padding-block: 20px;
  position: relative;
  z-index: 10;
}

status-update {
  position: relative;
  display: block;
  margin: 1rem auto;
  padding: 32px 20px 2px 75px;
  border-radius: 10px;
  border: var(--glass-border);

  color: black;
  background-color: rgb(185, 229, 255);
  width: 100%;
  max-width: min(62ch, 85%);
  min-height: 100px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.1rem !important;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow:
    inset 0px 15px 20px -10px hsla(from var(--black) h s l / 0.3),
    inset -0px -10px 25px -11px hsla(from var(--black) h s l / 0.3);
}

html#light status-update {
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.5);
}

status-update * {
  font-size: 1.1rem !important;
  margin: 0;
  line-height: 1.3;
}

status-update::before {
  content: "Zoltan Forrai";
  background-image: url("/SRC/media/photo/head-shot-s-sq.png");
  display: inline-flex;
  position: absolute;
  top: 12px;
  left: 10px;
  background-size: 55px 55px;
  background-repeat: no-repeat;
  height: 55px;
  padding-left: 65px;
  font-weight: 900;
  -webkit-text-stroke: 0.2px black;
  -webkit-text-fill-color: black;
  pointer-events: none;
}

status-update::after {
  content: "@gildrom・" attr(datetime);
  background-image: url("/SRC/asset/svg/verified.svg");
  display: inline-flex;
  position: absolute;
  top: 12px;
  left: 178px;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  padding-left: 18px;
  color: #545e63;
  background-position: left -1px;
}

status-update img:not(a img) {
  border-radius: 20px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  margin-top: 15px;
  cursor: zoom-in;
}

interaction-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-inline: 5px 60%;
  margin-top: auto;
}

interaction-row input {
  display: none;
}

interaction-row label {
  scale: 1.1;
  border-radius: 5px;
}

interaction-row a,
interaction-row label {
  color: hsl(0, 0%, 45%) !important;
}

interaction-row a svg,
interaction-row label svg {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

interaction-row a svg:hover,
interaction-row label svg:hover {
  color: hsl(0, 0%, 60%) !important;
}

interaction-row a svg:active,
interaction-row label svg:active {
  scale: 0.9;
}

[class="heart"]:checked ~ label svg {
  fill: hsl(340, 57%, 65%);
  stroke: hsl(340, 88%, 60%);
}

[class="heart"]:checked ~ label svg:hover {
  fill: hsl(340, 75%, 75%);
  stroke: hsl(340, 88%, 70%);

}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
  tweet-timeline main-box {
    height: calc(100vh - 70px);
  }

  tweet-timeline {
    padding-block: 10px;
  }

  status-update {
    max-width: 95%;
    padding: 30px 15px 5px 65px;
    margin: 0.8rem auto;
    font-size: 1rem !important;
  }

  status-update * {
    font-size: 1rem !important;
  }

  status-update::before {
    top: 10px;
    left: 10px;
    background-size: 45px 45px;
    height: 45px;
    padding-left: 55px;
    font-size: 0.95rem;
  }

  status-update::after {
    top: 11px;
    left: 155px;
    background-size: 16px 16px;
    padding-left: 18px;
    font-size: 0.85rem;
  }

  interaction-row {
    padding-inline: 5px 40%;
    gap: 8px;
  }

  interaction-row label {
    scale: 1;
  }
}

@media (max-width: 400px) {
  status-update::after {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 210px);
    display: block;
  }
}

/* 
  @media (max-width: 480px) {
    status-update {
      max-width: 98%;
      padding: 65px 12px 5px 12px;
      font-size: 0.95rem !important;
    }
  
    status-update * {
      font-size: 0.95rem !important;
    }
  
    status-update::before {
      background-size: 40px 40px;
      height: 40px;
      padding-left: 48px;
      font-size: 0.9rem;
    }
  
    status-update::after {
      top: 28px;
      left: 12px;
      font-size: 0.8rem;
    }
  
    interaction-row {
      padding-inline: 5px 30%;
      gap: 5px;
    }
  
    interaction-row a svg,
    interaction-row label svg {
      width: 16px;
      height: 16px;
    }
  } */

html#light {
  status-update {
    border: var(--glass-border);
  }
}
