/* Website by Laura Jardim, 2025 - 05 - 05 */

@font-face {
  font-family: 'Satoshi Light';
  src: url("../fonts/Satoshi-Light.woff2") format("woff2");
}

@font-face {
  font-family: 'Satoshi Bold';
  src: url("../fonts/Satoshi-Bold.woff2") format("woff2");
}

@font-face {
  font-family: 'Helvoni Regular';
  src: url("../studentfonts/HELVONI_RM/HELVONI-Regular.ttf") format("truetype");
}

@font-face {
  font-family: 'Villeneuve Variable';
  src: url("../studentfonts/Villeneuve_LJ_TM_CB/Variable-TT/VilleneuveSignature-VF.ttf") format("truetype");
}

@font-face {
  font-family: 'Pinhais';
  src: url("../studentfonts/Pinhais_RM_RS/RR\ Pinhais\ -\ Rui\ Marques.ttf") format('truetype');
}

@font-face {
  font-family: 'Bazar';
  src: url("../studentfonts/Bazar_OM/Bazar\ -\ Olinda\ Martins.ttf") format('truetype');
}

@font-face {
  font-family: 'Brutneuve Serif';
  src: url("../studentfonts/Brutneuve_OM/Brutneuve\ -\ olga\ marinho.ttf") format('truetype');
}

@font-face {
  font-family: 'Brutneuve Sans';
  src: url("../studentfonts/Brutneuve_OM/Brutneuve\ Sans\ -\ olga\ marinho.ttf") format('truetype');
}

@font-face {
  font-family: 'Isilda';
  src: url("../studentfonts/Isilda_LJ/Isilda-MediumHardCurve-teste-instancias-VF.ttf") format('truetype');
}

@font-face {
  font-family: 'Bolas Regular';
  src: url("../studentfonts/Bolas_MF/Bolas-Regular.ttf") format('truetype');
}

@font-face {
  font-family: 'Bolas Bold';
  src: url("../studentfonts/Bolas_MF/Bolas-Bold.ttf") format('truetype');
}

@font-face {
  font-family: 'Honey Comb';
  src: url("../studentfonts/HoneyComb_LJ/Honey-VF.ttf") format('truetype');
}

@font-face {
  font-family: 'Valentina Regular';
  src: url("../studentfonts/Valentina_RM/OpenType-TT/ValentinaSans-Regular.ttf") format('truetype');
}

@font-face {
  font-family: 'Valentina Reverse';
  src: url("../studentfonts/Valentina_RM/OpenType-TT/ValentinaSans-ReverseContrast.ttf") format('truetype');
}

@font-face {
  font-family: 'Fritura';
  src: url("../studentfonts/Fritura_AL/FrituraVF\ -\ Daniel\ de\ Sousa.ttf") format('truetype');
}

@font-face {
  font-family: 'Bia Lira';
  src: url("../studentfonts/BiaLira_BB/BiaLira-Final-VF.ttf") format('truetype');
}

@font-face {
  font-family: 'Massarelos';
  src: url("../studentfonts/Massarelos_AP/massarelos.ttf") format('truetype');
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Satoshi Light';
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #DCFC73;
  color: black;
}

h1 {
  font-family: 'Satoshi Bold';
  font-size: 3rem;
}

  a {
    font-family: 'Satoshi Light';
    font-size: 1rem;
    text-decoration: none;
    color: black;
    color: inherit;
  }
  
  a:visited {
  color: inherit;
  text-decoration: none;
}

  a:hover, a:focus, a:active {
  color: inherit;
  text-decoration: none;
}

p {
  font-family: 'Satoshi Light';
  font-size: 1rem;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  background: #f9f8f5;
  border-bottom: 0.05rem solid #000;
  z-index: 9000;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 4rem;
  margin-top: 4rem;
  background-color: #f9f8f5;
  border-right: 0.05rem solid black;
  overflow-x: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: left;
  transition: width 0.3s ease;
}

.toggle-btn {
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  font-size: 1.5rem;
  width: 2rem;
  margin-top: 1rem;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

/* Default: hamburger visible, bar hidden */
.hamburger-icon {
  display: inline;
  margin-left: 65%;
}

.bar-icon {
  display: none;
}

/* When sidebar is expanded: hide hamburger, show bar */
.sidebar.expanded .hamburger-icon {
  display: none;
}

.sidebar.expanded .bar-icon {
  display: inline;
  margin-left: 65%;
}

.sidebar.expanded {
  width: 15rem;
  transition: width 0.3s ease;
  z-index: 99999;
}

/* Hide menu items by default */
.menu-items {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  gap: 1rem;
  margin-left: 1rem;
}

.menu-items a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 1.5rem;
}

.menu-items a:hover {
  color: #666;
}

/* Show menu items when sidebar is expanded */
.sidebar.expanded .menu-items {
  opacity: 1;
  pointer-events: auto;
}

.main-content {
  margin-top: 3rem;
  margin-left: 3rem;
  padding: 5.5rem 0.2rem 0.2rem 1.2rem;
}

header h1 {
  font-family: 'Satoshi Bold';
  font-size: 1.6rem;
}

.filters {
  position: fixed;
  top: 4rem;
  left: 4rem;
  width: calc(100% - 60px);
  background: #f9f8f5;
  border-bottom: 0.05rem solid #000000;
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 1rem 1rem;
  z-index: 800;
}

.filters input,
.filters select {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: transparent;
  border: none;
  border-bottom: 0.05rem solid #737373;
  outline: none;
  text-align: left;
  border-radius: 0;
  appearance: none;
}

main {
  padding: 0.5rem;
  padding-top: 1rem;
}

.font-card {
  display: block;
  background: #f9f8f5;
  border-radius: 1rem;
  border: 0.05rem solid #000000;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  height: auto;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 1rem;
}

.card-header .info{
  text-align: left;
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-header .font-master {
  text-align: left;
  padding-left: 20rem;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-header .sliders {
  order: 3;
  display: flex;
  gap: 1rem;
  align-items: right;
  justify-content: right;
  flex: 1;
  padding-right: 2rem;
}

input[type="range"] {
  -webkit-appearance: none; /* For Chrome, Safari, Edge */
  appearance: none;
  width: 10%;
  height: 0.05rem;
  background: black;
  border-radius: 0.05rem;
  margin: 0.7rem 0;
  cursor: pointer;
}

/* Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 1rem;
  width: 1rem;
  background: #f9f8f5;
  border: 0.05rem solid black;
  border-radius: 50%;
  margin-top: -0px; /* Centers thumb on track */
  cursor: pointer;
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
  height: 1rem;
  width: 1rem;
  background: #f9f8f5;
  border: 0.05rem solid black;
  border-radius: 50%;
  cursor: pointer;
}

/* Firefox track */
input[type="range"]::-moz-range-track {
  height: 1rem;
  background: black;
  border-radius: 0.05rem;
}

.card-header .learnmore {
  order: 4;
  color: #000000;
  text-decoration: none;
}

.preview {
  text-align: center;
}

.preview-helvoni {
  font-family: 'Helvoni Regular';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-villeneuve {
  font-family: 'Villeneuve Variable';
  font-variation-settings: "wght" 400; /* initial weight */
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-pinhais {
  font-family: 'Pinhais';
  font-variation-settings: "wdth" 400; /* initial weight */
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-bazar {
  font-family: 'Bazar';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-bialira {
  font-family: 'Bia Lira';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-brutneuve {
  font-family: 'Brutneuve Serif';
  font-variation-settings: "wgth" 400; /* initial weight */
  font-variation-settings: "SERF" 0; /* initial serif */
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-isilda {
  font-family: 'Isilda';
  font-variation-settings: "wgth" 100, "STKV" 0, "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-bolas {
  font-family: 'Bolas Regular';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-honey {
  font-family: 'Honey Comb';
  font-variation-settings: "wdth" 100; /* initial width */
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-valentina {
  font-family: 'Valentina Regular';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview-fritura {
  font-family: 'Fritura';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

.preview_massarelos {
  font-family: 'Massarelos';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 8rem;
  padding:3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; /* this ensures it wraps */
}

#fontPreview {
  cursor: text;
  font-variation-settings: 'wght' 400;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

#fontPreview:focus {
  outline: none;
}

.author {
  font-size: 1rem;
  color: #000000;
  text-align: left;
}

.resetBtn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border: 0.05rem solid black;
  background-color: #f9f8f5;
  color: black;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

.resetBtn:hover {
  background-color: #f9f8f5;
  transform: rotate(-10deg);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(1rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.font-card {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.font-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.font-card.hidden {
  display: none !important;
}

.custom-dropdown {
  position: relative;
  width: 15.5rem;
  font-family: 'Satoshi Light';
  z-index: 9000;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-bottom: 0.05rem solid #737373; /* Matches the input field */
  font-size: 1rem;
}

.dropdown-arrow {
  width: 0.1rem;
  height: 0.5rem;
  position: relative;
  transition: transform 0.3s ease;
}

.dropdown-arrow::before,
.dropdown-arrow::after {
  content: '';
  position: absolute;
  width: 0.5rem;
  height: 0.05rem;
  background: black;
  top: 0.4rem;
  border-radius: 0.05rem;
}

.dropdown-arrow::before {
  transform: rotate(45deg);
  left: 0;
}

.dropdown-arrow::after {
  transform: rotate(-45deg);
  right: 0;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg) translateY(-0.5rem);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 15.5rem;
  background: #f9f8f5;
  border: 0.05rem solid black;
  padding: 0.7rem;
  z-index: 99999999; /* increase this */
  margin-top: 0.4rem;
  pointer-events: auto; /* ensure interaction */
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.dropdown-item label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.dropdown-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  background: #f9f8f5;
  border: 0.05rem solid black;
  border-radius: 50%;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
}

.dropdown-item input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  background: #f2d1f5;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.dropdown-item input[type="checkbox"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}

.dropdown-menu,
.dropdown-item,
.dropdown-item label,
.dropdown-item input {
  pointer-events: auto;
}

.back-to-top {
  position: fixed;
  bottom: 1rem;
  font-family: 'Satoshi Light';
  right: 1.2rem;
  font-size: 1.2rem;
  border: 0.05rem solid black;
  background: #E1D2F3;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-0.2rem);
}

.hidden {
  display: none !important;
}

/***************************************************************************************************/

#noResults{
  font-family: 'Satoshi Light';
  color: rgb(0, 0, 0);
  font-variation-settings: "lineHeight" 1;
  font-size: 1rem;
  padding:30px;
  padding-top: 50px;
  padding-bottom: 30px;
  text-align: center;
  max-width: 100%;
  margin: 0;
}

.scrollbar {
            height: 100%;
            width: 100%;
            overflow: auto;
            padding: 0 10px;
        }
        
        #scrollbar::-webkit-scrollbar {
            width: 0.4rem;
        }
        
        #scrollbar::-webkit-scrollbar-track {
            border-radius: 10px;
            background-color: #f9f8f5;
            border: 1px solid #000000;
        }
        
        #scrollbar::-webkit-scrollbar-thumb {
            border-radius: 8px;
            height: 1rem;
            background-color: rgb(0, 0, 0);
        }

.sort {
  margin-left: auto;
  font-size: 1rem;
  margin-right: 1rem;
}

.sort-option {
  cursor: pointer;
  user-select: none;
  font-weight: normal;
}

.sort-option.active {
  font-weight: bold;
}

  .sort span{
    cursor: pointer;
    user-select: none; /* optional: prevents accidental text selection */
  }

  .font-master-dropdown {
  position: relative;
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  color: black;
}

.font-master-dropdown .selected-option {
  cursor: pointer;
  padding-bottom: 0.2rem;
  border-bottom: 0.05rem solid black;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}

.font-master-arrow {
  width: 8px;
  height: 8px;
  position: relative;
  transition: transform 0.3s ease;
}

.font-master-arrow::before,
.font-master-arrow::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 1px;
  background: black;
  top: 4px;
  border-radius: 1px;
}

.font-master-arrow::before {
  transform: rotate(45deg);
  left: 0;
}

.font-master-arrow::after {
  transform: rotate(-45deg);
  right: 0;
}

.font-master-dropdown.open .font-master-arrow {
  transform: rotate(180deg) translateY(-2px);
}

.font-master-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f9f8f5;
  border: 1px solid black;
  list-style: none;
  padding-left: 0;
  margin: 0;
  z-index: 999;
  margin-top: 4px;
  min-width: 160px;
}

.font-master-options li {
  padding: 6px 12px;
  white-space: nowrap;
}

.font-master-options li:hover {
  background-color: #f9f8f5;
}

.font-master-dropdown.open .font-master-options {
  display: block;
}

.learnmore{
  font-size: 1rem;
  text-align: center;
  border-radius: 25px;
  border: 0.05rem solid #000000;
  padding-top: 0.2rem;
  padding-bottom: 1.4rem;
  width: 4rem;
  height: 1.4rem;
}

#clearSearch {
  display: none;
  cursor: pointer; /* Optional: so it looks clickable */
}

  @media (min-width: 1600px) {
  html {
    font-size: 24px;
  }
}

/*
@media (max-width: 600px) {

  header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: #f9f8f5;
  border-bottom: 1px solid #000;
  z-index: 9000;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 40px;
  margin-top: 40px;
  background-color: #f9f8f5;
  border-right: 1px solid black;
  overflow-x: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: left;
  transition: width 0.3s ease;
}

.toggle-btn {
  background: none;
  border: none;
  color: rgb(0, 0, 0);
  font-size: 20px;
  width: 30px;
  margin-top: 16px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger-icon {
  display: inline;
  margin-top: 40px;
  margin-left: 25%;
}

.bar-icon,
.search-container {
  display: none;
}

.sidebar.expanded .hamburger-icon {
  display: none;
}

.sidebar.expanded .bar-icon {
  display: inline;
  margin-left: 25%;
}

.sidebar.expanded {
  width: 100px;
  transition: width 0.3s ease;
  z-index: 99999;
}

.menu-items {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  gap: 10px;
  margin-left: 10px;
}

.menu-items a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 14px;
}

.menu-items a:hover {
  color: #666;
}

.sidebar.expanded .menu-items {
  opacity: 1;
  pointer-events: auto;
}

.main-content {
  padding: 5px;
  margin-top: 40px;
  margin-left: 40px;
  padding-top: 60px;
}

header h1 {
  font-family: 'Satoshi Bold';
  font-size: 20px;
}

.filters {
  position: fixed;
  top: 40px;
  left: 40px;
  width: calc(100% - 40px);
  background: #f9f8f5;
  border-bottom: 1px solid #000000;
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 800;
  padding-top: 10px;
  height: 50px;
}

.filters input,
.filters select {
  padding: 5px 10px;
  font-size: 14px;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid #737373;
  outline: none;
  text-align: left;
  border-radius: 0;
  appearance: none;
}

.sort {
  display: none;
}

main {
  padding: 0px;
  padding-top: 5px;
  padding-bottom: 2px;
} 

.font-card {
  display: block;
  background: #f9f8f5;
  border-radius: 10px;
  border: 1px solid #000000;
  height: auto;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
  padding: 10px;
}

.card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.card-header .info{
  display: none;
}

.card-header .font-master {
  text-align: left;
  padding-left: 20px;
  order: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.card-header .sliders {
  display: none;
}

.card-header .learnmore {
  color: #000000;
  text-decoration: none;
  text-align: center;
  font-size: 11px;
  padding-top: 2px;
  padding-bottom: 5px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 10%;
  height: 0.5px;
  background: black;
  border-radius: 1px;
  margin: 10px 0;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: #f9f8f5;
  border: 1px solid black;
  border-radius: 50%;
  margin-top: -0px;
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  background: #f9f8f5;
  border: 1px solid black;
  border-radius: 50%;
  cursor: pointer;
}

input[type="range"]::-moz-range-track {
  height: 2px;
  background: black;
  border-radius: 1px;
}

.preview-helvoni {
  font-family: 'Helvoni Regular';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-villeneuve {
  font-family: 'Villeneuve Variable';
  font-variation-settings: "wght" 400;
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-pinhais {
  font-family: 'Pinhais';
  font-variation-settings: "wdth" 400;
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-bazar {
  font-family: 'Bazar';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; 
}

.preview-bialira {
  font-family: 'Bia Lira';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; 
}

.preview-brutneuve {
  font-family: 'Brutneuve Serif';
  font-variation-settings: "wgth" 400; 
  font-variation-settings: "SERF" 0; 
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-isilda {
  font-family: 'Isilda';
  font-variation-settings: "wgth" 100, "STKV" 0, "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-bolas {
  font-family: 'Bolas Regular';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-honey {
  font-family: 'Honey Comb';
  font-variation-settings: "wdth" 100; 
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; 
}

.preview-valentina {
  font-family: 'Valentina Regular';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal;
}

.preview-fritura {
  font-family: 'Fritura';
  font-variation-settings: "lineHeight" 1.2;
  font-size: 50px;
  padding:30px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  max-width: 100%;
  margin: 0;
  word-wrap: break-word;
  white-space: normal; 
}

#fontPreview {
  cursor: text;
  font-variation-settings: 'wght' 400;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

#fontPreview:focus {
  outline: none;
}

.author {
  display: none;
}

.resetBtn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border: 1.5px solid black;
  background-color: #f9f8f5;
  color: black;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

.resetBtn:hover {
  background-color: #f9f8f5;
  transform: rotate(-10deg);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.font-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.font-card.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.font-card.hidden {
  display: none !important;
}

.custom-dropdown {
  position: relative;
  width: 250px;
  font-family: 'Satoshi Light';
  z-index: 9000;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 0.5px solid #737373;
  font-size: 14px;
}

.dropdown-arrow {
  width: 8px;
  height: 8px;
  position: relative;
  transition: transform 0.3s ease;
}

.dropdown-arrow::before,
.dropdown-arrow::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 1px;
  background: black;
  top: 4px;
  border-radius: 1px;
}

.dropdown-arrow::before {
  transform: rotate(45deg);
  left: 0;
}

.dropdown-arrow::after {
  transform: rotate(-45deg);
  right: 0;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg) translateY(-2px);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: #f9f8f5;
  border: 1px solid black;
  padding: 10px;
  z-index: 99999999;
  margin-top: 5px;
  pointer-events: auto;
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  margin-bottom: 12px;
  font-size: 14px;
}

.dropdown-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.dropdown-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #f9f8f5;
  border: 1px solid black;
  border-radius: 50%;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  flex-shrink: 0;
  font-size: 0;
  line-height: 0;
}

.dropdown-item input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: #f2d1f5;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.dropdown-item input[type="checkbox"]:checked::before {
  transform: translate(-50%, -50%) scale(1);
}

.dropdown-menu,
.dropdown-item,
.dropdown-item label,
.dropdown-item input {
  pointer-events: auto;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  font-family: 'Satoshi Light';
  right: 20px;
  font-size: 15px;
  border: 1px solid black;
  background: #E1D2F3;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

#noResults{
  font-family: 'Satoshi Light';
  color: rgb(0, 0, 0);
  font-variation-settings: "lineHeight" 1;
  font-size: 20px;
  padding:30px;
  padding-top: 50px;
  padding-bottom: 30px;
  text-align: center;
  max-width: 100%;
  margin: 0;
}

.scrollbar {
            height: 100%;
            width: 100%;
            overflow: auto;
            padding: 0 10px;
        }
        
        #scrollbar::-webkit-scrollbar {
            width: 8px;
        }
        
        #scrollbar::-webkit-scrollbar-track {
            border-radius: 10px;
            background-color: #f9f8f5;
            border: 1px solid #000000;
        }
        
        #scrollbar::-webkit-scrollbar-thumb {
            border-radius: 8px;
            height: 5px;
            background-color: rgb(0, 0, 0);
        }

  .font-master-dropdown {
  position: relative;
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  color: black;
}

.font-master-dropdown .selected-option {
  cursor: pointer;
  padding-bottom: 3px;
  border-bottom: 0.5px solid black;
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.font-master-arrow {
  width: 8px;
  height: 8px;
  position: relative;
  transition: transform 0.3s ease;
}

.font-master-arrow::before,
.font-master-arrow::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 1px;
  background: black;
  top: 4px;
  border-radius: 1px;
}

.font-master-arrow::before {
  transform: rotate(45deg);
  left: 0;
}

.font-master-arrow::after {
  transform: rotate(-45deg);
  right: 0;
}

.font-master-dropdown.open .font-master-arrow {
  transform: rotate(180deg) translateY(-2px);
}

.font-master-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f9f8f5;
  border: 1px solid black;
  list-style: none;
  padding-left: 0;
  margin: 0;
  z-index: 999;
  margin-top: 4px;
  min-width: 160px;
}

.font-master-options li {
  padding: 6px 12px;
  white-space: nowrap;
}

.font-master-options li:hover {
  background-color: #f9f8f5;
}

.font-master-dropdown.open .font-master-options {
  display: block;
}

.learnmore{
  font-size: 13px;
  text-align: center;
  border-radius: 25px;
  border: 1px solid #000000;
  padding-top: 5px;
  padding-bottom: 25px;
  width: 60px;
  height: 20px;
}

#clearSearch {
  display: none;
  cursor: pointer;
}
}

*/