@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

:root {
  color-scheme: light dark;

  --global-font: "IBM Plex Mono", monospace;
  --default-font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif, sans-serif;

  --global-purple: light-dark(#6d02d1, #b365fd);
  --global-teal: light-dark(#319e9e, #2bd6d6);
  --global-yellow: light-dark(#a8b62c, #ddf030);
  --global-pink: light-dark(#c53486, #f641a7);
  --global-white: light-dark(#0e0e0e, #c5c5c5);
  --global-blue: #6e7cff;
  --global-orange: light-dark(#c1810a, #ffae17);
  --global-green: light-dark(#4db04d, #1bff1b);
  --global-red: #f86868;
  --default-light: #e5e5e5;
  --default-dark: #1c1c1c;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: var(--default-font);
}

html {
  height: 100%;
  width: 100%;
}

body {
  background-color: light-dark(#f5f5f5, #1a1a1a);
  padding: 50px;
}

ul {
  list-style-type: none;
}

.underline-link {
  color: inherit;
  text-decoration: none;
}

.underline-link {
  background: linear-gradient(to right,
      rgba(144, 200, 200, 0.5),
      rgba(144, 200, 200, 0.2)),
    linear-gradient(to right,
      rgb(100, 200, 200),
      rgb(0, 200, 180),
      rgb(0, 128, 255),
      rgb(140, 0, 255),
      rgb(255, 0, 255));
  background-size: 100% 0.05em, 0 0.05em;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 350ms;
}

.underline-link:hover,
.underline-link:focus {
  background-size: 0 0.05em, 100% 0.05em;
}

.mode-toggle input[type="checkbox"]{
  display: none;
}

.mode-toggle::before{
  content: "[light.css]" !important;
}

.mode-toggle::after{
  content: none !important;
}

.ld-container input[type="checkbox"] {
  display: none;
}

.link {
  padding: 2px 4px;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  font-weight: 400;
  font-family: var(--global-font);
}

.link::after {
  content: "]";
}

.link::before {
  content: "[";
}

.link:hover {
  color: light-dark(#fff, #1a1a1a);
}

.link-purple {
  color: var(--global-purple);
}

.link-purple:hover {
  background-color: var(--global-purple);
}

.link-teal {
  color: var(--global-teal);
}

.link-teal:hover {
  background-color: var(--global-teal);
}

.link-yellow {
  color: var(--global-yellow);
}

.link-yellow:hover {
  background-color: var(--global-yellow);
}

.link-pink {
  color: var(--global-pink);
}

.link-pink:hover {
  background-color: var(--global-pink);
}

.link-white {
  color: var(--global-white);
}

.link-white:hover {
  background-color: var(--global-white);
}

.link-blue {
  color: var(--global-blue);
}

.link-blue:hover {
  background-color: var(--global-blue);
}

.link-orange {
  color: var(--global-orange);
}

.link-orange:hover {
  background-color: var(--global-orange);
}

.link-green {
  color: var(--global-green);
}

.link-green:hover {
  background-color: var(--global-green);
}

.link-red {
  color: var(--global-red);
}

.link-red:hover {
  background-color: var(--global-red);
}

.main {
  display: flex;
  margin: auto;
  gap: 50px;
  flex-wrap: wrap;
  position: relative;
}

.flex,
.flex2,
.flex3 {
  /* border: 1px solid white; */
}

/* --- --- Flex Start --- --- */

.flex {
  flex-grow: 1;
  flex-shrink: 2;
  flex-basis: calc(1em + 70px);
}

.menu-box {
  position: sticky;
  top: 10px;
}

.logo {
  font-weight: 500;
  font-size: 36px;
  letter-spacing: -1px;
}

.menu {
  margin-top: 20px;
}

.menu li {
  display: inline-block;
  margin-right: -4px;
  margin-bottom: 5px;
}

.latest-article-box {
  margin-top: 40px;
}

.latest-article-box h1 {
  font-family: var(--global-font);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 5px;
}

.latest-list li {
  display: block;
  margin-bottom: 5px;
}

/* --- --- Flex 2 Start --- --- */
.flex2 {
  flex-grow: 2;
  flex-shrink: 1;
  flex-basis: calc(8em + 20%);
}

.article-box {
  margin-bottom: 70px;
}

.article-box .article-title {
  font-family: var(--default-font);
  font-size: 3.5em;
  font-weight: 300;
  margin-bottom: 10px;
}

.article-box .article-text {
  font-size: 1.2em;
  font-family: var(--global-font);
  color: light-dark(#656565, #b6b6b6);
}

.article-box .ht::before {
  /* Home-Text class */
  content: "=> ";
}

.article-info {
  margin: 5px 0 15px;
  display: inline-block;
  font-family: var(--default-font);
  font-weight: 300;
}

.article-info span {
  color: light-dark(#008f8f, aqua);
}

.add-comment {
  margin-bottom: 35px;
  /* max-width: 80%;
  min-width: 60%; */
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.form-input-group {
  flex: 1;
}

.form-input-group textarea {
  height: 120px;
  resize: none;
}

.form-input {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background: light-dark(#e9e9e9, #333);
  outline: none;
  box-shadow: 3px 3px #808080;
  color: light-dark(#333, #fff);
  transition: box-shadow .25s ease;
}

.form-input::placeholder {
  color: light-dark(#767676, #b6b6b6);
}

.form-input:focus {
  box-shadow: 0px 0px 10px gray;
}

.form-input:focus::placeholder {
  text-align: right;
}

.form-button{
  width: max-content;
  padding: 8px 20px;
  cursor: pointer;
  background-color: #c5c5c5;
  border: none;
  color: #333;
  box-shadow: 4px 4px #808080;
  transition: box-shadow .25s ease;
}

.form-button:hover{
  box-shadow: none;
}

.form-button:focus{
  box-shadow: 0px 0px 10px gray;
}

.article-comments {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.comment-box {
  margin-bottom: 20px;
  /* border-bottom: 1px solid #575757; 
  padding-bottom: 20px; */
}

.comment {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 10px;
  align-items: center;
  gap: 15px;
  border-radius: 12px;
  background-color: light-dark(#cacaca, #323232);
}

.article-comments-title {
  margin-bottom: 20px;
  font-size: 38px;
  font-weight: 300;
  font-family: var(--default-font);
}

.comment-user {
  flex-grow: 1;
  font-size: 24px;
  font-family: var(--global-font);
  font-weight: 500;
  letter-spacing: -1px;
  max-width: 20%;
  text-align: left;
  text-transform: lowercase;
}

.comment-message {
  flex-wrap: wrap;
  flex-grow: 2;
  min-width: 80%;
  max-width: 80%;
  font-weight: 400;
  font-size: 16px;
}

.comment-reply {
  position: relative;
  margin-top: 10px;
  margin-left: 50px;
  max-width: 100%;
}

.comment-reply::before {
  position: absolute;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f148";
  transform: rotate(90deg);
  margin-left: -40px;
}

.reply-link {
  flex-grow: 1;
}

/* .flex3 {
  flex-grow: 1;
  flex-shrink: 2;
  flex-basis: calc(2em + 200px);
} */

.site-footer {
  margin: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.site-footer p {
  font-family: var(--global-font);
}

.footer-flex {
  flex-grow: 3;
  flex-basis: calc(37.5em - 18.75);
}

.footer-flex p {
  display: inline-block;
  font-weight: 500;
}

.footer-flex2 {
  flex-grow: 1;
  flex-basis: auto;
}

.footer-flex2 p {
  float: right;
}