body {
    background-color: #fff;
}

.catalog-body {
    width: 970px;
    min-height: 550px;
    margin: 0 auto;
    padding: 5px 0 25px;
    color: #343434;
}

div#catalog {
    font-size: 12px;
}

#catalog a:link,
#catalog a:visited {
    color: #5A189A;
    text-decoration: none;
}

#catalog a:hover {
    text-decoration: underline;
}

#catalog .clearfix::after,
#catalog .header::after {
    content: " ";
    display: table;
    clear: both;
}

/* title and search  */
#catalog .header {
    height: 60px;
}

#catalog .header-title {
    float: left;
    padding-top: 2px;
}

#catalog h1 {
    margin: 0;
    line-height: 1.1em;
}

a#CatalogLink,
a#CatalogLink:link,
a#CatalogLink:visited {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
    color: #343434;
    text-decoration: none;
}

#catalog .CatalogSearchBar {
    float: right;
    margin: 0;
    padding: 5px 6px 0 20px;
}

#catalog .text-box {
    border: 1px solid #a7a7a7;
    padding: 0 3px;
    font-weight: normal;
    font-size: 12px;
    line-height: 18px;
}

#catalog input#keywordTextbox {
    float: left;
    width: 325px;
    height: 21px;
    margin-right: 4px;
    padding: 2px 5px;
    box-sizing: content-box;
}

#catalog input#keywordTextbox:focus {
    outline: 0;
    border-color: #777;
}

#catalog .category-select-wrap {
    position: relative;
    float: left;
    height: 23px;
    margin-right: 6px;
    padding: 2px 2px 0 2px;
    border: 1px solid #a7a7a7;
}

#categoriesForKeyword {
    width: 150px;
    height: 21px;
    padding: 0 22px 0 4px;
    font-size: 12px;
    color: #343434;
    border: 1px solid #fff;
    border-radius: 0;
    background: #fff url("/img/catalog/dropdown.png") no-repeat right top;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

#categoriesForKeyword:hover,
#categoriesForKeyword:focus {
    background-position: right bottom;
    outline: 0;
}

#catalog .btn-control {
    display: inline-block;
    padding: 0 6px;
    color: #000;
    text-align: center;
    text-decoration: none;
    font-weight: normal;
    background-color: #ccc;
    background-position: top;
    border: 1px solid #777;
    cursor: pointer;
}

#catalog .btn-control:hover {
    background-position: bottom;
    border-color: #888;
    text-decoration: none;
}

#catalog .btn-control.btn-control-large {
    height: 25px;
    padding: 0 7px;
    font-size: 13px;
    line-height: 24px;
    background-image: url("/img/catalog/btn-control-large-tile.png");
}

#catalog .btn-control.top-level {
    font-weight: bold;
}

#catalog #submitSearchButton {
    float: left;
    box-sizing: content-box;
}

.divider-left {
    border-left: 1px solid #ccc;
}

.divider-right {
    border-right: 1px solid #ccc;
}

.divider-bottom {
    border-bottom: 1px solid #ccc;
}

#catalog .left-nav-menu {
    position: relative;
    float: left;
    width: 150px;
    z-index: 7;
}

#catalog .browseDropdownHeader {
    display: block;
    width: 136px;
    height: 34px;
    background: url("/img/catalog/browse-by-category-header.png") no-repeat top left;
}

div#catalog div#dropdown {
    font-size: 14px;
}

div#catalog div#dropdown ul#dropdownUl {
    width: 134px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #efefef;
    border: 1px solid #777;
}

div#catalog div#dropdown ul li {
    position: relative;
    float: left;
    width: 134px;
    height: 31px;
    margin: 0;
    padding: 0;
    list-style: none;
}

div#catalog div#dropdown ul li a,
div#catalog div#dropdown ul li span {
    display: block;
    padding: 7px 6px;
    color: #000;
    text-decoration: none;
}

div#catalog div#dropdown ul li span {
    font-weight: bold;
}

div#catalog div#dropdown ul li:hover {
    background: #d8d8d8;
}

div#catalog div#dropdown ul li.subcategories {
    background: url("/img/catalog/img-right_arrow.png") no-repeat 118px 11px;
}

div#catalog div#dropdown ul li.subcategories:hover {
    background: #d8d8d8 url("/img/catalog/img-right_arrow.png") no-repeat 118px 11px;
}

div#catalog div#dropdown ul li a.selectedAssetTypeFilter {
    background: #cdcdcd;
}

div#catalog div#dropdown li ul.slideOut {
    display: none;
    position: absolute;
    top: -1px;
    left: 134px;
    width: 134px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #efefef;
    border: 1px solid #777;
    z-index: 7;
}

div#catalog div#dropdown li.subcategories:hover > ul.slideOut {
    display: block;
}

div#catalog div#dropdown ul.slideOut li {
    float: left;
    width: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

div#catalog div#dropdown ul.slideOut a {
    padding-right: 5px;
}

div#catalog #dropdown li.slideHeader {
    border-bottom: 1px solid lightgrey;
}

div#catalog #dropdown li.slideHeader:hover {
    background: #efefef;
    cursor: default;
}

div#catalog #dropdown li.DropdownDivider {
    float: left;
    width: 92%;
    height: 1px;
    margin-bottom: 1px;
    margin-left: 5px;
}

/* legend  */
div#catalog #legend {
    padding: 18px 20px 5px 0;
}

div#catalog #legend .header {
    display: block;
    width: 20px;
    height: 3px;
    margin-top: 5px;
    padding-left: 12px;
    padding-bottom: 5px;
    background: url("/img/catalog/sprite-arrow.png") no-repeat;
    cursor: pointer;
}

div#catalog #legend .header.expanded {
    background-position: bottom left;
}

div#catalog #legend h3 {
    position: relative;
    top: -8px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1em;
    white-space: nowrap;
    color: #343434;
}

div#catalog #legendcontent {
    width: 137px;
    margin-top: 17px;
    margin-left: 5px;
}

div#catalog #legendcontent img {
    margin-left: -13px;
}

div#catalog #legend .legendText {
    margin: 3px 0 12px;
    font-size: 14px;
    line-height: 20px;
}

/* right column */
#catalog .right-content {
    position: relative;
    float: left;
    width: 792px;
    margin-left: -1px;
    padding-left: 20px;
    z-index: 1;
    box-sizing: content-box;
}

#catalog .right-content h2 {
    margin: 10px 0 0;
    padding: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2em;
    color: #343434;
}

#catalog .right-content .btn-medium.btn-primary {
    position: absolute;
    right: 0;
    top: 5px;
}

#catalog .btn-medium {
    display: inline-block;
    height: 28px;
    min-width: 62px;
    margin: 0;
    padding: 1px 13px 3px 13px;
    font-size: 20px;
    line-height: 1.3em;
    text-align: center;
    text-decoration: none;
    border: 1px solid;
    cursor: pointer;
    box-sizing: content-box;
}

#catalog .btn-primary,
#catalog .btn-primary:link,
#catalog .btn-primary:visited,
#catalog .btn-primary:hover {
    color: #fff;
    background: #007001 url("/img/catalog/bg-btn-green.png") repeat-x left -96px;
    border-color: #007001;
    text-decoration: none;
}

#catalog .btn-primary:hover {
    background-position: left -128px;
}

#catalog #SortOptions {
    float: right;
    padding: 12px 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

#catalog #SortOptions form {
    margin: 0;
}

#catalog #SortOptions select {
    height: 21px;
    font-size: 12px;
    font-weight: normal;
    border: 1px solid #a7a7a7;
    background: #fff;
}

#catalog .clear {
    clear: both;
}

/* item tiles */
.CatalogItemOuter {
    float: left;
    padding: 24px 11px;
}

.CatalogItemOuter.BigOuter {
    padding: 15px 19px 31px 19px;
}

.SmallCatalogItemView {
    position: relative;
    width: 110px;
    height: 140px;
    background: #fff;
}

#catalog .SmallCatalogItemView.BigView {
    width: 160px;
    height: 190px;
}

.CatalogItemInner,
.CatalogItemInner:hover {
    position: absolute;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    outline: 0;
    overflow: visible;
}

.SmallCatalogItemView .CatalogItemInner {
    width: 120px;
    height: 110px;
    z-index: 1;
}

#catalog .CatalogItemInner.BigInner {
    width: 176px;
    height: auto;
    padding-top: 12px;
}

.SmallCatalogItemView:hover .CatalogItemInner {
    left: -10px;
    top: -20px;
    width: 130px;
    height: auto;
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: 1px solid #ccc;
    z-index: 6;
}

#catalog .SmallCatalogItemView:hover .CatalogItemInner.BigInner {
    top: -10px;
    width: 176px;
    padding-top: 10px;
    padding-bottom: 12px;
}

.SmallCatalogItemView div.roblox-item-image {
    padding-bottom: 5px;
}

.CatalogItemInner .roblox-item-image {
    width: 112px;
    text-align: center;
}

.CatalogItemInner:hover div.roblox-item-image {
    position: relative;
    left: 9px;
    top: -1px;
}

div#catalog .CatalogItemInner div.image-small {
    height: 110px;
}

div#catalog .CatalogItemInner div.image-large {
    position: relative;
    width: 152px;
    height: 150px;
    padding-left: 3px;
}

div#catalog .CatalogItemInner div.roblox-item-image div.item-image-wrapper {
    position: relative;
    overflow: hidden;
}

div#catalog .image-small div img:first-child {
    width: 110px;
    height: 110px;
}

div#catalog .image-large div img:first-child {
    width: 150px;
    height: 150px;
}

img.original-image {
    display: block;
    border: 1px solid #eee;
    box-sizing: content-box;
}

div#catalog .item-image-wrapper .limited-overlay {
    position: absolute;
    left: 0;
    bottom: 5px;
    z-index: 1;
    margin-left: -18px;
}

div#catalog .image-small .item-image-wrapper .limited-overlay {
    margin-left: -13px;
}

div#catalog .item-image-wrapper img[alt='New'] {
    position: absolute;
    right: 0;
    top: 0;
}

div#catalog .textDisplay {
    padding-left: 3px;
}

.SmallCatalogItemView:hover .textDisplay {
    position: relative;
    top: -1px;
    left: 9px;
}

.CatalogItemInner .CatalogItemName {
    width: 110px;
    max-height: 36px;
    overflow: hidden;
    font-weight: bold;
}

#catalog .BigInner .CatalogItemName {
    width: 160px;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.CatalogItemInner .robux-price {
    font-weight: bold;
    color: green;
}

span.robux {
    padding: 0 0 2px 20px;
    font-size: 12px;
    font-weight: bold;
    color: #060;
    background: url("/img/catalog/img-robux.png") no-repeat 0 1px;
}

.CatalogItemInner span.NotAPrice {
    font-size: 12px;
    font-weight: bold;
    color: #505050;
}

.CatalogItemInner .SalesText {
    font-weight: normal;
    color: #666;
}

.CatalogItemInner .CatalogHoverContent {
    display: block;
    padding-left: 3px;
    line-height: 15px;
}

.BigOuter .CatalogItemInner .CatalogHoverContent {
    padding-left: 6px;
}

#catalog div.CatalogHoverContent div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.CatalogItemInfoLabel {
    display: none;
    margin-right: 3px;
    margin-left: 6px;
    font-size: 11px;
    color: #666;
}

.HoverInfo {
    display: none;
    font-size: 11px;
    color: #000;
}

.CatalogItemInner:hover .CatalogItemInfoLabel,
.CatalogItemInner:hover .HoverInfo {
    display: inline;
}

/* footer of the list */
#catalog .see-all-featured {
    clear: both;
    padding-top: 50px;
    text-align: center;
    font-weight: bold;
}

#catalog .PagingContainerDivTop {
    clear: both;
    padding-top: 40px;
    text-align: center;
    font-weight: bold;
}

#catalog .PagingContainerDivTop form {
    display: inline;
    margin: 0;
}

#catalog .PagingContainerDivTop .Paging_Input {
    position: relative;
    top: 3px;
    width: 24px;
    height: 17px;
    padding-top: 2px;
    text-align: center;
    font-size: 12px;
    border: 1px solid #a7a7a7;
}

#catalog .PagingContainerDivTop .pager-disabled {
    color: #a7a7a7;
}

#catalog .no-results {
    clear: both;
    padding: 60px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}

@media (max-width: 1150px) {
    .catalog-body {
        width: auto;
        max-width: 970px;
    }

    #catalog .right-content {
        float: none;
        width: auto;
        margin-left: 150px;
    }
}

@media (max-width: 767px) {
    #catalog .header {
        height: auto;
    }

    #catalog .CatalogSearchBar {
        float: none;
        clear: both;
        padding: 8px 0 0;
    }

    #catalog input#keywordTextbox {
        width: 60%;
    }

    #catalog .left-nav-menu {
        display: none;
    }

    #catalog .right-content {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

/* Stable 2016-style catalog tiles. These replace the old expanding hover boxes. */
#catalog .catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

#catalog .catalog-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    overflow: hidden;
}

#catalog .catalog-card:hover {
    border-color: #bcbcbc;
}

#catalog .catalog-card-thumb {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
    overflow: hidden;
}

#catalog .catalog-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#catalog .catalog-card-limited {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 86px;
    max-width: 72%;
    height: auto;
    z-index: 2;
}

#catalog .catalog-card-new {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

#catalog .catalog-card-info {
    min-height: 76px;
    padding: 5px 7px 7px;
}

#catalog .catalog-card-name {
    display: block;
    overflow: hidden;
    color: #444;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#catalog .catalog-card-name:hover {
    color: #5A189A;
}

#catalog .catalog-card-creator {
    margin-top: 1px;
    overflow: hidden;
    color: #999;
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#catalog .catalog-card-creator a {
    color: #5A189A;
}

#catalog .catalog-card-price {
    min-height: 18px;
    margin-top: 4px;
    color: #555;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}

#catalog .catalog-card-price .robux {
    font-size: 12px;
}

#catalog .catalog-free {
    color: #078515;
}

#catalog .catalog-offsale {
    color: #777;
}

@media (max-width: 1050px) {
    #catalog .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    #catalog .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #catalog .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}
