:root {
    --company-green-rgb: 176, 255, 130;
    --phone-menu-sidebar-rgb: 230, 245, 180;
    --phone-menu-nav-items-rgb: 72, 107, 78;
    --company-green-rgba: var(--company-green-rgb), .3;
    --phone-menu-sidebar-color-rgba: var(--phone-menu-sidebar-rgb), 0.5;
    --phone-menu-nav-items-rgba: var(--phone-menu-nav-items-rgb), 0.7;
    --phone-menu-nav-item-border: 5px solid rgba(var(--company-green-rgba));
    --mask-display: none;
    --grey-border: solid rgba(200, 200, 200, .4);
    --grey-background: radial-gradient(rgba(100, 100, 100, .6), rgba(50, 50, 50, .6));
    --company-name-text: engine;
    /*card bg color: --phone-menu-nav-items-rgb*/
}

@font-face {
    font-family: engine;
    src: url(../fonts/engine.ttf);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgL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41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.company-name-text {
    font-family: var(--company-name-text) !important;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-inline: 0rem;
}

    .flex-container header {
        margin-bottom: 6rem;
        margin-top: 4rem;
    }

.owners-flex-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    padding-bottom: 2rem;
    justify-content: space-evenly;
    padding-inline: 10vw;
}

body {
    margin: 0;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html {
    width: 100vw;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.main-layout-wrapper {
    background-image: url('../images/Backgrounds/unsplash_bg2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: absolute;
    width: 100%;
    height: 100%;
}

.page-header-wrapper, .page-footer-wrapper {
    background-color: rgba(var(--company-green-rgba)) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 2;
}

.page-header-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.page-footer-wrapper {
    padding-left: 8px !important;
}

/*
    transform and backdrop-filter breaks position: fixed; in child elements.
*/
.page-body-wrapper {
    display: flex;
    flex-direction: column;

    overflow-x: hidden !important;
    background-color: rgba(212, 114, 11, 0.1) !important;
    padding-inline: 0 !important;
    transform: none !important
}

.hero-section {
    padding: 2rem;
    background-color: rgba(180, 126, 44, .8);
    margin-right: 30vw;
}

.body-text, .company-name-text {
    color: white !important;
    margin: 0 !important;
}

.body-text {
    font-family: sans-serif !important;
}

.home-body {
    margin-top: 20vh !important;
}

.default-button {
    border: solid rgba(var(--phone-menu-nav-items-rgb), 0.7) !important;
}

.about-us-body .body-text {
    margin-bottom: 1rem !important;
}

.truck-card-ribbon {
    margin: 1rem calc(-1 * var(--rz-card-padding));
    background-color: rgb(180, 126, 44) !important;
    border-radius: 0 !important;
}

.bold-font {
    font-weight: bold !important;
}

.pc-menu-bar {
    padding-inline: 2svw;
    padding-block: 1svh;
}

.phone-menu-sidebar {
    position: absolute !important;
    height: 100% !important;
    z-index: 2 !important;
    background-color: rgba(var(--phone-menu-sidebar-color-rgba)) !important;
    -webkit-backdrop-filter: blur(10px) contrast(100%);
    backdrop-filter: blur(10px) contrast(100%);
    border: 0 !important;
}

.phone-menu-nav-items {
    border-left: var(--phone-menu-nav-item-border) !important;
    border-bottom: none !important;
    background-color: rgba(var(--phone-menu-nav-items-rgba));
}

.temp-pc-company-logo {
    max-height: 3.25rem;
    border-radius: 25%
}

.temp-phone-company-logo {
    max-height: 1.75rem;
    border-radius: 25%
}

.phone-page-body-mask {
    position: absolute;
    z-index: 2
}

.rz-navigation-item-icon, .rz-navigation-item-link {
    color: white !important;
}

.rz-navigation-item-wrapper-active, .active {
        border-left: var(--phone-menu-nav-item-border) !important;
}

.active {
    background: radial-gradient(transparent, rgba(255, 255, 255, .2)) !important
}

.hide-background {
    background-color: transparent !important;
}

.tray {
    border-radius: 6px;
    padding-inline: 5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
    column-gap: 10dvw !important;
    row-gap: 5rem !important;
    margin-top: 4rem;
    margin-bottom: 4rem;
    margin-inline: 2rem;
}

.tray, .contact-us-tray, .contact-us-map-tray {
    border: var(--grey-border);
    background: var(--grey-background) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(2px) !important;
}

.owner-image {
    border-radius: 50%;
    max-width: 250px;
    max-height: 260px;
}

.contact-us-tray, .contact-us-map-tray {
    border-radius: 6px;
    padding: 1rem;
    min-width: 250px;
    min-height: 356px;
    max-width: 80dvw !important;
}

.contact-us-map-tray {
    margin-bottom: 4rem;
}

.picture-and-title-card {
    background-color: rgba(255, 255, 255, .2) !important;
    max-width: 420px;
    max-width: 232px !important;
    max-height: 266px !important;
    min-width: 232px !important;
}

.driver-picture {
    max-width: 232px !important;
    max-height: 232px !important;
    min-width: 232px !important;
}

.prices-tray, .prices-stack {
    display: flex !important;
}

.prices-tray, .prices-card-row, .prices-stack, .prices-col .prices-col-last {
    flex: 1 !important;
}

.prices-col, .prices-main-col {
    border-bottom: var(--grey-border) !important;
    min-height: 8dvh;
    display: flex;
    justify-content: end;
    flex-direction: column;
    padding-bottom: 1dvh;
}

.prices-main-col {
    justify-content: center;
    align-items: center;
}

.prices-stack {
    padding-inline: 1vw;
    padding-bottom: 2vh;
}

.contact-us-google-map {
    border: var(--grey-border) !important;
}

.contact-us-info-container {
    padding-inline: 1rem;
    padding-top: 1rem;
    border: var(--grey-border) !important;
}

.contact-us-info-head {
    margin-bottom: 1rem !important;
    padding-bottom: 1rem;
    border-bottom: var(--grey-border) !important;
}

.contact-us-info-col {
    padding-bottom: 1rem;
}

.contact-us-btn {
    background-color: rgba(76, 175, 80, .6) !important;
    color: white !important;
}

.contact-us-btn:hover {
    background-color: rgba(76, 175, 80, .8) !important;
}

.partner-picture {
    max-width: 200px !important;
    max-height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
    border-radius: 50%;
    margin-bottom: 1rem;
    align-self: center
}

.partner-name {
    text-align: center;
    overflow-wrap: break-word;
}

/*PC menu*/
@media (min-width: 1024px) {
    .phone-menu-wrapper {
        display: none;
    }

    .home-body {
        text-align: center;
    }

    .truck-image {
        max-width: 512px;
        max-height: 342px;
        min-width: 512px;
        min-height: 342px;
    }

    .about-us-body {
        flex-grow: 1;
    }

    .about-us-body-content {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        flex-wrap: wrap;
        align-content: center;
    }

    .about-us-body, .home-body {
        margin-top: 3rem;
        margin-inline: 8rem;
        padding:1rem;
    }

    .truck-card {
        box-shadow: /*rz-shadow-10*/
            0px 24px 38px rgba(0, 0, 0, 0.14), 
            0px 9px 46px rgba(0, 0, 0, 0.12), 
            0px 11px 15px rgba(0, 0, 0, 0.14) !important;
    }

    .large-font {
        font-size: 20px !important;
    }

    .contact-us-google-map {
        height: 100%;
        width: 800px;
    }
}

/*Phone menu*/
@media (max-width: 1023px) {
    .pc-menu-wrapper {
        display: none;
    }

    .home-body {
        padding: 1rem;
    }

    .truck-image {
        max-width: 80dvw;
        max-height: 80dvw;
        min-width: 80dvw;
        min-height: 80dvw;
    }

    .about-us-body {
        margin: 1rem;
        padding: 1rem;
    }

    .our-trucks-body {
        gap: 0 !important;
        row-gap: 2rem !important;
        margin-left: 1rem !important;
        margin-top: 4rem !important;
        border: none !important;
        background: transparent !important;
        margin-inline:0;
    }

    .truck-card {
        box-shadow: /*rz-shadow-5*/
            0px 6px 10px rgba(0, 0, 0, 0.14),
            0px 1px 18px rgba(0, 0, 0, 0.12),
            0px 3px 5px rgba(0, 0, 0, 0.14) !important;
    }

    /*
        Otherwise the text on the our-trucks-card will fall into 1 column
        This shouldn't be the solution as it affects all row's columns.
        But with auto width it seems to not be causing any side effects. Yet.
    */
    .rz-row > [class*=rz-col-] {
        width: auto !important;
    }

    .tray {
        padding-inline: 5dvw;
        padding-top: 7.5dvh;
        border-radius: initial;
        margin-inline: 5dvw;
    }

    .large-font {
        font-size: 16px !important;
    }

    .contact-us-google-map {
        height: 50dvh !important;
        width: 80dvw !important;
    }

    .page-body-wrapper {
        padding: 0 !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .hero-section {
        justify-content: center;
        background-color: rgba(180, 126, 44, .8);
        margin-right: 0;
    }

    .centered-text {
        text-align: center;
    }
}

.body-mask {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0, 0.5);
    z-index: 1
}

.btn-lose-bg:not(:hover) {
    background-color: transparent !important;
}
