* {
  box-sizing: border-box;
}

html {
    font-size: 16px !important; /* 1rem = 16px */
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
  html {
    font-size: 15px !important; /* Reduce base size for smaller screens */
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px !important; /* Further reduce for tablets */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px !important; /* Adjust for smaller tablets or large phones */
  }
}

@media (max-width: 480px) {
  html {
    font-size: 12px !important; /* Base size for small phones */
  }
}


[data-theme="dark"] {
  color-scheme: dark only;
}
[data-theme="light"],
html {
  color-scheme: light only;
}
@media (prefers-color-scheme: dark) {
  color-scheme: dark only;
}

[aria-pressed="true"] path:nth-of-type(1) {
  display: none;
}
[aria-pressed="false"] path:nth-of-type(2) {
  display: none;
}

#new__header {
  position: relative;
}

#new__header svg {
  width: 60px;
  position: absolute;
  right: 100%;
  top: 0;
  height: auto;
  scale: 1 1;
  transform-origin: 100% 100%;
  rotate: 25deg;
  fill: canvasText;
  translate: -25% -25%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: canvas;
  color: canvasText;
  align-content: center;
}

body::before {
  --size: 30px;
  --line: color-mix(in lch, canvasText, transparent 85%);
  content: "";
  height: 100vh;
  width: 100vw;
  position: fixed;
  background: radial-gradient(
      4px 4px at 50% 50%,
      var(--line) 2px,
      transparent 2px var(--size)
    )
    50% 50% / var(--size) var(--size);
  mask: linear-gradient(-25deg, transparent 30%, white);
  top: 0;
  transform-style: flat;
  pointer-events: none;
  z-index: -1;
}

p {
  width: 800;
  max-width: calc(100% - 2rem);
}

h1, h2 {
  font-size: clamp(3rem, 7vw + 1rem, 5rem);
  font-family: 'Kalameh-Black' !important;
  text-wrap: balance;
}

:root {
  --size: 45px;
  --line: color-mix(in lch, white, transparent 85%);
  background: linear-gradient(
        90deg,
        var(--line) 1px,
        transparent 1px var(--size)
      )
      50% 50% / var(--size) var(--size),
    linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% /
      var(--size) var(--size),
    hsl(210 70% 34%);
}

::view-transition-new(body),
::view-transition-old(body) {
  animation: pan 1s ease-in-out;
  backface-visibility: hidden;
  box-shadow: 2.2px 61.3px 73.1px -2px hsl(0 0% 0% / 0.58);
}

::view-transition-new(body) {
  --sr: 180deg;
  background: canvas;
}

::view-transition-old(body) {
  --sr: 0deg;
  backface-visibility: hidden;
}

body {
  view-transition-name: body;
}

@keyframes pan {
  0% {
    transform: scale(1) rotateY(var(--sr));
  }
  25% {
    transform: scale(0.5) rotateY(var(--sr));
    box-shadow: 1.8px 50.7px 51.4px -3.2px hsl(0 0% 0% / 0.32);
  }
  75% {
    transform: scale(0.5) rotateY(calc(var(--sr) + 180deg));
    box-shadow: 1.8px 50.7px 51.4px -3.2px hsl(0 0% 0% / 0.32);
  }
  100% {
    transform: scale(1) rotateY(calc(var(--sr) + 180deg));
  }
}

:root {
  view-transition-name: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

[aria-pressed] {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 48px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  transition: background 0.2;
  cursor: pointer;
  background-color: color-mix(
    in lch,
    canvas,
    canvasText calc(var(--intent) * 15%)
  );
}

button svg {
  width: 50%;
}

button:is(:focus-visible, :hover) {
  --intent: 1;
}

main {
  width: 800px;
  max-width: calc(100% - 2rem);
}

.bear-link {
  color: canvasText;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0.8;
}

:where(.x-link, .bear-link):is(:hover, :focus-visible) {
  opacity: 1;
}
.bear-link svg {
  width: 75%;
}



.chapter__container {
    text-align: right;
    margin-bottom: 2rem;
}
    
    
		
.label {
    font-size: 1.7rem;
    font-family: 'Kalameh-Black' !important;
    font-weight: 900 !important;
    text-align: center !important;
    padding: 10px 0px;
    line-height: 2rem;
    color: canvasText !important;
}

.itemContainer {
    margin-top: 0.7rem !important;
}

.item {
    font-family: 'Shabnam' !important;
    font-weight: 400 !important;
    line-height: 1.5rem;
    text-align: right !important;
    color: canvasText !important;
}

.new__footer {
    width: 100% !important;
    display: flex !important;;
    align-items: center !important;;
    justify-content: center !important; /* Center items horizontally */
    gap: 1.2rem;
}

.new__footer i {
    font-size: 2rem;
    color: canvasText !important;
}

.new__footer h3 {
    font-size: 2rem;
    color: canvasText !important;
    font-family: 'Shabnam';
}

.new__footer h4 {
    font-size: 1.4rem;
    color: canvasText !important;
    font-family: 'Shabnam';
    text-align: justify;
    font-weight: 400;
}

.new__explanation {
    font-size: 1.5rem;
    color: canvasText !important;
    font-family: 'Shabnam';
    text-align: justify;
    font-weight: 300;
}

ul {
    list-style: none !important; /* Remove default bullets */
    line-height: 3.5rem !important;
    font-size: 1.3rem !important;
    /*padding-right: 1.3rem !important;*/
}

li {
    position: relative;
    line-height: 2.5rem !important;
    padding-right: 3.5rem !important; /* Add space for the custom icon */
}


.contact-form {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /*max-width: 400px;*/
    width: 100%;
    margin: 40px auto;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
    font-size: 1.2rem;
    font-family: 'Shabnam';
}

.form-group label {
    font-size: 1.2rem;
    font-family: 'Shabnam';
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: none !important; /* Change to your preferred focus color */
}

textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 250px;
    font-size: 1.2rem;
    font-family: 'Shabnam';
}

.form-button {
    width: 100%;
    padding: 10px;
    background-color: transparent; /* Change to your preferred button color */
    color: canvasText !important;
    border-color: canvasText !important;
    border-width: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.4rem;
    font-family: 'Kalameh-Black';
}

.form-button:hover {
    opacity: 0.6;
}

i:hover {
    opacity: 0.7;
}
