* {
    box-sizing: border-box;
}

body {
    background-color: #383838;
    font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
    padding: 0 !important;
}

nav {
    font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
    background-color: #222;
    margin-bottom: 1rem;
    padding: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 92vh;
    background-image: url("/images/steam.svg");
    background-repeat: no-repeat;
    background-size: 40%;
    background-position: center 12.5rem;
    background-attachment: fixed;
}

h1 {
    color: #eee;
    margin-bottom: 0;
}

h2 {
    height: 2.5rem;
    margin-bottom: 0;
}

p {
    margin-bottom: 0;
}

.navbar {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar>.container-fluid {
    justify-content: space-between;
}

.row {
    width: 100%;
    justify-content: center;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem;
    margin-bottom: 1rem;
    margin-right: 4em;
    border-style: solid;
    border-width: .4rem;
    border-radius: .25rem;
}

section>div:first-of-type,
section>div:nth-of-type(2) {
    padding: .5rem;
}

.sectionHeaderRow div {
    padding-left: 0;
}

h3 {
    font-size: 1.25rem;
}

.priceContainer,
.discountContainer,
.resultsContainer {
    background-color: #bbb;
}

.formContainer,
.priceContainer,
.discountContainer,
.resultsContainer {
    height: 2.875rem;
    line-height: 1.5;
    padding: .25rem 0;
    margin-bottom: .25rem;
    align-items: center;
}

/* ------------------------------------------------ */
/* Wishlist */
/* ------------------------------------------------ */

#wishlist {
    background-color: #1A293A;
    border-color: #171D25;
    color: #fff;
}

#btnReset {
    display: flex;
    color: #9E332B;
    background-color: #7C7C7E;
    height: 2rem;
    width: 4rem;
    padding: 0 .2rem 0 0;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-size: .80rem;
    letter-spacing: 1px;
    border-top: 1px solid #7C7C7E;
    border-left: 1px solid #7C7C7E;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-radius: 2px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 6px 0 #5E5E60, 0 9px 15px rgba(0, 0, 0, 0.3);
}

#btnReset:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #5E5E60, 0 15px 30px rgba(0, 0, 0, 0.3);
}

#btnReset:active {
    transform: translateY(6px);
    box-shadow: 0 3px 0 #5E5E60, 0 6px 15px rgba(0, 0, 0, 0.3);
}

#btnReset div {
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: end;
    align-items: end;
}

#wishlist .sectionHeaderRow div:first-of-type h3 {
    padding-left: .5rem;
}

#wishlist>.row:first-of-type {
    background-color: #171D25;
    color: #fff;
    border: 1px solid #999;
    border-radius: .25rem;
}

#wishlist>.row:first-of-type>div,
#wishlist>.row>div:nth-of-type(3) {
    width: 5rem;
}

#wishlist .sectionHeaderRow div:nth-of-type(4) {
    width: 3rem;
}

.formContainer {
    background-color: #999;
    border-radius: .25rem;
}

.formContainer .row {
    justify-content: center;
}

.formContainer .form {
    flex-wrap: nowrap;
}

.input-group * {
    border-color: #111;
}

.formContainer .input-group-text {
    background-color: #eee;
}

.btnAddGame {
    width: 3rem;
    background: linear-gradient(#ffb42a, #c47f00);
    color: #111;
    font-weight: 500;
}

.btnAddGame:disabled {
    color: #111;
    border-color: transparent;
    background: linear-gradient(#777, #444);
}

#wishlist .sectionHeaderRow,
#price .sectionHeaderRow,
#discount .sectionHeaderRow {
    padding: .5rem 0 0 0 !important;
    height: 2.5rem;
}

.game-name,
.price-game,
.discount-game,
.results-game {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#price,
#discount {
    color: #AEB281;
    background-color: #3F4638;
    border-color: #3F4638;
}

#price .sectionTitle,
#discount .sectionTitle {
    background-color: #282E23;
    border: 1px solid #3F4638;
}

#wishlist .sectionHeaderRow,
#wishlist h2,
#wishlist p,
.input-group-text,
#price,
#discount,
#results .sectionTitle,
#results .sectionHeaderRow {
    pointer-events: none;
    user-select: none;
}

#price span,
#discount span,
#results span {
    height: 1rem;
    width: 1rem;
}

.priceContainer,
.discountContainer,
.resultsContainer {
    color: #333;
}

.priceContainer div>div,
.discountContainer div>div,
.resultsContainer div>div {
    padding: .375rem .75rem;
}


/* Wishlist drag-and-drop */
.drag-handle {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.formContainer.dragging {
    opacity: 0.4;
}

/* ------------------------------------------------ */
/* Discount */
/* ------------------------------------------------ */

#discount {
    margin-right: 0;
}

/* ------------------------------------------------ */
/* Results */
/* ------------------------------------------------ */

#results {
    background-color: transparent;
    border-color: #5BB56E;
    color: #ddd;
    margin-right: 0;
    height: fit-content;
    /* visibility: hidden; */
}

#results .sectionTitle {
    background-color: #222;
    color: #5BB56E;
    margin-bottom: .5rem;
}

#results .sectionHeaderRow {
    align-items: end;
    justify-content: center;
    color: #ddd;
    padding: .5rem 0 0 0;
    background-color: #313131;
    margin-bottom: .5rem;
}

#results .green {
    color: #5BB56E;
    background-color: transparent;
}

.resultsContainer:hover {
    cursor: pointer;
}

.boughtIt {
    background-color: #5BB56E;
    background-image: url("/images/currency-dollar.svg");
    background-position: left center;
    background-size: auto 100%;
    background-repeat: repeat-x;
}

.boughtIt .results-game span,
.boughtIt .results-count span {
    background-color: #5BB56E;
    padding: 2px;
}

#PriceContainerGame1,
#DiscountContainerGame2 {
    font-size: 14px;
}

/* ------------------------------------------------ */
/* for the green! */
/* ------------------------------------------------ */

/* Top game highlighting */
.top-game {
    background-color: #5BB56E;
}

/* Wishlist input backgrounds */
.top-game .input-group * {
    background-color: #5BB56E;
}

/* Wishlist number column */
.top-game .input-group-text {
    background-color: #4AA65C;
}

.top-game .game-number-value {
    background-color: transparent;
}