﻿body {
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    background-color: transparent !important;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
    background-image: url("../Resources/Sfondo.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
    html::-webkit-scrollbar {
        display: none;
    }

#div-main {
    background: linear-gradient(to bottom, #f8f8f8, #e6e6e6);
    width: fit-content;
    min-width: min(80vw, 800px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    padding-bottom: 8px;
    height: auto;
    position: relative;
    overflow: auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid #9aa;
}

#TextBox_Descrizione {

    max-height: 3450px;
    height: 100px;
}

#admin-main {
    background: linear-gradient(to bottom, #f8f8f8, #e6e6e6);
    border: 2px solid #9aa;
    width: fit-content;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    padding-top: 24px;
    height: fit-content;
    height: 80vh;
    position: relative;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
}

#login-main {
    background: linear-gradient(to bottom, #f8f8f8, #e6e6e6);
    border: 1px solid black;
    width: fit-content;
    min-width: min(80vw, 355px);
    max-width: 355px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    max-height: 85vh;
    position: relative;
    height: fit-content;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid #9aa;
}

.w100 {
    width: 100% !important;
    height: 25px !important;
    margin-top: 5px;
}
.w100-no-lock {
    width: 100% !important;
    margin-top: 5px;
    margin-bottom: -5px;
}
.h100 {
    height: 100% !important;
}

#send-button {
    background-color: transparent;
    position: sticky;
    width: 100%;
    padding-bottom: 16px;
}

#login-button {
    background-color: white;
    position: sticky;
    width: 100%;
    padding-bottom: 16px;
}

.small-red {
    font-size: 16px;
    color: red;
    padding-bottom: 6px;
    padding-left: 3px;
}

.missing.required > * > :not(label) {

    background-color: #ffaaaa;
}

input, select, textarea  {

    border: 1px solid;
    border-radius: 3px;
    background-color: #f9f9f9
}

#Button_SendRequest {
    width: 100%;
    border-width: 1px;
    border-radius: 8px;
    height: 33px;
    padding-bottom: 3px;
    background: linear-gradient(to top, #037 0%, #049 20%, #06b) !important;
    color: #eee;
}
    #Button_SendRequest:hover {
        background: linear-gradient(to top, #049 0%, #06b 20%, #07c) !important;
    }

.pad-top-small {
    padding-top: 5px;
}

.move-up {
    position: relative;
    top: -4px;
}

button.validation-error {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 8px;
    border: 1px solid #caa;
    font-size: 13px;
    padding-left: 20px;
    padding-right: 20px;
    width: 60px;
}

validation-error-text {
    width: 100%;
    height: calc(100% - 20px);
}

@keyframes ShowError {

    0% {
        transform: translate(-50%, -100%);
    }
    70% {
        transform: translate(-50%, 20px);
    }
    100% {
        transform: translate(-50%, +10px);
    }
}

@keyframes ShowSuccess {
    0% {
        transform: translate(-50%, 1000%);
    }

    70% {
        transform: translate(-50%, -20px);
    }

    100% {
        transform: translate(-50%, +10px);
    }
}

@keyframes ShowConfirmation {

    0% {
        transform: translate(-50%, -100%);
    }

    70% {
        transform: translate(-50%, 20px);
    }

    100% {
        transform: translate(-50%, +10px);
    }
}


input.confirmation-yes {
    position: absolute;
    right: 75px;
    bottom: 8px;
    border-radius: 8px;
    border: 1px solid #8be;
    font-size: 13px;
    padding-left: 20px;
    padding-right: 20px;
    width: 60px;
    background: linear-gradient(to top, #3077aa 0%, #3c99cc 20%, #459bff) !important;
    /* color: #eee; */
}

input.confirmation-no {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 13px;
    padding-left: 20px;
    padding-right: 20px;
    width: 60px;
    background: linear-gradient(to top, #ccc, #ddd, #eee) !important;
}

div.confirmation {
    width: 250px;
    height: 100px;
    border: 1px solid #aaa;
    background: linear-gradient(to top, #ccc, #eee);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px 5px 10px;
    border-radius: 10px;
    animation: 0.2s linear ShowConfirmation forwards;
}

confirmation-text {
    width: 100%;
    height: calc(100% - 20px);
}


div.success-popup {
    max-width: 500px;
    min-width: 250px;
    width: 80%;
    height: 40px;
    border: 1px solid black;
    background-color: #dfd;
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 6px;
    overflow: hidden;
    animation: 0.3s linear ShowSuccess forwards, 1s linear Vanish 2s forwards;
}

@keyframes Vanish {

    80% {
        opacity: 0.7
    }
    100% {
        opacity: 0;
    }
}

button.success-popup {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-radius: 8px;
    border: 1px solid #f5fff5;
    font-size: 13px;
    padding-left: 20px;
    padding-right: 20px;
    padding-right: 20px;
}

success-popup-text {
    width: 100%;
    height: calc(100% - 20px);
}

#Lista_Utenti {
    width: 100%;
    overflow-y: auto;
    scrollbar-color: rgba(128,128,128,0.5) transparent;
    max-height: calc(80vh - 33px - 40px - 15vh);
    position: relative;
}

    #Lista_Utenti::-webkit-scrollbar {
        width: 16px;
    }

    #Lista_Utenti::-webkit-scrollbar-track {
        background: transparent;
    }

    #Lista_Utenti::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.5);
        border-radius: 4px;
    }

#Lista_Richieste {
    width: 100%;
    overflow-y: auto;
    scrollbar-color: rgba(128,128,128,0.5) transparent;
    max-height: 60vh;
}

    #Lista_Richieste::-webkit-scrollbar {
        width: 16px;
    }

    #Lista_Richieste::-webkit-scrollbar-track {
        background: transparent;
    }

    #Lista_Richieste::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.5);
        border-radius: 4px;
    }

#Panel_Admin {

}

.grid-button {
    border: 1px solid #aaa;
    border-radius: 5px;
    width: fit-content;
}

.grid-button {
    width: 100%;
}

table {
    border: 0px;
    border-left: 1px solid #aaa;
}

td, th {
    border-bottom: 1px solid #aaa !important;
    border-right: 1px solid #aaa !important;
    padding: 5px;
    white-space: nowrap;
}

th {
    background-color: #05a;
    border-top: 1px solid #aaa !important;
    color: #eee;
    font-size: 14px;
}

td {
    font-size: 14px;
}

tr:nth-of-type(2n+1) {
    background-color: #f5f5f5;
}

.button-to-right {
    width: fit-content;
    margin: 5px 0px -4px auto;
}

.vr {
    padding: 0px !important;
    height: 94%;
    position: absolute;
    left: 50%;
}

.check-grid {
    position: relative;
    left: calc(50% - 6.5px);
    bottom: -2px;
    zoom: 1.35;
}

.bg {
    background: linear-gradient(to bottom, #e99, #d77);
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    width: 40%;
    height: fit-content;
    min-height: 200px;
    border: 2px solid #c66;
    border-radius: 10px;
}

.content {
    padding: 15px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    height: fit-content;
    min-height: 22vh;
    font-size: max(20px, 1.3vw);
    align-content: center;
}

.bold {
    font-weight: bold;
}

#Button_Back {
    width: fit-content;
    font-size: max(14px, calc(2vh - 4px));
    height: fit-content;
    margin-top: auto;
    margin-bottom: 20px;
    border-radius: 0.7vh;
    border: 1px solid;
    background: linear-gradient(to bottom, #eee, #bbb) !important;
}

    #Button_Back:hover {
        background: linear-gradient(to bottom, #eee, #ccc) !important;
    }

#img-container {
    overflow-y: auto;
    width: 100px;
    max-height: 120px;
    border: 1px solid;
    padding: 5px;
    border-radius: 8px;
    margin-top: 10px;
    margin-left: 12px;
    margin-right: 12px;
    background-color: #f5f5f5;
}

    #img-container::-webkit-scrollbar-thumb {
        background-color: #ddd;
        border: 4px solid transparent;
        border-radius: 8px;
        background-clip: padding-box;
    }
    #img-container::-webkit-scrollbar {
        width: 16px;
    }

.car-img {

    margin: 2px;
    height: 100px;
    border: 1px solid #444;
}

#privacy {
    width: 100%;
    padding: 15px;
    border-start-start-radius: 10px;
    border-start-end-radius: 10px;
    background-color: white;
    position: fixed;
    bottom: 0px;
    display: none;
}

#privacy-title {
    height: fit-content;
    margin-bottom: 4px;
    font-weight: bold;
}

#privacy-text {
    height: fit-content;
    margin-bottom: 8px;
}

#privacy_ok {
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 14px;
}

#privacy_dettagli {
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 14px;
}

input[type=button], input[type=submit], button {
    background:linear-gradient(to bottom, #f5f5f5, #e2e2e2);
}

    input[type=button]:hover, input[type=submit]:hover, button:hover {
        background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
    }

#Button_Login {
    width: 100%;
    background: linear-gradient(to top, #037 0%, #049 20%, #06b) !important;
    color: #eee;
}

    #Button_Login:hover {
        background: linear-gradient(to top, #049 0%, #06b 20%, #07c) !important;
    }

div.validation-error {
    width: 250px;
    height: 100px;
    border: 1px solid #c66;
    background: linear-gradient(to bottom, #e99, #d88);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px 5px 10px;
    border-radius: 10px;
    animation: 0.3s linear ShowError forwards;
}

img.cog {
    z-index: -1;
    aspect-ratio: 1;
    background-attachment: fixed;
    background-size: 100%;
    position: fixed;
}

#cog1 {
    width: min(50vh, 50vw);
    top: calc(80px + min(10vh, 10vw));
    left: min(5vh, 5vw);
}

#cog2 {
    width: min(50vh, 50vw);
    top: calc(80px + min(25.2vh, 25.2vw));
    left: min(48.8vh, 48.8vw);
    transform: rotate(-7deg);
}

#cog4 {
    width: min(50vh, 50vw);
    top: calc(80px + min(48vh, 48vw));
    left: max(-21.5vh, -21.5vw);
    transform: rotate(-6deg);
}

.dark-cog {
    filter: brightness(0.9) blur(0.5px) !important;
}

.darker-cog {
    filter: brightness(0.8) blur(0.5px) !important;
}

.cog {
    filter: brightness(0.7) blur(0.5px);
}

.cog-container {
    backdrop-filter: blur(1px);
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: -100;
    width: 100vw;
    height: 100vh;
}

#cog3 {
    width: min(20vh, 20vw);
    top: calc(80px + min(10vh, 10vw));
    left: max(-9vh, -9vw);
}
#cog6 {
    width: min(20vh, 20vw);
    top: calc(80px + max(-4.6vh, -4.6vw));
    left: min(2.3vh, 2.3vw);
}

#cog5 {
    width: min(20vh, 20vw);
    top: calc(80px + min(2vh, 2vw));
    left: min(19.6vh, 19.6vw);
    transform: rotate(-3deg);
}

#cog8 {
    width: min(20vh, 20vw);
    top: calc(80px + max(-10vh, -10vw));
    left: min(33.7vh, 33.7vw);
    transform: rotate(-3deg);
}


#cog7 {
    width: min(30vh, 30vw);
    bottom: min(2vh, 2vw);
    right: max(-10vh, -10vw);
    transform: rotate(50deg);
}

#cog10 {
    width: min(30vh, 30vw);
    bottom: max(-17vh, -17vw);
    right: min(10.3vh, 10.3vw);
    transform: rotate(60deg);
}

#navbar-car {
    background: linear-gradient(to top, #0C186E 0%, #06c 15%, #102093 45%, #0C186E 60%, #0B186F 80%, #09145D 95%, #060f4a);
    height: 80px;
    padding-left: 15px;
    border-bottom: 1px solid #030726;
}

#navbar-logo {
    width: 110px;
    margin-top: 5px;
    aspect-ratio: 193/113 !important;
}

#navbar-title {
    color: #eee;
    font-size: 45px;
    margin-right: 20px;
}

#navbar-about {
    font-weight: bold;
    color: #eee;
    margin-right: 20px;
    text-decoration: none;
}

#navbar-admin {
    font-weight: bold;
    margin-right: 20px;
    color: #eee;
    text-decoration: none;
}

.navbar-left {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.navbar-right {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: -8px;
}

@media (max-width: 575.8px) and (min-width: 406.2px) {
    #navbar-title {
        margin-top: 0px;
        font-size: 30px;
    }

    #navbar-logo {
        width: 80px;
    }
}

@media (max-width: 406.1px) {
    #navbar-title {
        font-size: 30px;
    }

    #navbar-logo {
        width: 75px;
    }

    #navbar-about {
        margin-bottom: -5px !important;
    }

    #navbar-admin {
        margin-bottom: -5px !important;
    }
}


@media (max-width: 406.1px) and (min-width: 400px) {
    #navbar-title {
        margin-right: 150px;
    }
}

.CAR {
    background: linear-gradient(to bottom, #f8f8f8, #e6e6e6);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 800px;
    margin-top: 0px;
    height: fit-content;
    min-height: 40px;
    padding: 18px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid #9aa;
}

.admin-button {
    border: 1px solid;
    border-radius: 5px;
    background: linear-gradient(to top, #037 0%, #049 20%, #06b) !important;
    color: #eee;
    padding-top: 3px;
    padding-bottom: 3px;
}

#all {
    min-height: max(100%, 100vh);
    height: 100%;
    position: relative;
    padding-bottom: 80px;
    background-color: transparent;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, #1c253c, #222c42);
    text-align: center;
    color: #eee;
    padding: 20px;
    border: 0px solid black;
    border-top: 2px solid #223550;
}

.header-bar {
    background: linear-gradient(to right, #049 20%, #05a);
    min-height: 35px;
    margin-top: 30px;
    width: 100%;
    border: 2px solid #469;
    border-bottom: 0px solid;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: #eee;
    font-weight: bold;
    padding: 5px;
    padding-left: 12px;
    height: fit-content;
}

.header-ricerca-ricambi {
    min-width: min(80vw, 800px);
    max-width: 800px;
}

.main-container {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.8px) {
    .main-container {
        margin-left: 5%;
        margin-right: 5%;
        width: 90%;
    }

    #div-main, #admin-main, #login-main, #stat-main {

        max-width: 90vw !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    #admin-main {
        overflow-y: auto;
    }

        #admin-main::-webkit-scrollbar {
            width: 12px;
        }

        #admin-main::-webkit-scrollbar-track {
            background: transparent;
        }

        #admin-main::-webkit-scrollbar-thumb {
            background-color: rgba(0.5,0.5,0.5,0.5);
            border-radius: 4px;
        }    
    .footer {
        font-size: 15px;
    }
}

#recaptcha-container {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    max-width: 100%;
}

#mail-car {

    color: #eee;
}

#GridView_Requests > tbody > tr > td > table > tbody > tr > td {
    padding: 5px 0px;
    width: 12px !important;
    border: 1px solid #808080;
    text-align: center;
    table-layout: fixed;
    font-size: 12px;
}

#GridView_Requests > tbody > tr > td > table > tbody > tr > td:has(span) {
    background-color: #adf
}

#GridView_Requests > tbody > tr > td > table{
    max-width: 40vw;
    width: 80px;
}

#GridView_Stats {
    width: 100%;
}

#stat-main {
    background: linear-gradient(to bottom, #f8f8f8, #e6e6e6);
    width: fit-content;
    min-width: min(80vw, 800px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 16px;
    padding-bottom: 8px;
    height: auto;
    position: relative;
    overflow: auto;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 2px solid #9aa;
    scrollbar-color: rgba(128,128,128,0.5) transparent !important;
}


    #stat-main::-webkit-scrollbar {
        width: 16px;
    }

    #stat-main::-webkit-scrollbar-track {
        background: transparent;
    }

    #stat-main::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.5);
        border-radius: 4px;
    }

.margins-auto {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    margin-top: 5px;
    margin-bottom: 10px;
}

.margins-auto-no-pad {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    margin-top: 5px;
}

#Button_ResendAction {
    background: linear-gradient(to top, #037 0%, #049 20%, #06b) !important;
    color: #eee;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
    #Button_ResendAction:hover {
        background: linear-gradient(to top, #049 0%, #06b 20%, #07c) !important;
    }