/* CSS RESET */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
/* END CSS RESET */

@font-face {
    font-family: RL;
    src: url(fonts/MicroFLF.ttf);
}
@keyframes animatedBlackMarket {
	from {
        -webkit-transform:  translateY(0);
        -ms-transform:  translateY(0);
        -o-transform:  translateY(0);
        -moz-transform:  translateY(0);
        transform:  translateY(0);
    }
	to {
        -webkit-transform:  translateY(5px);
        -ms-transform:  translateY(5px);
        -o-transform:  translateY(5px);
        -moz-transform:  translateY(5px);
        transform:  translateY(5px);
    }
}
@keyframes newItemAnimation {
    from {
        -webkit-transform:  scale(2);
        -ms-transform:  scale(2);
        -o-transform:  scale(2);
        -moz-transform:  scale(2);
        transform:  scale(2);
    }
    to {
        -webkit-transform:  scale(1);
        -ms-transform:  scale(1);
        -o-transform:  scale(1);
        -moz-transform:  scale(1);
        transform:  scale(1);
    }
}

html, body {
    height: 100vh;
    width: 100vw;
    font-family: RL;
}
body {
    background: url(img/background.jpg) center / cover no-repeat;
    overflow: auto;
    overflow-x: hidden;
}
h1 {
    font-size: 48px;
    color: #fff;
    text-transform: uppercase;
}
strong {
    font-weight: bold;
}
button {
    font-family: RL;
    font-size: 18px;
    background: #103352;
    padding: 0 30px;
    height: 40px;
    border: none;
    margin-top: 15px;
    color: #fff;
    text-transform: uppercase;
    border-radius: 5px;
    box-shadow: inset 0 4px 10px #2E7BB5, 0 0 10px #000;
    cursor: pointer;
}
button:hover {
    background: #C6F0FF;
    color: #133A59;
    box-shadow: 0 0 10px #C6F0FF;
    font-weight: bold;
}
button:focus, button:active {
    outline: 0;
}
.legal {
    color: #fff;
    margin-top: 20px;
}
#wrapper {
    padding: 10px;
    max-width: 882px;
    margin: auto;
}
#inventory {
    background: linear-gradient(#143C59, #030F1D);
    padding: 10px;
    border: 1px solid #3C87C4;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
    min-height: 100px;
    max-width: 882px;
}
#inventory #items-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-content: baseline;
    margin-top: 5px;
    overflow-y: scroll;
    height: 650px;
}
#inventory #items-wrapper::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
	border-radius: 10px;
	background-color: #1f567e;
}
#inventory #items-wrapper::-webkit-scrollbar {
	width: 12px;
	background-color: #1f567e;
    border-radius: 10px;
}
#inventory #items-wrapper::-webkit-scrollbar-thumb {
	border-radius: 10px;
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
	background-color: #4b74e0;
}
#inventory .item {
    -webkit-animation: newItemAnimation 0.3s ease-in;
    transition: 0.2s;
    width: 115px;
    height: 135px;
    background: white;
    border-radius: 6px;
    display: block;
    position: relative;
    margin: 4px;
    -moz-background-clip: padding;
    -webkit-background-clip: padding;
    background-clip: padding;
    -moz-box-shadow: inset -4px 4px 6px #000000, inset 4px -4px 6px #000000, 0px 0px 2px 3px rgba(255, 255, 255, 0);
    -webkit-box-shadow: inset -4px 4px 6px #000000, inset 4px -4px 6px #000000, 0px 0px 2px 3px rgba(255, 255, 255, 0);
    box-shadow: inset -4px 4px 6px #000000, inset 4px -4px 6px #000000, 0px 0px 2px 3px rgba(255, 255, 255, 0);
}
#inventory .item:nth-of-type(0) { z-index: 100; }
#inventory .item:nth-of-type(1) { z-index: 90; }
#inventory .item:nth-of-type(2) { z-index: 80; }
#inventory .item:nth-of-type(3) { z-index: 70; }
#inventory .item:nth-of-type(4) { z-index: 60; }
#inventory .item:nth-of-type(5) { z-index: 50; }
#inventory .item:hover {
    box-shadow: inset -4px 4px 6px #000000, inset 4px -4px 6px #000000, 0px 0px 2px 3px rgba(255, 255, 255, 1);
}
#inventory .item .item-thumbnail {
    display: block;
    height: calc(100% - 20px);
    position: relative;
    background-size: 90%;
    background-position: center;
    background-repeat: no-repeat;
}
#inventory .item .item-info {
    position: absolute;
    width: 100%;
    bottom: 6px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
#inventory .item .item-certification {
    color: #fff;
    text-shadow: 0px 0px 10px #fff;
    display: block;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.8), rgba(0,0,0,0));
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8em;
    line-height: 1.1em;
}
#inventory .item .item-name {
    text-align: center;
    letter-spacing: -0.5px;
    font-size: 14px;
    word-wrap: normal;
    cursor: default;
    line-height: 16px;
    padding: 0 3px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5),
                -2px -2px 5px rgba(0,0,0,0.5),
                -2px 2px 5px rgba(0,0,0,0.5),
                2px -2px 5px rgba(0,0,0,0.5),
                0 2px 5px rgba(0,0,0,0.5),
                0 -2px 5px rgba(0,0,0,0.5),
                -2px 0 5px rgba(0,0,0,0.5),
                2px 0 5px rgba(0,0,0,0.5);
}

/* Rarity Styles */
#inventory .item[data-rarity="Limited"] {
    background: linear-gradient(#1B100C, #402316);
    color: #FB7C44;
}
#inventory .item[data-rarity="Uncommon"] {
    background: linear-gradient(#0D171D, #223A43);
    color: #80D5F6;
}
#inventory .item[data-rarity="Rare"] {
    background: linear-gradient(#0C111D, #1B253C);
    color: #6989E0;
}
#inventory .item[data-rarity="Very Rare"] {
    background: linear-gradient(#0F0E1D, #282045);
    color: #9472F3;
}
#inventory .item[data-rarity="Import"] {
    background: linear-gradient(#1C0C0F, #411316);
    color: #EC2020;
}
#inventory .item[data-rarity="Exotic"] {
    background: linear-gradient(#18180C, #3F3A18);
    color: #CAAB04;
}
#inventory .item[data-rarity="Black Market"] {
    background: linear-gradient(#1F0A5B, #530D8A);
    color: #F900BC;
    box-shadow: inset -4px 4px 6px #170D53, inset 4px -4px 6px #170D53, 0px 0px 2px 3px rgba(255, 255, 255, 0);
}
#inventory .item[data-rarity="Black Market"]:hover {
    box-shadow: inset -4px 4px 6px #170D53, inset 4px -4px 6px #170D53, 0px 0px 2px 3px rgba(255, 255, 255, 1);
}
#inventory .item[data-rarity="Black Market"] .item-thumbnail {
    animation: animatedBlackMarket 1.18s ease-in-out infinite;
    -webkit-animation-direction: alternate-reverse;
    height: 100%;
    background-size: 100% !important;
    background-position: initial;
}

/* Painted Styles */
#inventory .item[data-painted="Black"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #414041);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Black"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #414041);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Burnt Sienna"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #774437);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Burnt Sienna"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #774437);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Cobalt"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #455ED2);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Cobalt"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #455ED2);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Crimson"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #B2393B);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Crimson"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #B2393B);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Forest Green"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #34A036);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Forest Green"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #34A036);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Grey"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #6A7982);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Grey"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #6A7982);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Lime"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #A6DB38);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Lime"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #A6DB38);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Orange"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #D87537);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Orange"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #D87537);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Pink"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #D260B2);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Pink"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #D260B2);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Purple"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #6A359F);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Purple"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #6A359F);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Saffron"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #DCDD37);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Saffron"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #DCDD37);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Sky Blue"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #3AA2D7);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Sky Blue"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #3AA2D7);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Titanium White"]::before {
    content: '';
    background: linear-gradient(to right, rgba(0,0,0,0), #FAF6FA);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 2px;
    width: 90%;
    border-top-right-radius: 10px;
}
#inventory .item[data-painted="Titanium White"]::after {
    content: '';
    background: linear-gradient(to top, rgba(0,0,0,0), #FAF6FA);
    display: block;
    border-radius: 3px;
    right: 3px;
    top: 3px;
    position: absolute;
    height: 90%;
    width: 2px;
    border-top-right-radius: 10px;
}

/* Mobile Styling */
@media (max-width: 767px) {
    #wrapper {
        height: calc(100vh - 20px);
    }
    #inventory  {
        height: calc(100% - 20px - 120px);
    }
    #inventory #items-wrapper {
        height: auto;
        max-height: calc(100% - 60px);
    }
    #inventory h1 {
        font-size: 36px;
    }
}
@media (max-width: 500px) {
    #inventory h1 {
        font-size: 32px;
    }
    #inventory .item {
        width: 100px;
        height: 117px;
    }
}
