/* =====================
   HEADER
===================== */
.tool-header {
  width: 100%;
  margin-bottom: 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Title */
.tool-title {
  margin: 0;
  font-size: 2rem;        /* גדל קצת */
  font-weight: 800;       /* יותר בולט */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #111827;         /* כהה יותר */
  text-shadow: 0 1px 3px rgba(0,0,0,0.08); /* עומק עדין */
  font-family: "Assistant", "Inter", system-ui, sans-serif;
}

/* =========================
   DARK MODE – TOOL TITLE
========================= */
body.dark .tool-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;

  color: #f9fafb; /* לבן רך לקריאות גבוהה */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); /* עומק חזק יותר בכהה */
font-family: "Assistant", "Inter", system-ui, sans-serif;
  /* בונוס: נגיעה מודרנית */
  letter-spacing: 0.3px;
}


/* =====================
   THEME TOGGLE
===================== */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #374151;        /* צבע מודרני */
}

.switch {
  position: relative;
  width: 54px;  /* מעט יותר רחב */
  height: 14px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #e0e7ff;   /* צבע קליל ורך */
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.slider:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: -5px;
  bottom: -5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #6366f1, #22c55e);
}

.switch input:checked + .slider:before {
  transform: translateX(40px);
}

/* =========================
   Wrapper – מצב רגיל
========================= */
.wrapper {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;

  width: 100%;
  max-width: 1000px;
  margin: 10px auto;
  
  

  
}

/* Dark Mode – Wrapper */
.dark .wrapper {
  background: transparent;
  
}

/* =========================
   Fullscreen button
========================= */
/* =====================
   FULLSCREEN BUTTON - LIGHT
===================== */

.fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12%;
  transform: translateX(-50%);
  
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  z-index: 10;
}

.fullscreen-btn:hover {
  transform: translateX(-50%) scale(1.05);
  background: #f3f4f6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}


.fullscreen-btn:active {
  transform: scale(0.96);
}
/* =====================
   FULLSCREEN BUTTON - DARK
===================== */

body.dark .fullscreen-btn {
  background: #020617;
  border: 1px solid #1e293b;
  color: #f9fafb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark .fullscreen-btn:hover {
  background: #020617;
  border-color: #334155;
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}
















/* =========================
   Guy Container
========================= */
.guy {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
  
  border-radius: 16px;
  color: #111;
  padding: 20px;
  background: #fff;
  transition: background 0.3s, border 0.3s;

  position: relative; /* חשוב */
}


.dark .guy {
  background: transparent;
  padding: 20px;
  color: #ddd;
  background: #111;
}







.guy1 {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  justify-content: center;
  
  border-radius: 16px;
  color: #111;
  padding: 20px;
  background: #fff;
  transition: background 0.3s, border 0.3s;
  position: relative; /* חשוב */
}

.dark .guy1 {
  background: transparent;
  padding: 20px;
  color: #ddd;
  background: #111;
}






.guy2 {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  justify-content: center;
  
  border-radius: 16px;
  color: #111;
  padding: 20px;
  background: #fff;
  transition: background 0.3s, border 0.3s;
  position: relative; /* חשוב */
}

.dark .guy2 {
  background: transparent;
  padding: 20px;
  color: #ddd;
  background: #111;
}




.guy3 {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  justify-content: center;
  
  border-radius: 16px;
  color: #111;
  padding: 20px;
  background: #fff;
  transition: background 0.3s, border 0.3s;
  position: relative; /* חשוב */
}

.dark .guy3 {
  background: transparent;
  padding: 20px;
  color: #ddd;
  background: #111;
}








.guy4 {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
  
  border-radius: 16px;
  color: #111;
  padding: 20px;
  background: #fff;
  transition: background 0.3s, border 0.3s;
  position: relative; /* חשוב */
}

.dark .guy4 {
  background: transparent;
  padding: 20px;
  color: #ddd;
  background: #111;
}








/* Light version */
.guy5 {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 6px auto;
  padding: 24px;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  border-radius:16px;
  border: 3px solid #e5e7eb;  /* גבול עדין */
  background: #fff;
}


/* =========================
   Dark Mode – Wrap Container
========================= */
.dark .guy5 {
  width: 100%;
  
  background: #0f1115;   /* כהה עמוק, לא אפור */
  border: 3px solid rgba(255,255,255,0.06);
  border-radius: 0px;
  padding: 24px;
  color: #e5e7eb;            /* טקסט בהיר */
  
}













/* =========================
   Scrollbar – Fullscreen
========================= */
.wrapper:fullscreen::-webkit-scrollbar {
  width: 10px;
}

.wrapper:fullscreen::-webkit-scrollbar-track {
  background: transparent;
}

.wrapper:fullscreen::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
}

.dark .wrapper:fullscreen::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
}




/* הסתרת סקרולר לכל האלמנטים */
* {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

/* אם רוצים שה-wrapper יהיה גלילתי אבל בלי סקרולר */
#container {
    overflow: auto; /* או overflow-y: auto */
}














.wrapper:fullscreen,
.wrapper:-webkit-full-screen {
  display: flex;
  flex-direction: column;

  width: 100vw;
  height: 100vh;

  margin: 0;
  

  overflow-y: auto;      /* ← זה המפתח */
  overflow-x: hidden;

  align-items: center;   /* מרכז אופקית בלבד */
  justify-content: flex-start; /* לא מרכז אנכית */

  border-radius: 0;
  background: inherit;

  animation: fullscreenEnter 0.35s ease forwards;
}




.wrapper:fullscreen::-webkit-scrollbar {
  width: 8px;
}

.wrapper:fullscreen::-webkit-scrollbar-track {
  background: transparent;
}

.wrapper:fullscreen::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
}

.dark .wrapper:fullscreen::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
}




.wrapper:fullscreen .fullscreen-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  opacity: 1;
  transform: scale(1);
}
