
*, *::before, *::after {
  box-sizing: border-box;
}

#open-modal {
    position: fixed;
    padding: 5px;
    bottom: 20px;
    right: 20px;
    background: #0a7f67;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

#open-modal--icon {
  pointer-events: none;
  width: 100%;
}

#setting-active-icon {
  pointer-events: none;
    position: absolute;
    height: 25px;
    right: -5px;
    bottom: 4px;
    display: none;
}

#accessibility-modal {
    display: none;
    right: 20px;
    position: fixed;
    top: 0; left: 0;
    right: 20px;
    width: 100%; height: 100%;
    z-index: 4;
    justify-content: right;
    align-items: center;
}

#accessibility-settings {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 516px;
  text-align: center;
  margin-right: 30px;
  border: solid 3px #0a7f67;
  user-select: none;
  color:black;
}

.slider-tile__input {
  margin: 1px;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  background-color: transparent;

  &::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
  } 

  &::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
  }

  &::-moz-range-track {
    height: 18px;
    background: #ddd;
    border-radius: 4px;
  }

  &::-webkit-slider-runnable-track {
    height: 18px;
    background: #ddd;
    border-radius: 4px;
  }
}

.slider-tile {
  width: 230px;
  height: 110px;
  line-height: 1;
}

.slider-tile__reset {
  width: max-content;
  color: black;
  &:hover {
    transform: scale(1.1);
  }
}

.slider-tile__heading, .slider-tile__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.slider-tile__input-row {
  gap: 0px;
}

.slider-tile__label, .button-tile__label, .aronda-label, .slider-tile__value-label  {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;;
  display: inline-block;
  line-height: 1.3;
  pointer-events: none;
}
.slider-tile__icon, .button-tile__icon {
  display:inline-block;
  width: 40px;
  height:40px;
}

.slider-tile__reset{
  background: none;
  cursor: pointer;
  border: none;
}

.slider-tile__value-label {
  width: 45px;
}

.slider-tile__increase, .slider-tile__decrease {
  height: 30px;
  width: 30px;
  border-radius: 100%;
  background-color: #0a7f67;
  border: 0px;
  color: white;
  font-size: 0.6rem;
  z-index: 3;
  transition: transform 0.3s ease;
  &:hover {
    transform: scale(1.15);
  }
}


.slider-tile, .button-tile {
  padding: 10px;
  border: solid 1px lightgray;
  gap: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  transition: 0.2s;
  
  &:hover {
    border-color: #0a7f68b0;
  }
}

.button-tile {
  position: relative;
  background: transparent;
  width: 110px;
  height: 110px;
  align-items: center;
  cursor: pointer;
  color:black
}

.tiles {
  display: flex;
  flex-wrap: wrap;          
  gap: 10px;                 
}

.footer {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
}

#reset-button {
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 80%;
  background-color: #0a7f67;
  color: white;
  padding: 10px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  transition: background-color 0.3s ease;

  &:hover {
    color: white;
    background-color: #085141;
  }
}
.slider-tile__reset, #reset-button{
  font-size: 0.9rem;
}

.aronda-label {
  margin:0;
  font-size: 0.8rem;
}
.reset-button__icon {
  width: 20px;
  height: 20px;
}

.accessibility-settings__title {
  font-size: 1.4rem;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 2rem;
}

#closeModal {
  background: none;
  font-size: 1.8rem;
  border: 0;
  position: absolute;
  right: 15px;
  top: 15px;
  padding: 0;
  cursor: pointer;
  color: black;
}

#simple-font.button-tile--active .button-tile__icon {
  content: url('../icons/simple-font-w.svg');
}

#more-contrast.button-tile--active .button-tile__icon {
  content: url('../icons/more-contrast-w.svg');
}

#highlight-links.button-tile--active .button-tile__icon {
  content: url('../icons/highlight-links-w.svg');
}

#bigger-cursor.button-tile--active .button-tile__icon {
  content: url('../icons/bigger-cursor-w.svg');
}

#saturation.button-tile--active .button-tile__icon {
  content: url('../icons/saturation-w.svg');
}

#read-text.button-tile--active .button-tile__icon {
  content: url('../icons/read-text-w.svg');
}

#font-size.slider-tile--value-changed .slider-tile__icon {
  content: url('../icons/font-size-w.svg');
}

#line-height.slider-tile--value-changed .slider-tile__icon {
  content: url('../icons/line-height-w.svg');
}

#word-spacing.slider-tile--value-changed .slider-tile__icon {
  content: url('../icons/word-spacing-w.svg');
}


.slider-tile--value-changed, .button-tile--active {
  background-color: #0a7f67;
  color: white;

  .slider-tile__reset {
    color: white;
  }

  .slider-tile__increase, .slider-tile__decrease {
    color: #0a7f67;
    background-color: white;
  }

}
a.highlighted {
  border: solid 2px rgb(248 0 0) !important;
  text-decoration: underline !important;
  padding: 3px;
}

.high-contrast-mode {
  background-color: #fff !important;
  color: #000 !important;
}

button {
  cursor: pointer;
}

@media (max-width: 768px) {
  .tiles {
    justify-content: center;
  }

  #accessibility-settings {
    width: 311px;
    height: 70vh;
    overflow: scroll;
    margin-right: 0;
    
  }

  #accessibility-modal {
    justify-content: center;
  }

  .footer {
    flex-direction: column-reverse;
  }

  .slider-tile__input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    background-color: #ccc;
  }
  .button-tile {
    width: 120px;
    height: 120px;
  }

  .slider-tile {
    width: 250px;
    height: 120px;
    line-height: 1;
  }
}