@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    background-color: #e0f9c0;
    color: #393939;
}

h1 {
    text-align: center;
    font-weight: 500;
    margin-block: 2rem -1rem;
}

h1 span {
    font-size: 2.5rem;
    font-weight: 700;
}

h1 img {
    margin-bottom: -0.3rem;
}

h3 {
    font-weight: 100;
    text-align: center;
    color: #686868;
}

h3 span {
    font-weight: 400;
}

.logo {
    text-align: center;
}

.logo img {
    width: 20rem;
}

.container {
    max-width: 40rem;
    margin-inline: auto;
}

/* VIAGGIO BOX */

.viaggi {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-inline: 0.2rem;
}

.viaggio,
.card {
    background-color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 4px 4px 0 1px #b9b9b94f;
    cursor: pointer;
    position: relative;
}

.viaggio p,
.card.formulario p {
    margin-block: 0.25rem;
}

.viaggio p:first-child strong {
    background-color: #00000017;
    padding: 0.1rem 0.2rem;
}

.viaggio img,
.card img {
    width: 1.5rem;
    margin-bottom: -0.2rem;
    margin-right: 0.1rem;
}

.viaggio img.truck,
.viaggio img.check {
    width: 3rem;
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.viaggio img.check {
    width: 2rem;
}

.viaggio.current {
    background:
        linear-gradient(90deg, #67a4df 50%, white 50%),
        linear-gradient(90deg, #67a4df 50%, white 50%),
        linear-gradient(0deg, #67a4df 50%, white 50%),
        linear-gradient(0deg, #67a4df 50%, white 50%);
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    background-size: 35px 0.25rem, 35px 0.25rem, 0.25rem 35px, 0.25rem 35px;
    background-position: 0px 0px, 100% 100%, 0px 100%, 100% 0px;
    animation: border-dance 20s infinite linear;
}

@keyframes border-dance {
    0% {
        background-position: 0px 0px, 150% 100%, 0px 200%, 100% 0px;
    }

    100% {
        background-position: 150% 0px, 0px 100%, 0px 0px, 100% 200%;
    }
}

.viaggio.done {
    border: 7px solid #5ec65e;
}

/* CARD BUTTON / NAVIGATION */

.card {
    margin-top: 1rem;
}

.card.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.card .card-title span {
    color: #989696;
    font-size: 0.9rem;
    margin-top: -0.2rem;
}

@media only screen and (max-width: 400px) {
    .card .card-title {
        align-items: center;
    }

    .card.navigation {
        display: flex;
        justify-content: center;
        flex-direction: column;
        gap: 0.3rem;
    }
}


/* BACK BUTTON */

.header-buttons {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons button {
    background-color: #383838;
    padding: 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1.10rem;
}

.header-buttons img {
    width: 2rem;
    margin: 0;
}

/* NOTIFICATION */

.notification {
    margin-block: 1rem;
    display: flex;
    align-items: center;
    background-color: gray;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 2rem;
    box-shadow: 2px 2px 0px 1px #c9c9c91f;
}

.notification.error {
    background-color: #ea3f3f;
    color: white;
}

.notification img {
    width: 25px;
    margin: 0;
}

.card.formulario .notification.warning {
    background-color: #ebd566;
    color: #6f3d05;
    margin-block: 0.5rem;
    width: fit-content;
    margin-inline: auto;
}

.card.formulario .notification.success {
    background-color: #78ec90;
    color: #045a17;
    margin-block: 0.5rem;
    width: fit-content;
    margin-inline: auto;
}

.card.formulario .notification.going {
    background-color: #8fd4f3;
    color: #043e5a;
    margin-block: 0.5rem;
    width: fit-content;
    margin-inline: auto;
}

/* AVVISI */

.avvisi {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-inline: 0.2rem;
    margin-bottom: 1rem;
}

.avviso {
    background-color: #0aa4da !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 4px 4px 0 1px #b9b9b94f;
    cursor: pointer;
    position: relative;
    color: white;
    font-weight: 200;
    font-size: 1.5rem;
}

.avviso p {
    margin-block: 0.25rem;
}

.avviso img {
    width: 2rem;
    margin-bottom: -0.4rem;
    margin-right: 0.1rem;
}

/* BUTTONS */

.hidden-container {
    display: none;
}

.hidden-container.show {
    border-top: 2px solid #0000000d;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-block: 0.5rem 0.25rem;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 1rem;
    margin-block: 0.75rem 0.25rem;
}

button {
    position: relative;
    width: max-content;
    border: 0;
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    text-transform: uppercase;
    box-shadow: 2px 2px 0px 1px #c9c9c954;
    color: white;
    border: 3px solid transparent;
}

button:hover {
    cursor: pointer;
}

button:active {
    opacity: 0.8;
}

button.going {
    background-color: #67a4df;
}

button.resend {
    background-color: #7dcce9;
}

button.wait {
    background-color: #e34242;
}

button.done {
    background-color: #5ec65e;
}

button.close {
    background-color: #2d2d2d;
}

button.going:hover {
    background-color: #4e83b6;
}

button.wait:hover {
    background-color: #ba3737;
}

button.done:hover {
    background-color: #40a540;
}

button img {
    margin-left: 0.3rem;
    margin-top: -0.4rem;
    display: inline-flex;
    vertical-align: middle;
}

.reader-container {
    position: relative;
}

img#changeCamera {
    display: none;
    width: 3rem;
    position: absolute;
    z-index: 5;
    bottom: 0.5rem;
    right: 0.7rem;
    cursor: pointer;
}

img#changeCamera:active {
    opacity: 0.5;
}

.navigator-maps {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.navigator-maps img {
    width: 2.5rem;
}

/* RENTRI BUTTON */

.viaggio.single,
.card {
    cursor: default;
}

.rentri-btn.loading {
    background-color: #53545524 !important;
}

.rentri-btn .spinner,
.formulario-loading .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 3px solid #202020;
    border-top-color: #67a4df;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

.rentri-btn.loading .spinner,
.formulario-loading.loading .spinner {
    display: inline-block;
    position: absolute;
    top: calc(50% - 12px);
    left: calc(50% - 19px);
}

.rentri-btn.loading .label {
    opacity: 0.6;
}

.card.formulario .firma-btn {
    width: 100%;
    margin-block: 0.25rem;
    justify-content: center;
    gap: 2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* FORMULARIO SECTION */

.formulario-loading {
    background-color: #ffffff91 !important;
    color: #00000042;
}

.card.formulario {
    position: relative;
}

.card.formulario .title {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    background-color: #0000001a;
    width: fit-content;
    margin-inline: auto;
    align-items: center;
    padding: 0.2rem 0.4rem;
}

.card.formulario .title img {
    margin: 0rem;
}

.card.formulario div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-block: 0.15rem;
}

.card.formulario div.sub {
    color: #7b7b7b;
    margin-top: -0.25rem;
}

.card.formulario .form-trasp {
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-block: 0;
}

.card.formulario .form-trasp .form-row,
.card.formulario .form-trasp .form-row-sub {
    margin-inline: auto;
    flex-wrap: wrap;
    width: fit-content;
    gap: 1rem;
    margin-block: 0.75rem;
    justify-content: space-evenly;
}

.card.formulario .form-trasp .form-row-sub {
    margin-block: 0;
    margin-inline: 0.5rem;
}

.card.formulario .form-trasp label {
    background-color: #7f7f7f36;
    padding: 0.2rem 0.4rem;
    box-shadow: 2px 2px 0px 1px #7a7a7a12;
    margin-bottom: 0.1rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.card.formulario .form-trasp input,
.card.formulario .form-trasp select {
    font-size: 1.2rem;
    padding: 0.1rem 0.3rem;
    border-radius: 0.5rem;
    border: 2px solid #00000021;
    color: #2d2d2d;
}

.card.formulario .form-trasp input[type="text"] {
    width: 20rem;
}

.card.formulario .firma-section,
.card.formulario .trasporto-section,
.card.formulario .sosta-section {
    width: 100%;
    display: block;
}

.card.formulario .separator {
    border: 2px solid #00000014;
    border-radius: 5rem;
    margin-block: 0.75rem;
}

.card.formulario button.pdf {
    background-color: #4d4d4d;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.5rem;
    font-size: 1.1rem;
}

.card.formulario .underline {
    text-decoration: underline;
}

.card.formulario .firma-otp .message {
    display: block;
    text-align: center;
}

.card.formulario .firma-otp {
    display: flex;
    flex-direction: column;
}

.card.formulario .firma-otp .form {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.card.formulario .firma-otp input {
    font-size: 1.5rem;
    padding: 0.1rem 0.5rem;
    border: 2px solid #0000001c;
    border-radius: 0.6rem;
    width: 10rem;
    text-align: center;
}

.firma-section .notification.error {
    width: fit-content;
}

.card.formulario .firma-section .otp-errato {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    gap: 1rem;
}

@media only screen and (max-width: 400px) {
    .card.formulario .firma-otp .form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .card.formulario .firma-otp input {
        width: 100%;
    }

    .pdf span {
        display: none;
    }

    .card.formulario .pdf img {
        margin: 0;
    }
}

/* NAVIGATIONS */

.navigations {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    margin-top: 3rem;
}

.navigations button {
    background-color: #ffbb0c;
}

.navigations button.disabled {
    opacity: 0.4;
    cursor: default;
}

.navigations button:hover {
    background-color: #eda40a;
}

.navigations button.disabled:hover {
    background-color: #ffbb0c;
}

.navigations button.quit {
    background-color: #353535;
}

.navigations button.quit:hover {
    background-color: #201f1f;
}

.navigations button.only-icon img {
    margin-inline: 0;
}

.navigations button img {
    width: 1.7rem;
    margin-bottom: -0.1rem;
}

/* SEARCH/LOCATION INPUT */

.searching-box {
    display: flex;
    gap: 1rem;
}

.search {
    width: 90%;
    display: block;
    position: relative;
    margin-right: 1rem;
    margin-block: 0.5rem 1rem;
}

.search input {
    border: 0;
    padding: 0.4rem 0.7rem;
    font-size: 1.3rem;
    width: 100%;
    border-radius: 0.5rem;
    background: #ffffffab;
    box-shadow: 2px 2px 0px 1px #7a7a7a;
}

.search img {
    display: none;
    position: absolute;
    opacity: 0.4;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    width: 1.7rem;
}

.location img {
    width: 3rem;
}

.location:hover {
    cursor: pointer;
}

.alert-location {
    background-color: #1850d8bf;
    color: white;
    padding: 0.5rem 1rem;
    margin-block: 2rem;
    border-radius: 2rem;
    box-shadow: 2px 2px 0 1px #88a8f7bf;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
}

.alert-location img {
    width: 1.5rem;
    margin-right: 0.5rem;
    margin-bottom: -0.3rem;
}

/* TOAST */

.toast {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 0.3rem;
    font-size: 1.2rem;
    background-color: gray;
    box-shadow: 2px 2px 0px 1px #00000029;
    transform: translateX(150%);
    transition: transform 0.5s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background-color: #1caf42;
}

.toast img {
    width: 24px;
}



/* FOOTER */

footer {
    text-align: center;
    margin-block: 5rem 2rem;
    font-weight: 100;
}

footer img {
    width: 7rem;
    margin-bottom: -1rem;
}

footer strong {
    font-weight: 500;
}

/* QR CODE */

.qr-box {
    text-align: center;
    position: relative;
}

.qr-box button {
    margin-top: 1rem;
    background-color: #34bb6f;
}

.box {
    background-color: #fcfcfc;
    font-size: 1.3rem;
    margin-block: 0.5rem;
    padding: 0.5rem 1rem;
    width: fit-content;
    margin-inline: auto;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 0 1px #0000001a;
    display: block;
}

.box.error {
    display: none;
    position: absolute;
    z-index: 2;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.box img {
    width: 1.5rem;
    margin-right: 0.2rem;
    margin-bottom: -0.2rem;
}

/* DROPDOWN */

select#dropdownCameras {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.3rem 0.5rem;
    border: 0;
    border-radius: 0.75rem;
}

img#dropdown {
    display: none;
    width: 2rem;
    position: absolute;
    z-index: 5;
    top: 0.4rem;
    right: 0.4rem;
    cursor: pointer;
}

img#dropdown:active {
    opacity: 0.5;
}

img#dropdown:clicked sele