* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: umbra;
  src: url('/static/umbra.otf');
}

input[name="personalisation"] {
    width: 15em;
}

.msg_error, .login_warning {
    color: red;
    font-size: 16px;
    align-self: center;
    margin-bottom: 16px;
}


body {
    background: white;
    color: black;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    justify-content: center;
    align-items: center;
}

h2 {
    color: #2e9846;
    margin-bottom: 16px;
}

a {
    color: #2e9846;
}

header {
    width: 100%;
    height: 64px;
    background-color: white;
    color: rgba(46,152,70,.87);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,.14);
    padding: 0 24px;
    z-index: 998;
}

form input {
    margin: 8px 8px 24px;
    width: 4em;
    text-align: center;
}

header h1 {
    font-size: 24px;
    text-align: center;
    font-weight: normal;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 0 8px 64px;
}

main.home {
    background-color: black;
    color: white;
    justify-content: center;
}

main.events {
    background-color: black;
}

main img {
    max-height: 40vh;
    max-width: 90vw;
}

main p {
    font-size: 2em;
}

form p {
    font-size: 12px;
    text-align: left;
    line-height: 24px;
    max-width: 600px;
}

form img {
    max-width: 400px;
    max-height: 400px;
}

form label {
    display: block;
    text-align: center;
}

form input {
    min-width: 240px;
    text-align: left;
}

form button {
    display: block;
    margin: 12px auto 0;
}

form .cart-item {
    text-align: center;
    text-transform: capitalize;
}

form .cart-item span {
    text-transform: uppercase;
}

form div {
    text-align: center;
}

#social-media-links {
    display: flex;
    justify-content: center;
    margin-top: 2em;
}

#social-media-links img {
    height: 48px;
    width: 48px;
    margin: 0 16px;
}

footer {
    display: flex;
    justify-content: center;
}

#cart-header {
    position: sticky;
    top: 0;
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    background-color: white;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,.14);
    padding: 0 12px;
}

#cart-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

nav {
    position: fixed;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 48px;
    max-width: 800px;
    background-color: white;
    color: black;
    box-shadow: 0 0 4px 1px rgba(0,0,0,.15);
}

nav a {
    height: 24px;
    width: 24px;
    text-decoration: none;
    color: rgba(0,0,0,.75);
    text-transform: capitalize;
    font-size: 1em;
    padding: 0 24px;
    position: relative;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

nav a#home {
    background-image:  url('/static/home.svg');    
}

nav a#events {
    background-image:  url('/static/events.svg');    
}

nav a#shop {
    background-image:  url('/static/shop.svg');    
}

nav a#profile {
    background-image:  url('/static/account.svg');    
}

nav a#cart {
    background-image:  url('/static/cart.svg');
}


nav a:hover {
    color: rgba(0,0,0,.95);
}

#processDialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background-color: rgba(0,0,0,.65);
    display: none;
    justify-content: center;
    align-items: center;
    color: rgba(0,0,0,.87);
}

#processMsg {
    background-color: white;
    padding: 16px 24px
}


.event_list {
    position: relative;
    border-left: 3px solid #2E9846;
    padding: 24px 0 24px 16px;
    list-style: none;
    max-width: 640px;
    margin: 0 24px;
}

.event_list li {
    margin-bottom: 8px;
}

.event_list p {
    color: white;
    font-size: 16px;
}

.event_date {
    position: relative;
    background-color: #2E9846;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 24px;
}

.event_date:before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    margin-top: -7px;
    height: 12px;
    width: 12px;
    background-color: #2E9846;
    border-radius: 50%;
}

.event_date:after {
    content: '';
    position: absolute;
    height: 2px;
    width: 16px;
    background-color: #2E9846;
    left: -16px;
    top: 15px;
}

.event_title {
    margin: 16px 0 4px;
}

.event_url {
    display: inline-block;
    background-color: rgba(255,255,255,0.99);
    padding: 4px 8px;
    text-decoration: none;
    color: rgba(0,0,0,1);
    margin-top: 4px;
}

/***************************PROFILE***************************/

main.login {
    justify-content: center;
}

main.login p {
    text-align: center;  
    margin-bottom: 24px;  
}

main.profile {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
}

main.profile > div {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.userInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #2e9846;
}

.userName {
    font-size: 36px;
}

.userLevel {
    font-size: 16px;
}

.umbra-logo {
    font-family: umbra;
    font-size: 24px;
    text-align: center;
    color: #2e9846;
}

.eventInfo {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eventInfo p {
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
}

.orders p {
    margin-top: 16px;
    font-size: 14px;
}

.orders .order {
    margin-bottom: 8px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 4px 1px rgba(0,0,0,.15);
}

.orderInfo, .orderOptions {
    display: flex;
    justify-content: space-between;
    padding: 8px 8px;
}

.orderStatusPaid, .orderStatusNotPaid, .orderOptions a {
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.orderStatusPaid {
    background-color: #2e9846;
}

.orderStatusNotPaid {
    background-color: red;
}

.orderOptions a {
    background-color: #2e9846;
    text-decoration: none;
}

#add-to-cart-button {
    position:relative;
}

#add-to-cart-button.inCart {
    padding-left: 36px;
}

#add-to-cart-button.inCart::before {
    content: url('/static/check.svg');
    position: absolute;
    display: flex;
    align-items: center;
    left:  4px;
    top: 0;
    bottom: 0;
}

/**********************SHOP************************/
main.shop {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 16px 8px;
    max-width: 1400px;
}

.shop-banner {
    padding-top: 26%;
    background-color: #2c2c2c;
    width: 100%;
    background-image: url('/static/shop-banner.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.shop .shop-item {
    background-color: rgba(255,255,255,0.99);
    margin: 0 16px 16px;
    width: 300px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    box-shadow: 0 0 4px 1px rgba(0,0,0,.15);
}

.shop .shop-item-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height:100%;
    height: 200px;
    max-width:100%;
    width: 300px;
}

.shop .shop-item img {
    width: 100%;
    height: 200px;
}

.shop .shop-item-details {
    padding: 8px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.shop .shop-item-details p {
    font-size: 1em;
    color: rgba(0,0,0,.87);
    flex: 1 0 auto;
}

.shop .shop-item-price {
    font-size: 2em;
    color: rgba(0,0,0,.87);
}

.shop .shop-item-details-pricing {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    width: 100%;
}

.shop .shop-item-details a {
    background-color: #2e9846;
    padding: 4px 16px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/**********************SHOPITEM*********************/
main.shop-item {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
}

.shop-item__main {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding-top: 16px;
}

.shop-item__main > div {
    width: 100%;
}

.shop-item__images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 24px;
}

#shop-item__images__image {
    max-width: 95%;
}

.shop-item__images__thumbnails {
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.image_thumbnail {
    margin: 0 8px;
}

.shop-item__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.shop-item__details__price {
    font-size: 2.4em;
    align-self: center;
    margin: 16px 0;
}

.shop-item__details__form {
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 24px;
}

.shop-item__details__form select {
    margin-bottom: 16px;
}

.shop-item__specifics {
    width: 100%; 
    max-width: 800px;
}

.size_chart {
    margin-bottom: 24px;
    width: 100%;
    max-width: 400px;
    align-self:center;
}

.shop-item__specifics__sizetable p {
    font-size: 16px;
}

.shop-item__specifics__table {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.shop-item__specifics__table img {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    align-self: center;
}

.shop-item__specifics__table > div {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start
}

.shop-item__specifics__table > div > div {
    flex: 1;
    margin-bottom: 16px;
}

.shop-item__specifics__table > div div {
    text-transform: capitalize;
}

.shop-item h2 {
    margin: 24px 0;
}

button {
    padding: 8px 16px;
    color: white;
    background-color: #2e9846;
    border: none;
    cursor: pointer;
}

button:disabled {
    background-color: darkgray;
}

#added-to-cart {
    margin-top: 4px;
    display: none;
}

/***********************ORDER***********************/

.order__payment p {
    font-size: 14px;
    margin: 8px 4px;
}

.order__status__line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 16px; 
}

img.payment_barcode {
    max-width: 128px;
    max-height: 128px;
    width: 100%;
}



/**********************SHOPCART********************/
.attention {
    background-color: #f7f7f7;
    padding: 8px 16px;
    text-align:center;
}

main.cart {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
}

main.cart > div {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

main.order {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
}

main.order > div {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

.cart-item {
    display: flex;
    flex-direction: row;
    /* max-height: 64px; */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin : 8px;
}

.cart__items p {
    margin: 16px 8px;
    font-size: 14px;
}

.cart-item div:nth-child(1) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item img {
    max-width: 64px;
    margin-right: 16px;
}

.delete {
    background-color: transparent;
    background-image: url('/static/delete.svg');
    background-repeat: no-repeat;
    height: 48px;
    width: 48px;
    background-position: center center;
}

.cart__total {
    font-size: 36px;
}

.cart__place-order {
}

.cart__place-order p {
    font-size: 12px;
}

/**********************ERROR***********************/
main.error {
    justify-content: center;
    background-color: black;
}

main.error p {
    font-size: 24px;
    color: white;
}

main.error a {
    color: #2E9846
}

@media screen and (min-width: 400px) {
    nav {
        height: 64px;
    }

    nav a {
        top: -8px;
    }

    nav a#profile:after {
        content: 'Profile';
        position: absolute;
        left: 4px;
        top: 24px;
    }

    nav a#home:after {
        content: 'Home';
        position: absolute;
        left: 4px;
        top: 24px;
    }

    nav a#events:after {
        content: 'Events';
        position: absolute;
        left: 4px;
        top: 24px;
    }

    nav a#shop:after {
        content: 'Shop';
        position: absolute;
        left: 8px;
        top: 24px;
    }

    nav a#cart:after {
        content: 'Cart';
        position: absolute;
        left: 10px;
        top: 24px;
    }
}

@media screen and (max-width: 600px) {
    .shop-item__main {
        flex-direction: column;
        align-items: flex-end
        
    }

    form input, form select {
        min-height: 48px;
    }
}
