*,:after,:before {
    box-sizing: border-box
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -mox-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -ms-tap-highlight-color: rgba(0,0,0,0);
    -moz-tap-highlight-color: rgba(0,0,0,0);
    font-size: 20px;
}

body {
    padding: 0;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    /*font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif;*/
    font-family: monospace;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff
}

#footer {
    width: 100%;
    position: relative;
}

#main, .main {
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main, .main, nav {
    width: 100%;
    margin: auto;
    position: relative;
    max-width: 900px;
    padding: 20px;
}

article,aside,figcaption,figure,footer,header,hgroup,main,nav,section {
    display: block
}

hr {
    border: 1px solid #fff;
}

input, button, textarea {
    border-radius: 22px;
    outline: none;
    border: 2px solid #fb8500;
    padding: 5px;
}

input:-internal-autofill-selected {
    background-color: #fff!important;
}

input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    display: none;
}

textarea {
    resize: vertical;
}

.principale {
    border-radius: 31px;
    outline: none;
    border: 2px solid #fb8500;
    padding: 11px;
    font-size: 20px;
    min-width: 400px;
    min-height: 49px;
}

button {
    background: #fb8500;
    color: #fff;
    transition: .3s ease;
}
button:hover {
    background: #a53d00;
    border: 2px solid #a53d00;
}
input:focus, input:hover, textarea:focus, textarea:hover, .principale:focus, .principale:hover {
    border: 2px solid #a53d00;
}

.slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  height: 15px;
  border-radius: 50px;
  border: none!important;
  padding: 0;
  background: #dedede;
  -webkit-transition: .2s;
  -mox-transition: .2s;
  -o-transition: .2s;
  transition: opacity .2s;
}


.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fb8500;
  cursor: pointer;
  -webkit-transition: .2s;
  transition: .2s;
}

.slider:hover::-webkit-slider-thumb {
  background: #a53d00;
}

.slider::-moz-slider-thumb {
  -moz-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fb8500;
  cursor: pointer;
  -moz-transition: .2s;
  transition: .2s;
}

.slider:hover::-moz-slider-thumb {
  background: #a53d00;
}

.slider::-o-slider-thumb {
  -o-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fb8500;
  cursor: pointer;
  -o-transition: .2s;
  transition: .2s;
}

.slider:hover::-o-slider-thumb {
  background: #a53d00;
}

a {
    color: #fb8500;
    transition: .3s ease;
}
a:hover {
    color: #a53d00;
}


.div-string {
    display: flex;
    position: relative;
    max-width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.div-string>input, .div-string>textarea {
    margin-top: 8px;
}

#result {
    height: auto;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header>nav>div, #header, /*#header>*/nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

#header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
    transition: .3s ease;
}

#header.sticky {
    box-shadow: 0 10px 7px 1px #dedede;
    -moz-box-shadow: 0 10px 7px 1px #dedede;
    -webkit-box-shadow: 0 10px 7px 1px #dedede;
}

#header, /*#header>*/nav {
    width: 100%;
    align-items: center;
}

#header .nome>h1, #header .nome>p {
    margin: 0;
}

#header .logo, #header .nome {
    margin: auto;
}

.link {
    margin: 5px;
}

#footer>div {
    flex: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opzione-qr {
    margin: 5px;
}

.opzione-qr.select {
    color: #000;
    background-color: #fff;
}

#loading>img {
    max-height: 140px;
    width:auto;
}

.no-border {
    border: none;
}

td>h2 {
    margin: auto;
}

#risultato {
    color: #fb8500;
}


@media screen and (max-width: 400px) {
    #header .nome>h1, #header .nome>p {
        text-align: center;
    }
    nav {
        justify-content: center;
    }
    #header .sinistra {
        flex-direction: column;
    }
}

@media screen and (max-width: 450px) {
    .principale {
        padding: 6px;
        font-size: 15px;
        min-width: 0;
        width: 85vw;
    }
}

@media screen and (max-width: 550px) {
    nav {
        flex-direction: column;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 650px) {
    tr {
        display: flex;
        flex-direction: column;
    }
}



