html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.5;
  background-color: #fff;
  color: #000;
  margin: 0px;
}

.menubar {
  top: 0;
  left: 0;
  height: 20px;
  padding: 40px 0px 16px 0px;
  max-width: 1698px;
  margin: auto;
}

.dropdown-container {
  width: 300px;
}

.dropdown {
  float: right;
  display: inline-block;
  font-family: neue-haas-unica, sans-serif;
  font-weight: 500;
}

.dropdown-button {
  font-family: neue-haas-unica, sans-serif;
  font-weight: 500;
  background-color: transparent;
  color: #000000;
  padding: 12px 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  border: 1px solid #000;
  background-color: #fff;
  width: 290px;
  padding: 5px 20px 20px 20px;
  z-index: 1;
}

.dropdown-content a {
  color: black;
  text-decoration: none;
  display: block;
  border: solid #000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropdown-button {
  background-color: #000;
  color: #fff;
}

input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  border: 1px solid #000;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: #000;
  color: #fff;
  position: relative;
  padding: 2px;
}

div.option-slider {
  padding: 0px;
}

div.option {
  padding: 20px 0 0 0;
}

div.option-checkbox {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

div.option-checkbox label {
  cursor: pointer;
}

label {
  display: block;
}

label span {
  float: right;
}

.buy-button {
  font-family: neue-haas-unica, sans-serif;
  font-weight: 500;
  background-color: #fff;
  border-color: #999 !important;
  color: #000;
  margin-top: 10px;
  padding: 5px 25px 7px 25px;
  font-size: 15px;
  border: solid 1px;
  border-radius: 360px;
  float: right;
  margin-left: 10px;
  -webkit-transition: all .2s linear;
  transition: all .2s linear;
  -moz-transition: all .2s linear;
}

.buy-button:hover {
  background-color: #000;
  color: #fff;
  cursor: pointer;
  border: solid 1px;
  border-radius: 360px;
  border-color: #000 !important;
}

select[name="typeface"] {
  font-family: neue-haas-unica, sans-serif;
  font-weight: 500;
  width: 140px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background: url('https://chilltype.com/wp-content/uploads/2024/07/arrow.svg');
  background-repeat: no-repeat;
  background-size: 8px;
  background-position: right 3px bottom 16px;
  appearance: none;
  outline: none;
  cursor: pointer;
  margin-top: 6px;
  padding-left: 0px;
}

/* Range Sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  outline: none;
  padding: 0;
  margin: 0;
  border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  background: black;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: black;
  cursor: pointer;
  margin-top: -7px;
  border: none;
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 1px;
  background: black;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: black;
  cursor: pointer;
  border: none;
  border-radius: 0;
}

input[type="range"]::-ms-track {
  width: 100%;
  height: 1px;
  background: transparent;
  border-color: transparent;
  color: transparent;
  border: none;
}

input[type="range"]::-ms-thumb {
  width: 15px;
  height: 15px;
  background: black;
  cursor: pointer;
  border: none;
}

input[type="range"]::-ms-fill-lower,
input[type="range"]::-ms-fill-upper {
  background: black;
}

/* Button Groups (Left, Center, Right) */
.button-group {
  display: flex;
  padding-top: 24px;
}

.button {
  background-color: white;
  color: black;
  border: 1px solid #000;
  padding: 7px 10px 8px 10px;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-family: neue-haas-unica, sans-serif;
  font-weight: 500;
}

/* Shifts center and right buttons left by 1px so borders perfectly overlap */
.button:not(:first-child) {
  margin-left: -1px;
}

.button.left {
  border-top-left-radius: 360px;
  border-bottom-left-radius: 360px;
  padding-right: 4px;
}

.button.center {
  /* No manual border overrides needed anymore */
}

.button.right {
  border-top-right-radius: 360px;
  border-bottom-right-radius: 360px;
  padding-left: 6px;
}

.button:hover,
.button.active {
  background-color: #000;
  color: #fff;
}

/* Text Output Area */
.line {
  max-width: 1698px;
  margin: 30px auto 20px auto;
  height: 1px;
  background-color: #000;
}

.output-container {
  display: flex;
  justify-content: center;
  outline: none !important;
}

textarea.output {
  width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: hidden;
}

.output {
  font-size: 120px;
  font-family: "Bufano";
  line-height: 1.2;
  margin: auto;
  max-width: 1698px;
  color: #000;
  border: none;
  outline: none !important;
  text-align: center;
  resize: none;
  overflow: hidden;
  padding: 4px;
  -webkit-transition: none !important;
  font-variant-ligatures: none;
  min-height: 1em;
}

.output:hover,
.output:valid {
  border: none !important;
  outline: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

.bottom-padding {
  margin: 200px;
}

/* Responsive Breakpoints */
@media (max-width: 543px) {
  .buy-button,
  .dropdown {
    display: none;
  }
  .menubar {
    padding: 10px 0px 18px 0px !important;
  }
  select[name="typeface"] {
    background-position: right 13px bottom 16px;
  }
}
