/* styles for shop items */

#shop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: black;
    background-image: url('../image/background.jpg');
    /* background-color: rgba(0,0,0,0.5); */
    color: white;
    padding: 1em;
    font-size: medium;
    overflow-y: scroll;
    z-index: 20;
}

#shop nav {
    display: flex;
    flex-direction: row;
    font-size: medium;
    text-align: center;
    margin-bottom: 1ex;
}
#shop .back {
    background-color: transparent;
    border: 0;
    background-image: url('../image/go-previous.png');
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: none;
}
#shop h1 {
    flex: 1;
    margin: 0;
    padding: 0;
    align-self: center;
}
#shop .credit {
    color: yellow;
    background-color: transparent;
    border: 1px solid yellow;
    font-weight: bold;
    box-shadow: none;
}

/*
#shop .credit:after {
    content: "Buy more";
    display: block;
}
*/

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/*
#shop .credit:after {
    content: "Buy more";
    display: block;
}
*/

#shop .buy_more {
    display: none;
}
#shop .blink {
    display: block;
    animation: blink 0.3s linear;
    animation-iteration-count: 3;
}

#shop article {
    display: flex;
    flex-direction: row;
    margin-bottom: 1ex;
}
#shop article:hover {
    background-color: rgba(0,127,255,0.5);
}

#shop article b:after {
    content: ': ';
}

#shop article p {
    flex: 1;
    margin: 0;
    margin-right: 1ex;
}

#shop article .now {
    color: lime;
    display: block;
}
#shop article .next {
    color: yellow;
    display: block;
}

#shop img {
    width: 48px;
    height: 48px;
    border: 0;
    float: left;
    margin-right: 1ex;
    image-rendering: optimizespeed;
    image-rendering: pixelated;
}

#shop button {
    min-width: 1.5cm;
    min-height: 1.3cm;
}

#shop button:active {
    opacity: 0.3;
}

#shop button.notavailable {
    background-color: darkred;
    color: red;
    border: 1px solid red;
}

#shop button.available {
    border: 1px solid lime;
    background-color: darkgreen;
    color: lime;
}

#shop button.noborder {
    border: 0;
    outline: 0;
}

#shop .effects {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 1ex;
}
#shop .effects label {
    padding: 0;
}
