﻿/* Common */
/* ------ */

body {
    margin: 0;
    font: 16px arial, verdana;
    background-color: #F0F0F0;
}

.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;
    }

/* Layout */
/* ------ */

.brandedBackground {
    background-image: url("Images/LandingImage.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#container {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
/*    display: flex;
    flex-direction: row;
*/    justify-content: center;
}

#photographListContainer {
/*    position: relative;
*/    left: 8px;
    right: 8px;
    bottom: 8px;
    overflow-y: auto;
    height: 87vh;
}

#productListContainer {
    height: 90vh;
/*    position: relative;
*/    top: 42px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Small */
@media only screen and (max-width: 400px) {

    #content {
        position: relative;
        width: 100%;
        text-align: center;
    }

    #photographList {
    }

    #productList {
    }

    .orderItemImageContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 16px;
    }
}

/* Large */
@media only screen and (min-width: 401px) {

    #content {
        position: relative;
        width: 100%;
        text-align: center;
/*        max-width: 1260px;
*/    }

    #photographList {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 8px;
        justify-content: center;
        align-items: flex-end;
    }

    #productList {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        column-gap: 8px;
        justify-content: center;
        align-items: flex-end;
    }
}

@media only screen and (max-width: 600px) {
    
    .orderItemImageContainer {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 16px;
    }

    .productName {
        text-align: start;
        font-size: 16px;
        font-weight: 400;
    }

    .productTotal {
        text-align: end;
        font-size: 16px;
        font-weight: 600;
    }
}
@media only screen and (min-width: 601px) {
    
    .orderItemImageContainer {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        column-gap: 16px;
    }

    .productName {
        text-align: start;
        font-size: 20px;
        font-weight: 400;
    }

    .productTotal {
        text-align: end;
        font-size: 20px;
        font-weight: 600;
    }    
}


@media only screen and (max-width: 480px) {
    
    .orderItemDetails {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    
}
@media only screen and (min-width: 481px) {
    
    .orderItemDetails {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
}

.marginTop4 {
    margin-top: 4px;
}

.marginTop12 {
    margin-top: 12px;
}

.marginBottom8 {
    margin-bottom: 8px;
}

.margin8 {
    margin: 8px;
}

.marginBottom24 {
    margin-bottom: 24px;
}

.marginTopBottom8 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.marginTopBottom24 {
    margin-top: 24px;
    margin-bottom: 24px;
}

.marginLeftRight2 {
    margin-left: 2px;
    margin-right: 2px;
}

.marginRight8 {
    margin-right: 8px;
}

.horizontalSpacerSmall {
    margin-right: 4px;
}

/* General styling */

.errorMessage {
    font-size: 16px;
    color: #A02020;
}

.primaryCallToAction {
    color: #008000;
}

.imageChangeIcon {
    margin: 10px;
    padding: 8px;
    font-size: 16px;
    color: white;
    background: #000;
    border-radius: 20px;
    opacity: 0.25;
    pointer-events: none;
}

.imageChangeIconCentre {
    text-align: center;
}

.imageChangeIconRight {
    text-align: right;
}

.imageLabel {
    font-size: 12px;
    color: #909090;
}

/* Text */

.textSmall {
    font-size: 0.85rem;
}

/* Navigation bar */

.navigationBar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: row;
    height: 38px;
    padding: 4px;
    font-size: 20px;
}

    .navigationBar > .barIcon {
        color: black;
        cursor: pointer;
    }

    .navigationBar > .barLabel {
        margin-left: 4px;
        color: black;
        cursor: pointer;        
    }

    .navigationBar > .barSpace {
        flex-grow: 1;
    }

    .navigationBar > .barItem {
        flex-basis: auto;
    }

/* CartButton */

.cartIcon {
    font-size: 30px;
}

.cartItemCount {
    position: absolute;
    left: 16px;
    top: 4px;
    font-size: 12px;
    color: white;
}

/* InputAccessCodeEntry */

#inputAccessCodeEntry {
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    font-size: 24px;
    border: 2px solid black;
}

.inputAccessCodeEntryContainer {
    width: 90%;
    background-color: #FFFFFFB0;
    border-radius: 12px;
    padding: 24px;
}

#inputAccessCodeEntry::placeholder {
    font-size: 24px;
    color: #CCC;
}

/* Quantity */

.quantityButton {
    border: 2px solid #00D000;
    background-color: #00D000;
    color: white;
    font-size: 20px;
}

.quantityInput {
    padding: 0;
    border: 2px solid #00D000;
    background-color: #FFFFFF;
    color: black;
    font-size: 20px;
}

/* Product card */

.productCard {
    padding: 16px;
    border: 2px solid #D8D8D8;
    background: #fff;
}

.productPhotograph {
    object-fit: contain;
}

.productBackground {
    object-fit: cover;
}

.productCardIcon {
    font-size: 16px;
    color: black;
}

/* Cart */

.shippingOptionDescription {
    font-size: 0.8rem;
    color: #AAA;
}

.shippingOptionCost {
    font-size: 16px;
    text-align: right;
    font-weight: 600;
}

.total {
    font-size: 20px;
    text-align: right;
    font-weight: 600;
}

/* Photographs page */

.countIcon {
    font-size: 18px;
    color: black;
    opacity: 0.33;
    vertical-align: middle;
}

.countLabel {
    font-size: 14px;
    color: black;
    opacity: 0.33;
    vertical-align: middle;
}

.countValue {
    font-size: 20px;
    color: black;
    vertical-align: middle;
}
