.umb-packages-view-title {
    font-size: 20px;
    font-weight: bold;
    color: @black;
    margin-bottom: 30px;
}

.umb-packages-view-wrapper {
    padding: 20px 60px;
}

@media (max-width: 768px) {

    .umb-packages-view-wrapper {
        padding: 0;
    }

}

.umb-packages-section {
    margin-bottom: 40px;
}

.umb-packages-search {
    width: 100%;
    background: @gray-10;
    border-radius: 3px;
    padding: 30px;
    box-sizing: border-box;
}

.umb-packages-search input {
    border-width: 2px;
    border-radius: 3px;
    min-height: 44px;
    padding: 4px 10px;
    font-size: 16px;
    margin-bottom: 0;
    border-color: @gray-8;

    &:hover, &:focus {
        border-color: @gray-8;
    }
}

.umb-packages__pagination {
    display: flex;
    justify-content: center;
}

.umb-packages {
    margin: 0 -10px;
    display: flex;
    flex-wrap: wrap;
}

// Cards
.umb-package {
    padding: 10px;
    box-sizing: border-box;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .umb-package {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1200px) {
    .umb-package {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media (min-width: 1400px) {
    .umb-package {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 1700px) {
    .umb-package {
        flex: 0 0 20%;
        max-width: 20%;
    }
}


@media (min-width: 1900px) {
    .umb-package {
        flex: 0 0 16.66%;
        max-width: 16.66%;
    }
}

@media (min-width: 2200px) {
    .umb-package {
        flex: 0 0 14.28%;
        max-width: 14.28%;
    }
}

.umb-package-link {
    display: block;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    border: 1px solid @gray-9;
    border-radius: 3px;
    text-decoration: none !important;
    transition: border-color 100ms ease;

    &:hover {
        border-color: @turquoise;
    }
}



// Icon
.umb-package-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
    text-align: center;
    background-color: @white;
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    min-height: 60px;
}

.umb-package-icon img {
    max-width: 70px;
    width: 70px;
    height: auto;
}


// Info
.umb-package-info {
    padding-right: 15px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-top: 15px;
    text-align: center;
    background: @gray-10;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-top: 1px solid @gray-9;
}


// Name
.umb-package-name {
    font-size: 14px;
    max-width: 250px;
    margin-bottom: 5px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
    margin-left: auto;
    margin-right: auto;
}

.umb-package-description {
    font-size: 12px;
    color: @gray-4;
    word-wrap: break-word;
    line-height: 1.1rem;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

// Numbers
.umb-package-numbers {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
    opacity: .6;
    margin-top: 10px;
}

.umb-package-numbers small {
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.umb-package-numbers i {
    font-size: 14px;
}

.umb-package-link:hover .umb-package-numbers {
    opacity: 1;
}

.umb-package-link:hover .umb-package-numbers .icon-hearts {
    color: @red !important;
}

// Version
.umb-package-version {
    display: inline-flex;
    font-size: 12px;
    font-weight: bold;
    padding: 1px 5px;
    background: @gray-8;
    border-radius: 3px;
    color: @black;
}

/* CATEGORIES */

.umb-packages-categories {
    display: flex;
    user-select: center;
    flex-wrap: wrap;
}

.umb-packages-category {
    display: flex;
    align-items: center;
    flex: 1 0 auto;
    justify-content: center;
    max-width: 25%;
    font-size: 14px;
    font-weight: bold;
    color: @black;
    box-sizing: border-box;
    justify-content: center;
    border-top: 1px solid @gray-8;
    border-bottom: 1px solid @gray-8;
    border-right: 1px solid @gray-8;
    padding: 10px 0;
}


@media (max-width: 768px) {
    .umb-packages-category {
        width: 100%;
        margin-top: 0;
        margin-bottom: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 992px) {
    .umb-packages-category {
        border: 1px solid @gray-8;
        margin: 5px;
        flex: 0 0 auto;
        text-align: center;
        padding: 10px;
        max-width: 100%;
        border-radius: 3px;
    }
}

@media (min-width: 1100px) and (max-width: 1300px) {
    .umb-packages-category {
        border: 1px solid @gray-8;
        margin: 5px;
        flex: 0 0 auto;
        text-align: center;
        padding: 10px;
        max-width: 100%;
        border-radius: 3px;
    }
}


.umb-packages-category:hover,
.umb-packages-category.-active {
    text-decoration: none;
    color: @turquoise;
}

.umb-packages-category.-first {
    border-left: 1px solid @gray-8;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.umb-packages-category.-last {
    border-right: 1px solid @gray-8;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

/* PACKAGE DETAILS */

.umb-package-details {
    display: flex;
}

a.umb-package-details__back-link {
    font-weight: bold;
    color: @black;
}

.umb-package-details__back-link:hover {
    color: @gray-4;
    text-decoration: none;
}


@sidebarwidth: 350px; // Width of sidebar. Ugly hack because of old version of Less

.umb-package-details__main-content {
    flex: 1 1 auto;
    margin-right: 30px;
    width: ~"(calc(~'100%' - ~'@{sidebarwidth}' - ~'30px'))"; // Make sure that the main content area doesn't gets affected by inline styling
}

.umb-package-details__sidebar {
    flex: 0 0 @sidebarwidth;
}

@media (max-width: 768px) {

    .umb-package-details {
        flex-direction: column;
    }

    .umb-package-details__main-content {
        flex: 1 1 auto;
        width: 100%;
        margin-bottom: 30px;
        margin-right: 0;
    }

    .umb-package-details__sidebar {
        flex: 1 1 auto;
        width: 100%;
    }
}

.umb-package-details__section {
    background: @gray-10;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
    border: 1px solid @gray-8;
}

.umb-package-details__section-title {
    font-size: 17px;
    font-weight: bold;
    color: @black;
    margin-top: 0;
    margin-bottom: 15px;
}

.umb-package-details__section-description {
    font-size: 12px;
    line-height: 1.6em;
    margin-bottom: 15px;
}

.umb-package-details__information-item {
    margin-bottom: 10px;
    font-size: 13px;
}

.umb-package-details__information-item-label {
    color: @black;
    font-weight: bold;
}

.umb-package-details__information-item-content {
    word-break: break-word;
}

.umb-package-details__information-item-label-2 {
    font-size: 12px;
    color: @gray-4;
}

.umb-package-details__compatability {
    margin-bottom: 15px;
}

.umb-package-details__compatability-label {
    margin-bottom: 3px;
}

.umb-package-details__description {
    margin-bottom: 20px;
    line-height: 1.6em;
    word-wrap: break-word; 
}

.umb-package-details__description p {
    margin-bottom: 20px;
}

/* Links */

.umb-package-details__link {
    font-weight: bold;
    color: @black;
}

.umb-package-details__link:hover {
    text-decoration: underline;
}

/* Owner profile */

.umb-package-details__owner-profile {
    display: flex;
    align-items: center;
}
.umb-package-details__owner-profile-avatar {
    margin-right: 15px;
    flex: 0 0 auto;
}

.umb-package-details__owner-profile-name {
    font-size: 15px;
    color: @black;
    font-weight: bold;
}

.umb-package-details__owner-profile-karma {
    font-size: 12px;
    color: @gray-4;
}

/* gallery */

.umb-gallery__thumbnails {
    display: flex;
    flex-wrap: wrap;
}

.umb-gallery__thumbnail {
    flex: 0 1 100px;
    border: 1px solid @gray-8;
    border-radius: 3px;
    margin: 5px;
    padding: 10px;
    box-sizing: border-box;
    max-width: 100px;
}

.umb-gallery__thumbnail:hover {
    cursor: pointer;
    border-color: @turquoise;
}

/* PACKAGE LIST */

.umb-package-list {
    display: flex;
    flex-direction: column;
}

.umb-package-list__item {
    display: flex;
    flex-direction: row;
    background: @gray-10;
    margin-bottom: 5px;
    border-radius: 3px;
    padding: 15px 20px;
    align-items: center;
}

.umb-package-list__item-icon {
    flex: 0 0 35px;
    margin-right: 20px;
    font-size: 30px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.umb-package-list__item-content {
    flex: 1 1 auto;
    margin-right: 20px;
}

.umb-package-list__item-name {
    font-size: 16px;
    margin-bottom: 5px;
    color: @black;
    font-weight: bold;
}

.umb-package-list__item-description {
    font-size: 14px;
    color: @gray-4;
}

.umb-package-list__item-actions {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

.umb-package-list__item-action {
    font-weight: bold;
    color: @gray-3;
}

.umb-package-list__item-action:hover {
    text-decoration: none;
    color: @red;
}
