#popupTrades {
    flex-direction: column;
}

#tradesContainer {
    max-width: 1200px;
    z-index: 1;

    color: #754715;
}

.tradeRow {
    display: flex;
    flex-wrap: wrap;
    /*justify-content: space-around;*/
    justify-content: center;
    margin: 40px 0;
}

.tradeNames {
    margin-bottom: -70px;
}

.tradeNames .tradeYou, .tradeNames .tradeOther {
    background-image: url("../images/label_package.png");
    background-repeat: no-repeat;
    background-size: 100%;

    width: 250px;
    height: 80px;

    font-family: 'Philosoper', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #754715;

    flex: 0;

    padding: 24px 0 0 0;
}

.tradeButton {
    width: 150px;
}
.tradeButton .exchangeItems img {
    width: auto;
    height: 65px;
    transition: transform 1s ease-in-out;
    cursor: pointer;
}
.tradeButton .exchangeItems img:hover {
    transform: rotate(180deg);
}

.tradeYou, .tradeOther {
    min-width: 250px;
    padding: 20px 40px;
    flex: 1;
}
.tradeYou .icon, .tradeOther .icon {
    flex: none;
}

.tradeYou .smallItems, .tradeOther .smallItems {
    flex-wrap: nowrap;
}

.tradeButton, .tradeYou, .tradeOther {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.tradeYou .smallItems {
    flex-direction: row-reverse;

}
.tradeYou .smallItems .name {
    margin-left: 0;
    margin-right: 15px;
    text-align: right;
}
.tradeYou .smallItems .quantity, .tradeOther .smallItems .quantity {
    z-index: 2;
}

.tradeYou .smallItems .quantity {
    right: 40px;
    left: auto;
}

.tradeOption {
    padding: 20px 0;
    position: relative;
}
.tradeOption::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../images/background.jpg") center center / cover no-repeat;
    border: 2px solid #754715;
    z-index: -1;
}

.tradeOptionSeparator {
    border: 0;
    font-size: 14px;
    height: 30px;
    line-height: 30px;
    position: relative;
    text-align: center;
}

.tradeOptionSeparator::before {
    content: "";
    background: linear-gradient(to right, transparent, #754715, transparent);
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
}

.tradeOptionSeparator::after {
    background-color: #754715;
    color: #ede0d2;
    border-radius: 4px;
    content: attr(data-content);
    line-height: 30px;
    padding: 2px 7px;
    position: relative;
    font-family: 'Philosoper', sans-serif;
}

.tradeOption .tradeButton:before {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #754715, transparent, transparent, transparent, #754715);
    content: "";
    z-index: -1;
}
.quantityToGive {
    height: 42px;
    width: 42px;
    min-width: 42px;
    text-align: right;
    line-height: 42px;
    margin-left: 10px;
}
.changeQuantity {
    margin-right: -30px;
    padding: 2px 5px;
}
.changeQuantity .minus, .changeQuantity .plus {
    width: 16px;
    height: 16px;
    margin: 2px;
    line-height: 12px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #4b311b;
    cursor: pointer;
}
.changeQuantity .minus:hover, .changeQuantity .plus:hover {
    background: #77604e;
    color: #E5D0B2;
}
