@font-face {
    font-weight: 700;
    font-family: "Euclid Circular A";
    src: url("../fonts/euclid-circular-a-cufonfonts/Euclid Circular A Bold.ttf");
}

@font-face {
    font-weight: 500;
    font-family: "Euclid Circular A";
    src: url("../fonts/euclid-circular-a-cufonfonts/Euclid Circular A Medium.ttf");
}

@font-face {
    font-weight: 400;
    font-family: "Euclid Circular A";
    src: url("../fonts/euclid-circular-a-cufonfonts/Euclid Circular A Regular.ttf");
}

@font-face {
    font-weight: 500;
    font-family: "BebasNeue";
    src: url("../fonts/Bebas_Neue/BebasNeue.otf");
}

@font-face {
    font-weight: 500;
    font-family: "BebasNeue-Regular";
    src: url("../fonts/Bebas_Neue/BebasNeue-Regular.ttf");
}

:root {
    --main-bg-dark-color: #134E5E;
    --main-bg-light-color: #71B280;
    --matter-white-color: 248, 248, 248;
    --black-color: 0, 0, 0;
    --dark-blue-color: #040A3D;

    /*--border-section-color: rgba(var(--border-section-color);)*/
    /*--bg-section-color: #218C5D;*/
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Euclid Circular A", sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    /*height: 100vh;*/
    /*overflow-x: hidden;*/
    font-weight: 400;
    letter-spacing: .3px;
    color: rgb(var(--matter-white-color));
    text-shadow: 1px 2px 2px rgba(var(--black-color), 0.45);
    background: var(--main-bg-dark-color);
    background: linear-gradient(90deg, var(--main-bg-dark-color) 0%, var(--main-bg-light-color) 100%);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

h1 {
    font-weight: 700;
    font-size: 38px;
}

h2 {
    font-weight: 700;
    font-size: 22px;
}

h3 {
    font-weight: 600;
    font-size: 20px;
}

h4 {
    font-size: 18px;
}

h1 .h1-related, h2 .h2-related, h3 .h3-related, h4 .h4-related, h5 .h5-related, h6 .h6-related {
    font-size: 0.6em;
    font-weight: 500;
    line-height: 0.6;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    border-bottom: 0;
    color: inherit;
    text-decoration: none;
}

a {
    color: rgb(var(--matter-white-color));
    font-style: unset;
    text-decoration: none;
}

p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.d-flex {
    display: flex;
}

.d-none {
    display: none !important;
}

.flex-column {
    flex-direction: column;
}

.mb-auto {
    margin-bottom: auto;
}

.mb-1 {
    margin-bottom: 1px;
}

.mb-6 {
    margin-bottom: 6px;
}

.mb-5 {
    margin-bottom: 5px;
}

.mt-2 {
    margin-top: 2px;
}

.mt-6 {
    margin-top: 6px;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.word-break-all {
    word-break: break-all;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.text-nowrap {
    white-space: nowrap;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 40px;
    min-height: 100vh;
}

#header {
    margin: 10px 0 15px;
}

#main {

}


#main .section_wrap {
    margin: 0 0 20px 0;
    display: grid;
    grid-template-columns: repeat( 5, minmax(356px, 1fr) );
    gap: 8px;
    width: 100%;
    min-height: calc(100vh - 130px);
    overflow-y: hidden;
    overflow-x: auto;
}

.section {
    position: relative;
    background: rgba(var(--bg-section-color), 0.3);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    width: 100%;
    /*min-width: 325px;*/
}

.section_header {
    position: relative;
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;

}

.section_header h2 {
    padding: 8px 22px;
    white-space: nowrap;
    text-align: center;
    border: 1px solid rgba(var(--border-section-color));
    background: rgb(var(--bg-section-color));
    width: 100%;
    border-radius: 100px;
}

.section_content {
    position: relative;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 100%;
    z-index: 500;
}

.section_number {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 415px;
    color: rgba(255, 255, 255, 0.1);
    font-weight: bold;
    text-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    line-height: 1;
}

.card {
    position: relative;
    background: transparent;
    display: flex;
    flex-direction: column;
    min-width: 243px;
    width: 100%;
    padding-top: 2.8em;
}

.card .card_content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(var(--border-section-color));
    border-top-left-radius: 0;
    padding: 10px 14px;
    background-color: rgb(var(--bg-section-color));
    background-image: url("../img/icons/truck-icon.svg");
    background-repeat: no-repeat;
    /*background-position: right;*/
    /*background-size: 40%;*/
    background-size: 35%;

    background-position: bottom 0 right 0;
}

.card .card_content .top-overlay {
    position: absolute;
    /*left: -1px;*/
    right: 1px;
    top: -38px;
    display: flex;
    width: 100%;
}

.card .card_content .top-overlay .number {
    display: flex;
    align-items: center;
    left: -1px;
    top: -42px;
    height: 41px;
    font-size: 24px;
    width: 100%;
    margin-right: 3px;
    padding: 8px 18px;
    background: rgb(var(--bg-section-color));
    border-top: 1px solid rgba(var(--border-section-color));
    border-right: 1px solid rgba(var(--border-section-color));
    border-left: 1px solid rgba(var(--border-section-color));
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
    white-space: nowrap;
}

.card .card_content .top-overlay .time {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background: rgb(var(--bg-section-color));
    border: 1px solid rgba(var(--border-section-color));
    border-radius: 20px;
    /*background: red;*/
    height: 34px;
    padding: 8px 14px;
    white-space: nowrap;
    font-weight: 400;
    z-index: 100;
}

.card .card_content .top-overlay .time::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 33px;
    left: -4px;
    bottom: -4px;
    /* background: red; */
    border-radius: 0 18px 0 18px;
    box-shadow: -10px 10px 0 -4px rgba(var(--border-section-color));
}

.card .card_content .top-overlay .time::after {
    content: "";
    position: absolute;
    width: 42px;
    height: 35px;
    left: -5px;
    bottom: -5px;
    /* background: red; */
    border-radius: 19px;
    border-top-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: -10px 10px 0 -2px rgb(var(--bg-section-color));
}

.card .card_content .icons {
    background: var(--dark-blue-color);
    margin-right: 8px;
    padding: 6px;
    height: 34px;
    width: 34px;
    border-radius: 100%;
}

 .card .card_content  h4 {
     font-weight: 500;
 }

.card .card_content p {
    font-size: 20px;
    font-weight: 600;
}

#footer {
    margin: 32px 0;
}

.loader-wrap, .sleep-mode_wrap {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    bottom: 0;
    width: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.sleep-mode_wrap {
    background: #111;
    backdrop-filter: none;
}

.sleep-mode_wrap img {
    max-width: 65vw;
    opacity: 0.8;
}

.sleep-mode_wrap .lines {
    position: absolute;
    height: 100vh;
    background: #134E5E;
    z-index: 5000;
    mix-blend-mode: color-dodge;
    width: 50px;
    animation: animsleep 2s linear infinite;
}

@keyframes animsleep {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.loader {
    color: #FFF;
    display: inline-block;
    position: relative;
    font-size: 48px;
    font-weight: 500;
}

.loader::before {
    content: '';
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 42px;
    right: -22px;
    box-sizing: border-box;
    animation: animloader-before 1s linear infinite;
}

.loader::after {
    content: '';
    width: 10px;
    height: 10px;
    background: rgba(248, 248, 248, 1);
    position: absolute;
    top: 40px;
    right: -20px;
    box-sizing: border-box;
    animation: animloader-after 1s linear infinite;
}

@keyframes animloader-before {
    0% {
        box-shadow: 20px 0 rgba(0, 0, 0, 0), 30px 0 rgba(0, 0, 0, 0);
    }
    50% {
        box-shadow: 20px 0 rgba(0, 0, 0, 0.25), 40px 0 rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 20px 0 rgba(0, 0, 0, 0.25), 40px 0 rgba(0, 0, 0, 0.25);
    }
}

@keyframes animloader-after {
    0% {
        box-shadow: 20px 0 rgba(248, 248, 248, 0), 30px 0 rgba(248, 248, 248, 0);
    }
    50% {
        box-shadow: 20px 0 rgba(248, 248, 248, 1), 40px 0 rgba(248, 248, 248, 0);
    }
    100% {
        box-shadow: 20px 0 rgba(248, 248, 248, 1), 40px 0 rgba(248, 248, 248, 1);
    }
}


@media screen and (max-width: 768px) {
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 16px;
    }

    h3 {
        font-size: 15px;
    }

    h4 {
        font-size: 12px;
    }

    p {
        font-size: 12px;
    }

    .wrapper {
        padding: 0 20px;
    }

    #main .section_wrap {
        grid-template-columns: repeat( 2, minmax(265px, 1fr) );
    }

    .section {
        padding: 10px;
        min-height: 225px;
    }

    .section_header h2 {
        padding: 10px 12px;
    }

    .section_number {
        font-size: 185px;
    }

    .card {
        min-width: auto;
    }

    .card .card_content {
        padding: 8px 8px;
    }


    .card .card_content p {
        font-size: 16px;
    }

    .card .card_content .icons {
        padding: 8px 4px;
    }

    .card .card_content .top-overlay {
        top: -34px;
    }

    .card .card_content .top-overlay .number {
        padding: 8px 8px;
        height: 34px;
    }

    .card .card_content .top-overlay .time {
        height: 30px;
        padding: 8px 8px;
    }

    .card .card_content .top-overlay .time::before {
        height: 30px;
    }

    .card .card_content .top-overlay .time::after {
        height: 31px;
        box-shadow: -10px 10px 0 -4px rgb(var(--bg-section-color));
    }

    .card .card_content .icons {
        padding: 4px;
        height: 24px;
        width: 24px;
    }

    #footer {
        text-align: center;

    }

}

@media screen and (max-width: 576px) {

    .loader {
        font-size: 28px;
    }

    .loader::before {
        width: 6px;
        height: 6px;
        top: 28px;
        right: -14px;
    }

    .loader::after {
        width: 6px;
        height: 6px;
        top: 27px;
        right: -13px;
    }

    @keyframes animloader-before {
        0% {
            box-shadow: 10px 0 rgba(0, 0, 0, 0), 20px 0 rgba(0, 0, 0, 0);
        }
        50% {
            box-shadow: 10px 0 rgba(0, 0, 0, 0.25), 20px 0 rgba(0, 0, 0, 0);
        }
        100% {
            box-shadow: 10px 0 rgba(0, 0, 0, 0.25), 20px 0 rgba(0, 0, 0, 0.25);
        }
    }

    @keyframes animloader-after {
        0% {
            box-shadow: 10px 0 rgba(248, 248, 248, 0), 20px 0 rgba(248, 248, 248, 0);
        }
        50% {
            box-shadow: 10px 0 rgba(248, 248, 248, 1), 20px 0 rgba(248, 248, 248, 0);
        }
        100% {
            box-shadow: 10px 0 rgba(248, 248, 248, 1), 20px 0 rgba(248, 248, 248, 1);
        }
    }

    .wrapper {
        padding: 0 5px;
    }

    #main .section_wrap {
        display: flex;
        flex-direction: column;
        /*grid-template-columns: repeat(1, minmax(165px, 1fr) );*/
        gap: 5px;
    }

    .section {
        padding: 10px 5px;
        width: 100%;
        min-height: 175px;
    }

    .section_content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        gap: 5px;
    }

    .card {
        display: flex;
        flex-direction: column;
        width: 49%;
        padding-top: 2.5em;
    }

    .card .card_content {
        padding: 8px 7px;
    }

    .card .card_content .top-overlay .number {
        font-size: 22px;
    }

    .card .card_content .icons {
        margin-right: 4px;
        height: 22px;
        width: 22px;
    }

    .section_number {
        font-size: 135px;
    }
}

@media screen and (max-width: 468px) {

    h3 {
        font-size: 13px;
    }

    .card .card_content .top-overlay .number {
        font-size: 16px;
    }

}
