@font-face {
  font-family: "Noto Sans";
  src: url("/assets/fonts/Noto_Sans/NotoSans-VariableFont_wdth\,wght.ttf")
    format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Arabic";
  src: url("/assets/fonts/Noto_Sans_Arabic/NotoSansArabic-VariableFont_wdth\,wght.ttf")
    format("truetype");
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("/assets/fonts/Noto_Sans_Hebrew/NotoSansHebrew-VariableFont_wdth\,wght.ttf")
    format("truetype");
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F;
}

@font-face {
  font-family: "Noto Sans SC";
  src: url("/assets/fonts/Noto_Sans_SC/NotoSansSC-VariableFont_wdth\,wght.ttf")
    format("truetype");
  font-display: swap;
  unicode-range: U+4E00-9FFF,
    /* CJK Unified Ideographs (core simplified set) */ U+3400-4DBF,
    /* Extension A */ U+20000-2A6DF, /* Extension B */ U+2A700-2B73F,
    /* Extension C */ U+2B740-2B81F, /* Extension D */ U+2B820-2CEAF,
    /* Extension E */ U+2CEB0-2EBEF, /* Extension F */ U+30000-3134F; /* Extension G */
}

html {
  font-size: 20px;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans SC",
    "Noto Sans";
}

body.rtl {
  direction: rtl;
  text-align: right;
}
body.rtl .languages ul {
  direction: ltr;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}

main,
header,
footer {
  max-width: 70ch;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

main p {
  line-height: 1.4;
}
footer {
  margin-top: 120px;
}
footer div {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
}

header {
  padding: 50px 15px 20px 15px;
  text-align: center;

  margin-bottom: 60px;
}

header a {
  text-decoration: none;
  position: relative;
}

header > a {
  text-transform: uppercase;
  font-size: 2rem;
  text-wrap: pretty;
}

header a span {
  background: yellow;
  color: black;
  padding: 7px 3px 5px 3px;
  transform: rotate(20deg);
  display: inline-block;
  top: -16px;
  right: -25px;
  position: absolute;
  font-size: 1rem;
}

/*.button {
  padding: 15px 20px;
  font-size: 120%;
  background: #BBB;
  color: #111;
  border-radius: 10px;
  margin: 20px 0;
  text-decoration: none;
  text-align: center;
  margin: 0 auto;
  display: block;
  border: 0px;
  width: 100%;
  font-family: -apple-system, sans-serif;


}*/

/* CSS */
.button {
  background-color: #ffffff;
  border: 1px solid rgb(209, 213, 219);
  border-radius: 0.5rem;
  box-sizing: border-box;
  color: #111827;
  font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, system-ui,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: 0.75rem 1rem;
  text-align: center;
  text-decoration: none #d1d5db solid;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 240ms ease-in-out;
  max-width: fit-content;
}

.button:active {
  transform: translateY(5px);
}

.button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.button:focus-visible {
  box-shadow: none;
}

.pseudonym_box {
  display: flex;
}

.pseudonym {
  padding: 10px;
  font-size: 1.5rem;
  font-family: inherit;
  text-align: center;
}

:root {
  --line-height: 1.7rem;
  --line-count: 8;
  --line-color: #ccc;
}

#saveInfo {
  font-size: small;
  color: currentColor;
  margin-top: 0px;
  text-align: right;
  margin-bottom: 40px;
}

.content-below-editor p {
  font-size: 14px;
}

.textarea_wrap {
  background-color: transparent;
  padding: 0px 20px 0px 20px;
  /* box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px; */
  border-radius: 3px;
  margin: 0px -20px 10px -20px;
}

.grow-wrap {
  /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
  display: grid;
}

.grow-wrap::after {
  /* Note the weird space! Needed to preventy jumpy behavior */
  content: attr(data-replicated-value) " ";

  /* This is how textarea text behaves */
  white-space: pre-wrap;

  /* Hidden from view, clicks, and screen readers */
  visibility: hidden;
}

.grow-wrap > textarea {
  /* You could leave this, but after a user resizes, then it ruins the auto sizing */
  resize: none;

  /* Firefox shows scrollbar on growth, you can hide like this. */
  overflow: hidden;
}

.grow-wrap > textarea,
.grow-wrap::after {
  /* Identical styling required!! */
  font-family: sans-serif;
  font-size: 1rem;
  line-height: calc(var(--line-height) + 1px);
  /* Place on top of each other */
  grid-area: 1 / 1 / 2 / 2;
  margin: 0;
  padding: 0;
  padding-top: 5px;
  min-height: calc(var(--line-count) * (var(--line-height)));
}

textarea {
  border: none;
  outline: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent var(--line-height),
    var(--line-color) var(--line-height),
    var(--line-color) calc(var(--line-height) + 1px)
  );
  background-attachment: local;
}

.local_store {
  background-color: #e3f1c4;
  padding: 15px;
  display: block;
  width: 100vw;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

input[type="submit"]:before {
  display: block;
  content: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxZW0iIGhlaWdodD0iMWVtIiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGZpbGw9ImN1cnJlbnRDb2xvciIgZD0iTTIwLjU2IDMuMzRhMSAxIDAgMCAwLTEtLjA4bC0xNyA4YTEgMSAwIDAgMC0uNTcuOTJhMSAxIDAgMCAwIC42LjlMOCAxNS40NXY2LjcyTDEzLjg0IDE4bDQuNzYgMi4wOGEuOTMuOTMgMCAwIDAgLjQuMDlhMSAxIDAgMCAwIC41Mi0uMTVhMSAxIDAgMCAwIC40OC0uNzlsMS0xNWExIDEgMCAwIDAtLjQ0LS44OU0xOC4xIDE3LjY4bC01LjI3LTIuMzFMMTYgOS4xN2wtNy42NSA0LjI1bC0yLjkzLTEuMjlsMTMuNDctNi4zNFoiLz48L3N2Zz4=";
}

.cta {
  display: flex;
  justify-content: center;
  padding: 20px 20px 40px 20px;
  margin: 40px -20px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  flex-direction: column;
  align-items: center;
}

.block + .block {
  margin-top: 40px;
}

.block-type-heading + .block-type-button {
  margin-top: 10px;
}

hr,
p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  margin: 0;
  padding: 0;
}

.block-heading {
  justify-content: center;
}

.block-heading .date {
  text-align: center;
  font-size: 85%;
  font-style: italic;
}

.block {
  display: flex;
  width: 100%;
  flex-direction: column;
}

.block p + p {
  margin-top: 1rem;
}

hr {
  border: 0;
  border-bottom: 1px solid currentColor;
  width: 100%;
}

.languages {
  font-size: 1rem;
  max-width: 70ch;
  margin: 0 auto;
}

.languages ul {
  list-style: none;
  margin: none;
  padding: 0;
  display: flex;
  width: 100%;
  gap: 2ch;
  font-size: small;
  justify-content: center;
}

.languages ul li.active {
  font-weight: bold;
}

.languages ul:hover li {
  display: block;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.story {
  display: flex;
  gap: 1rem;
}

fieldset {
  border: 1px solid currentColor;
  margin: 1rem 0;
  padding: 0px;
  max-width: 100%;
}
fieldset .form-field.text {
  flex-direction: column;
}
fieldset .form-field.text {
  padding: 1rem;
  gap: 1rem;
}

fieldset .form-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
}

fieldset .form-field input#prename,
fieldset .form-field input#surname,
fieldset .form-field input#email {
  color: inherit;
  background-color: transparent;
  border: 0px;
  height: 100%;
  padding: 1rem;
  width: 100%;
  /* background: rgba(0,0,0,0.1); */
  font-size: 0.9rem;
  border-left: 1px solid currentColor;
}

fieldset .form-field.agree {
  flex-direction: row-reverse;
}

fieldset .form-field.agree input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  margin: 1.1rem 0rem 0rem 1rem;
}

input[type="checkbox"]:not(:checked) {
  opacity: 0.4;
}

fieldset .form-field input#agree:before {
  border-left: 1px solid currentColor;
}

fieldset .form-field.agree.anonym {
  border-top: 0px;
}

fieldset .form-field.agree label {
}

fieldset .form-field label {
  padding-inline: 1rem;
  display: inline-block;
  padding: 1rem;
}

fieldset .form-field.prename label,
fieldset .form-field.surname label,
fieldset .form-field.email label {
  width: fit-content;
  word-break: none;
  break-inside: avoid;
  white-space: nowrap;
}

fieldset .form-field.agree label {
  width: 100%;
  font-size: 14px;
}

fieldset .form-field + .form-field {
  border-top: 1px solid currentColor;
}

.form-field.submit {
  display: flex;
  justify-content: flex-end;
}
.form-field.agree p {
  display: inline;
  font-size: 14px;
}

.form-field.text.anonym {
  padding-bottom: 0px;
}
.form-field abbr {
  padding-left: 0.3rem;
}

.form-field h2 {
  text-align: left;
  font-weight: bold;
  font-size: 14px;
}

figure {
  margin: 0;
}

figure img {
  max-width: 100%;
  height: auto;
}

body.rtl header {
  text-align: center; /* Keep header centered */
}

body.rtl .languages ul {
  justify-content: center; /* Keep navigation centered */
}

/* Fix paragraph text alignment for RTL */
body.rtl p {
  text-align: right;
}

body.rtl main p {
  text-align: right;
}
