/* ==========================================================================
   Community Omega: clean white "glass" theme

   NavigationBar.php loads this file last, after mystyle.css, Responsive.css
   and the jQuery plugin styles. It only restyles the existing markup, so
   removing its <link> brings the old look back.
   Orange is used on purpose only for the sign-up button.
   ========================================================================== */

:root {
  --bg: #f5f7fa;
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --text: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.14);

  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.66));
  --glass-edge: rgba(255, 255, 255, 0.9);
  --field: rgba(255, 255, 255, 0.8);
  --blur: saturate(180%) blur(20px);

  --shadow-sm: 0 0 0 1px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.05), 0 14px 34px -16px rgba(15, 23, 42, 0.2);
  --shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(15, 23, 42, 0.06), 0 26px 50px -20px rgba(15, 23, 42, 0.3);
  --shadow-pop: 0 0 0 1px rgba(15, 23, 42, 0.06), 0 30px 70px -20px rgba(15, 23, 42, 0.35);
  --ring: 0 0 0 4px rgba(15, 23, 42, 0.07);

  --accent: #ea580c;
  --accent-light: #f97316;
  --accent-dark: #c2410c;

  --radius: 22px;
  --nav-h: 68px;
  --search-w: clamp(220px, 24vw, 440px);
  --page-w: 1240px;
  --read-w: 860px;
  --gutter: 24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A faint colour wash behind everything, so the glass has something to sit on. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(48rem 32rem at 0% 0%, rgba(191, 219, 254, 0.55), transparent 70%),
    radial-gradient(40rem 30rem at 100% 6%, rgba(221, 214, 254, 0.5), transparent 70%),
    radial-gradient(44rem 30rem at 88% 100%, rgba(254, 215, 170, 0.3), transparent 70%),
    radial-gradient(36rem 26rem at 8% 96%, rgba(204, 251, 241, 0.4), transparent 70%);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(15, 23, 42, 0.12);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- Navigation bar ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  min-height: var(--nav-h);
  padding: 0 var(--gutter);
  overflow: visible;
  line-height: normal;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.35);
}

.topnav .left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  border: 0;
}

.topnav .left a:not(.icon) {
  display: block;
  flex: 0 0 auto;
  float: none;
  width: auto;
  margin: 0;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}

.topnav .left a:not(.icon):hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.05);
}

/* "Community Omega" becomes the logo. */
.topnav .left a:first-child {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-right: 4px;
  padding: 6px 12px 6px 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.topnav .left a:first-child:hover {
  background: transparent;
}

.topnav .left a:first-child::before {
  content: "Ω";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  background: linear-gradient(150deg, #334155, var(--ink) 60%);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 14px -6px rgba(15, 23, 42, 0.6);
}

.topnav .left a.icon {
  display: none;
  position: static;
}

.topnav .searchcontainer {
  width: var(--search-w);
}

.topnav .searchcontainer form {
  position: relative;
  display: flex;
  align-items: center;
}

.topnav .searchcontainer input[type=text] {
  display: block;
  float: none;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 46px 0 18px;
  font-size: 14px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.topnav .searchcontainer button {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  float: none;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  transition: background-color 0.2s, color 0.2s;
}

.topnav .searchcontainer button:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.06);
}

.topnav .right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.topnav .right > form {
  display: flex;
  align-items: center;
  gap: 8px;
  order: 1;
}

.topnav .right .logout {
  order: 1;
}

.topnav .right .signupbutton {
  order: 2;
}

.topnav .right .ProfileLink {
  order: 3;
}

/* no sign-up button for someone who is already signed in */
.topnav .right:has(.logout) .signupbutton,
.topnav .right:has(.logout) a.nav-register,
.topnav .right:has(.logout) a.nav-login {
  display: none;
}

.topnav .right > form input[type=text],
.topnav .right > form input[type=password] {
  float: none;
  width: clamp(80px, 8vw, 150px);
  height: 40px;
  margin: 0;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Είσοδος / Αποσύνδεση */
.topnav .right > form button,
.topnav .logout button {
  float: none;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.topnav .right > form button:hover,
.topnav .logout button:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.35);
}

/* Εγγραφή: the one orange button. */
.topnav .signupbutton button {
  float: none;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -8px rgba(234, 88, 12, 0.7);
  transition: transform 0.15s, box-shadow 0.2s;
}

.topnav .signupbutton button:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 22px -10px rgba(234, 88, 12, 0.8);
  transform: translateY(-1px);
}

/* Είσοδος / Εγγραφή as plain links (login.php, register.php) */
.topnav .right a.nav-login,
.topnav .right a.nav-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.topnav .right a.nav-login {
  order: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
}

.topnav .right a.nav-login:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.35);
}

.topnav .right a.nav-register {
  order: 2;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 18px -8px rgba(234, 88, 12, 0.7);
}

.topnav .right a.nav-register:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 22px -10px rgba(234, 88, 12, 0.8);
  transform: translateY(-1px);
}

.topnav .ProfileLink {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.topnav .ProfileLink a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s;
}

.topnav .ProfileLink a:hover {
  color: var(--ink);
  background: #fff;
  border-color: rgba(15, 23, 42, 0.24);
}

/* ---------- Search suggestions ---------- */

.ListShow {
  position: fixed;
  top: calc(var(--nav-h) - 4px);
  left: 50%;
  z-index: 60;
  width: var(--search-w);
  max-height: 60vh;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  transform: translateX(-50%);
}

.ListShow:empty {
  display: none;
}

.ListShow:not(:has(a)) {
  display: none;
}

.ListShow br {
  display: none;
}

.ListShow .ListItem,
.ListShow .ListItem:hover {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border-radius: 12px;
}

.ListShow .ListItem:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.05);
}

/* ---------- Buttons above the content ---------- */

.RowFilter {
  display: flex;
  justify-content: flex-end;
  max-width: var(--page-w);
  margin: 24px auto 0;
  padding: 0 var(--gutter);
}

.RowFilter .signupbuttonFilter button,
.RowFilter .signupbuttonFilter button:hover {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 42px;
  margin: 0;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.7);
  transition: transform 0.15s, background-color 0.2s;
}

.RowFilter .signupbuttonFilter button::before {
  content: "+";
  margin-right: 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.RowFilter .signupbuttonFilter button:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

.RowFilterThema {
  display: flex;
  justify-content: flex-end;
  max-width: calc(var(--read-w) + 2 * var(--gutter));
  margin: 28px auto 0;
  padding: 0 var(--gutter);
}

.RowFilterThema .signupbuttonFilterThema {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.RowFilterThema .signupbuttonFilterThema a,
.RowFilterThema .signupbuttonFilterThema a:hover {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 42px;
  margin: 0;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, background-color 0.2s;
}

.RowFilterThema .signupbuttonFilterThema a:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* The last one ("Ερώτηση / Συζήτηση" on a community page) is the main action. */
.RowFilterThema .signupbuttonFilterThema a:last-child {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.7);
}

.RowFilterThema .signupbuttonFilterThema a:last-child:hover {
  color: #fff;
  background: var(--ink-soft);
}

/* ---------- Sort and date filter (home), comment count (topic) ---------- */

.RowIndexSort {
  max-width: var(--page-w);
  margin: 28px auto 0;
  padding: 0 var(--gutter);
}

.rowContent ~ .RowIndexSort {
  max-width: calc(var(--read-w) + 2 * var(--gutter));
  margin-top: 40px;
}

.IndexSort {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0 0 18px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.IndexSort > p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.IndexSort > p:empty {
  display: none;
}

.IndexSort .date {
  display: flex;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.IndexSort .custom-select,
.IndexSort .form_date {
  width: auto;
  min-width: 200px;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  font-size: 14px;
  text-align: left;
  color: var(--text);
  background-color: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.IndexSort .custom-select {
  padding-right: 40px;
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.IndexSort .form_date {
  cursor: pointer;
}

/* ---------- Topic cards (home, community, search, suggestions) ---------- */

.rowIndex {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 24px;
  max-width: var(--page-w);
  margin: 28px auto 40px;
  padding: 0 var(--gutter);
}

.RightTopic {
  display: block;
  align-self: stretch;
  width: 100%;
}

.ShowMore {
  display: block;
}

.disptopicsIndex {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto;
  height: auto;
  margin: 0;
  padding: 22px 22px 18px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.disptopicsIndex:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* The PHP leaves <b> tags open, so the browser wraps the parts of later cards
   in up to three extra <b> elements. They must not take part in the layout. */
.disptopicsIndex > b,
.disptopicsIndex > b > b,
.disptopicsIndex > b > b > b {
  display: contents;
  font-weight: 400;
}

.disptopicsIndex:has(a:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

:is(.disptopicsIndex, .disptopicsIndex > b, .disptopicsIndex > b > b, .disptopicsIndex > b > b > b) > br {
  display: none;
}

/* the title link */
:is(.disptopicsIndex, .disptopicsIndex > b, .disptopicsIndex > b > b, .disptopicsIndex > b > b > b) > a:link,
:is(.disptopicsIndex, .disptopicsIndex > b, .disptopicsIndex > b > b, .disptopicsIndex > b > b > b) > a:visited {
  display: -webkit-box;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:is(.disptopicsIndex, .disptopicsIndex > b, .disptopicsIndex > b > b, .disptopicsIndex > b > b > b) > a:focus-visible {
  outline: none;
}

/* The title link covers the whole card. */
:is(.disptopicsIndex, .disptopicsIndex > b, .disptopicsIndex > b > b, .disptopicsIndex > b > b > b) > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.disptopicsIndex .disptopicsIndex-content {
  display: -webkit-box;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  padding: 0;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.6;
  text-align: left;
  color: #475569;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}

.disptopicsIndex .disptopicsIndex-content > b,
.disptopicsIndex .disptopicsIndex-content > b > i {
  font-weight: 400;
  font-style: normal;
}

.disptopicsIndex .disptopicsIndex-content p {
  margin: 0 0 0.6em;
}

.disptopicsIndex .disptopicsIndex-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.disptopicsIndex .disptopicsIndex-content a:link,
.disptopicsIndex .disptopicsIndex-content a:visited,
.disptopicsIndex .disptopicsIndex-content a:hover {
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-weight: 500;
  color: var(--text);
}

.disptopicsIndex .IndexImage {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  padding: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 14px;
}

.disptopicsIndex .IndexImage > b {
  display: block;
  height: 100%;
}

.disptopicsIndex .IndexImage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.disptopicsIndex:hover .IndexImage img {
  transform: scale(1.03);
}

.disptopicsIndex .userIndex,
.disptopicsIndex .DatePostIndex,
.disptopicsIndex .infoIndex {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.disptopicsIndex .userIndex {
  margin-top: auto;
  padding-top: 14px;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.disptopicsIndex .userIndex > b,
.disptopicsIndex .DatePostIndex > b,
.disptopicsIndex .infoIndex > b {
  font-weight: 500;
}

.disptopicsIndex .DeleteTopic {
  position: relative;
  z-index: 2;
  margin-top: 10px;
}

.disptopicsIndex .DeleteTopic button {
  position: static;
  width: auto;
  height: 32px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.8);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 999px;
}

.NoResult {
  margin: 28px auto 0;
  padding: 0 var(--gutter);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Communities ---------- */

.rowCommunities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 24px;
  max-width: var(--page-w);
  margin: 36px auto 48px;
  padding: 0 var(--gutter);
}

.rowCommunities .Communities {
  position: relative;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 10px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rowCommunities .Communities:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.rowCommunities .Communities > a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.rowCommunities .Communities img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.5s ease;
}

.rowCommunities .Communities:hover img {
  transform: scale(1.04);
}

.Communities .descriptionCommunities {
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 6px 0;
  text-align: left;
}

.Communities .descriptionCommunities a:link,
.Communities .descriptionCommunities a:visited,
.Communities .descriptionCommunities a:hover {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* The name link covers the whole card. */
.Communities .descriptionCommunities a:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ---------- Community description ---------- */

.LeftTopic,
.LeftTopicB {
  width: min(var(--read-w), 100% - 2 * var(--gutter));
  margin: 0 auto;
}

.description,
.descriptionB {
  width: auto;
  height: auto;
  margin: 18px 0 0;
  padding: 24px 28px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.descriptionTitle,
.descriptionTitleB {
  width: auto;
  overflow: visible;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  color: var(--muted);
}

.descriptionTitle p,
.descriptionTitleB p {
  margin: 0 0 10px;
}

.descriptionContent,
.descriptionContentB {
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  font-size: 15.5px;
  line-height: 1.7;
  text-align: left;
  color: var(--text);
}

/* ---------- Topic page ---------- */

.rowContent {
  display: block;
  padding: 0 var(--gutter);
}

.boxContent {
  width: auto;
  max-width: var(--read-w);
  height: auto;
  margin: 32px auto 0;
  padding: 44px 52px 36px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.boxContent > p {
  margin: 0;
}

.boxContent > br {
  display: none;
}

.contentTitle {
  width: auto;
  margin: 0 0 24px;
  padding: 0 0 24px;
  overflow: visible;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.contentPereiexomeno {
  width: auto;
  padding: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}

.contentPereiexomeno img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.contentImage {
  margin: 24px 0;
}

.contentImage img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.35);
}

.YoutubeUrl {
  margin: 24px 0;
}

.YoutubeUrl .YoutubeFrame {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
}

.boxContent .contentDate {
  width: auto;
  padding: 4px 0 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

/* author: the first .contentDate; the second one is the date */
.boxContent :not(.contentDate) + .contentDate {
  margin-top: 32px;
  padding-top: 24px;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.boxContent .contentDate:has(.imageprofiletopic) {
  display: flex;
  align-items: center;
}

.boxContent .contentDate:has(.imageprofiletopic) > span {
  margin-right: 0.35em;
}

.boxContent .contentDate:has(.imageprofiletopic) + .contentDate {
  padding-left: 60px;
}

.imageprofiletopic {
  width: auto;
  height: auto;
  margin-right: 12px;
}

/* the PHP sets 100x100 inline */
.imageprofiletopic img {
  display: block;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 6px 16px -6px rgba(15, 23, 42, 0.45);
}

/* ---------- Comments ---------- */

.rowContentReply,
.rowContentReplytoReply {
  display: block;
  width: auto;
  max-width: calc(var(--read-w) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.boxContentReply {
  width: auto;
  height: auto;
  margin: 16px 0 0;
  padding: 22px 24px 18px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.boxContentReplytoReply {
  position: relative;
  width: auto;
  height: auto;
  margin: 10px 0 0 40px;
  padding: 18px 22px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-edge);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

/* thread line from the comment above */
.boxContentReplytoReply::before {
  content: "";
  position: absolute;
  top: -11px;
  bottom: 50%;
  left: -24px;
  width: 16px;
  border-bottom: 2px solid var(--line-strong);
  border-left: 2px solid var(--line-strong);
  border-bottom-left-radius: 12px;
}

.boxContentReply > br,
.boxContentReplytoReply > br {
  display: none;
}

.boxContentReplyComment,
.boxContentReplyCommenttoReply {
  width: auto;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.boxContentReplyComment p,
.boxContentReplyCommenttoReply p {
  width: auto;
  margin: 0 0 0.6em;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.boxContentReply > p {
  width: auto;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--muted);
}

.boxContentReply > p:first-of-type {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.boxContentReplytoReply .DateInfo {
  width: auto;
  margin-top: 12px;
  padding: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.boxContentReplytoReply .DateInfo > p:empty {
  display: none;
}

.boxContentReplytoReply > form {
  display: inline-flex;
  margin: 10px 8px 0 0;
}

.boxContent .buttonsDeleteEdit {
  justify-content: flex-start;
  gap: 8px;
  margin-top: 18px;
}

/* Απάντηση, Διαγραφή, Επεξεργασία on one row */
.boxContentReply .buttons,
.boxContentReply .buttonsDeleteEdit {
  display: inline-flex;
  gap: 8px;
  margin: 12px 8px 0 0;
  vertical-align: top;
}

.boxContent button,
.boxContentReply button,
.boxContentReplytoReply button {
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.2s, border-color 0.2s;
}

.boxContent button:hover,
.boxContentReply button:hover,
.boxContentReplytoReply button:hover {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.28);
}

.boxContent .deletecomment button,
.boxContentReply .deletecomment button,
.boxContentReplytoReply .deletecomment button {
  color: #b91c1c;
}

/* ---------- Comment, new topic and new link forms ---------- */

.RowNewReply,
.RowNewTopic,
.RowNewTopicLink {
  display: block;
  padding: 0 var(--gutter);
}

.NewReply,
.NewTopic,
.NewTopicLink {
  width: auto;
  max-width: var(--read-w);
  height: auto;
  margin: 32px auto;
  padding: 28px 32px 24px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.NewReply p,
.NewTopic p,
.NewTopicLink p {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
}

.NewReply label,
.NewTopic label,
.NewTopicLink label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
}

.NewReply input[type=text],
.NewReply input[type=url],
.NewTopic input[type=text],
.NewTopic input[type=url],
.NewTopicLink input[type=text],
.NewTopicLink input[type=url],
#TextLink {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.NewReply textarea,
.NewTopic textarea {
  width: 100%;
  min-height: 180px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

.NewTopic input[type=file],
.NewTopicLink input[type=file] {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

input[type=file]::file-selector-button {
  height: 34px;
  margin-right: 12px;
  padding: 0 16px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.NewReply button,
.NewTopic button,
.NewTopicLink button,
.NewReply button:hover,
.NewTopic button:hover,
.NewTopicLink button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 46px;
  margin: 18px 0 0;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px -14px rgba(15, 23, 42, 0.8);
  transition: transform 0.15s, background-color 0.2s;
}

.NewReply button:hover,
.NewTopic button:hover,
.NewTopicLink button:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}

/* CKEditor */
.NewReply .cke_chrome,
.NewTopic .cke_chrome {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: none;
}

.NewReply .cke_top,
.NewTopic .cke_top {
  background: rgba(248, 250, 252, 0.95);
  border-bottom: 1px solid var(--line);
}

.NewReply .cke_bottom,
.NewTopic .cke_bottom {
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid var(--line);
}

/* ---------- Dialogs (jquery-modal) ---------- */

.blocker {
  z-index: 1000;
  padding: 20px;
  background-color: rgba(15, 23, 42, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.blocker .modal {
  width: 92%;
  max-width: 460px;
  height: auto;
  max-height: calc(100vh - 40px);
  padding: 30px 28px 26px;
  overflow: auto;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid var(--glass-edge);
  border-radius: 26px;
  box-shadow: var(--shadow-pop);
}

.blocker #AddCommunity,
.blocker #EditProfileCard {
  width: 92%;
  max-width: 540px;
  height: auto;
}

.blocker .modal .modal-content {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.blocker .modal .container {
  padding: 0;
}

.blocker .modal h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blocker .modal hr {
  width: auto;
  height: 1px;
  margin: 16px 0 20px;
  background: var(--line);
  border: 0;
}

.blocker .modal label,
.blocker .modal b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.blocker #AddCommunity label,
.blocker #EditProfileCard label {
  margin: 0;
  padding: 0;
}

.blocker .modal input[type=text],
.blocker .modal input[type=password],
.blocker .modal textarea {
  display: block;
  width: 100%;
  height: 46px;
  margin: 6px 0 16px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.blocker .modal textarea {
  height: 140px;
  padding: 12px 16px;
  resize: vertical;
}

.blocker .modal input[type=file] {
  display: block;
  width: 100%;
  margin: 6px 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.blocker .modal input[type=radio] {
  accent-color: var(--ink);
}

/* The sign-up form keeps the orange of the button that opens it. */
.blocker .modal .signupbtn,
.blocker .modal .signupbtn:hover {
  float: none;
  width: 100%;
  height: 48px;
  margin: 8px 0 0;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  border: 0;
  border-radius: 999px;
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 24px -12px rgba(234, 88, 12, 0.8);
}

.blocker .modal .signupbtn:hover {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.blocker #AddCommunity input[type=submit],
.blocker #EditProfileCard input[type=submit] {
  display: block;
  width: 100%;
  height: 48px;
  margin: 18px 0 0;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  opacity: 1;
}

.blocker #AddCommunity input[type=submit]:hover,
.blocker #EditProfileCard input[type=submit]:hover {
  background: var(--ink-soft);
}

.blocker .deleteprofile {
  margin-top: 6px;
}

.blocker .deleteprofile button {
  margin: 0 auto;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #b91c1c;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  opacity: 1;
}

.blocker .modal a.close-modal {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  transition: background-color 0.2s;
}

.blocker .modal a.close-modal:hover {
  background: rgba(15, 23, 42, 0.12);
}

.blocker .modal a.close-modal::before,
.blocker .modal a.close-modal::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.blocker .modal a.close-modal::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- Profile ---------- */

.rowUserInfo {
  display: block;
  padding: 0 var(--gutter);
}

.UserInfoProfile {
  width: auto;
  max-width: 560px;
  height: auto;
  margin: 40px auto;
  padding: 36px 32px 32px;
  font-size: 15px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.UserInfoProfile > br {
  display: none;
}

.UserInfoProfile img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 16px 34px -14px rgba(15, 23, 42, 0.45);
}

.UserInfoProfile table {
  margin: 0 0 24px;
}

.UserInfoProfile tr:nth-child(even) {
  background-color: transparent;
}

.UserInfoProfile tr + tr td {
  border-top: 1px solid var(--line);
}

.UserInfoProfile td {
  padding: 14px 6px;
  font-size: 15px;
  color: var(--ink);
}

.UserInfoProfile td:first-child {
  color: var(--muted);
}

.UserInfoProfile button,
.UserInfoProfile button:hover {
  width: auto;
  height: 46px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
}

.UserInfoProfile button:hover {
  background: var(--ink-soft);
}

/* ---------- About, terms, contact ---------- */

.rowAbout {
  display: block;
  padding: 0 var(--gutter);
}

.About {
  width: auto;
  max-width: 820px;
  margin: 40px auto 0;
  padding: 40px 44px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.About b {
  color: var(--ink);
}

.About ul {
  padding-left: 1.2em;
}

.About li::marker {
  color: var(--muted);
}

/* ---------- Links inside posts and pages ---------- */

.contentPereiexomeno a,
.boxContentReplyComment a,
.boxContentReplyCommenttoReply a,
.About a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(15, 23, 42, 0.3);
  text-underline-offset: 3px;
}

.contentPereiexomeno a:hover,
.boxContentReplyComment a:hover,
.boxContentReplyCommenttoReply a:hover,
.About a:hover {
  text-decoration-color: var(--ink);
}

/* ---------- Messages ---------- */

.error,
.success {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 20px auto 0;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 14px;
}

.error {
  color: #b91c1c;
  background: rgba(254, 242, 242, 0.9);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.success {
  color: #15803d;
  background: rgba(240, 253, 244, 0.9);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

/* ---------- Load more ---------- */

.rowButtonLoadMore {
  margin: 8px 0 24px;
}

.rowButtonLoadMore .ButtonLoadMore,
.rowButtonLoadMore .ButtonLoadMore:hover {
  width: auto;
  height: 46px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s;
}

.rowButtonLoadMore .ButtonLoadMore:hover {
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */

.RowFooter {
  margin-top: 56px;
}

.RowFooter .Footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 28px;
  padding: 28px var(--gutter) 30px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line);
}

.RowFooter .Footer p {
  margin: 0;
}

.RowFooter .Footer a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.RowFooter .Footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.RowFooter .Footer > p {
  flex-basis: 100%;
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
}

/* ---------- Cookie notice ---------- */

.cookie-container {
  left: 16px;
  right: 16px;
  z-index: 40;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 14px 14px 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
  transition: bottom 0.4s ease;
}

.cookie-container.active {
  bottom: 16px;
}

.cookie-container p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
}

.cookie-container a,
.cookie-container a:hover {
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-container .cookie-btn {
  flex: 0 0 auto;
  width: auto;
  height: 42px;
  margin: 0;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
}

.cookie-container .cookie-btn:hover {
  background: var(--ink-soft);
}

/* ---------- Dividers and headings ---------- */

hr.Ads {
  width: min(720px, 100% - 2 * var(--gutter));
  height: 1px;
  margin: 32px auto;
  background: var(--line);
  border: 0;
  border-radius: 0;
}

hr:not(.Ads) {
  width: min(var(--read-w), 100% - 2 * var(--gutter));
  height: 1px;
  margin: 32px auto;
  background: var(--line);
  border: 0;
}

.ShowMoreText {
  margin: 48px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
}

/* ---------- Date picker (jQuery UI) ---------- */

#ui-datepicker-div.ui-widget {
  padding: 10px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
}

#ui-datepicker-div .ui-widget-header {
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
}

#ui-datepicker-div .ui-state-default {
  text-align: center;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
}

#ui-datepicker-div .ui-state-hover,
#ui-datepicker-div .ui-state-default:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: transparent;
}

#ui-datepicker-div .ui-state-highlight {
  color: var(--ink);
  border-color: var(--line-strong);
}

#ui-datepicker-div .ui-state-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

/* ---------- Focus ring for the restyled fields ---------- */

.topnav input:focus,
.IndexSort .custom-select:focus,
.IndexSort .form_date:focus,
.NewReply input:focus,
.NewReply textarea:focus,
.NewTopic input:focus,
.NewTopic textarea:focus,
.NewTopicLink input:focus,
.blocker .modal input:focus,
.blocker .modal textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: rgba(15, 23, 42, 0.32);
  box-shadow: var(--ring);
}

/* ---------- Colours that the PHP sets inline ---------- */

/* "Εγγεγραμένος Χρήστης:" */
span[style*="color:green"] {
  font-weight: 500;
  color: #047857 !important;
}

/* "*Απαιτείται" */
span[style*="color:red"] {
  font-size: 13px;
  font-weight: 500;
  color: #dc2626 !important;
}

/* notes under the forms */
p[style*="color:red"],
p[style*="color:Black"] {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted) !important;
}

/* "no topics / comments yet" */
p[style*="240,240,240"],
p[style*="rgb(0,0,0)"] {
  margin: 28px auto 0;
  padding: 0 var(--gutter);
  font-size: 15px;
  color: var(--muted) !important;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 1200px) {
  .topnav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 14px;
  }

  .topnav .left {
    flex: 1 1 100%;
  }

  /* flex, because Responsive.css gives this link justify-content: flex-end */
  .topnav .left a.icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    float: none;
    width: 42px;
    height: 42px;
    margin: 0 0 0 auto;
    padding: 0;
    font-size: 17px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
  }

  .topnav .left a.icon:hover {
    color: var(--ink);
    background: #fff;
  }

  .topnav .searchcontainer {
    display: block;
    flex: 1 1 100%;
    width: auto;
  }

  .topnav .searchcontainer input[type=text] {
    height: 44px;
  }

  .topnav .right {
    display: none;
  }

  .topnav.responsive .right {
    display: flex;
    flex: 1 1 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .topnav .right > form {
    display: grid;
    flex: 1 1 100%;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .topnav .right > form input[type=text],
  .topnav .right > form input[type=password] {
    width: 100%;
    height: 44px;
  }

  .topnav .right > form button {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
  }

  .topnav .right .signupbutton {
    display: block;
    flex: 1 1 100%;
    order: 3;
    width: auto;
    margin: 0;
  }

  .topnav .right .signupbutton button {
    width: 100%;
    height: 44px;
  }

  .topnav .right .logout {
    flex: 1 1 0;
  }

  .topnav .right .logout button {
    width: 100%;
    height: 44px;
  }

  .topnav .right .ProfileLink {
    order: 2;
  }

  .topnav .right .ProfileLink a {
    width: 44px;
    height: 44px;
  }

  .topnav .right a.nav-login,
  .topnav .right a.nav-register {
    flex: 1 1 0;
    height: 44px;
  }

  .ListShow {
    position: absolute;
    top: 120px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --radius: 20px;
  }

  .rowIndex,
  .rowCommunities {
    gap: 16px;
    margin-top: 20px;
  }

  .disptopicsIndex {
    padding: 18px 18px 16px;
  }

  .RowIndexSort {
    margin-top: 20px;
  }

  .IndexSort .custom-select {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .IndexSort .date {
    flex: 1 1 100%;
  }

  .IndexSort .form_date {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .RowFilter .RowFilterRight,
  .RowFilter .signupbuttonFilter,
  .RowFilter .signupbuttonFilter button {
    width: 100%;
  }

  .RowFilter .signupbuttonFilter button {
    justify-content: center;
  }

  .RowFilterThema .signupbuttonFilterThema {
    width: 100%;
  }

  .RowFilterThema .signupbuttonFilterThema a {
    flex: 1 1 auto;
    padding: 0 12px;
    white-space: nowrap;
  }

  .description,
  .descriptionB {
    padding: 20px;
  }

  .boxContent {
    padding: 28px 22px 24px;
    border-radius: 22px;
  }

  .contentTitle {
    font-size: 24px;
  }

  .contentPereiexomeno {
    font-size: 16px;
  }

  .boxContentReply {
    padding: 18px 18px 16px;
  }

  .boxContentReplytoReply {
    margin-left: 22px;
    padding: 16px 16px 14px;
  }

  .boxContentReplytoReply::before {
    left: -16px;
    width: 10px;
  }

  .NewReply,
  .NewTopic,
  .NewTopicLink {
    padding: 22px 18px 20px;
  }

  .About {
    padding: 28px 22px;
  }

  .UserInfoProfile {
    padding: 28px 20px;
  }

  .cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .cookie-container .cookie-btn {
    width: 100%;
  }

  .blocker .modal {
    padding: 26px 20px 22px;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .topnav .left a:not(.icon) {
    padding: 8px;
    font-size: 14px;
  }

  .topnav .left a:first-child {
    gap: 8px;
    padding: 6px 6px 6px 2px;
    font-size: 15px;
  }

  .topnav .left a:first-child::before {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 10px;
  }
}

/* very small phones: only the Ω mark, the name is still read out */
@media (max-width: 340px) {
  .topnav .left a:first-child {
    gap: 0;
    font-size: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .disptopicsIndex:hover,
  .rowCommunities .Communities:hover,
  .disptopicsIndex:hover .IndexImage img,
  .rowCommunities .Communities:hover img {
    transform: none;
  }
}
