body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.navbar-custom {
    background-color: #311c45;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navlinks-custom {
    color: #311c45;
    padding: 0.3rem 0.8rem;
    border-color: #311c45;
}

.navbar-nav .nav-item:not(:last-child) {
    border-right: 2px solid white;
    margin-right: 8px;
    padding-right: 8px;
}

footer {
    background-color: #29153b;
    color: white;
    text-align: center;
}

.content {
    display: flex;
    flex-direction: column;

    gap: 20px;
    padding-left: 70px;
    padding-right: 70px;
    min-height: 0;
}

.separator {
    height: 2px;
    background-color: #3b3b3b;
}


.adminButtonRow {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 60vh;
}

/*Limits the table height on big screens*/
.table-wrapper-admin {
    max-height: 60vh;
}

.input-quantity-selection {
    width: 40%;
    display: flex;
}

@media (max-width: 900px) {
    .input-quantity-selection {
        width: 50%;
    }
}

/* Custom thin screen stuff */
@media (max-width: 768px) {
    .table-wrapper-admin {
        max-height: none;
    }

    .adminButtonRow {
        gap: 20px;
    }
    .content {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 600px) {
    .input-quantity-selection {
        width: 70%;
    }
}

@media (max-width: 450px) {
    .input-quantity-selection {
        width: 90%;
    }
}

.product-page-image-container {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.product-page-image-container .product-image {
    border-radius: 10px;
    min-width: 100%;
    max-width: 100%;
}

#adminUsersTable {
    table-layout: auto;
}

#adminUsersTable td:last-child {
    width: 1%;
}

/*Product page styling*/
.products_grid {
    justify-content: center;
    text-align: center;
}

.product-card {
    border-color: #5a3e75;
    border-radius: 15px;
    border-style: solid;
    border-width: thick;
    display: flex;
    flex-direction: column;
}

/*Image white background for transparent backgrounds and curved top corners*/
.product-img {
    border-radius: 10px 10px 0 0;
    height: 100%;
    object-fit: cover;
}

/*White background and curved bottom corners*/
.product-info {
    border-radius: 0 0 10px 10px;
}

/*Margin between text lines, default = too large*/
.product-info p {
    margin: 2px 0;
}

/*Slightly modify heading and subheading text*/
.make {
    font-weight: bold;
}

.model {
    font-weight: 500;
}

.basket-item {
    border-color: #5a3e75;
    border-radius: 15px;
    border-style: solid;
    border-width: thick;
    display: flex;
    flex-direction: row;
}

.basket-img {
    border-radius: 10px 0 0 10px;
    width: 25%;

    object-fit: cover;
}

.basket-info-and-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.basket-bin {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-right: 10px;
    padding-left: 10px;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    border-left: 2px solid #5a3e75;
}

.basket-bin:hover {
    background-color: rgba(90, 62, 117, 0.18);
    color: red;
}

#checkoutBar {
    /*Sticky and on top*/
    position: sticky;
    bottom: 0;
    z-index: 100;

    /*Centered and sized*/
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    padding: 10px 30px;
    gap: 8px;

    /*Colours and style*/
    background-color: #29153b;
    color: white;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);

    /*This moves the gap applied by the body, to above this sticky bar*/
    margin-bottom: -30px;
    margin-top: auto;


}

.order-history-item {
    border-color: #5a3e75;
    border-radius: 15px;
    border-style: solid;
    border-width: medium;
    display: flex;
    flex-direction: row;
}

.order-title {
    max-height: 58vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.order-header {
    position: sticky;
    top: 0;
    /*Bootstrap for light/dark theme auto switch*/
    background: var(--bs-body-bg);
    z-index: 10;
    padding-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.order-item {
    border-color: #5a3e75;
    border-radius: 15px;
    border-style: solid;
    border-width: thick;
    display: flex;
    flex-direction: row;
}

.order-img {
    border-radius: 10px 0 0 10px;
    width: 25%;

    object-fit: cover;
}

.order-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}