/*! normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
* {-webkit-box-sizing:border-box; box-sizing:border-box;}
/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
  min-width: 320px;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
          box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

.ad {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 2rem auto;
  max-width: 728px;
  height: 90px;
  font-size: 3rem;
  font-weight: 700;
  background-color: hsl(0, 0%, 90%);
}

.ad::before {
  content: "Advertising";
  color: hsl(0, 0%, 80%);
}

.app {
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 2rem 0;
  margin: 0 auto;
  font-size: 1.6rem;
  min-height: 100vh;
  box-sizing: border-box;
  
}
.app-header {
  margin-bottom: 3rem;
  min-width: 100%;
}

.app-logo {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  
    -webkit-box-flex: none;
    -webkit-flex: 0 0 25vmin;
        -ms-flex: 0 0 25vmin;
            flex: 0 0 25vmin;
            min-height:25vmin;
  margin: 0 auto;
  max-width: 50rem;
  width: 100%;
  background:url('../images/logo.svg') no-repeat 50% 50%;
  background-size:contain;
}

.app-description {
  margin: 1rem auto 1rem;
  max-width: 90rem;
  text-align: center;
  color: hsl(0, 0%, 30%);
}

.app-logo svg,
.app-logo img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
}

.app-action {
  display: block;
  width: 40rem;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.app-result {
  -webkit-box-flex:1 0 auto;
  -webkit-flex:1 0 auto;
      -ms-flex:1 0 auto;
          flex:1 0 auto;
  -webkit-align-self: stretch;
      -ms-flex-item-align: stretch;
          align-self: stretch;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  max-height: 100vh;
  min-height: 45rem;
}

.app-result .result {
  -webkit-box-flex:1;
  -webkit-flex:1;
      -ms-flex:1;
          flex:1;
  width: 100%;
  max-height: 100%;
}

.btn {
  display: inline-block;
  padding: 1rem;
  color: #FFF;
  background-color: #D6606D;
  border: none;
  -webkit-border-radius: 1rem;
          border-radius: 1rem;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  cursor: pointer;
}

.btn:active {
  background-color: rgb(204, 96, 108);
  background-color: rgb(204, 96, 108);
}

.btn.m--secondary {
  background-color: #DD9545;
}

.btn.m--secondary:active {
  background-color: rgb(204, 140, 69);
  background-color: rgb(204, 140, 69);
}

.btn.m--large {
  padding: 1.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

.btn i:not(:only-child) {
  margin-right: 1rem;
}

.number {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
}

.number-label {
  -webkit-box-flex:1 0 auto;
  -webkit-flex:1 0 auto;
      -ms-flex:1 0 auto;
          flex:1 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin-right: 1rem;
}

.number-field {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  height: 3.4rem;
  background-color: hsl(182.8125, 33.6842105263%, 95%);
  background-color: hsl(182.8125, 33.6842105263%, 95%);
  border: 1px solid hsl(182.8125, 33.6842105263%, 85%);
  border: 1px solid hsl(182.8125, 33.6842105263%, 85%);
  -webkit-border-radius: 1rem;
          border-radius: 1rem;
}

.number-btn {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  line-height: 1;
  padding: 0 1rem;
  font-weight: 700;
  color: #80BDC0;
  background-color: transparent;
}

.number-btn:active {
  color: rgb(128, 176, 179);
  color: rgb(128, 176, 179);
  background-color: hsl(182.8125, 33.6842105263%, 80%);
  background-color: hsl(182.8125, 33.6842105263%, 80%);
}

.number input {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  width: 100%;
  padding: 0;
  text-align: center;
  line-height: 1;
  background-color: transparent;
  border: none;
  -moz-appearance: textfield;
}

.number input::-webkit-outer-spin-button,
.number input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number.m--stepper input {
  border-width: 1px 0;
  -webkit-border-radius: 0;
          border-radius: 0;
}

.options-row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: stretch;
  -webkit-align-items: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}

.options-group {
  overflow: hidden;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

.options-group.m--decorated {
  margin: 0.5rem;
  border: 1px solid #80BDC0;
  -webkit-border-radius: 1rem;
          border-radius: 1rem;
}

.options[data-type="integer"] .m--type-fractional { display: none }

.options[data-type="fractional"] .m--type-integer { display: none }

.options[data-limitby="range"] .m--limitby-length { display: none }

.options[data-limitby="length"] .m--limitby-range { display: none }

.options-item {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  padding: 1rem;
}

.options-group.m--quantity .options-item {
  -webkit-box-flex:1 0 auto;
  -webkit-flex:1 0 auto;
      -ms-flex:1 0 auto;
          flex:1 0 auto;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.options-group.m--quantity .number-field {
  height: 100%;
  border-width: 0 0 0 1px;
  -webkit-border-top-left-radius: 0;
          border-top-left-radius: 0;
  -webkit-border-bottom-left-radius: 0;
          border-bottom-left-radius: 0;
}

.options-submit {
  text-align: center;
}

.result {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
      -ms-flex-direction: column;
          flex-direction: column;
  /*height: 100%;*/
  width: 100%;
  padding: 2rem 0 0 0;
}

.result-wrap {
  -webkit-box-flex:1;
  -webkit-flex:1;
      -ms-flex:1;
          flex:1;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  min-height: 1px;
  padding: 0;
}

.result-inner {
  -webkit-box-flex:1 0 auto;
  -webkit-flex:1 0 auto;
      -ms-flex:1 0 auto;
          flex:1 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  /*display: grid;
  grid-gap: 1rem 2rem;
  justify-content: space-between;
  box-sizing: border-box;
  height: 100%;
  overflow: auto;*/
  width: 100%;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  overflow: auto;
  padding: 0 2rem;
}

.result-inner span {
  text-align: right;
  font: 700 1.6rem 'Arial Rounded MT Bold', sans-serif;
  padding:5px;
  min-width: -webkit-calc(100% / 10);
  min-width: calc(100% / 10);
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.result-inner span.result-inner-msg {
  width: 100%;
  text-align: center;
}

    @media (max-width: 849px) {
        .result-inner span {
            min-width: -webkit-calc(100% / 8);
            min-width: calc(100% / 8);
        }
    }
    @media (max-width: 460px) {
        .result-inner span {
            min-width: -webkit-calc(100% / 6);
            min-width: calc(100% / 6);
        }
    }
    @media (max-width: 320px) {
        .result-inner span {
            min-width: -webkit-calc(100% / 4);
            min-width: calc(100% / 4);
        }
    }
    
.result-btns {
  /*display: flex;
  justify-content: center;*/
  text-align: center;
}

.result-btns .btn {
  padding-left: 2rem;
  padding-right: 2rem;
  display: inline-block;
  vertical-align: top;
}

.result-btns .btn + .btn {
  margin-left: 1rem;
}

.toggle {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

.toggle.m--radio.m--checked {
  color: #fff;
  background-color: #80BDC0;
}

.toggle.m--radio.m--checked .radio-fake {
  color: #fff;
}

.toggle input {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.checkbox-fake,
.radio-fake {
  margin-right: 1rem;
  color: rgb(128, 200, 204);
  color: rgb(128, 200, 204);
  -webkit-border-radius: 50%;
          border-radius: 50%;
}

.radio-fake {
  font-size: 2rem;
}

.checkbox-fake {
  font-size: 2.5rem;
}

.checkbox-fake.m--active,
.radio-fake.m--active {
  display: none;
}

input:checked ~ .checkbox-fake:not(.m--active),
input:checked ~ .radio-fake:not(.m--active) {
  display: none;
}

input:checked ~ .checkbox-fake.m--active,
input:checked ~ .radio-fake.m--active {
  display: block;
}

@font-face {
  font-family: 'Arial Rounded MT Bold';
  src: url('../fonts/arlrdbd-webfont.woff2') format('woff2'), url('../fonts/arlrdbd-webfont.woff') format('woff');
}

:root {
  /*--font-primary: 'Arial Rounded MT Bold', sans-serif;
  --color-neptune: #80BDC0;
  --color-neptune-lighter: hsl(182.8125, 33.6842105263%, 87.7450980392%);
  --color-neptune-lighter: hsl(182.8125, 33.6842105263%, 87.7450980392%);
  --color-brandy-punch: #DD9545;
  --color-chestnut-rose: #D6606D;*/
  font-size: 62.5%;
  font-weight: normal;
  font-family: 'Arial Rounded MT Bold', sans-serif;
}

:focus {
  outline: none;
}

.m--size-short {
  display: none;
}

/* MEDIA  > 850 */
@media (min-width: 850px) {
  .app {
    width: 85rem;
    /*max-height: 85rem;*/
  }
  .app-logo {
    padding-bottom: 10px;
  }
  .app-action {
    margin-top: 2rem;
  }

  .app-result {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .btn:focus {
    -webkit-box-shadow: 0 0 0 0.5rem rgba(214, 96, 109, 0.25);
            box-shadow: 0 0 0 0.5rem rgba(214, 96, 109, 0.25);
    box-shadow: 0 0 0 0.5rem rgba(214, 96, 109, 0.25);
  }

  .btn.m--secondary:focus {
    -webkit-box-shadow: 0 0 0 0.5rem rgba(221, 149, 69, 0.25);
            box-shadow: 0 0 0 0.5rem rgba(221, 149, 69, 0.25);
    box-shadow: 0 0 0 0.5rem rgba(221, 149, 69, 0.25);
  }
  .number-btn:focus {
    -webkit-box-shadow: none;
            box-shadow: none;
    background-color: hsl(182.8125, 33.6842105263%, 90%);
    background-color: hsl(182.8125, 33.6842105263%, 90%);
  }

  .number input:focus {
    background-color: hsl(182.8125, 33.6842105263%, 90%);
    background-color: hsl(182.8125, 33.6842105263%, 90%);
  }
  .options-row {
    min-height: 13rem;
    height: 120px;
  }
  
  .options-group {}
  
  .options-group.m--type,
  .options-group.m--range-length,
  .options-group.m--length,
  .options-group.m--limits,
  .options-group.m--bounds-frac-length,
  .options-group.m--no-repeats-quantity {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .options-group.m--range,
  .options-group.m--length,
  .options-group.m--bounds-frac-length {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
  }

  .options-group.m--type .options-item,
  .options-group.m--range-length .options-item,
  .options-group.m--limits .options-item,
  .options-group.m--bounds-frac-length .options-group,
  .options-group.m--no-repeats-quantity .options-group {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
    max-height: 50%;
  }

  .options-group.m--no-repeats-quantity .options-group {
      max-height:calc(50% - 1rem);
      min-height:1px;
  }
  
  .options-group.m--range-length {
    -webkit-border-top-right-radius: 0;
            border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
            border-bottom-right-radius: 0;
  }

  .options-group.m--range-length .options-item {
    padding-right: 2rem;
  }

  .options-group.m--range,
  .options-group.m--length {
    margin-left: -0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-left-width: 0;
    -webkit-border-top-left-radius: 0;
            border-top-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
            border-bottom-left-radius: 0;
  }

  .options[data-type="integer"] .options-group.m--bounds-frac-length {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .options[data-type="integer"] .options-group.m--length {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .options[data-type="fractional"] .options-group.m--length-fractional {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .result-back {
    display: none;
  }

  .result {
    overflow: hidden;
    border: 1px solid #DD9545;
    -webkit-border-radius: 1rem;
            border-radius: 1rem;
  }

  .result-btns {
    padding: 1rem 0;
    background-color: rgba(221, 149, 69, 0.15);
    background-color: rgba(221, 149, 69, 0.15);
  }

  .result-inner {
    background-color: #fff;
  }
  .toggle.m--reverse .checkbox-fake,
  .toggle.m--reverse .radio-fake {
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
        -ms-flex-order: 1;
            order: 1;
    margin-right: 0;
    margin-left: 1rem;
  }

  .toggle input:focus ~ .checkbox-fake,
  .toggle input:focus ~ .radio-fake:not(.m--active) {
    -webkit-box-shadow: 0 0 0 0.5rem hsl(182.8125, 33.6842105263%, 90%);
            box-shadow: 0 0 0 0.5rem hsl(182.8125, 33.6842105263%, 90%);
    box-shadow: 0 0 0 0.5rem hsl(182.8125, 33.6842105263%, 90%);
  }

  .toggle input:focus ~ .radio-fake.m--active {
    -webkit-box-shadow: 0 0 0 0.5rem hsl(182.8125, 33.6842105263%, 52.7450980392%);
            box-shadow: 0 0 0 0.5rem hsl(182.8125, 33.6842105263%, 52.7450980392%);
    box-shadow: 0 0 0 0.5rem hsl(182.8125, 33.6842105263%, 52.7450980392%);
  }
}

/* MEDIA  < 849 */
@media (max-width: 849px) {
  .ad {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .app {
    overflow: hidden;
    padding: 0;
  }

  .app-header,
  .app-result {
    overflow: hidden;
  }

  .app-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    margin-bottom: 0;
    padding: 1rem;
  }

  .app-logo {
    margin-bottom: 2rem;
    max-height: 10rem;
    -webkit-align-self: center;
        -ms-flex-item-align: center;
                -ms-grid-row-align: center;
            align-self: center;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .app-options {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-justify-content: space-around;
        -ms-flex-pack: distribute;
            justify-content: space-around;
  }

  .app-action {
    width: -webkit-calc(100% - 1rem);
    width: calc(100% - 1rem);
  }
  .btn.m--large {
    padding: 1.5rem;
    font-size: 2rem;
  }
  .result {
    width: 100%;
    height: 100%;
    padding: 0px;
  }

  .result-back {
    -webkit-border-radius: 0;
            border-radius: 0;
  }
  .result-wrap {
    padding: 1rem 0;
    max-height: calc(100vh - 100px);
  }
  .result-inner {
    -webkit-border-radius: 0;
            border-radius: 0;
    padding: 0 1rem;
  }

  .result-btns {
    display: block;
    margin-top: 0;
  }
  .result-btns:after {clear:both; content:""; display:block;}
  .result-btns .btn {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
    display: block;
    width: 50%;
    float: left;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    -webkit-border-radius: 0;
            border-radius: 0;
  }

  .result-btns .btn + .btn {
    margin-left: 0;
    border-left: 1px solid rgb(157, 115, 69);
    border-left: 1px solid rgb(157, 115, 69);
  }
  .toggle {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .toggle.m--radio {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .radio-fake {
    display: none !important;
  }
}


@media (min-width: 560px) and (max-width: 849px) and (max-height: 666px) {
  .app-title {
    margin-bottom: 3rem;
  }
  .number.m--stepper input {
    width: 4rem;
  }
  .options-row {
    min-height: 120px;
    -webkit-box-flex: none;
    -webkit-flex: 0 0 15rem;
        -ms-flex: 0 0 15rem;
            flex: 0 0 15rem;
  }

  .options-group.m--type,
  .options-group.m--range-length,
  .options-group.m--range,
  .options-group.m--bounds-frac-length,
  .options-group.m--length-fractional,
  .options-group.m--no-repeats-quantity {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .options-group.m--range,
  .options-group.m--length,
  .options-group.m--type .options-item,
  .options-group.m--range-length .options-item,
  .options-group.m--limits .options-item,
  .options-group.m--frac-length .options-item,
  .options-group.m--length-integer .options-item,
  .options-group.m--length-fractional .options-item,
  .options-group.m--no-repeats-quantity .options-group {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
  }

  .options-group.m--range {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .options-group.m--range-length {
    -webkit-border-top-right-radius: 0;
            border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
            border-bottom-right-radius: 0;
  }

  .options-group.m--range,
  .options-group.m--length {
    margin-left: -0.5rem;
    border-left-width: 0;
    -webkit-border-top-left-radius: 0;
            border-top-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
            border-bottom-left-radius: 0;
  }

  .options[data-type="integer"] .options-group.m--length {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }

  .options-group.m--length-fractional {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
  }
}


@media (max-width: 849px) and (min-height: 667px), (max-width: 559px)  {

  .app {
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .app-header {
    max-width: 48rem;
    min-width: 1px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
  }

  .app-result .result {
    max-width: 480rem;
    max-height: 100vh;
    width: 100%;
    padding: 0px;
  }
  .result-wrap {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto; 
    max-height:calc(100vh - 150px);
  }
}

@media (min-width: 660px) and (max-width: 849px) and (max-height: 666px) {
  .app {
    -webkit-align-content: center;
        -ms-flex-line-pack: center;
            align-content: center;
  }

  .app-header {
    width: 66.7rem;
    -webkit-align-self: center;
        -ms-flex-item-align: center;
                -ms-grid-row-align: center;
            align-self: center;
  }
}

@media (max-width: 849px) and (min-height: 667px), (max-width: 559px) {
  .number.m--stepper .number-label,
  .number.m--stepper .number-field {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
  }

  .number.m--stepper .number-label {
    margin-left: 1rem;
  }

  .number.m--stepper .number-field {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
        -ms-flex-pack: end;
            justify-content: flex-end;
  }
  .options-row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .options-group.m--type .options-item,
  .options-group.m--range-length .options-item,
  .options-group.m--limits .options-item,
  .options-group.m--no-repeats .options-item {
    -webkit-box-flex:1 0 50%;
    -webkit-flex:1 0 50%;
        -ms-flex:1 0 50%;
            flex:1 0 50%;
    max-width: 50%;
    -webkit-box-sizing:border-box;
            box-sizing:border-box;
  }
  
  .options-group.m--range,
  .options-group.m--length {
    height: 17rem;
  }

  .options-group.m--range {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  .options-group.m--reverse.m--no-repeats .options-item {
    max-width: 100%;  
  }
  
  .options[data-type="integer"] .options-group.m--limits,
  .options[data-type="integer"] .options-group.m--bounds-frac-length {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .options[data-type="integer"] .options-group.m--bounds-frac-length {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    border-top: 1px solid hsl(182.8125, 33.6842105263%, 87.7450980392%);
  }

  .options[data-type="fractional"] .options-group.m--bounds-frac-length {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .options-group.m--frac-length {
    border-width: 1px 0;
    border-style: solid;
    border-color: hsl(182.8125, 33.6842105263%, 87.7450980392%);
  }

  .options-group.m--frac-length .options-item,
  .options-group.m--frac-length .options-item .number-label,
  .options-group.m--length-fractional .options-item,
  .options-group.m--length-fractional .options-item .number-label {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
  }

  .options-group.m--frac-length .options-item .number-label,
  .options-group.m--length-integer .options-item .number-label,
  .options-group.m--length-fractional .options-item .number-label {
    margin-left: 0;
  }

  .options-group.m--frac-length .options-item .number-field,
  .options-group.m--length-integer .options-item .number-field,
  .options-group.m--length-fractional .options-item .number-field {
    -webkit-box-flex: none;
    -webkit-flex: 0 1 auto;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;
  }

  .options-group.m--bounds {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .options-group.m--no-repeats,
  .options-group.m--length-integer {
    -webkit-box-flex:1 0 50%;
    -webkit-flex:1 0 50%;
        -ms-flex:1 0 50%;
            flex:1 0 50%;
    -webkit-box-sizing:border-box;
            box-sizing:border-box;
  }
  .options-group.m--quantity {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
  }
  
  .options-group.m--length-integer {
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
  }

  .options-group.m--length-fractional {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  .options-group.m--length-fractional .options-item + .options-item {
    border-top: 1px solid hsl(182.8125, 33.6842105263%, 87.7450980392%);
  }
  
  .options-group.m--limits .options-item:first-child {
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
        -ms-flex-pack: end;
            justify-content: flex-end;
  }
  
  .options-group.m--limits .number-label {
    -webkit-box-flex: none;
    -webkit-flex: none;
        -ms-flex: none;
            flex: none;
  }
  
  .options-group.m--frac-length.m--type-fractional .options-item .number-label,
  .options-group.m--length-fractional .options-item .number-label {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
    max-width: 50%;
    -webkit-box-pack: end;
    -webkit-justify-content: flex-end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-sizing:border-box;
            box-sizing:border-box;
    margin-right: 0;
    padding-right: 2rem; 
  }
  
  .result-btns {
    display:block;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .result-btns .btn {
      display: block;
      width: auto;
      float: none;
  }
  .result-btns .btn + .btn {
    border-top: 1px solid rgb(157, 115, 69);
    border-top: 1px solid rgb(157, 115, 69);
  }
}

@media (max-width: 340px) and (max-aspect-ratio: 13/9) {
  .options-group.m--quantity .m--size-auto { display: none }
  .options-group.m--quantity .m--size-short { display: inherit }
}

@media (min-width: 560px) and (max-width: 659px) and (max-height: 666px) {
  .options-group.m--limits .options-item:first-child {
    padding-right: 0;
  }

  .options-group.m--limits .options-item:first-child .number-label {
    display: none;
  }

  .options-group.m--limits .options-item:last-child .number-label {
    margin-left: 0;
    text-transform: lowercase;
  }

  .options-group.m--limits .options-item input {
    width: 6.5rem !important;
  }

  .options-group.m--length-integer {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
  }

  .options-group.m--bounds .m--size-auto,
  .options-group.m--frac-length .m--size-auto,
  .options-group.m--length-fractional .m--size-auto { display: none }
  .options-group.m--bounds .m--size-short,
  .options-group.m--frac-length .m--size-short,
  .options-group.m--length-fractional .m--size-short { display: inherit }
}

@media (max-width: 376px) {
    .app-result {height: 100vh;}
} 
@media (max-width: 668px) {
    .app-result {height: 100vh;}
}
   
@media (max-width: 320px) {
  .options-group.m--frac-length.m--type-fractional .options-item .number-label {
    -webkit-box-flex:1 0 auto;
    -webkit-flex:1 0 auto;
        -ms-flex:1 0 auto;
            flex:1 0 auto;
    max-width: none;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-sizing:border-box;
            box-sizing:border-box;
  }
}



/* MINIMIZE ad & description */
/* horizontal mode */
    /* 850+ */
    @media (min-width: 850px) and (max-height: 510px) {
        .app-description {display:none;}
        .app-logo {padding-bottom:0px;}
    }
    @media (min-width: 850px) and (max-height: 445px) {
        .ad {display:none;}
        .app-logo {padding-bottom:20px;}
    }

    /* 559 - 849 */
    @media (min-width: 559px) and (max-width: 849px) and (max-height: 495px) {
        .app-description {display:none;}
    }
    @media (min-width: 559px) and (max-width: 849px) and (max-height: 435px) {
        .ad {display:none;}
    }

/* vertical mode */
    /* 559 - 849 */
    @media (min-width: 559px) and (max-width: 849px) and (min-height: 667px) and (max-height: 750px) {
        .app-description {display:none;}
    }
    @media (min-width: 559px) and (max-width: 849px) and (min-height: 667px) and (max-height: 685px) {
        .ad {display:none;}
    }
    
    /* - 558 */
    @media (max-width: 558px) and (max-height: 760px) {
        .app-description {display:none;}
    }
    @media (max-width: 558px) and (max-height: 700px) {
        .ad {display:none;}
    }
    

.ha-wrapper {
margin: 30px 0 0 0;
    /* margin: 30px 0; */
    padding: 0;
}
.ha {
    max-width: 728px;
    max-height: 100px;
    margin: 0 auto;
    overflow: hidden;
}
.hl {
    width: 95%;
    max-width: 728px;
    margin: 0 auto;
    overflow: hidden;
}
.info {
    color: hsl(0, 0%, 30%);
    font-size: 1.6rem;
    max-width: 90rem;
    margin: 0 1rem;
}
.info h3 {
    color: #6476b2;
}
.hads {
    width: 100%;
    max-width: 900px;
    padding: 0 15px;
    margin: 15px auto;
    overflow: hidden;
    text-align: center;
}
