body {
    font-family: Arial;
}

.r-theme-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.r-discover-page {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.r-theme-banner-container {
    position: relative;
    width: 100%;
    height: 250px;
}

.r-theme-banner {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
    color: #FFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.r-theme-banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    filter: brightness(50%);
    object-fit: cover;
    z-index: -1;
}

.r-theme-banner-name {
    font-size: 40px;
}

.r-theme-banner-name {
    font-size: 40px;
}

.r-theme-banner-description {
    font-size: 20px;
}

.r-theme-categories-container {
    height: auto;
    min-height: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    bottom: 0;
    color: #333;
}

.r-theme-category {
    margin: 10px;
    border: 1px solid #CCC;
    padding: 6px;
    background: #FFF;
    font-size: 16px;
    cursor: pointer;
}

.r-theme-category.selected {
    background: #3fc9dd;
    color: #FFF;
    border: none;
}

.r-theme-thumbnails-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 1em;
}

.r-discover-thumbnails-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    padding: 1em;
}

.r-dashboard .r-discover-page .r-discover-thumbnails-container {
    overflow-y: auto;
}

.r-theme-thumbnail {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 1.5em;
}

.r-theme-thumbnail-preview {
    width: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #CCC;
    border-radius: 5px;
    align-items: center;
}

.r-theme-thumbnail-preview-image, .r-theme-thumbnail-preview-video {
    width: 400px;
    height: 250px;
    object-fit: cover;
    order: 1;
    border-radius: 3px 3px 0 0;
}

.r-theme-thumbnail-preview-video {
    display: none;
}

.r-theme-thumbnail-action {
    height: 35px;
    margin-top: 5px;
    background: #49C173;
    color: #FFF;
    border: none;
    border-radius: 6px;
    width: 150px;
    text-transform: uppercase;
    display: none;
}

.r-theme-thumbnail:hover .r-theme-thumbnail-action {
    display: inline-block;
}

/* ============
      THEMES
   ============ */

.r-theme-banner-container {
    height: 150px;
}

.r-theme-categories-container {
    height: 50px;
    width: 100%;
    position: relative;
    padding: 1em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    overflow: hidden;
    overflow-x: auto;
}

.r-theme-categories-container::-webkit-scrollbar {
    display: none;
}

.r-theme-category {
    width: auto;
    min-width: 200px;
    max-width: 240px;
    height: 65%;
    overflow: hidden;
    padding: 0;
    margin: 0 1em 0 0;
    border-radius: 5px;
    position: relative;
}

.r-theme-category img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.r-theme-category span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(68, 138, 255, 0.7);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.r-theme-category.selected span {
    background: #3fc9dd;
    color: #FFF;
    border: none;
}

.r-create-category {
    width: auto;
    min-width: 200px;
    max-width: 240px;
    height: 65%;
    overflow: hidden;
    padding: 0.5em 2em;
    margin-right: 1em;
    border-radius: 5px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: none;
    background-color: rgba(68, 138, 255, 1);
    color: #fff;
}

.r-create-category:hover,
.r-create-category:active,
.r-create-category:focus {
    border: none;
    background-color: rgba(68, 138, 255, 1);
    color: #fff;
}

.r-create-category span,
.r-create-category i {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
}

.r-create-category i {
    font-size: 1.8em;
    margin-right: 0.25em;
    line-height: 1;
}

.r-category-thumbnail-action {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    background-color: transparent;
    color: #fff;
    border: none;
    box-shadow: none;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.r-category-thumbnail-action i {
    font-size: 1.2em;
}

.r-category-thumbnail-action:active,
.r-category-thumbnail-action:hover,
.r-category-thumbnail-action:focus {
    border: none;
    outline: none;
}

.r-theme-thumbnail-preview-video {
    object-fit: contain;
}

.r-theme-thumbnail-bottom-bar {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 8px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-top: 1px solid #CCC;
    background-color: #FFF;
    border-radius: 0 0 5px 5px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    min-height: 60px;
}

.r-theme-thumbnail-bottom-bar > div:last-child {
    width: 100%;
    margin-top: 0.5em;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.r-theme-thumbnail-name {
    font-size: 20px;
    text-align: left;
    display: inline-block;
    height: auto;
    min-height: 30px;
    width: 100%;
}

.r-theme-thumbnail-action:focus,
.r-theme-thumbnail-action:hover,
.r-theme-thumbnail-action:active {
    border: none;
    outline: none;
}

.r-edit-theme-details {
    position: absolute;
    width: 30px;
    top: 0.5em;
    right: 0.5em;
    height: 30px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background-color: #777;
    border: 1px solid #FFF;
}

.r-edit-theme-details i {
    font-size: 1.2em;
    line-height: 1;
}

#r-edit-theme-section-wrapper img,
#r-edit-category-section-wrapper img{
    max-width: 200px;
    max-height: 200px;
}