/*
    Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
    - The "symbol *" part is to solve Firefox SVG sprite bug
 */
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
  all: unset;
  display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reapply the pointer cursor for anchor tags */
a,
button {
  cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol,
ul,
menu {
  list-style: none;
}

/* For images to not be able to exceed their container */
img {
  max-width: 100%;
}

/* removes spacing between cells in tables */
table {
  border-collapse: collapse;
}

/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
/* input,
textarea {
  -webkit-user-select: auto;
} */

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
  white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
  -webkit-appearance: revert;
  appearance: revert;
}

/* reset default text opacity of input placeholder */
::placeholder {
  color: unset;
}

/* fix the feature of 'hidden' attribute.
   display:revert; revert to element instead of attribute */
:where([hidden]) {
  display: none;
}

/* revert for bug in Chromium browsers
   - fix for the content editable attribute will work properly.
   - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element*/
:where([contenteditable]:not([contenteditable="false"])) {
  -moz-user-modify: read-write;
  -webkit-user-modify: read-write;
  overflow-wrap: break-word;
  /* -webkit-line-break: after-white-space;
  -webkit-user-select: auto; */
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable="true"]) {
  -webkit-user-drag: element;
}

/* BEGIN SITE CSS */

html {
  box-sizing: border-box;
  font-family: Verdana, 'Open-sans', sans-serif;
  font-size: .9rem;
}

body {
  max-width: 900px;
  margin: auto;
  background-color: #dbdffd;
}

.link-header {
  padding: 5px;
  margin 15px 0;
  background: #dbdffd;
  color: rgb(53, 52, 52);
  text-decoration: underline;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

#head-container {
  position: relative;
  flex-direction: row;
  background-color: #242F9B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-bottom: 1px solid #8fa0af;

}

.logo {
  max-width: 225px;
  padding-top: 20px;
  padding-bottom: 5px;
}

.smartlogo {
  max-width: 180px;
  padding-top: 20px;
  padding-bottom: 5px;
  padding-right: 10px;
}

.title {
  padding: 10px;
}

h1 {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 2.4em;
  letter-spacing: -2px;
  padding: 5px;
  color: #dbdffd;
  font-weight: 300;
}

.credits {
  font-size: .7em;
  position: absolute;
  bottom: 2px;
  right: 15px;
  color: #dbdffd;
  align-items: flex-end;
  align-content: flex-end;
}

#initial-entry {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #646FD4;
  padding: 20px 0;
  border-radius: 10px;

}

input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type=number] {
  width: 52px;
  background-color: #dbdffd;
  padding: 6px 6px;
  margin: 12px 12px 2px 0;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;

}

.input-label {
  font-size: 12px;
  padding-right: 5px;
  color: lightgrey;
}

.input-area {
  display: flex;

}

.data-confirmation {
  display: flex;
  justify-content: center;
  padding: 15px 5px;
  font-size: .9rem;
}

.suggested-param {
  padding-bottom: 6px;
  font-size: .8rem;
}

.suggest-value {
  font-size: 1.2rem;
  text-decoration: underline;
}

.customize-section {
  background-color: #646FD4;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  padding: 20px 0;
  border-radius: 10px;
}

.toggle-box {
  display: flex;
  flex-direction: row;
  padding-left: 15px;
}

.toggle {
  padding-top: 15px;
}

.lens-design-section {
  display: flex;
  flex-direction: row;
  background-color: #646FD4;
  border-top: 1px solid #8fa0af;
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 10px;
}

.zone-display {
  font-size: 1.1rem;
  font-weight: 600;
}

.stack {
  padding-bottom: 0px;
}

.instruct-custom {

  padding-bottom: 10px;
  padding-left: 5px;
  max-width: 250px;
  font-size: .9rem;
  color: #323131;
}

.elevation-input {
  display: flex;
  flex-direction: column;
}

.elevation-zones {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.zone-size {
  display: inline-block;
  margin: 10px;
}

.zone-headers {
  padding: 8px 8px;
}

.lens-specs {
  display: flex;
  flex-direction: column;
  flex-grow: 2;
  padding-right: 20px;
}

.lens-specs-display {
  border-radius: 30px;
  -moz-box-shadow: 10px 10px 5px #111a68;
  -webkit-box-shadow: 10px 10px 5px #111a68;
  box-shadow: 10px 10px 5px #111a68;
}

.zone-labels:first-of-type {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.zone-labels {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  background-color: #242F9B;
  color: whitesmoke;
}

.zone-curves {
  background-color: #9BA3EB;
  color: rgb(53, 49, 49);
  font-weight: 600;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  border-bottom: .5px solid #8fa0af;
  font-size: 1.2rem;
  padding: 0;
}


.lens-overall {
  background-color: #9BA3EB;
  color: rgb(53, 49, 49);
  font-weight: 600;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  font-size: 1.3rem;
  padding: 20px;
}

.last-curves {
  border-bottom-left-radius: 10PX;
  border-bottom-right-radius: 10px;
}

.curves {
  padding: 20px;
  width: 100px;
}

.fetch {
  display: flex;
  flex-direction: column;
  padding: 20px 75px 1px 75px;
  align-items: flex-end;
}

.angles-font {
  font-size: .9rem;
  min-width: 110px;
}

.diop-output {
  font-size: .8rem;
  color: #444343;
}

.curve-offset-font {
  font-size: 1.3rem;
}

.lens-buttons {
  display: flex;
}

.min {
  justify-items: baseline;
}

.spacer {
  height: 2px;
}

.flat-steep {
  font-size: 1.2rem;
}

/* BUTTONS */
.button-class {
  font-size: 12px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  text-align: center;
  width: 100px;
  height: 30px;
  border-width: 1px;
  color: #242F9B;
  border-color: #dcdcdc;
  font-weight: bold;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  box-shadow: inset 0px 1px 0px 0px #ffffff;
  text-shadow: inset 0px 1px 0px #ffffff;
  background: linear-gradient(#ededed, #dfdfdf);
}

.button-class:hover {
  background: linear-gradient(#dfdfdf, #ededed);
  cursor: pointer;
  outline: none;
  border-color: #9ecaed;
  box-shadow: 0 0 10px #242F9B;

}


.button-class:active {
  transform: translateY(2px);
}

.button-class:focus-visible {
  background: linear-gradient(#dfdfdf, #ededed);
  outline: none;
  border-color: #9ecaed;
  box-shadow: 0 0 10px #242F9B;
}

.clear-form {
  color: #9b3a24;
}

/* CHECKBOX TOGGLE */
.b-contain *,
.b-contain *::before,
.b-contain *::after {
  box-sizing: content-box !important;
}

.b-contain input {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.b-contain span {
  line-height: 1.5;
  font-size: 1rem;
  font-family: inherit;
}

.b-contain {
  display: table;
  position: relative;
  padding-left: 2rem;
  cursor: pointer;
  margin-bottom: 0.4rem;
}

.b-contain input[type="checkbox"]~.b-input {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.25rem;
  width: 1.25rem;
  background: #f1f5f9;
  transition: background 250ms;
  border: 1px solid #94a3b8;
  border-radius: 0.2rem;
}

.b-contain input[type="radio"]~.b-input {
  position: absolute;
  top: 0;
  left: 0;
  height: 1.25rem;
  width: 1.25rem;
  background: #f1f5f9;
  transition: background 250ms;
  border: 1px solid #94a3b8;
  border-radius: 3rem;
}

.b-contain input[type="checkbox"]~.b-input::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 0.3rem;
  height: 0.6rem;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transition: background 250ms;
  transform: rotate(45deg);
}

.b-contain input[type="radio"]~.b-input::after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 4px;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3rem;
  background: #ffffff;
  transition: background 250ms;
}

.b-contain input[type="checkbox"]:disabled~.b-input::after {
  border-color: #ffffff;
}

.b-contain input:checked~.b-input::after {
  display: block;
}

.b-contain:hover input[type="checkbox"]:not([disabled])~.b-input,
.b-contain input[type="checkbox"]:focus~.b-input {
  background: #e2e8f0;
  border-color: #64748b;
}

.b-contain:hover input[type="radio"]:not([disabled])~.b-input,
.b-contain input[type="radio"]:focus~.b-input {
  background: #e2e8f0;
  border-color: #64748b;
}

.b-contain input:focus~.b-input {
  box-shadow: 0 0 0 2px #60a5fa;
}

.b-contain input[type="checkbox"]:checked~.b-input {
  background: #3b82f6;
  border-color: #1d4ed8;
}

.b-contain input[type="radio"]:checked~.b-input {
  background: #3b82f6;
  border-color: #1d4ed8;
}

.b-contain input[type="checkbox"]:disabled~.b-input,
.b-contain input[type="radio"]:disabled~.b-input {
  opacity: 0.5;
  cursor: not-allowed;
}

.b-contain input[type="radio"]:disabled~.b-input::after {
  background: #ffffff;
}

.b-contain:hover input[type="checkbox"]:not([disabled]):checked~.b-input,
.b-contain input[type="checkbox"]:checked:focus~.b-input {
  background: #2563eb;
  border-color: #1e40af;
}

.b-contain:hover input[type="radio"]:not([disabled]):checked~.b-input,
.b-contain input[type="radio"]:checked:focus~.b-input {
  background: #2563eb;
  border-color: #1e40af;
}

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}


.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}