@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-Italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Zain";
  src: url("../fonts/Zain-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Zain", Arial, sans-serif;
  --main-bg-color: #6272ca;
  --main-bg-image: url("../img/soft-wallpaper.png");
  background-color: var(--main-bg-color);
  background-image: var(--main-bg-image);
}

.in-body {
  min-height: 100%;
}

h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #000000;
}

.banner {
  font-size: 1.5rem;
  font-weight: 300;
}

.header {
  display: table-row;
  padding: 2rem 1.5rem;
  margin-bottom: 0;
}

.header a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.header a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.container {
  display: flex;
  max-width: 80%;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem;
  gap: 2rem;
}

.container.comments {
  justify-content: flex-start;
  flex-direction: column;
  gap: 0rem;
}

.container.comments form textarea {
  border: none;
  border-radius: 4px;
  resize: both;
  background-color: color-mix(in srgb, var(--main-bg-color) 90%, white);
  background-image: var(--main-bg-image);
  transition: all 0.2s ease;
}

.container.comments form textarea:hover {
  border: 1px solid color-mix(in srgb, var(--main-bg-color) 50%, rgb(0, 0, 0));
  background-color: color-mix(in srgb, var(--main-bg-color) 85%, white);
}

.container.comments form textarea:focus {
  outline: none;
  border: 1px solid color-mix(in srgb, var(--main-bg-color) 50%, rgb(0, 0, 0));
  background-color: color-mix(in srgb, var(--main-bg-color) 85%, white);
}

.container.comments form textarea::placeholder {
  color: #000;
  opacity: 0.6;
  font-weight: 300;
}

.container.comments form input[type="submit"] {
  border: none;
  border-radius: 4px;
  cursor: pointer; /* Changes cursor to a hand on hover */
  background-color: color-mix(in srgb, var(--main-bg-color) 90%, white);
  background-image: var(--main-bg-image);
  transition: all 0.2s ease;
}

.container.comments form input[type="submit"]:hover {
  border: 1px solid color-mix(in srgb, var(--main-bg-color) 50%, rgb(0, 0, 0));
  background-color: color-mix(in srgb, var(--main-bg-color) 85%, white);
}

.container.comments form input[type="submit"]:active {
  border: 1px solid color-mix(in srgb, var(--main-bg-color) 50%, rgb(0, 0, 0));
  background-color: color-mix(in srgb, var(--main-bg-color) 85%, white);
}

.content {
  margin-right: 7%;
}

.post-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.post-date {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: normal;
}

.post-title {
  font-size: 1.6rem;
  font-weight: 300;
}

.post-link:hover .post-date {
  opacity: 1;
}

.post-link:hover .post-title {
  opacity: 0.7;
  text-decoration: underline;
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.post-content {
  margin-bottom: 2rem;
  max-width: 80ch;
}

.post-content p {
  font-size: 1.4rem;
  font-weight: 300;
  text-align: justify;
}

.post-image {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  display: block;
  mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 0.2%,
      black 99.7%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      black 0.3%,
      black 99.7%,
      transparent 100%
    );
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.float-right {
  float: right;
  max-width: 30%;
  margin: 0 0 0 1rem;
}

.oneside-blur {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  display: block;
  mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 0.2%,
      black 99.7%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      black 0.3%,
      black 99%,
      transparent 100%
    );
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.twoside-blur {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  display: block;
  mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 0.3%,
      black 99.7%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      black 1.3%,
      black 98.7%,
      transparent 100%
    );
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #000000;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 600px) {
  body {
    padding: 0.75rem 0.75rem 0;
  }
  .in-body {
    padding: 0.75rem;
  }

  .container {
    max-width: 90%;
  }

  .content {
    margin-right: 0%;
  }

  .post-content {
    font-size: 1rem;
    line-height: 1.4;
  }

  .post-image {
    margin: 1rem 0;
  }
}
