.content
{
    margin-bottom: 40px !important;
}

.content
{
    padding-left: 0;
    padding-right: 0;
}

h1
{
    font-size: 25px;
    padding-bottom: 10px;
}

.vs
{
    color: #f05000;
    display: inline;
}

.comparison_and_controls
{
    display: flex;
    justify-content: center;
}

.comparison_chart
{
    display: flex;
    flex-direction: column;
    vertical-align: top;
    background: #f0f0f0;
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: 600px; /* fix for ipad 2: long names make the page wrap otherwise */
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 900px)
{
    .comparison_chart
    {
        min-width: 600px; /* prevent wiggling when switching between long and short item names */
    }
}


@media (min-width: 500px)
{
    .comparison { width: 300px; }
}

.comparison
{
    margin: auto;
    text-align: center;
    background: linear-gradient( 90deg, #f0f0f0, #f0f0f0 50%, #00ff00 50%, #f0f0f0 50%);
    margin-top: 2px;
    margin-bottom: 2px;
}

.ctab
{
    margin: auto;
    font-weight: 300;
}

.centerthingy
{
    background: linear-gradient( 90deg, #f0f0f0, #f0f0f0 50%, #50ff50 50%, #f0f0f0 50%);
}

.bar
{
    text-align: center;
    margin-top: 4px;
    margin-bottom: 4px;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 20px;
    opacity: 0.7;
}

.data
{
    font-size: 17px;
    text-align: center;
}

.bar span
{
    display: block;
    background: rgba(240,240,240,0.5);
    padding: 2px;
    padding-right: 4px;
}

.variations
{
    margin-top: 1em;
}

.variation
{
    margin-top: 1em;
    margin-left: 1.2em;
}

.variation:before
{
    display: inline-block;
    position: absolute;
    content: "→";
    margin-left: -1.2em;
    color: #0000ff;
}

.variation p
{
    margin: 0px;
}

.item .name
{
    font-weight: 600;
}

.item td
{
    padding: 2px;
    vertical-align: top;
}

.price_info
{
    font-size: 80%;
}

.price_info, .price_info a
{
    color: #505050;
}

.item_infos
{
    margin: auto;
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    text-align: center;
    padding-left : 40px;
    padding-right: 40px;
}

.item_infos td
{
    vertical-align: top;
}

.item_infos td:nth-of-type(1),
.item_infos td:nth-of-type(3)
{
    width: 50%;
}

.item_infos td:nth-of-type(2) {
    vertical-align: middle;
    text-align: center;
}

.item_infos img
{
    opacity: 0.945;
    vertical-align: top;
    height: 150px;
    max-width: 250px;
    object-fit: contain;
    background: #ffffff;
}

.item_infos .names td
{
    padding-bottom: 8px;
}

.imgback
{
    display: inline-block;
    background: #000;
}

.similar_item img
{
    opacity: 0.945;
}

.item_info_stuff
{
    display: table-cell;
    vertical-align: middle;
}

.item_small_stuff
{
    padding-top   : 20px;
    padding-bottom: 20px;
}

.item_small_stuff a
{
    color: #303030;
}


.similar_items
{
    vertical-align: top;
    width: 200px;
    margin-left: 10px;
    display: inline-block;
    background: #f4f4f4;
    text-align: center;
    max-height: 800px;
    overflow: auto;
    padding-left: 1em;
    padding-right: 1em;
}

a.similar_item
{
    display: inline-block;
    margin: 15px;
    width: 130px;
    height: 90px;
    vertical-align: top;
    text-align: center;
    font-weight: 600;
    color: #707070;
}

.similar_items a:hover
{
    text-decoration: none;
    font-weight: 600;
    color: #505050;
}

.similar_items img
{
    height: 50px;
    margin: auto;
    vertical-align: bottom;
}

.similar_item.active, .similar_item.active:hover
{
    color: #e04000;
}

.price_info
{
    font-size: 14px;
    padding-top: 8px;
}

.similar_items_headline
{
    text-align: center;
    padding-top: 30px;
    padding-bottom: 20px;
}

.similar_items_headline a
{
    color: #707070;
    font-weight: 600;
}

@media (max-width: 800px)
{
    .comparison_and_controls
    {
        display: block;
        text-align: center;
    }

    .similar_items
    {
        margin-top: 10px;
        width: auto;
        margin-left: 0px;
        margin-right: 0px;
        max-width: 544px;
        min-width: 300px;
    }
}

@media (max-width: 550px)
{
    body
    {
        padding-left:  10px;
        padding-right: 10px;
    }

    .content
    {
        margin-top: 0;
        padding-top: 0;
    }

    .navi
    {
        margin-bottom: 0;
        border-bottom: 0;
        padding-bottom: 25px;
    }

    .item_infos img
    {
        height: 80px;
    }

    .comparison_chart
    {
        padding-left: 0;
        padding-right: 0;
    }
}

.priceinfos td
{
    text-align: center;
}

.buyinfo
{
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.buyinfo a
{
    font-size: 14px;
    font-weight: 600;
    color: #505050;
    display: inline-block;
    margin-top   : 15px;
    margin-bottom: 15px;
    margin-left: 5px;
    margin-right: 5px;
    padding: 5px;
    border: 2px solid rgba(85,255,0,0.25);
    background: rgba(200,255,0,0.125);
}
