:root {
  direction: rtl;
}

body {
    font-family: Alef, sans-serif;
    font-size: 1.2rem;
    margin: 0;
    overflow-x:hidden;
    background-color: #f1ece0;
}

a:link, 
a:visited {
  color: blue; /* Set this to whatever color you want your links to always be */
  text-decoration: none;
}

li::marker {
    font-weight: bold;
}

small {
  font-size: 0.85em;
  color: #888;
  font-weight: normal;
  margin: 0 0.25rem;
}

.text-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;          
  overflow: hidden;     
  
  color: #b8a995;       
  background-color: #f1ece0;
  
  filter: blur(0.0625rem);

  font-size: clamp(1.7rem, 4vw, 2rem);

  line-height: 1.8;      
  text-align: justify;   
  
  opacity: 0.8;          
  pointer-events: none;  
  user-select: none;     
  padding: 0.01rem;
  box-sizing: border-box;
}
/* Matching your Alef font and dark wood/earthy tone */
.logo-wrapper {
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.site-logo {
  font-family: 'Alef', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #2c1e11; 
  
  /* Layout */
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 0.25rem solid #2c1e11;
  direction: rtl;
  white-space: nowrap;
  
  /* Animation Settings */
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background-color: transparent;
}

/* Hover effect using your yellow/gold accent color (#f1c40f) */
.site-logo:hover {
  color: #2c1e11;
  background-color: rgba(241, 196, 15, 0.05); /* Very light tint of your accent */
  border-color: #f1c40f; /* Changes border to your gold/yellow */
  transform: translateY(-0.1875rem);
  box-shadow: 0rem 0.375rem 0rem #f1c40f; /* Flat shadow in your accent color */
}

.topbuttons {
  display: flex;
  align-items:center;
}

.top-btn {
  /* Typography - using your defined Alef font */
  font-family: 'Alef', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #2c1e11 !important; /* Matches your text color */

  
  /* Layout */
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 0.25rem solid #2c1e11;
  direction: rtl;
  white-space: nowrap;
  
  /* Animation Settings */
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  background-color: transparent;

  margin-right: 1rem;
  text-decoration: none;
}

/* Hover effect using your yellow/gold accent color (#f1c40f) */
.top-btn:hover {
  color: #2c1e11;
  background-color: rgba(241, 196, 15, 0.05); /* Very light tint of your accent */
  border-color: #f1c40f; /* Changes border to your gold/yellow */
  transform: translateY(-0.1875rem);
  box-shadow: 0rem 0.375rem 0rem #f1c40f; /* Flat shadow in your accent color */
}

.body-page {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
}


.paper {
    background-color: white;
    width: 80%; 
    max-width: 90.0rem; 
    min-height: 100vh; 
    box-shadow: 0 0 0.9375rem rgba(0,0,0,0.1); 
    padding: 2rem;
    box-sizing: border-box; 
}



.document-info { 
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    text-align: right; 
    font-size: 0.9em;
    color: #555;
    margin-bottom: 1.875rem; 
    border-bottom: 0.0625rem solid #eee; 
    padding-bottom: 0.625rem;
} 
  

.simple-quote {
    color: #555;          
    font-style: italic;   
    font-size: 1.1em;     
    padding: 0 0.9375rem;      
    display: block;       
    margin: 0.9375rem 0;       
}


.criticize {
    display: inline;
    position: relative;
    background-color: #fef9e7; 
    color: #5d4037;

    padding: 0.125rem 0.25rem;
    margin: 0 0.125rem;
    border-radius: 0.125rem;

    /* font-size: 1rem; */

    border-right: 0.125rem  solid #f1c40f; 
    border-left: 0.125rem solid #f1c40f;
    box-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0,0,0,0.05);
    font-family: sans-serif; 
}
.criticize::before {
    content: "◈";
    font-size: 0.7em;
    margin-left: 0.25rem;
    color: #f1c40f;
    vertical-align: middle;
}

.refer {
  color: black;
  font-size: 6mm;
  font-weight: bold;
}

.refer-quote {
  /* Your original choices, but optimized for readability */
  color: #555555;            /* A deeper, richer gray that is easier to read */
  font-style: italic;
  background-color: #f5f5f5; /* A cleaner, smoother version of whitesmoke */

  /* The fixes that make it pretty */
  direction: rtl;            /* Crucial for Hebrew text alignment */
  padding: 0.2rem 0.3rem;        /* Moves the text away from the box edges */
  margin: 0.3rem 0;            /* Separates the quote from the paragraphs above/below it */
  border-radius: 0.5rem;        /* Rounds the sharp corners just a tiny bit */
  line-height: 1.2;          /* Adds a clean amount of space between text lines */
}


.bubble {
  background-color: rgba(245, 245, 245, 0.3);
  border: 0.125rem solid black;
  border-radius: 1.25rem;

  box-sizing: border-box;
  padding: 0.9375rem clamp(1rem, 5vw, 2.5rem) 1.25rem;

  display: block;
  width: fit-content;
  max-width: 100%; 

  margin: 1.5rem auto;
  backdrop-filter: blur(0.3rem);               /* Blurs the background behind the bubble */
  -webkit-backdrop-filter: blur(0.625rem);

  word-wrap: break-word;
  overflow-wrap: break-word;
}

.link-list {
  display: flex;
  flex-direction: column; /* This turns the row into a vertical list */
  gap: 1rem;              /* Creates even spacing between list items */
  width: 100%;           /* Or whatever width fits your sidebar/content */
  direction: rtl;
  padding: 0;
}

.list-item {
  display: flex;
  flex-direction: column; /* Title on top, Info on bottom */
  gap: 0.375rem;
  text-decoration: none;
  color: #2c1e11;
  font-family: 'Alef', sans-serif;
  padding: 0.75rem 0.9375rem;
  background-color: whitesmoke;
  border-right: 0.25rem solid #2c1e11; /* A vertical "accent" line */
  transition: all 0.2s ease;
  box-shadow: 0.125rem 0.125rem 0.3125rem rgba(0,0,0,0.05);
}

/* Hover effect using your gold accent */
.list-item:hover {
  border-right-color: #f1c40f; 
  background-color: white;
  transform: translateX(-0.3125rem); /* Slides slightly to the left on hover */
}

.list-item:hover .item-info {
    color: #2c1e11; /* Matches your main text color on hover */
}

.item-title {
    color: #2c1e11;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Description/Info Styling */
.item-info {
    color: #5c4d3c;
    font-size: 1rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

/* Logo/Header styling for context */
.header-logo {
    text-align: center;
    margin-bottom: 1.875rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: #2c1e11;
}

#amos {
  width: 35rem;
}

.memes {
  width: 15vw;
  height: auto;
}

.maintoc {
  text-align: center;
}


@media print {
    @page {
        size: A4;
        margin: 0; 
    }
    body {
        background: none;
        padding: 0;
        margin: 0;
    }
    .page {
        width: 210mm;      
        min-height: 297mm;
        padding: 20mm;     
        margin: 0;
        box-shadow: none;
        page-break-after: always; 
    }
}

/* Responsive adjustment */
@media (max-width: 600px) {

  body {
      font-family: Alef, sans-serif;
      font-size: 1rem;
      margin: 0;
  }

  .text-background {
    font-size: 1.2rem;
  }
  .site-logo {
    font-size: 1.8rem;
    border-width: 0.1875rem;
  }
  .paper {
      /* padding: 0 !important; */
      width: 95% !important;
      max-width: 100vw; 
      padding: 0.5rem;
  }
  .bubble {
        padding: 0.9375rem 1rem 1.25rem; /* Shorter padding for mobile */
        border-radius: 1rem;            /* Slightly less round looks better on small screens */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        background-color: rgba(249, 245, 236, 0.7);
    }

  #amos {
    width: 100%;
    height: auto;
  }
  
  .topbuttons {
    flex-wrap: wrap; 
    justify-content: center;
    gap: 0.5rem;
  }

  .top-btn {
    font-size: 1.2rem; 
    padding: 0.4rem 1rem;
  }
}

