@import "reset.css";

@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap");
/* font-family: "Bitter", serif; */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,400;0,600;0,700;0,900;1,400;1,700;1,900&display=swap");
/* font-family: "Poppins", sans-serif; */

@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap");
/* font-family: "Roboto", sans-serif; */

* {
  font-family: "Bitter", serif;
}

body {
  background: #f3f4f6;

  font-size: 20px;
  line-height: 1.4;
  color: #343434;
}

.container {
  display: block;
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 20px 15px;
}

.container > *:first-child {
  margin-top: 0;
}

.container > *:last-child {
  margin-bottom: 0;
}

header {
  background: #00465a;
}

header .ad {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1;
  margin: 0px;
  padding: 0;
  text-align: center;
  color: #8c9da1;
}

.content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1170px;
  margin: 30px auto;
  gap: 10px;
}

.content p a {
  color: blue;
  text-decoration: underline;
  font-weight: 700;
}

.content main {
  width: 70%;
  background: #fff;
}

.content aside {
  width: 30%;
  background: #fff;
}

@media screen and (max-width: 800px) {
  .content {
    flex-direction: column;
  }

  .content main {
    width: 100%;
  }

  .content aside {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .content {
    margin: 10px auto;
  }
}

h1 {
  font-size: 30px;
  line-height: 1.3;
  text-align: left;
  font-weight: 700;
  margin: 0 0 20px;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
  text-align: left;
  font-weight: 700;
  margin: 20px 0;
}

h2 span {
  background: #fdcc5e;
  padding: 2px 5px;
}

@media screen and (max-width: 600px) {
  h1 {
    font-size: 24px;
  }
}

.article-time {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.article-time .date,
.article-time .views {
  display: flex;
  align-items: center;
  column-gap: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1;
  color: #457584;
}

.article-time img {
  width: 15px;
  height: 15px;
}

.socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.socials .author p {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}

.socials .share-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  column-gap: 4px;
}

.socials .share-bar a {
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.socials .share-bar a.fb {
  background: #315c97;
}

.socials .share-bar a.x {
  background: #000;
}

.socials .share-bar a.whatsapp {
  background: #3bb931;
}

.socials .share-bar a.copy-link {
  background: #a92323;
}

.image {
  display: block;
  width: 100%;
  /* max-width: 600px; */
  margin: 20px auto;
}

.image.vertical {
  max-width: 500px;
}

.image img {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

.image .description {
  background: #fdcc5e;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

p {
  margin-bottom: 20px;
}

/* ========= screen ========= */

.image .screen * {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
}

.image .screen {
  padding: 1rem 0.7rem;
  background-color: #202124;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  filter: blur(0.5px);
  user-select: none;
  position: relative;
  text-align: left;
}

.image .screen::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.image .screen img {
  width: 20px;
  height: 20px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 2rem;
}

.phone-top-time {
  color: #dfe0e4;
  letter-spacing: 0.05rem;
  margin-right: auto;
  font-size: 1.1rem;
  line-height: 150%;
  font-weight: 600;
}

.phone-top-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 0.3rem;
}

.phone-top-right img {
  width: auto;
  height: 20px;
}

.mail-control-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.mail-control-panel > img:nth-child(1) {
  margin-right: auto;
}

.mail-control-panel img {
  width: 33px;
  height: 33px;
}

.mail-title-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.mail-title-wrapper img {
  width: 35px;
  height: 35px;
}

.mail-title {
  font-size: 1.2rem;
  line-height: 32px;
  font-weight: 500;
  color: #e6e7eb;
}

.mail-title .inbox {
  font-size: 0.7rem;
  color: #8f9194;
  border: 1px solid #8f9194;
  border-radius: 8px;
  width: fit-content;
  padding: 0.1rem 0.3rem;
  line-height: 140%;
  vertical-align: middle;
  display: inline-block;
}

.mail-sender-logo {
  background-color: #238f1a;
  color: #fff;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mail-sender-logo p {
  font-family: serif;
  font-size: 2rem;
  margin: 0;
}

.mail-sender {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.mail-sender-description {
  flex-grow: 1;
}

.mail-sender-options {
  display: flex;
  align-self: center;
}

.mail-sender-text {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-evenly;
}

.mail-sender-text p {
  line-height: 125%;
  margin: 0;
}

.mail-sender-text-name {
  font-size: 0.875rem;
  color: #bfc0c4;
}

.mail-sender-text-recipient {
  font-size: 0.75rem;
  color: #87888c;
}

.mail-sender-options img {
  width: 33px;
  height: 33px;
}

.mail-text p {
  color: #c7c9cc;
  margin: 1rem 0;
  line-height: 140%;
}

.mail-bottom-options {
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 2rem;
}

.mail-bottom-options img {
  width: 28px;
  height: 28px;
}

.mail-bottom-options div {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #98999f;
  border: 1px solid #98999f;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 5px;
  padding: 0.4rem;
}

.screen-photo-box {
  background-color: #202124;
}

.screen-photo-box .photo-desc {
  margin-top: 0;
}

.phone-top {
  display: none;
}

@media screen and (max-width: 450px) {
  .phone-top {
    display: flex;
  }

  .mail-text {
    margin-top: 1rem;
  }

  .mail-text p {
    line-height: 130%;
    margin: 0.7rem 0;
    font-size: 0.9rem;
  }
}

/* ========= screen ========= */

ul,
ol {
  margin: 20px 0;
}

ol {
  counter-reset: item;
}

.list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  column-gap: 10px;
  margin-bottom: 15px;
}

.list li:last-child {
  margin-bottom: 0;
}

.list li p {
  margin: 0;
}

.list li .list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: calc((1.4 * 20px - 24px) / 2);
  /* margin-top: calc((var(--line-height) * var(--font-size) - var(--icon-size)) / 2); */
}

.list li .list-icon .check {
  background:
    url("../images/check-icon.svg") center no-repeat,
    green;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-size: 13px;
}

.list li .list-icon .list-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  background: green;
}

.list li .list-icon .list-num::before {
  counter-increment: item;
  content: counter(item);
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  line-height: 1;
}

.doctor-speech {
  margin: -10px 0 20px;
  padding: 10px;
  background-color: #f2f2f2;
}

.doctor-speech p:last-child {
  margin-bottom: 0;
}

.note {
  background: #fff8cb;
  padding: 10px;
  border: 1px solid #343434;
  margin: 20px 0;
}

.note > *:first-child {
  margin-top: 0;
  padding-top: 0;
}

.note > *:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* comments */

.comments-wrapper * {
  font-family: "Roboto", sans-serif;
}

h2.comments-title {
  text-transform: uppercase;
}

.comment {
  margin-bottom: 20px;
  position: relative;
}

.comment-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  column-gap: 10px;
}

.comment-flex.answer {
  margin-top: 20px;
  padding-left: 50px;
}

.comment-flex.answer:before {
  content: "";
  position: absolute;
  width: 0px;
  height: 100%;
  bottom: 0;
  left: 20px;
  border-left: 1px solid #d3d6db;
}

.comment-left {
  flex-shrink: 0;
}

.comment-right {
  width: 100%;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.comment-avatar img {
  border-radius: 50%;
}

.comment-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  column-gap: 10px;
  margin-bottom: 7px;
}

.comment-info .name {
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  margin: 0;
  color: #3b5998;
}

.comment-text .text {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.comment-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  font-size: 11px;
  line-height: 14px;
  font-weight: 300;
  color: #7f7f7f;
  margin-top: 7px;
  column-gap: 10px;
}

.comment-footer > div {
  position: relative;
}

.comment-footer > div:before {
  content: "";
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -6px;
}

.comment-footer > div:first-child:before {
  display: none;
}

.comment-footer .like,
.comment-footer .reply {
  color: #627aad;
  cursor: pointer;
}

.comment-footer .likes-count {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 3px;
  cursor: pointer;
}

.comment-footer .likes-count .like-icon {
  background: url("../images/facebook-like-logo.svg") center / contain no-repeat;
  width: 14px;
  height: 14px;
  align-self: flex-end;
}

.comment-text .comment-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 350px;
  margin: 7px 0 0 0;
}

/* comments */

a.button {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  background: #379000;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  padding: 15px 30px;
  font-weight: 600;
  border-radius: 5px;
  text-shadow: 5px 0px 7px rgba(0, 0, 0, 0.7);
  transition: 0.2s all;
  font-size: 20px;
  text-decoration: none;
}

a.button:hover {
  background: #296c00;
}

aside {
  color: #4a4a4a;
  font-size: 16px;
}

.quote-block {
  color: #263c61;
  margin: 20px auto;
}

.quote-block p.quote-author {
  margin: -10px 0 0 0;
  text-align: center;
}

.quote {
  margin-top: 10px;
  padding: 10px 20px;
  position: relative;
  color: #263c61;
  font-weight: 500;
}

.quote > *:first-child {
  margin-top: 0;
}

.quote > *:last-child {
  margin-bottom: 0;
}

.quote::before,
.quote::after {
  font-size: 40px;
  color: #263c61;
  opacity: 0.8;
  position: absolute;
  font-weight: bold;
  font-family: Georgia, serif;
}

.quote::before {
  content: "“";
  top: -10px;
  left: 0;
}

.quote::after {
  content: "”";
  bottom: -30px;
  right: 0;
}

aside a.button {
  text-transform: none;
}

footer {
  color: #9b9b9b;
}

footer p {
  font-size: 12px;
  text-align: center;
  margin-bottom: 10px;
}

footer p:last-child {
  margin-bottom: 0;
}

footer p a {
  font-weight: 500;
  color: #9b9b9b;
  text-decoration: underline;
}
