@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap");

/* tw_container */
.tw_container {
  width: 100%;
  font-family: "Noto Sans KR", sans-serif !important;
  font-optical-sizing: auto;
  font-style: normal;
}

/* tw_wrap */
.tw_wrap {
  margin: 0 auto;
  max-width: 600px;
  /* min-width: 300px; */
  border: 1px solid #f3f0f0;
  border-radius: 10px;
  padding: 15px 8px;
}

.tw_wrap:not(:first-child) {
  margin-top: 30px;
}

/* tw_header */
.tw_header h1.title {
  font-size: 18px;
  line-height: 22px;
  margin: 0 !important;
  position: relative;
  padding-right: 13px;
  cursor: pointer;
  user-select: none;
  cursor: pointer;
}

.tw_header .originalUrl {
  display: inline-block;
  font-size: 11px;
  margin-top: 8px;
  text-decoration: none !important;
  color: #888 !important;
}

.tw_header p.info {
  font-size: 11px;
  margin: 0;
  margin-top: 10px !important;
  color: #2c2c2c;
}

/* tw_contents */
.tw_contents {
  border-top: 1px #aaa dashed;
  margin-top: 20px;
}

/* tw_contents > tw_box */
.tw_box {
  display: flex;
  padding: 0 3px;
}

.tw_box .line {
  position: relative;
  width: calc(100% - 10px);
  height: calc(100% - 35px);
}

.tw_box .line::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: rgb(207, 217, 222);
}

.tw_box:last-child .line::before {
  width: 0;
}

.tw_box .rg {
  overflow: hidden;
}

/* 프로필 */
.tw_box .user-p {
  width: 35px;
  height: 35px;
  border-radius: 100%;
  margin-right: 8px;
  overflow: hidden;
}

.tw_box .user-p img {
  width: inherit !important;
  height: auto;
}

/* 유저 이름, 아이디, 날짜 */
.tw_box .user-n_id {
  height: 18px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: bold;
  /* 말줄임표 */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-all;
}

.tw_box .user-n_id .id {
  padding-left: 2px;
}

.tw_box .user-n_id .id,
.tw_box .user-n_id .ex {
  font-size: 10px;
  font-weight: normal;
  color: #888;
}

.tw_box .user-n_id .ex::before {
  content: "·";
  font-weight: bold;
  padding-right: 3px;
}

/* 트윗 내용 */
.tw_box .content {
  padding-top: 5px;
  padding-bottom: 20px;
  font-size: 12px;
  line-height: 1.3;
  word-break: auto-phrase;
  white-space: pre-wrap;
}

.tw_box:first-of-type {
  margin-top: 25px;
}

.tw_box:last-child .content:last-child {
  padding-bottom: 0px;
}

.tw_box .content.cont-img {
  margin-top: 5px;
  padding-bottom: 0px !important;
}

.tw_box .content.cont-img img {
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  max-width: 100%;
  box-sizing: border-box;
}

.tw_box .content.cont-img figure.imageblock.alignCenter {
  margin: 0px 0px 0px !important;
  padding-top: 8px;
}

.tw_box .content.cont-img figure {
  padding-top: 8px;
}

/* 트윗 토글 */
.tw_wrap.closed .tw_contents {
  display: none;
}

.tw_wrap h1.title::after {
  content: "▲";
  color: #bdbdbd;
  font-size: 10px;
  position: absolute;
  inset: 0 0 auto auto;
}

.tw_wrap.closed h1.title::after {
  content: "▼";
}

.display_none {
  display: none;
}

/* 유저 색상 */
.tw_box .user-p.color1 {
  background-color: #64a4ff;
  border: #64a4ff 1px solid;
}

.tw_box .user-p.color2 {
  background-color: #ffdb53;
  border: #ffdb53 1px solid;
}

.tw_box .user-p.color3 {
  background: linear-gradient(to bottom, #ffe790, #c5ddff);
  /* border: #FFDB53 1px solid; */
}

/* 425 화면 이상 */
@media (min-width: 425px) {
  .tw_wrap {
    padding: 25px 18px;
  }

  .tw_header h1.title {
    font-size: 22px;
  }

  .tw_header .originalUrl {
    font-size: 13px;
  }

  .tw_header p.info {
    font-size: 13px;
  }

  .tw_box {
    display: flex;
    padding: 0 8px;
  }

  .tw_box .user-n_id {
    font-size: 14px;
    line-height: 1.4;
  }

  .tw_box .user-n_id .id,
  .tw_box .user-n_id .ex {
    font-size: 13px;
  }

  .tw_box .content {
    font-size: 14px;
    line-height: 1.4;
  }

  .tw_box .user-p {
    width: 40px;
    height: 40px;
  }

  .tw_box .line {
    height: calc(100% - 40px);
  }

  .tw_wrap h1.title::after {
    font-size: 12px;
  }
}

/* 100~299 화면 */
@media (min-width: 100px) and (max-width: 299px) {
  .tw_wrap {
    padding: 8px 5px;
  }

  .tw_header h1.title {
    font-size: 16px;
  }

  .tw_box .user-p {
    width: 32px;
    height: 32px;
  }

  .tw_box .line {
    height: calc(100% - 32px);
  }

  .tw_box .user-n_id {
    font-size: 11px;
    line-height: 1.1;
  }

  .tw_box .user-n_id .id {
    display: none;
  }

  .tw_box .content {
    font-size: 11px;
    padding-top: 2px;
  }
}
