@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100..900&display=swap');

/* html { scroll-snap-type:y proximity; scroll-padding-top: 60px;  scroll-behavior: smooth;  }
body > *:first-child { scroll-snap-align: center; height:0; }
.first-row { scroll-snap-align: start; } */

  * {
            box-sizing: border-box;

  }
.banner {
    position: relative;
    width: 100%;
    height: 100vh; /* Set a height for the banner */
    overflow: hidden; /* Hide anything that overflows from the banner */
    position: sticky;
    top: 0;
    margin-bottom: -25vh;

}

.bannerimg {
    /* mask-image: linear-gradient(to top, black var(--feather, 0%), rgba(0, 0, 0, 0));
    filter: sepia(1) brightness(39) saturate(4) blur(40px) contrast(0.7); */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keep the aspect ratio of the image */
    object-position: top center;
    z-index: 1; /* Set the background image layer */
    user-select: none;
    -webkit-user-drag: none;
    background:var(--body-color);    
}

.banner-content {
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
    position: absolute;
    bottom: 0;
    height: 65vh;
    justify-content: space-around;
    flex-direction: column;
    width: 100%;
    top: 68px;
    --simplefontname: var(--body-bgcolor);


}

.fontname {
    font-size: 250px;
    z-index: 2; /* Bring text in front of the image */
    outline:none;
    width: 100%;
    overflow: hidden;
    direction: rtl;
    text-shadow: 3px 3px 16px rgba(0,0,0,50%);
    line-height: 140%;
    margin-bottom:-75px;
    padding-top: 20px;
    display: block;
    margin-block-start: 0em;
    font-weight: inherit;
    unicode-bidi: isolate;
    white-space: pre;
}

.fontname::selection {
    background-color: #0f172aa3;
    color:var(--body-color);
    border-radius: 9999px;
}
#font-buttons:has(button:only-of-type) {
    background: transparent;
    outline: none;
    backdrop-filter: none;
}

#font-buttons {
    font-size: 223px;
    z-index: 2;
    outline: none;
    width: 100%;
    overflow: hidden;
    direction: rtl;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    max-height: 170px;
    background:#ffffff81;
    backdrop-filter: blur(5px);
    width:auto;
    border-radius: 18px;
    padding-inline:10px;
    outline: 1px solid #00000038;
}

button.font-btn.active {
    opacity: 1;
    text-transform: capitalize;
    color:#000;
    transition: 0.4s;
    text-shadow: 0 0 20px #ffffff;
    transition-delay: 0.2s;
}
.segment-highlight {
    position: absolute;
    background-color: #00f; /* or any highlight color */
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
  }
  #font-buttons {
    position: relative; /* required so .segment-highlight positions correctly */
  }

.segment-highlight {
    position: absolute;
    top: 0px;
    left: 0;
    width: 0;
    height: calc(100% - 12px);
    background:#ffffffbd;
    border-radius: 10px;
    z-index: -5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition:  all 0.3s cubic-bezier(0.63, 0.06, 0.52, 1.17); /* smooth = all 0.4s cubic-bezier(0.42, 0, 0, 1) */
    z-index: 1;
}

button.font-btn {
    appearance: none;
    border: none;
    background: none;
    padding: 8px 20px;
    margin: 10px 0px;
    cursor: pointer;
    font-size: 20px;
    color:inherit;
    opacity: 0.7;
    font-weight: 200;
    letter-spacing: -0.5px;
    transition: 0.2s;
    text-transform: capitalize;
    text-shadow: 0 0 50px #000000;
    filter: drop-shadow(2px 4px 6px #0000005d);
    border-radius: 10px;
    z-index: 5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
}

button.font-btn:hover {
    /* scale:1.1; */
    text-shadow: 0 0 1px 5px #00000015;
    opacity: 0.9;

}




/* Variable fonts */

.variable-row {
    display: flex;
    justify-content: center;
    margin-bottom:0;
    background: #007a7a9c;/* #19475c94 */
    bottom: 0;
    max-width: 1400px;
    border-radius: 20px;
    z-index: 3;
    backdrop-filter: blur(1px);
    gap: 0px; /* Space between slider wrappers */
    transition: 0.2s;
    margin-bottom: 36px;
    box-shadow: 0 0 20px 0 #00000030;
}

.variable-row.hidden {
  opacity: 0;
  max-height: 0;
}

 .slider-wrapper {
    display: flex;
    border-inline: 2px solid #0000002d;
    border-block: 2px solid transparent;
    border-collapse: separate;
    padding: 5px;
    padding-inline: 25px;
    align-items: center;
    gap: 16px; /* Space between slider wrappers */
    padding-block: 15px;

  } 

  .slider-wrapper:first-child {
    border-inline-start: none;
  }

  .slider-wrapper:last-child {
    border-inline-end: none;
  }


.slider-label {
    font-weight: bold; /* Bold label */
}

.axis-slider {
    width: 100%; /* Full width for the slider */
}



/* Styling for the rule between slider wrappers */
.slider-rule {
    height: 1px; /* Height of the rule */
    background-color: #ccc; /* Light gray color for the rule */
    margin: 8px 0; /* Margin above and below the rule */
    width: 100%; /* Full width of the container */
}

.variable-row input[type="range"]{
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: auto;
    accent-color: var(--body-bgcolor);
    width: 171px;
    cursor: grab;
}
.variable-row input[type="range"]:active {
    cursor: grabbing;
}

 .slider-container input[type="range" i] {
    appearance: auto;
    cursor: e-resize;
    color: light-dark(rgb(16, 16, 16), rgb(255, 255, 255));
    padding: initial;
    border: none;
    margin: 2px;
    accent-color: rgb(0, 124, 155);

}

input {
    accent-color: rgb(0, 124, 155);

}

.download-link {
    /* position: absolute;
    bottom: 30px; 
    right: 30px; */
    background-color: var(--main-light); /* Button background color */
    filter:brightness(1.2);
    color: white; /* Button text color */
    padding: 10px 15px; /* Button padding */
    text-decoration: none; /* Remove underline */
    border-radius: 15px; /* Round button corners */
    z-index: 2; /* Bring link in front */
    transition: 0.2s;
    border:none;
    appearance: button;
    font-family: 'Fredoka', 'M PLUS Rounded 1c Static', 'Noto Sans Hebrew', 'Rubik', 'Suez One', 'Assistant';
}

.download-link:hover {
    background-color: var(--main-midmid    ); /* Darker shade on hover */
}

.download-link:disabled {
    opacity: 0.4;
    background:gray;
    cursor:not-allowed;
}

.content {
    padding: 20px;
    max-width: 1340px;
    background: rgba(0, 128, 0, 0);
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: nowrap;
    align-content: flex-start;
    z-index: 28;
    background: var(--body-bgcolor);
    position: relative;
    border-radius: 25px;
    border: none;
    backdrop-filter: blur(10px) saturate(180%);
}



.font-junk {
    width: 100%;
    padding-inline-end:30px;
    padding-block-end: 10px;
    flex-grow: 3;
}

.info-junk {
    width: 100%;
    padding:30px;
    padding-top: 10px;
    border-inline-start: 1px solid #ffffff2b;
    padding-inline-end: 10px;
    flex-shrink: 3;
}

.first-row {
    display: flex;
    justify-content: space-evenly;
    column-rule: #007bff;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 200;
    gap: 15px;
    /* border-bottom: 1px solid #dddddd59; */
}

.first-row p {
    font-size: 16px;
    margin-block: 10px;
}

.feature-row ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.feature-row li {
    display: none; /* Hidden by default */
    transition: 0.2s;
    cursor: pointer;
}

.feature-row li:hover {
    opacity: 0.8;
}

.feature-row li.active {
    border: 0px solid #ddd; /* Example highlight */
    filter:drop-shadow(0px 0px 10px #ffeb7a) invert(0.1)
}

.feature-row li.active-reverse {
    filter: opacity(0.6)
}


.feature-row img {
    width: 40px;
    height: 40px;
}

.feature-row li .cur-na {
    cursor: col-resize;
}

#nikkud, #taam, #punct {
    cursor:auto;
}






/* Discription */

.descontainer {
    width: 100%;
    height: 170px;
    overflow: hidden;
    position: relative;
    transition: height 0.6s ease;
    font-size:20px;
    border-radius: 15px;
    padding:10px;
    line-height: 1.2em;
    box-sizing: border-box;
    text-wrap: pretty;
    background: rgb(127 127 127 / 20%);
    transition: 0.3s;
    margin-top:10px;
    /* border: 1px solid rgb(86 86 86 / 12%); */
}

.descontainer.closed {
  max-height:170px;
}

.descontent {
    padding: 10px;
    padding-bottom: 40px;
    margin-top: -20px;
}

.descontent h2 {
    margin-bottom: 0.5em;
}
.descontent hr {
    margin: 10px 100px;
    border: 1px solid var(--body-color);
    border-radius: 1px;
}
.descontent hr[full] { margin: 10px 0; }
.descontent p {
    margin-bottom: 10px;
}


.descontent li {
    margin-bottom: 10px;
}


.descontent ::marker {
  
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
    transition: 0.2s;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #21303f 90%);
    pointer-events: none; /* Makes sure the overlay does not block interaction */
}

.read-more {
    position: absolute;
    right: 50%;
    background-color: var(--main-light);
    border: none;
    padding: 7px 15px;
    cursor: pointer;
    color: white;
    font-size: large;
    text-transform: uppercase;
    transform: translate(50%, 0%);
    bottom: -8px;
    font-weight: 400;
    transition: 0.2s;
    border-radius: 12px 12px 0 0;
    padding-inline-start: 20px;
    margin-bottom: 8px;
}

.read-more.round-font.open {
    margin-bottom: 20px;
    border-radius: 13px;
}

.read-more svg {
    height: 25px;
    fill: white;
    padding-inline: 0px;
    transition: 0.8s cubic-bezier(0.09, -0.16, 0.53, 1.16);
    margin-bottom: -6px;
}

.read-more.open svg {
    rotate: 360deg;
    margin-bottom: -7px;
    transform: rotateX(180deg);
}

.read-more:hover {
    opacity: 0.8;
}


#font-description {
    font-family: 'Yrsa', 'Newsreader', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 200;
    text-transform: math-auto;
}

html[lang="he"] #font-description {
    font-family: 'ot hadassah', 'Noto Sans Hebrew', sans-serif;
    font-weight: 400;
    text-transform: none;
}

#font-description b {
    font-weight: 600;
}

#font-description a {
color: #02afff;/*  */
text-decoration: dotted;
}

#font-description a:hover {
    opacity: 0.8;
}



#font-description img {
    max-width:60%;
    border-radius: 15px;
    margin-block:30px;
}




.font-test-container {
    background: var(--body-color);
    position: relative;
    border-radius: 15px;
    margin-top:40px;
    outline:none;
    overflow: hidden;
}

.font-test-container .font-test-edit-panel {
    height:50px;
    color:rgb(0, 0, 0);
    background:var(--main-light);
    border-radius: 10px;
    box-shadow: 0 0 20px 0px #00000081;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    font-family: 'Fredoka', 'M PLUS Rounded 1c Static', 'Noto Sans Hebrew', 'Rubik', 'Suez One', 'Assistant';
    margin: 10px;
    margin-bottom: 0px;
    padding-inline: 20px;
}

.font-test-container .font-test-edit-panel .dropdown {
    max-height: 100%;
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    color:white;
}

#onlyvariation-dropdown {
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
}

#onlyvariation-dropdown.visible {
  opacity: 1;
  display: block;
  pointer-events: auto;
}

#onlyvariation-dropdown.disabled {
  opacity: 0.4 !important;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(100%);
}

#onlyvariation-dropdown.disabled::after {
  content: "Not available for this font";
  font-size: 10px;
  color: #888;
  display: block;
  margin-top: 4px;
}


  .dropdown-button {
    background-color: #f0f0f000;
    color:#fff;
    padding: 0 10px;
    cursor: pointer;
    max-height:100%;
    box-sizing: border-box;
  }

.dropdown-button img {
    vertical-align: middle;
}

  .color-input {
    background: linear-gradient(80deg, #ff0000 29%, #ebff00, #20d300, #ff007b, #ff0000);
    background-clip: text;
    color: transparent;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    border-radius: 10px;
  }

  .dropdown-content.show {
    display: block;
  }

  .slider-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color:black;
    gap: 10px;
  }

  

  .slider {
    flex: 1;
    margin: 0 10px;
  }



  /* :not(:-internal-list-box) */
  select:not([multiple]) {
    background-color: transparent;
    font-family: inherit;
    border: none;
    padding-block:  0.40em;
    padding-inline: 0.9em;
    gap: -internal-auto-base(initial, 0.5em);
    border-radius: 10.5px;
    outline:none;
    font-size: inherit;
    cursor: pointer;
    color:white;

}
 
option {
    color:black
}

select:not([multiple]):hover{
    background:rgba(236, 236, 236, 0.144);
}

select:not(:-internal-list-box) {
    overflow: visible !important;
    color:black;
}

select:-internal-list-box {
    color:black;

}

select {
    text-transform: none;
    text-shadow: none;
    display: inline-block;
    text-align: start;
    appearance: auto;
    box-sizing: border-box;
    align-items: center;
    -webkit-rtl-ordering: logical;
    background-color: field;
    cursor: default;
    margin: 0em;
    white-space: pre;
    border-width: 0px;
}

.font-tester p {
    margin-top:0;
    text-wrap-style: pretty;
    text-wrap: balance;
    outline:none;

}


.font-tester {
    font-size: 45px;
    background:transparent;
    color:var(--main-middark);
    padding:20px;
    padding-top:0;
    direction: rtl;
    outline:none;
    height: 600px;
    resize: vertical;
    min-height: 100px;
    overflow-x: hidden;
    overflow-y: hidden;
    text-shadow: 0 0 0.5px #00000059;
    overflow-y: scroll;
    padding-inline-end: 0;
}

.font-tester::-webkit-scrollbar{
    width:16px;
}




.accordion-panel {
    max-height: 0;
    transition: max-height 0.3s ease;
}

.accordion-header {
    cursor: pointer;
    padding: 15px 1em;
    font-size: 1.3em;
    border: none;
    background: #ffffff2c;
    color:#fff;
    width: 100%;
    text-align: center;
    transition: 0.3s ease;
    font-family:  'Rubik', 'Suez One', 'Assistant';
    /* 'Fredoka', 'M PLUS Rounded 1c Static', 'Noto Sans Hebrew', */
    border-radius: 10px;
    direction: ltr;

}

.accordion-header:hover {
    background: #ffffff5e;

}

.accordion-header.active {
    background: var(--main-light);
    color:var(--body-color);
    border-radius: 7px;
        margin: 14px;
    box-sizing: border-box;
    width: calc(100% - 28px);
}

.accordion-header.active:hover {
    background: var(--main-light);
    opacity: 0.8;

}

.accordion-item {
    border-bottom: 0px solid #ddd;
    margin-block:23px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff11;
    transition: 0.3s ease;
    padding:0px;
}

.accordion-item.active {
    /* padding:15px; */
    border-radius: 14px;

}


#glyphs-container {
    margin-block:20px;
}

.glyphs-section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background-color: #ffffff44;
}

.glyphs-heading {
    font-size: 1.3em;
    margin: 0 0 10px;
    cursor: pointer;
    user-select: none;
    color: #ffffff11;
}

.glyph-preview-table {
    background: transparent;
}

.glyphs-grid {
    display: grid;
    grid-template-columns: repeat(5, 20%);/* repeat(auto-fit, minmax(140px, 0.1fr)) */
    gap: 4;
    transition: all 0.3s ease;
    /* justify-content: center; */
    align-content: space-between;
    align-items: center;
    justify-items: stretch;
    direction: rtl;
    padding:10px;
    user-select: none;
    cursor: zoom-in;
}

.glyph-cell {
    font-size: 5em;
    text-align: center;
    border: 0px solid #ccc;
    padding: 8px;
    border-radius: 10px;
    background-color: #00000030;
    color: white;
    transition: 0.2s all, 0.1s border-radius;
    margin: 4px;
    line-height: 1.7;
}

.glyph-cell:hover {
    scale: 1.7;
    transition-delay: 0s;
    z-index: 888888;
    box-shadow: 0 0 9px 0px rgba(0, 0, 0, 0.295);
    backdrop-filter: blur(10px);
    background-size: 0%;
    background: #102b3fdc;
    border-radius: 18px;
    color: var(--body-color);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition-delay: z-index 0.2s;
}




.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 20px; 
    gap: 20px;
    padding: 0px; 
    box-sizing: border-box; 
}
  
.mosaic-gallery img {
    transition: 0.4s;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* You can change to contain if you prefer */
    flex-shrink: 0; /* prevents the image from shrinking */
}
  
.mosaic-gallery figure {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
  
.mosaic-gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, #00000040, transparent); /* dark translucent background */
    color: #fff;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(80%);
    transition: all 0.3s ease;
    font-size: 1.6rem;
    pointer-events: none; /* allows clicking through the caption */
    text-shadow: 0px 0px 13px #000;
    filter: drop-shadow(0px 0px 10px black);
    padding-top: 140px;
}
  
.mosaic-gallery figure:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}
      
.mosaic-gallery img:hover {
    z-index: +1;
    scale:1.2;
    box-shadow: 0 0 10px 0 #00000015;
    filter: brightness(0.6) blur(3px);
}

.mosaic-gallery img:hover +  .mosaic-gallery figcaption {
    box-shadow: inset 1px 1px 1px #000;
}
  
#gallery-container {
    padding: 0px;
}
  
  
  
.popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .popup img {
    max-width: 100%; /* Allows the image to potentially take up the full width of the popup */
    max-height: 85%; /* Allows the image to potentially take up the full height of the popup */
    margin-bottom: 1rem;

    object-fit: contain; /* Scales the image down to fit within the max-width and max-height while preserving its aspect ratio. Empty space might appear around the image. */
    width: auto;       /* Allows the width to adjust based on the height and aspect ratio */
    height: auto;      /* Allows the height to adjust based on the width and aspect ratio */
}
  
  #popup-caption {
    color: white;
    text-align: center;
    max-width: 80%;
    font-size: 1rem;
  }
  
  .close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }
  
    



.font-list {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap into rows */
    gap: 25px; /* Space between cards */
    padding: 0px; /* Padding for the container */
    max-width:320px;
    width:320px;

    margin: auto;
}

.font-item {
    flex: 1 1 100%; /* 3 cards per row on wide screens */
    position: relative; /* Necessary for absolute positioning of content */
    transition:0.2s scale cubic-bezier(0.28, 0.03, 0, 0.55);
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    border: 0px solid #ffffff21;
    height: 250px;
}

.font-item:hover {
    z-index: 3;
}



.font-tile {
    background-position: top center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    height: 100%;
    width: 100%;
    min-width: 300px;
    background-size: 100%;
    transition: transform 0.3s, box-shadow 0.3s, background-size 0.8s, color 0.3s;
    text-align: center;
}

.font-tile a {
    text-decoration: none;
    padding: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}



.font-item:last-child > .font-tile {
    background-position: center center;
}

.font-select {
    text-decoration: none;
    color:inherit;
}

.font-info {
    font-family: 'Fredoka', 'M PLUS Rounded 1c Static', 'Noto Sans Hebrew', 'Rubik', 'Suez One', 'Assistant';
    font-variation-settings: "wght" 400;
    padding-block: 20px;
    background: #12141e36;
    font-size: 1.1em;
    transition: 0.2s cubic-bezier(0.8, 0.48, 0.04, 0.68);
    color: white;
    position: relative;
    padding-top: 5px;
    margin-top: -55px;
    backdrop-filter: blur(28px) saturate(180%) brightness(0.9);
    
}

.font-item:hover .font-info {
    opacity: 1;
        margin-top: -90px;
}



.font-item .font-name {
    margin-top: -60px;
    font-size: 80px; /* Font size for name */
    margin-bottom: -15px; /* Space below the font name */
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2); /* Text shadow for readability */
    color:rgb(183, 229, 245);
    text-decoration: none;
    line-height: 1.5em;
    min-inline-size: max-content;
    transition: 0.3s;
    /* animation-name: example;
    animation-duration: 4s;
    animation-iteration-count: infinite; */
}

.font-item:hover .font-name {
      margin-top: -90px;
          transition: 0.2s;


}
/*   
  @keyframes example {
    1% {    font-variation-settings: "wght" 400, "wdth" 100;}
    25% {    font-variation-settings: "wght" 700, "wdth" 90;}
    50% {    font-variation-settings: "wght" 200, "wdth" 80;}
    80% {    font-variation-settings: "wght" 400, "wdth" 100;}


  } */

.font-enname, .font-info h3 {
    margin: 5px 0 8px 0; /* Margins around the text */
    
}

.font-enname {    direction: ltr;}








.font-name {
    transition: font-variation-settings 0.3s ease-in-out;
}

.font-tile.show-variation-controls {
    transition: font-variation-settings 0.3s ease-in-out;
}



.font-item:hover > .font-info {
    background: #a8a8a814;
    
}





/* Animate the border to simulate a paint flash */
@keyframes borderFlash {
  0%, 70% {
    outline: 3px solid rgba(91, 202, 0, 0.9);
    background: rgba(90, 200, 0, 0.240);
    outline-offset: -3px;
    
  }
  100% {
    outline: 3px solid transparent;
    background: transparent;
    outline-offset: 0px;
  }
}

.font-tester .highlight-border {
  animation: borderFlash 1s ease-out;
}

/* Character flash animation */
@keyframes charFlash {
  0%   { background-color: rgba(90, 200, 0, 0.240); }
  100% { background-color: transparent; }
}

.char-highlight {
  animation: charFlash 0.6s ease-out;
  display: inline;
}



.card-container {
            display: grid;
  grid-template-columns: 1fr 1fr 1fr;
            gap: 10px;
            padding: 20px;
            border-radius: 12px;
            user-select: none;
            
          }
          
          /* ====== Individual feature card ====== */
          .feature-card {
            display: flex;
            flex-direction: row;
            align-items: center;
            background-color: #00000059;
            border: 1px solid #f3f3f300;
            border-radius: 12px;
            width: 100%;
            box-shadow: 0 2px 4px rgba(0,0,0,0.4);
            color: #e0e0e0;
            transition: 0.3s;
          }
          
          .feature-card:hover {
            background-color: #23282fcc;

          }
          
          /* ====== Left side: icon + toggle vertically ====== */
          .icon-toggle {
            display: flex;
            flex-direction: column;
            align-items: center;
          }
          
          .feature-icon img {
            width: 48px;
            height: 48px;
            margin-bottom: 8px;
          }

          label.feature-toggle-label {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            width: 100%;
            gap:10px;
        }
        html[lang="he"] .feature-toggle {
            transform: rotateY(180deg);
        }
          
          /* ====== Toggle switch styling ====== */
          .switch {
            position: relative;
            display: inline-block;
            width: 45px;
            height: 24px;
          }
          
          .switch input {
            opacity: 0;
            width: 0;
            height: 0;
          }
          
          /* Toggle track */
          .switch-slider {
            position: absolute;
            cursor: pointer;
            background-color: #555;
            border-radius: 34px;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            transition: .3s;
            width: 45px;
          }
          
          /* Toggle circle */
          .switch-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            top: 4px;
            background-color: white;
            border-radius: 50%;
            transition: .3s;
          }
          
          /* Toggle on */
          .switch input:checked + .switch-slider {
            background-color: #3caea3;
          }
          
          .switch input:checked + .switch-slider:before {
            transform: translateX(20px);
          }
          
       
          
          /* ====== Active state visual feedback ====== */
          .feature-card.fractive {
            border-color: #3caea3;
            background-color: #263d3d;
          }
          
          .feature-card.fractive-reverse {
            border-color: #f44336;
            background-color: #3b1f1f;
          }

          
          .switch input {
            opacity: 0;
            width: 0;
            height: 0;
          }
          
          .switch-slider {
            position: absolute;
            cursor: pointer;
            background-color: #555;
            border-radius: 34px;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            transition: 0.3s;
          }
          
          .switch-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            top: 4px;
            background-color: white;
            border-radius: 50%;
            transition: 0.3s;
            left: 4px;
          }
          
          /* Normal toggle on = teal */
          .switch input:checked + .switch-slider {
            background-color: #3caea3;
          }
          
          .switch input:checked + .switch-slider:before {
            transform: translateX(20px);
          }
          
          /* REVERSED switches (for features on by default) */
          .reverse-switch .switch-slider:before {
            left: auto;
            right: 4px;
          }
          
          .reverse-switch input:checked + .switch-slider:before {
            transform: translateX(-20px);
          }
          
          .reverse-switch input:checked + .switch-slider {
            background-color: #f44336;
          }
          
          /* Card styles */
         
        
       
          /* Text content */
          .feature-content {
            flex: 1;
          }
          
          .feature-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 6px;
            color: #ffffff;
          }
          
          .feature-desc {
            font-size: 13.5px;
            color: #c0c0c0;
            line-height: 1.4;
            text-wrap: pretty;
          }
          
          /* Active visual feedback */
          .feature-card.fractive {
            border-color: #3caea3;
            background-color: #263d3d;
          }
          
          .feature-card.fractive-reverse {
            border-color: #f44336;
            background-color: #3b1f1f;
          }
          .feature-row {
            width: 100%;
            border-radius: 15px;
            margin-top:20px;
            border: 1px solid #ffffff40;
          }
          @media (max-width: 1200px) {
            .card-container {
              grid-template-columns: repeat(auto-fit, minmax(47%, 1fr));
            }
          }
          @media (max-width: 900px) and (min-width: 800px) {
            .card-container {
              grid-template-columns: repeat(auto-fit, minmax(95%, 1fr));
            }
            
          }
          @media (max-width: 800px) and (min-width: 600px) {
            .card-container {
              grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
            }
          }
          @media (max-width: 600px) {
            .card-container {
              grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
            }
          }


          .font-test-container.mobile-collapsed {height: 400px;}
    .font-test-container.mobile-expanded {
      position: fixed !important;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100%;
      z-index: 9999;
      background: var(--body-color);
      border-radius: 0;
      margin: 0;
      overflow-y: scroll;
      box-sizing: border-box;
    }
    .mobile-expanded .font-test-edit-panel {
      border-radius: 10px;
    }

    .font-test-container.mobile-expanded .font-tester {
      height: calc(100vh - 50px);
    }
    
    .close-tester {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        z-index: 1000;
        padding: 5px 10px;
        background: #000;
        color: #fff;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    
    .font-test-container.mobile-expanded .close-tester {
        display: block;
    }





[none] {
    display: none !important;
}

[infounderline] {
    text-decoration: underline;
    text-decoration-color: var(--main-light);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: 0s;
    cursor:help;
}
[infounderline]:hover {
    opacity: 0.8;

}

.tooltip {
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 4px;
    display: none;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1000;
    animation: appear 1s ;
}

.tooltip-short {
    display: none;
    opacity: 0;
    animation: appear-hide 4s ;
}

@keyframes appear {
    0% {opacity: 0;}
    80% {opacity: 0;}
    100% {opacity: 1;}
    
}

@keyframes appear-hide {
    0% {opacity: 0;}
    25% {opacity: 0;}
    35% {opacity: 1;}
    80% {opacity: 1;}
    100% {opacity: 0;} 
}


[hidden] {
    display: none;
}

.round-font {
    font-family: 'Fredoka', 'M PLUS Rounded 1c Static', 'Noto Sans Hebrew', 'Rubik', 'Suez One', 'Assistant';

}


@media (min-width: 900px) {

.content {
    /* box-shadow: 0 0 10px 0px #00000057; */
    background-color: #243646bf;/* rgba(17, 34, 48, 0.75) */
    border: 1px solid rgba(170, 170, 170, 0.125);
}

body.gls .descontainer {
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: height 0.6s ease;
    padding-bottom: 40px;   

}

body.gls .font-junk {padding-inline-start: 10px;}

}


@media (max-height: 900px) {
    .banner-content {
        height:500px;
        top:60px;
    }
    .banner {margin-bottom: calc(-10vh / 40%);}
}
@media (max-height: 670px) {
    .banner {margin-bottom: 0vh;}

}

@media only screen and (max-width: 670px) {
  .variable-row {
        display: flex;
        justify-content: center;
        margin-bottom: 0;
        background: #19475c94;
        border-radius: 20px 20px 0 0 ;
        bottom: 0;
        width: 100%;
        z-index: 3;
        backdrop-filter: blur(8px);
        gap: 0px;
        height:auto;
        flex-direction: column;
        align-items: center;
        max-width: 370px;
        margin-top: -30px;
        padding-bottom: 30px;
    }
      .slider-wrapper {   border:none; padding-block: 5px;    }
    .slider-wrapper:first-child { margin-top: 5px; }
    .slider-wrapper:last-child { margin-bottom: 10px; }
  .slider-wrapper:first-child {
    border-inline-start: none;
    margin-top: 15px;
}
    }



@media only screen and (max-width: 600px) {
    
    .glyphs-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1.1fr));
    }
    .font-item {
        flex: 1 1 100%; /* 1 card per row on mobile */
    }
    

    .bannerimg {
        position: absolute;
        top: 0;
        left: -20%;
        width: 140%;
        object-fit: cover;
        object-position: top center;
        z-index: 1;
        user-select: none;
        -webkit-user-drag: none;
    }

    button.font-btn {
        font-size:20px;
    }
    #font-buttons {
        max-width: 1000px;
        font-size: 223px;
        max-width: 900px;
        max-height: 170px;
        margin-bottom: -10px;

    }
  
   
    
}



@media only screen and (max-width: 800px) {

    .banner-content {
        display: flex;
        align-content: center;
        align-items: center;
        flex-wrap: nowrap;
        position: absolute;
        justify-content: space-around;
        flex-direction: column;
        width: 100%;
        height:425px;   
    }
    .content {
        padding: 20px;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        flex-wrap: nowrap;
        align-content: flex-start;
        border-radius: 0;
    }
    .content::before{
              border-radius: 0;

    }
    .font-list {
        max-width: 100%;
        width: 100%;
        margin: auto;
        padding: 0px;
    }
    .fontname {
        font-size: 110px;
    }
    .banner {
        height: 440px;
        margin-bottom: 0;
        /* calc(450px * -0.3) */

    }
    .first-row {
        justify-content: space-evenly;
        align-content: center;
        flex-direction: column;
        gap:0;

    }
    .first-row p {
        margin-block: 5px;
    }
    .font-junk {
        padding-inline-end: 0;
    }
    .info-junk {
        width: 100%;
        padding: 0px;
        border-inline-start: 0px solid var(--main-middark);
    }
    #font-buttons {
        font-size: 223px;
        max-width: 100%;
        max-height: 170px;
        margin-bottom: -10px;
        padding-inline: 0px;
        border-radius: 15px;
        padding:0;
        box-sizing: border-box;
    }
    button.font-btn {
        outline: 0px solid #7f7f7f8c;
        border: none;
        background: none;
        padding: 8px 13px;
        margin: 0px;
        cursor: pointer;
        font-size: 18px;
        color: inherit;
        opacity: 0.7;
        font-weight: 200;
        letter-spacing: -0.5px;
        transition: 0.2s;
        text-transform: capitalize;
        text-shadow: 0 0 20px #000000;
        border-radius: 0px;
                box-sizing: border-box;

    }
    .segment-highlight {
                border-radius: 0px;
                        box-sizing: border-box;


    }

    .font-test-container .font-test-edit-panel {
      padding-inline: 8px;
    }

}


@print{
  html.info-junk {display:none;}
  html.font-test-edit-panel {display:none;}
}