* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

/*THIS SETS MAX HEIGHT FOR FULL HTML*/

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Prevent any scrollbars from appearing */
}


/**/
.keyboard .container {
  display: block;

  margin: auto;
  padding: 20px;
}

.rights {
  height: fit-content;
}

.keyboard .btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.keyboard button {
  border: none;
  background: #fff;
  padding: 10px 50px;
  width: 23%;
  font-weight: bold;
  color: #55555500;
  outline: none;
  border: none;
  cursor: pointer;
  margin-bottom: clamp(10px, 3.5vh, 50px);
  transition: all 0.2s ease-in-out;
  position: relative;
}

.btns button:first-child {
  display: none;
}

.keyboard button:after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translate(0, -50%);
  right: -13.4%;
  width: 13%;
  height: 3px;
  background-color: #eee;
}

.keyboard button:nth-last-child(1):after {
  content: none;
}

.keyboard button:hover,
button.active {
  background-color: #a70e0e00;
  border-color: transparent;
  color: #fff;
}

/* Details */
.details {
  margin-top: 30px;
}

.details h4 {
  display: none;
  /* QUITAR PARA PONER EL TÍTULO DEL SWITCH SELECTOR O SELECTOR SWITCHES */
  font-family: 'Montserrat', 'sans-serif';
  margin-bottom: 10px;
  font-size: 15px;
}

.details .switches h4 {
  font-family: 'Montserrat', 'sans-serif';
  margin-bottom: 10px;
  font-size: 15px !important;
  margin-left: 1%;
}

.details select {
  display: none;
  /* QUITAR PARA PONER EL SWITCH SELECTOR O SELECTOR SWITCHES */
  background: linear-gradient(45deg, #916ce9, #5370ff);
  font-family: 'Montserrat', 'sans-serif';
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #555;
  border-radius: 20px;
  width: 40vw;
  padding: 10px;
  border: 1px solid #aaa;
  color: #222;
}

.details select:focus {
  box-shadow: 1px 1px 3px #ccc;
}

.details option {
  width: 500px;
}

/* Switches */
h4.case-heading {
  font-family: 'Montserrat', 'sans-serif';
  margin-top: 20px;
  border-bottom: 1px dotted #222;
  width: fit-content;
  margin-bottom: 5px;
}

.details .switches .inputs {
  font-family: 'Montserrat', 'sans-serif';
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.details .switches label {
  font-weight: bold;
  font-size: 16px;
}

/* Case color buttons */
.case-colors {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.case-colors .color {
  width: clamp(35px, 5vh, 45px) !important;
  height: clamp(35px, 5vh, 45px) !important;
  border-radius: 0px;
  padding: clamp(5px, 1vh, 15px);
  overflow: hidden;
  position: relative;
  top: 25%;
  left: 0%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1.2vh, 12px);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.case-colors .color[data-color="#1D1D1D"] {
  background: #1D1D1D;
  color: white;
  border-color: #1D1D1D;
}

.case-colors .color[data-color="#FFFFFF"] {
  background: #FFFFFF;
  color: black;
  border-color: #333;
  box-shadow: inset 0 0 0 1px #ddd, 0 0 0 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.case-colors .color[data-color="#FFFFFF"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.case-colors .color.selected {
  border: 1px solid transparent;
  outline: 2px solid transparent;
  outline-offset: -1px;
  border-image: linear-gradient(to right, #916ce9, #5370ff) 1;
  box-shadow:
    0 0 0 2px #916ce9,
    0 0 0 3px #5370ff;
}

.case-colors .color:hover {
  border: 1px solid #a70f0e;
  transform: translateY(-2px);
}

.case-colors .color.selected {
  border: 1px solid transparent;
  outline: 2px solid transparent;
  outline-offset: -1px;
  border-image: linear-gradient(to right, #916ce9, #5370ff) 1;
  box-shadow:
    0 0 0 2px #916ce9,
    0 0 0 3px #5370ff;
}

/* Ensure white button is always clickable */
.case-colors .color[data-color="#FFFFFF"] {
  background: #FFFFFF;
  color: black;
  border-color: #333;
  box-shadow: inset 0 0 0 1px #ddd, 0 0 0 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

/* Keygroups - Updated Layout */

.keyboard .keygroups {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  font-weight: 700;
  left: 0%;
  margin-left: 0%;
}

/* Create two-row layout for buttons */
.details .keygroups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Row 1: Case color + Keycap group buttons */
.details .keygroups .button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  width: 100%;
  min-height: 80px;
  box-sizing: border-box;
  padding: 15px 0;
}

/* Case color buttons - consistent height */
.details .keygroups .button-row .case-colors {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.details .keygroups .button-row .case-colors .color {
  width: clamp(35px, 5vh, 45px) !important;
  height: clamp(35px, 5vh, 45px) !important;
  border-radius: 0px;
  padding: clamp(5px, 1vh, 15px);
  overflow: hidden;
  position: relative;
  top: 25%;
  left: 0%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1.2vh, 12px);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  margin: 0;
  flex-shrink: 0;
  min-height: clamp(35px, 5vh, 45px);
  max-height: clamp(35px, 5vh, 45px);
}

/* Keycap group buttons - consistent height */
.details .keygroups .button-row .keyboards {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.details .keygroups .button-row .keyboards button {
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  width: fit-content;
  height: auto;
  min-height: 45px;
  transition: 0.2s border-color ease;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 2px;
  background-color: transparent;
  cursor: pointer;
}

.details .keygroups .button-row .keyboards button img {
  width: clamp(100px, 12vw, 180px);
  height: auto;
  max-height: clamp(40px, 6vh, 60px);
  object-fit: contain;
  margin-bottom: clamp(4px, 1vh, 8px);
}

@media (max-width: 768px) {
  .details .keygroups .button-row .keyboards button {
    padding: 4px 6px;
    min-height: 35px;
    gap: 4px;
  }

  .details .keygroups .button-row .keyboards button img {
    width: clamp(70px, 10vw, 120px);
    max-height: clamp(30px, 4vh, 45px);
    margin-bottom: 2px;
  }
}

/* Row 2: Get Design ID section */
.details .keygroups .id-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 10px 0;
}

/* Ensure id-section is visible and properly styled */
.details .keygroups .id-section .id {
  margin: 0;
  padding: 12px 12px;
  height: 46px;
  flex-grow: 1;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  box-sizing: border-box;
  font-size: 16px;
  color: #222;
  width: 100%;
  max-width: 400px;
  text-align: center;
  min-height: 46px;
  max-height: 46px;
  overflow: hidden;
}

.details .keygroups .id-section .btn-done {
  background-color: #000 !important;
  color: #555 !important;
  border: 1px solid #555 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 12px 20px !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  width: auto !important;
  min-width: 120px !important;
  white-space: nowrap;
  flex-shrink: 0 !important;
  aspect-ratio: 3 / 1;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  margin: 0;
}

.details .keygroups .keyboards {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.details .keyboards h4 {
  margin-bottom: 20px;
}

.details .keyboards img {
  width: 150px;
}

.details .keyboards h5 {
  text-align: justify;
  font-size: 20px;
  font: 'Montserrat', sans-serif;
}

.details .keyboards button {
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  width: fit-content;
  transition: 0.2s border-color ease;
}

.details .keyboards button:hover {
  background: linear-gradient(45deg, #916ce9, #5370ff);
  border-color: transparent;
  outline: 0px solid #a70e0e00;
  color: #000000;
  border-radius: 20px;
}

.details .keyboards button:after {
  content: none;
}

/* Colors of keyboards */
.none {
  display: none !important;
}

/* Case section styling */
.details .keygroups .button-row .case-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.details .keygroups .button-row .case-section h4.case-heading {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* Ensure button sizes remain unchanged */
.details .keygroups .button-row .case-colors {
  display: flex;
  gap: 12px;
  margin: 0;
}

.details .keygroups .button-row .case-colors .color {
  width: clamp(35px, 5vh, 45px) !important;
  height: clamp(35px, 5vh, 45px) !important;
  border-radius: 0px;
  padding: clamp(5px, 1vh, 15px);
  overflow: hidden;
  position: relative;
  top: 25%;
  left: 0%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 1.2vh, 12px);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.details .keygroups .button-row .keyboards button {
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  width: fit-content;
  transition: 0.2s border-color ease;
}

.details .keygroups .button-row .keyboards img {
  width: clamp(100px, 10vw, 150px);
}

.keyboard .colors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.keyboard .colors h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-top: 20px;
  margin-left: 0px;
  position: relative;
  /* Add position relative */
}


.keyboard .colors button:hover {
  background-color: transparent;
  color: #555;
  border-color: #aaa;
}

.keyboard .colors button:after {
  content: none;
}

.keyboard .colors img {
  height: 32px;
  width: 32px;
}

.keyboard .buttons {
  display: flex;
}

.keyboard .buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0px;
  font-weight: 500;
  font-size: 24px;
  width: fit-content;
  transition: none;
  padding: 7px;
  flex-wrap: nowrap;
  /* Add this line */
}

.keyboard .buttons .selected {
  border: 2px solid #a70f0e;
}

.keyboard .colors .group .selected {
  --gradient-start: #916ce9;
  /* Start color of the gradient */
  --gradient-end: #5370ff;
  /* End color of the gradient   , */
  --border-width: 1px;
  --outline-width: 2px;

  /* Use a linear gradient for both border and outline */
  border: var(--border-width) solid transparent;
  outline: var(--outline-width) solid transparent;
  outline-offset: calc(-1 * var(--border-width));
  /* To align outline with the border */

  /* Create the gradient border and outline */
  border-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end)) 1;
  box-shadow:
    0 0 0 var(--outline-width) var(--gradient-start),
    /* Inner border color (start of gradient) */
    0 0 0 calc(var(--outline-width) + var(--border-width)) var(--gradient-end);
  /* Outer border color (end of gradient) */
}

.keyboard .colors .group button:hover {
  border: 1px solid #a70f0e;
}

.keyboard .colors .group div {
  display: flex;
  gap: 12px;
  margin-top: 5px;
  flex-wrap: nowrap;
  /* Add this line */
}

.keyboard .colors .group {
  display: flex;
  justify-content: center;
  /* Center the buttons horizontally */
  align-items: center;
  /* Center vertically if needed */
  flex-wrap: wrap;
  /* Allow wrapping if necessary */
  gap: 12px;
  /* Adjust gap if you need spacing */
  margin: 0 auto;
  /* Center the container itself */
}


.keyboard .colors .group button {
  width: clamp(35px, 5vh, 45px) !important;
  height: clamp(35px, 5vh, 45px) !important;
  margin-left: -10px;
  border-radius: 0px;
  padding: clamp(5px, 1vh, 15px);
  overflow: hidden;
  position: relative;
  top: 25%;
  left: 0%
}

.keyboard .colors .group button span {
  display: block;
  /*transform: skewX(30deg) translateY(-0%); /* Counter-skew and adjust position */
}

.keyboard .colors .group {
  margin-right: 70%;
  /* Adjust the margin as needed */
}

/* If the screen size is 1600px or less, set margin-right to 2% */
@media screen and (max-width: 1600px) {
  .keyboard .colors .group {
    margin-right: 2%;
  }
}

/* If the screen size is 1200px or less, set margin-right to 2% */
@media screen and (max-width: 1200px) {
  .keyboard .colors .group {
    margin-right: 2%;
  }
}

/* If the screen size is 900px or less, set margin-right to 4% */
@media screen and (max-width: 900px) {
  .keyboard .colors .group {
    margin-right: 4%;
  }
}

/* If the screen size is 600px or less, set margin-right to 3% */
@media screen and (max-width: 600px) {
  .keyboard .colors .group {
    margin-right: 3%;
  }
}

/* If the screen size is 400px or less, set margin-right to 2% */
@media screen and (max-width: 400px) {
  .keyboard .colors .group {
    margin-right: 2%;
  }
}

.keyboard .colors .group {
  display: flex;
  justify-content: flex-end;
  /* Align buttons to the right */
  flex-wrap: nowrap;
  /* Add this line */
  margin-left: 10%;
}

/* Details : legends */
.details {
  position: relative;
}

.details .legends .flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.details .legends img {
  width: 270px;
}

/* overlay */
.details .legends .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #222;
  opacity: 0.7;
  z-index: 2;
}

/* Alphanumeric */
.details .legends .change.none {
  display: none;
}

.details .legends .detail button {
  margin-bottom: 0px;
  width: fit-content;
}

.details .legends .select {
  display: grid;
  grid-template-columns: repeat(4, 17vw);
  gap: 10px;
  position: fixed;
  top: 0;
  left: 0;
  max-width: 1100px;
  margin: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  background-color: #fff;
  max-height: 70vh;
  overflow-y: scroll;
  z-index: 3;
}

.details .legends .select div {
  cursor: pointer;
  padding: 10px;
}

.details .legends .select div.selected {
  outline: 1px solid #a70f0e;
}

.details .legends .select img {
  width: 100%;
}

.details .legends .detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.details .legends .ok {
  position: fixed;
  bottom: 15.2vh;
  z-index: 4;
  max-width: 900px;
  left: 50%;
  transform: translate(-50%);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: fit-content;
}

.details .legends .ok button {
  margin-bottom: 0px;
  margin-right: 10px;
  width: fit-content;
  text-transform: uppercase;
}

/* Modifiers */
.details .legends .modifier .detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.details .legends .modifier button {
  margin-bottom: 0px;
  width: fit-content;
}

/* Dampners */
.options .dampners {
  width: 100%;
}

.options .dampners select,
option {
  width: 100%;
}

.dampners {
  margin-bottom: 20px;
}

.options textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  outline: none;
}

.options textarea:focus {
  border-color: #a70f0e;
}

@media (max-width: 768px) {

  /* Responsive adjustments for button layout */
  .details .keygroups .button-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .details .keygroups .button-row .case-colors {
    justify-content: center;
  }

  .details .keygroups .button-row .keyboards {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .details .keygroups .id-section {
    align-items: center;
    text-align: center;
  }


  .btns button {
    width: 100%;
    padding: 10px 30px;
  }

  @media only screen and (max-width: 600px) {
    .btns button {
      font-size: 12px;
      /* Adjust as needed */
    }

    .btns button.active {
      transform: scale(1) translateX(0px);
      /* Adjust as needed */
    }
  }

  .switches select {
    width: 100%;
  }

  .keyboard .colors {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
  }

  .keyboard .colors .group div {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }

  .keyboard .colors .group button {
    width: 40px !important;
    height: 40px !important;
  }

  .details .keygroups .keyboards {
    margin-top: 10px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .details .keygroups .id-section {
    margin-top: 30px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .details .keygroups .id-section .id {
    width: 100%;
    max-width: 300px;
    padding: 8px 10px;
    font-size: 12px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1.2;
    text-align: left;
    vertical-align: middle;
  }

  .details .keygroups .id-section .btn-done {
    width: auto;
    min-width: 100px;
    margin-left: 10px;
    font-size: 14px;
    padding: 8px 16px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
  }

  .keyboard .legends .flex {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
  }

  .details .legends .detail,
  .details .legends .modifier .detail {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .keyboard .legends .flex .keyboard .legends .flex .modifier {
    width: 100%;
  }

  .details .legends img {
    width: 100%;
  }

  .details .legends .select {
    height: 100vh;
    max-height: initial;
    grid-template-columns: 1fr;
    right: 0;
    left: initial;
    transform: translate(0);
    top: 0;
    max-width: 80vw;
    padding-bottom: 100px;
  }

  .details .legends .ok {
    bottom: 0;
    width: 80vw;
    padding: 20px;
    background: #eee;
    right: 0px;
    left: initial;
    height: 90px;
    transform: translate(0);
  }

  .keyboard .btns button {
    min-width: initial !important;
  }
}

@media (max-width: 350px) {
  .keyboard .btns button:not(.btn-done) {
    /* Sólo a los botones que NO tengan la clase .btn-done */
    padding: 0;
    height: 30px;
    box-sizing: content-box;
    overflow: visible;
  }
}

@media (min-width: 768px) and (max-width: 1220px) {
  .keyboard .colors {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .keyboard .colors .group div {
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  section.header h3 {
    font-size: 22px;
    text-align: center;
  }
}

.nhi {
  pointer-events: none;
  cursor: not-allowed;
  /* opacity: 0.7; */
  filter: grayscale(1);
}

@media (min-width: 768px) {
  .keyboard .container {
    display: flex;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100vh;
    gap: 40px;
  }

  /* THIS IS YO MAKE THE KEYBOARD HAVE A MAX SIZE*/
  .keyboard .container {
    width: 100%;
    max-width: 1200px;
    max-height: 800px;
    /* Set your desired maximum height */
    overflow: auto;
    /* Allows scrolling if content exceeds the height */
    margin: 0 auto;
  }

  .keyboard svg {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  /*THIS IS TO MAKE THE KEYBOARD HAVE A GRADIENT AS BACKGROUND*/
  /* #keyboard {
  background: linear-gradient(45deg, #916ce9, #5370ff);
}
/*------*/
  .keyboard .btns {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 0%;
    background-image: linear-gradient(45deg, #916ce9, #5370ff);
    /* background-color: red; */
  }

  .keyboard .btns button {
    margin-bottom: 5px;
    width: 100%;
    min-width: 150px;
    max-width: 70%;
    border-radius: 5px;
    background-color: #222;
    color: #fff;
    border: none;
  }

  .keyboard .btns button.active {
    background-color: #a70f0e;
  }

  .keyboard .btns button:after {
    content: none;
  }

  .rights {
    padding: 30px 0;
    width: 100%;
  }

  .rights svg {
    height: 60%;
  }
}

.header {
  min-height: clamp(60px, 10vh, 150px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CSS for the header text */
.header h3 {
  font-family: 'Montserrat', sans-serif;
  /* Apply Montserrat font */
  font-weight: 700;
  /* Use bold (700) weight of Montserrat */
  font-size: clamp(20px, 4vh, 36px);
  /* Set the font size */
  text-transform: uppercase;
  color: #fff;
  /* Set the font color */
  /* Other styles for your header */
}

/* CSS for the gradient text */
.gradient-text {
  background-image: linear-gradient(to right, #916ce9, #5370ff);
  /* Define your gradient */
  -webkit-background-clip: text;
  /* Apply the gradient as text fill for WebKit-based browsers */
  background-clip: text;
  /* Standard property for compatibility */
  color: transparent;
  /* Set text color to transparent */
}

.container {
  padding: 0px !important;
}

.keyboard .btns button:after {
  content: none;
}

.keyboard .btns {
  background-image: linear-gradient(45deg, #916ce9, #5370ff);
  gap: 5px;
  /* background-color: red; */
}

.btns button {
  margin-bottom: 0px;
}

.keyboard .btns button {
  margin-bottom: -0%;
  height: 50px;
  width: 100%;
  min-width: 150px;
  max-width: 70%;
  border-radius: 0px;
  background-color: #000;
  color: #fff;
  border: none;
}

.keyboard .btns button.active {
  background-color: #FFFFFF;
}

@media (max-width: 768px) {
  .rights {
    padding: 20px;
  }

  .btns {
    padding: 20px;
  }
}

.btn-done:after {
  content: none !important;
}

.btn-done:hover {
  background-color: #000 !important;
  color: #fff !important;
}

/* Apply Exo font to .btn-done button */
/*This belongs to the "GET DESIGN ID BUTTON"*/
.btn-done {
  /* ==== New sizing rules ==== */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: auto !important;
  /* auto en lugar de 100% */
  min-width: 120px !important;
  /* evita que quede más recto que cuadrado */
  white-space: nowrap;
  /* no deje que el texto haga wrap */
  flex-shrink: 0 !important;
  /* evita que el flex container lo encoja */
  /* opcional: forza proporción ancho/alto */
  aspect-ratio: 3 / 1;

  /* ==== Your existing visual styles ==== */
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 18px 20px !important;
  border-radius: 0 !important;
  background-color: #000 !important;
  color: #555 !important;
  border: 1px solid #555 !important;
  cursor: pointer !important;
}

/* Apply Exo font to .checkout button */
a.btn.checkout {
  /* Your existing styles */
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 10px 20px !important;
  border-radius: 0px !important;
  border-color: #555 !important;
  color: #fff !important;
  text-decoration: none !important;

  /* Gradient background */
  background-image: linear-gradient(to right, #916ce9, #5370ff) !important;
}

/* Remove default link styles on hover */
a.btn.checkout:hover {
  color: #fff;
  /* Maintain text color as white on hover */
  background-color: #000;
  /* Maintain background color as black on hover */
}

a.btn {
  width: 100%;
  min-width: 150px;
  max-width: 70%;
  border-radius: 5px;
  background-color: #000;
  color: #fff;
  border: none;
  text-decoration: none;
  padding: 10px 50px;
  transition: all 0.2s ease-in;
}

a.btn:hover {
  background-color: #FFFFFF;
}

a.none {
  display: none;
}

.btns button {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px 20px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.btns button {
  overflow: visible;
}

.btns button.active {
  background-color: #007bff;
  color: #000;
  transform: scale(1.2) translateX(20px);
}

@keyframes zoomInExtendRight {
  0% {
    transform: scaleX(1) translateX(0);
    transform-origin: left;
    /* Set the transform origin to the left */
  }

  50% {
    transform: scaleX(1.2) translateX(-10px);
    transform-origin: left;
    /* Set the transform origin to the left */
  }

  100% {
    transform: scaleX(1.5) translateX(-20px);
    transform-origin: left;
    /* Set the transform origin to the left */
  }
}

/* Change font color on active state */
@keyframes changeTextColor {
  0% {
    color: #fff;
    /* Initial font color (white) */
  }

  100% {
    color: #000;
    /* Font color becomes black after animation */
  }
}

/*  .btns button:hover {
 /* animation: zoomOutExtendRight 0.3s ease-in-out; 
} */

/* Apply Exo font to buttons */
.btns button {
  font-family: 'Exo', sans-serif;
  /* Use Exo font */
}


@media (max-width: 764px) {
  .options .btn {
    width: fit-content;
    min-width: initial;
    max-width: 100%;
  }
}

@media (max-width: 345px) {
  .options .btn {
    margin-bottom: 20px;
  }
}

/* GET DESIGN ID BUTTON CODE START */
.id {
  margin: clamp(5px, 2vh, 30px) 0;
  font-weight: bolder;
  font-size: clamp(14px, 2.5vh, 20px) !important;
}

/* Apply Exo font to .id button */

.id {
  font-family: 'Montserrat', sans-serif;
  /* Use Exo font */
  font-weight: 700;
  /* Use bold (700) weight of Exo */
  font-size: 20px;
  /* Set font size */
  padding: 10px 20px;
  /* Set padding */
  border: none;
  /* Remove border */
  background-color: #fff;
  /* Set background color to white */
  color: #a70f0e;
  /* Set text color */
  cursor: pointer;
  /* Change cursor to pointer */
}

/* GET DESIGN ID BUTTON CODE END */

.header {
  gap: 40px;
  padding: 0 10px;
}

.header img {
  position: absolute;
  /* Position the logo absolutely */
  top: -10px;
  /* Stick the logo to the top */
  left: 112px;
  /* Stick the logo to the left */
  width: 200px;
  /* Set the width of your logo */
  margin: 20px;
  /* Add margin for spacing */
}

/* Case shadow styling */
.case-shadow {
  opacity: 0.3;
  filter: brightness(0.7);
}

/* Internal shadow below keycaps - positioned above case rectangle */
.internal-shadow {
  opacity: 0.9 !important;
  fill: #000000 !important;
  filter: url(#round-corners);
  display: block !important;
  visibility: visible !important;
  z-index: 20 !important;
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  pointer-events: none;
}


.logo-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  /* Removes the underline */
  border-radius: 5px;
}

.logo-button img {
  vertical-align: middle;
  /* Aligns the image in the middle of the button */
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 20px 10px;
    gap: 30px;
  }

  .header img {
    width: 120px;
  }
}


/* Hide elements with classes 'comment' and 'dampeners' */
.options .comment,
.options .dampners {
  display: none;
}

/* BUTTON FOR OUT-OF-STOCK COLORS */

.out-of-stock {
  position: relative;
}

.product-image-cross {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.product-image {
  z-index: 3;
}

/* END OF BUTTON FOR OUT-OF-STOCK COLORS */