:root {
    --nav_background_color: #00325c;
    --nav_text_color: #ffffff;
    --page_background_color: #ffffff;
    --page_text_color: #000000;
    --highlight_color: #00b050;
    --btn_clear_outline: #00b050;
    --btn_clear_text: #111111;
    --btn_solid_background: #00b050;
    --btn_solid_text: #ffffff;
}

@font-face {
    font-family: Brandon Grotesque;
    src: url("../../../fonts/Brandon-Grotesque-Web-Thin.eot") format("eot"), url("../../../fonts/Brandon-Grotesque-Web-Thin.woff") format("woff"), url("../../../fonts/Brandon-Grotesque-Web-Thin.woff2") format("woff2");
    font-weight: 200;
}

@font-face {
    font-family: Brandon Grotesque;    
    src: url("../../../fonts/Brandon-Grotesque-Web-Light.eot") format("eot"), url("../../../fonts/Brandon-Grotesque-Web-Light.woff") format("woff"), url("../../../fonts/Brandon-Grotesque-Web-Light.woff2") format("woff2");
    font-weight: 300;
}

@font-face {
    font-family: Brandon Grotesque;
    src: url("../../../fonts/Brandon-Grotesque-Web-Regular.eot") format("eot"), url("../../../fonts/Brandon-Grotesque-Web-Regular.woff") format("woff"), url("../../../fonts/Brandon-Grotesque-Web-Regular.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: Brandon Grotesque;
    src: url("../../../fonts/Brandon-Grotesque-Web-Medium.eot") format("eot"), url("../../../fonts/Brandon-Grotesque-Web-Medium.woff") format("woff"), url("../../../fonts/Brandon-Grotesque-Web-Medium.woff2") format("woff2");
    font-weight: 500;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: "Brandon Grotesque", Verdana, sans-serif;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--page_background_color);
    color: var(--page_text_color);
}

nav.navbar {
    z-index: 100;
    position: sticky;
    top: 0;
    background-color: var(--nav_background_color);
    margin-bottom: 30px;
}

    nav.navbar a.nav-link, nav.navbar a.navbar-brand, nav.navbar button.navbar-toggler {
        color: var(--nav_text_color);
        cursor: pointer;
    }

ul.navbar-nav .nav-item {
    color: var(--nav_text_color);
    text-align: center;
}

ul.navbar-nav a.nav-link {
    font-size: 25px;
}

a.nav-link span.material-symbols-outlined {
    font-size: 35px;
    margin: 0px 5px;
}

a.nav-link:hover span.material-symbols-outlined {
    filter: brightness(90%);
}

a.nav-link:hover img {
    width: 35px;
}

a.nav-link:hover img {
    filter: brightness(90%);
}


/*Text*/
.highlighted {
    color: var(--highlight_color);
}

.title {
    text-decoration: underline var(--highlight_color);
    text-underline-offset: 10px;
    text-decoration-thickness: 1px;
    margin: 20px 0;
    font-weight: 300;
}

div.login-container label {
    font-weight: 500;
}

.monthly-cost::after {
    content: " /month";
}

@media screen and (min-width: 1650px) {
    .manufacturer-filter {
        position: absolute;
        top: 50px;
        left: -180px;
        width: 200px;
        flex-direction: column;
        align-items: center;
    }
}

.category, .manufacturer {
    font-weight: 300;
    text-align: center;
}

    .category:hover, .manufacturer:hover {
        text-shadow: 0 0 1px;
    }

.title.category, .title.manufacturer {
    text-underline-offset: 5px;
}

.back {
    margin: 10px 0;
    font-size: larger;
}

.center {
    text-align: center;
}

b {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--highlight_color);
}

    a:hover {
        text-decoration: none;
        color: var(--highlight_color);
        text-shadow: 0 0 1px;
    }

    a.icon, a.back {
        display: flex;
        align-items: center;
        padding: 5px 5px 5px 0;
        margin-right: 20px;
        width: max-content;
    }

        a.icon > span, a.back > span {
            padding: 5px 5px 5px 0px;
        }

        a.icon:hover, a.back:hover {
            text-decoration: none;
        }

hr {
    opacity: 1;
    border-bottom: 1px solid var(--highlight_color);
}

button, input, select {
    font-weight: 300;
}


/*FLEX STUFF*/

.flex-row-space {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/*POPUPS*/
div.backdrop {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 105;
    background-color: rgba(200, 200, 200, 0.7);
}

div.error-popup {
    position: fixed;
    bottom: 100px;
    background-color: #E7004C;
    color: white;
    left: 0;
    right: 0;
    margin: auto;
    width: 500px;
    max-width: calc(100vw - 10px);
    border-radius: 20px;
    padding: 10px;
    display: none;
    box-shadow: 0 0 5px 5px var(--page_background_color);
    z-index: 110;
}

div.info-popup {
    position: fixed;
    bottom: 100px;
    background-color: var(--btn_solid_background);
    color: var(--btn_solid_text);
    left: 0;
    right: 0;
    margin: auto;
    width: 500px;
    max-width: calc(100vw - 10px);
    border-radius: 20px;
    padding: 10px;
    display: none;
    box-shadow: 0 0 5px 5px var(--page_background_color);
    z-index: 110;
}

div.confirm-popup {
    position: absolute;
    top: 30%;
    right: 0;
    left: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 500px;
    max-width: calc(100vw - 10px);
    min-height: 200px;
    background-color: var(--page_background_color);
    border: 2px solid var(--highlight_color);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

div.addon-popup {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 900px;
    max-width: calc(100vw - 10px);
    height: min-content;
    max-height: 800px;
    background-color: var(--page_background_color);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    overflow: auto;
}

div.addon-row {
    border-bottom: 1px solid var(--page_text_color);
    padding: 25px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

div.address-row {
    border-bottom: 1px solid var(--page_text_color);
    padding: 5px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

div.address-row button {
    float: right;
    width: 100px;
    height: 40px;
}

    div.addon-row:last-child, div.address-row:last-child {
        border-bottom: none;
    }


/*CONTAINERS*/

div.account-container {
    background-color: var(--nav_background_color);
    color: var(--nav_text_color);
    border-radius: 00px 0 20px 20px;
    position: absolute;
    top: 60px;
    right: 0px;
    width: 100%;
    max-width: 300px;
    padding: 20px 10px 10px 10px;
    text-align: center;
    font-size: large;
    display: none;
    z-index: 1;
}

    div.account-container > ul {
        list-style: none;
        padding: 0;
    }

    div.account-container:focus {
        outline: none;
    }


div.title-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 10px;
}

div.login-container {
    height: calc(100vh - 130px);
    min-height: max-content;
    width: 60%;
    min-width: 200px;
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    div.login-container input {
        margin-bottom: 30px;
    }

    div.login-container div.errormessage {
        margin-top: -30px;
        margin-bottom: 20px;
    }

    div.login-container label {
        font-size: larger;
    }

    div.login-container h3 {
        margin-bottom: 30px;
    }

    div.login-container a {
        font-size: large;
    }

div.login-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

    div.login-links > a {
        text-align: right;
    }

div.productdetail-container {
    border-radius: 20px;
    border: 2px solid var(--highlight_color);
    padding: 10px;
    margin-bottom: 20px;
}

div.draggable {
    border: 4px dashed var(--highlight_color);
    cursor: s-resize;
}

div.paging-container {
    margin-top: 5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.basket-btns {
    background-color: var(--btn_solid_background);
    color: var(--btn_solid_text);
    height: 45px;
    padding: 0 5px;
    margin-right: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

    div.basket-btns span {
        font-size: 16px;
    }

div.icon {
    background: var(--highlight_color);
    width: 22px;
    height: 22px;
    margin-right: 10px;
}

.nav-link div.icon {
    background: var(--highlight_color);
    width: 35px;
    height: 35px;
    height: 35px;
}


/*BUTTONS*/
button.logout {
    color: var(--nav_background_color);
    background-color: var(--nav_text_color);
    border-radius: 5px;
    min-width: min-content;
    width: 150px;
    height: 45px;
    margin: 5px 10px;
    border: none;
    font-size: large;
}

    button.logout:hover {
        filter: brightness(90%);
    }

    button.logout:active {
        filter: none;
    }

button.clear {
    color: var(--btn_clear_text);
    background-color: transparent;
    border: 1px solid var(--btn_clear_outline);
    border-radius: 5px;
    height: 40px;
    min-width: max-content;
    width: 150px;
    height: 45px;
    margin: 5px 0px 5px 10px;
    font-size: large;
}

    button.clear:hover {
        box-shadow: 0 0 1px 1px var(--btn_clear_outline);
    }

    button.clear:active {
        box-shadow: none;
    }

button.solid {
    color: var(--btn_solid_text);
    background-color: var(--btn_solid_background);
    border: none;
    border-radius: 5px;
    min-width: max-content;
    width: 150px;
    height: 45px;
    margin: 5px 0px 5px 10px;
    border: none;
    font-size: large;
}

    button.solid:hover, button.solid:disabled {
        filter: brightness(80%);
    }

    button.solid:active {
        filter: none;
    }

    button.solid:disabled:active {
        filter: brightness(80%);
    }

tr button.solid, tr button.clear {
    max-width: 80px;
    height: 35px;
}

button.delete {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    border: none;
    background-color: transparent;
    padding: 3px;
}

    button.delete > span {
        font-variation-settings: 'wght' 200;
    }

    button.delete:hover > span {
        font-variation-settings: 'wght' 300;
    }


button.delete-btn {
    color: white;
    background-color: #E7004C;
    border: none;
    border-radius: 5px;
    min-width: max-content;
    width: 150px;
    height: 45px;
    margin: 5px 0;
    border: none;
    font-size: large;
}

    button.delete-btn:hover, button.delete-btn:disabled {
        filter: brightness(80%);
    }

    button.delete-btn:active {
        filter: none;
    }

    button.delete-btn:disabled:active {
        filter: brightness(80%);
    }


button.icon {
    height: 35px;
    width: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px 0;
}

button.large {
    max-width: 200px;
    height: 60px;
    font-size: large;
}

button.tile {
    max-width: none;
    height: 150px;
    border-radius: 25px;
    font-size: x-large;
    margin: 5px 0;
    width: 100%;
    min-width: unset;
}

button.basket {
    height: 35px;
    max-width: 140px;
    color: var(--btn_solid_text);
    background: none;
    text-align: start;
    border: none;
    font-size: 25px;
    border: 0px solid white;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}


/*INPUTS*/
input, textarea {
    color: var(--page_text_color);
}

    input.login {
        width: 100%;
        height: 40px;
        margin-bottom: 10px;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid var(--page_text_color);
        background-color: transparent !important;
        outline: none !important;
        background-color: transparent !important;
    }

    input.order {
        width: 100%;
        height: 40px;
        margin-bottom: 10px;
        border-radius: 5px;
        border: none;
        outline: none !important;
        background-color: #eeeeee !important;
        padding-left: 5px;
    }

    textarea.order {
        width: 100%;
        height: 100px;
        margin-bottom: 10px;
        border-radius: 5px;
        border: none;
        outline: none !important;
        background-color: #eeeeee !important;
        padding: 5px;
    }

    input.date {
        border: 2px solid var(--highlight_color);
        border-radius: 1px;
        padding: 5px;
    }

    input.form-control, select.form-control {
        margin-bottom: 5px;
        font-weight: 300;
    }

    input[type=checkbox].form-check {
        width: 20px;
        margin: 7px 0;
    }

    input[type=color] {
        padding: 2px 5px;
        height: 35px;
    }

    input[type=date]::-webkit-calendar-picker-indicator {
        background: var(--highlight_color);
        -webkit-mask-image: url(../content/Icons/Dates.svg);
        mask-image: url(../content/Icons/Dates.svg);
        -wekkit-mask-size: contain;
        mask-size: contain;
        -wekkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -wekkit-mask-position: center;
        mask-position: center;
    }

    input[type=date]::-webkit-calendar-picker-indicator:hover {
        filter: brightness(80%);
    }

div.searchicon {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 15px;
    width: 35px;
    background: var(--highlight_color);
    -webkit-mask-image: url(../content/Icons/Search.svg);
    mask-image: url(../content/Icons/Search.svg);
    -wekkit-mask-size: contain;
    mask-size: contain;
    -wekkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -wekkit-mask-position: center;
    mask-position: center;
}

    input.basket {
        height: 35px;
        width: 35px;
        font-weight: 200;
        font-size: 18px;
        text-align: center;
        padding: 0;
        margin: 0;
        background: none;
        border: none;
        outline: none;
        color: var(--btn_solid_text);
        -moz-appearance: textfield;
    }

        input.basket::-webkit-outer-spin-button,
        input.basket::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

    input.paging {
        height: 35px;
        width: 50px;
        text-align: center;
        padding: 0;
        margin: 0 5px;
        background: none;
        border: 1px solid var(--page_text_color);
        border-radius: 10px;
        outline: none;
    }

    input.error, textarea.error, select.error {
        border-bottom: 1px solid #E7004C;
    }

    input.date.error {
        border-bottom: 2px solid #E7004C;
    }

div.errormessage {
    color: #E7004C;
    float: right;
    font-size: 10px;
    text-align: right;
    height: 10px;
    margin-top: -8px;
    margin-bottom: -8px;
    padding: 0;
    margin-right: 5px;
    width: max-content;
}

div.order.errormessage {
    margin-top: -13px;
}


div.basket-counter {
    position: absolute;
    top: 55%;
    right: 55%;
    width: 24px;
    height: 24px;
    background-color: var(--page_background_color);
    color: var(--page_text_color);
    border-radius: 12px;
    text-align: center;
    padding: 2px;
    font-size: 14px;
    font-weight: 500;
}

div.product-item {
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 40px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

    div.product-item > div {
        width: 100%;
        max-height: 300px;
    }


    div.product-item > p {
        font-weight: 300;
        font-size: large;
    }


h5.two-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

p.two-line {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

p.truncated {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    max-width: 200px;
}

td.truncated {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 0px;
}


div.product-image {
    position: relative;
    aspect-ratio: 1/1;
    background-color: #efefef;
    border-radius: 10px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 30px;
}

    div.product-image:hover {
        outline: 1px solid var(--highlight_color);
    }

div.recomended {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100px;
    height: 35px;
    border-radius: 9px 0 10px 0;
    background-color: var(--btn_solid_background);
    color: var(--btn_solid_text);
    text-align: center;
    font-size: small;
    font-weight: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}


/*Tables*/

table {
    width: 100%;
}

tr {
    border-bottom: 1px solid var(--page_text_color);
}

    tr.totals {
        border-bottom: none;
        vertical-align: top;
        font-size: large;
    }

        tr.totals td.highlighted {
            text-align: right;
            font-weight: 500;
            padding-right: 20px;
        }

th {
    padding: 20px 10px 10px 0;
    font-size: larger;
    font-weight: 400;
}

td {
    padding: 30px 15px 30px 0;
    font-size: large;
}

table.small-font td {
    font-size: medium;
}

tr:first-child {
    border-bottom: 1px solid var(--highlight_color);
    color: var(--highlight_color);
}

td.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

td button.solid {
    font-size: smaller;
}


/*Hover*/

span.hover-icon {
    float: right;
    position: relative;
    cursor: pointer;
}

    span.hover-icon:hover > span.hover-text {
        display: block;
    }

span.hover-text {
    z-index: 5;
    display: none;
    font-family: var(--bs-body-font-family);
    font-size: var(--bs-body-font-size);
    font-weight: var(--bs-body-font-weight);
    white-space: normal;
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 200px;
    height: max-content;
    padding: 5px;
    background-color: var(--page_background_color);
    border: 2px solid var(--highlight_color);
    border-radius: 10px;
}

table tr.table-row:nth-child(-n+2):not(:last-child) span.hover-text {
    top: 25px;
}

table tr.table-row:nth-child(-n+2):last-child span.hover-text {
    width: 300px;
}


/*Demo*/

div.page-demo {
    position: relative;
    padding: 60px 12% 5px 12%;
    border: 2px solid black;
}

@media (max-width: 576px) {
    div.page-demo {
        padding: 60px 15px 5px 15px;
    }
}

div.nav-demo {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 50px;
}

    div.nav-demo h6 {
        margin: 0 10px;
    }

    div.nav-demo span {
        padding: 0 10px;
    }


/*Anims*/

div.loading-anim {
    z-index: 100;
    position: fixed;
    left: calc(50% - 100px);
    top: calc(35% - 100px);
    width: 200px;
    height: 200px;
    border-radius: 100px;
    background-image: conic-gradient(transparent, var(--nav_background_color));
    -webkit-mask-image: radial-gradient(transparent 60px, white 60px);
    mask-image: radial-gradient(transparent 60px, white 60px);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
