:root {
    --darkNavy: rgb(10, 10, 24);
    --darkTrans: #322e2ea6;
    --brown: rgb(54, 49, 45);
    --darkGray: rgb(40, 41, 49);
    --brownTrans :rgba(65, 56, 49, 0.85);
    --midBrown: rgb(83, 67, 53);
    --pale: rgb(153, 136, 122);
    --grayPale: rgb(90, 88, 84);
    --grayPaleTrans: rgba(115, 109, 105, 0.377);
    --beige: #f1dcc2;
    --beigeTrans: #f1dcc241;
    --darkBeige: #d1bca3;
    --sepia: #af8c61;
    --green: rgb(40, 202, 40);
    --greenTrans: rgba(118, 145, 118, 0.651);
    --seaGreenTrans: rgba(122, 173, 171, 0.651);
    --necroGreenTrans: rgba(119, 155, 149, 0.651);
    --yellow: gold;
    --yellowTrans: rgba(180, 143, 93, 0.651);
    --orange: rgb(224, 138, 25);
    --orangeTrans: rgba(160, 105, 54, 0.651);
    --red: rgb(212, 55, 55);
    --redTrans: rgba(158, 99, 99, 0.651);
    --blue: rgb(94, 177, 224);
    --blueTrans: rgba(51, 133, 165, 0.733);
    --purple: rgb(156, 70, 236);
    --purpleTrans: rgba(116, 89, 141, 0.651);
    --bright: rgb(255, 253, 242);
    }

body {
    background: var(--darkNavy);
    min-height: 100vh;
    box-sizing: border-box;
    min-width: 100vw;
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; 
    color: var(--beige);
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    margin: 0;
    overflow: scroll;
  }
  a:-webkit-any-link {
    color: var(--sepia);
    cursor: pointer;
    text-decoration: underline;
}
.wrapper {
    margin: auto;
    max-width: 85rem;
    position: relative;
    background: var(--darkNavy);
}
.spec {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 0;
}
.filterCreator {
    display: flex;
    overflow: scroll;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    margin-left: 0.5rem;
}
.buildCards {
    position: relative;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    grid-template-areas:
    'avatar passive1 passive2 active1 active2'
    'name name name name name'
    'creator creator creator tags tags';
    grid-column-gap: 0.8rem;
    color: var(--beige);
    height: 10rem;
    outline: 2px solid var(--darkNavy);
    outline-offset: -4px;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    display: none;
    max-width: 23rem;
}
.infobuildsFeed {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 0.25rem;
    padding-bottom: 0.5rem;
    align-items: center;
}
.filterList {
    /* background: linear-gradient(to right, var(--grayPale) 80%, transparent); */
    color: var(--pale);
    padding-left: 0.5rem;
    padding-right: 2rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.gridAvatar { 
    grid-area: avatar; 
}
.gridPassive1 { 
    grid-area: passive1; 
}
.gridPassive2 { 
    grid-area: passive2; 
}
.gridActive1 { 
    grid-area: active1; 
}
.gridActive2 { 
    grid-area: active2; 
}
.gridName { 
    padding-top: 1rem;
    grid-area: name;
}
.gridCreator { 
    grid-area: creator;
    position: absolute; 
    bottom: 1rem;
}
.gridTags {
    grid-area: tags; 
    justify-self: end;
    padding-right: 1rem;
}
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}
.sideBar {
    display: grid;
    background-image: linear-gradient(90deg, var(--darkNavy) 0%, var(--darkNavy) 47%, var(--grayPaleTrans) 47%, var(--grayPaleTrans) 52%, var(--darkNavy) 52%, var(--darkNavy) 100%);
    gap: 1rem;
    padding-bottom: 0.25rem;
    padding-top: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.buildsFeed {
    display: grid;
    grid-gap: 1rem;
    padding-top: 0.3rem;
    padding-bottom: 1rem;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 11rem 11rem 11rem 11rem 11rem 11rem 11rem;
    height: 85vh;
    overflow-y: scroll;
    padding-left: 1rem;
    padding-right: 1.5rem;
}
.buildItem, .filterBarItem, .popItem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rel {
    position: relative;
}
.buildItem.builds {
    align-items: end;
    margin-bottom: 0.5rem;
}
.buildItem img {
    width: 3.5rem;
    outline: 1px solid var(--beige);
    outline-offset: 0.15rem;
}
.cutCornerTop, .cutCornerBottom {
    width: 2.7rem; 
    height: 2.7rem;
    clip-path: polygon(0% 0%, 100% 0%, 0% 100%); 
    background: var(--darkNavy);
    position: absolute;
    z-index: 5;
}
.cutCornerBottom {
    bottom: -0.1rem;
    right: -0.1rem;
    transform: rotate(180deg);
}
h2, .filterCreator, img{
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.creatorItem img {
    max-width: 100px;
    width: 3.5rem;
    height: 3.5rem;
    transform: rotateZ(45deg);
    position: relative;
    outline: 1px solid var(--beige);
    outline-offset: 0.15rem;
    margin-left: 1.5rem;
    top: 0.5rem;
    right: 0.125rem;
    z-index: 2;
}
#skillOverlay, #buildsOverlay {
    display: none;
    transition: opacity 5ms;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
}
.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 16;
}
.popup {
    position: relative;
    width: 25rem;
    min-height: 20rem;
    background-color: var(--darkNavy);
    color:var(--beige);
    margin: auto;
    margin-top: 2.5rem;
    z-index: 15;
    padding: 1.5rem;
    border-radius: 1rem;
    outline: 2px solid var(--darkGray);
    outline-offset: -2px;
    box-shadow: 0px 0px 5px var(--brown);
}
.Paladin {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--grayPale) 100%);
}
.Ranger {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--greenTrans) 100%);
}
.Necromancer {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--seaGreenTrans) 100%);
}
.Assassin {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--redTrans) 100%);
}
.Warrior {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--orangeTrans) 100%);
}
.Druid {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--yellowTrans) 100%);
}
.Mage {
    background-image: linear-gradient(90deg, var(--darkGray) 0%, var(--blueTrans) 100%), url(Icons/mage.png);
    background-size: cover;
}
.Mystic {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--purpleTrans) 100%);
}
.Pirate {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--brownTrans) 100%);
}
.Priest {
    background: linear-gradient(90deg, var(--darkTrans) 0%, var(--beigeTrans) 100%);
}
.buildItem img.circle {
    border-radius: 50%;
}
.buildItem img.diamond {
    transform: rotateZ(45deg);
    width: 3rem;
    margin-bottom: 0.3rem;
}
.rotate {
    writing-mode:vertical-rl;
    color: var(--pale);
    z-index: 3;
    position: absolute;
    padding-top: 0.75rem;
}
.rectCreator {
    height: 5rem;
    width: 1.5rem;
    margin-top: 0.75rem;
    background-color: var(--darkGray);
    clip-path: polygon(50% 0, 50% 0, 100% 10%, 100% 90%, 50% 100%, 50% 100%, 0 90%, 0 10%);
}
.rectFilterReset {
    height: 2.25rem;
    width: 2.25rem;
    position: relative;
    left: -0.15rem;
    top: -0.2rem;
    background-color: var(--darkGray);
    clip-path: polygon(50% 0, 50% 0, 100% 50%, 100% 50%, 50% 100%, 50% 100%, 0 50%, 0 50%);
}
.rectFilterTop {
    height: 21.25rem;
    padding-top: 0.25rem;
    clip-path: polygon(50% 0, 50% 0, 100% 4%, 100% 96%, 50% 100%, 50% 100%, 0 96%, 0 4%);
}
.rectFilterMiddle {
    height: 8.75rem;
    clip-path: polygon(50% 0, 50% 0, 100% 9%, 100% 91%, 50% 100%, 50% 100%, 0 91%, 0 9%);
}
.rectFilterBottom {
    height: 4.5rem;
    padding-top: 0.25rem;
    clip-path: polygon(50% 0, 50% 0, 100% 15%, 100% 85%, 50% 100%, 50% 100%, 0 85%, 0 15%);
}
.rectFilterTop, .rectFilterMiddle, .rectFilterBottom {
    width: 2rem;
    background-color: var(--darkGray);
}
.rectTags {
    width: 15rem;
    height: 1.2rem;
    background: linear-gradient(to right, transparent, var(--beigeTrans));
    position: absolute;
    right: 0rem;
    bottom: 1.2rem;
    z-index: 0;
}
.filterBar {
    grid-template-rows: 21rem 8.5rem 4rem auto;
    padding-top: 0.25rem;
    padding-left: 0.5rem;
}
.filterBarItem img {
    max-width: 1.6rem;
    max-height: 1.6rem;;
    padding-left: 0.2rem;
    padding-top: 0.2rem;
}
.nudgeLeft {
    margin-left: 0.2rem;
}
.rectFilterReset img {
    padding-left: 0.45rem;
    padding-top: 0.45rem;
    width: 1.4rem;
}
.btn {
    border: none;
    outline: none;
    cursor: pointer;
    background: transparent;
    padding-inline: 0px;
    padding-block: 0px;
}
.filterBarItem .btn {
    filter: invert(43%) sepia(20%) saturate(224%) hue-rotate(348deg) brightness(88%) contrast(86%);
    /* filter: invert(88%); */
} 
.btn.active {
    filter: brightness(0) saturate(100%) invert(99%) sepia(12%) saturate(2491%) hue-rotate(304deg) brightness(98%) contrast(92%);
}
.show {
    display: grid;
}
.role img {
    max-height: 2.5rem;
    height: 2.5rem;
    padding-left: 0.5rem;;
    z-index: 2;
    position: relative;
}
.role {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.roleIcon {
    width: 15rem;
    position: absolute;
    opacity: 15%;
    top: -2rem;
    left: 4rem;
}
.nudge {
    margin-top: 0.3rem;
}
@media all and (max-width:1200px){
    .wrapper {
        margin: auto;
        max-width: 95vw;
        position: relative;
    }
    .buildsFeed {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 10rem 10rem 10rem 10rem 10rem 10rem;
        height: 78vh;
        max-width: 45rem;
        padding-left: 0.5rem;
    }
    .buildCards {
        height: 9rem;
        width: 20rem;
    }
    .buildItem img {
        width: 3rem;
    }
    .buildItem img.diamond {
        width: 2.5rem;
        margin-bottom: 0.2rem;
    }
    .rectTags {
        width: 12rem;
        height: 1rem;
    }
}
@media screen and (max-aspect-ratio: 1/1) and (max-width:850px) {
    .wrapper {
        margin: auto;
        max-width: 95vw;
        position: relative;
    }
    .buildsFeed {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 10rem 10rem 10rem 10rem 10rem 10rem;
        height: 78vh;
        max-width: 45rem;
        padding-left: 0.5rem;
    }
    .buildCards {
        height: 9rem;
        width: 18.5rem;
    }
    .buildItem img {
        width: 3rem;
    }
    .buildItem img.diamond {
        width: 2.5rem;
        margin-bottom: 0.2rem;
    }
    .creatorItem {
        max-width: 5rem;
    }
    .filterCreator {
        padding-left: 0.5rem;
    }
    .sideBar {
        grid-gap: 0.75rem;
    }
    .roleIcon {
        top: -1.7rem;
    }
    .role img {
        max-height: 2rem;
        height: 2rem;
    }
    .creatorItem img {
        max-width: 4.5rem;
    }
    .popup {
        width: 19rem;
        padding: 1rem;
        margin-left: 1.1rem;
    }
    .gridName, .role {
        font-size: 0.95rem;
    }
    .gridCreator {
       font-size: 0.8rem; 
    }
}
@media screen and (max-width: 450px) {
    .wrapper {
        max-width: 100vw;
    }
    .buildsFeed {
        grid-template-rows: 9rem 9rem 9rem 9rem 9rem 9rem;
        padding-left: 0.25rem;
        padding-right: 0.5rem;
        grid-template-columns: 1fr;
    }
    .buildCards {
        padding-top: 1rem;
        height: 8rem;
    }
    .gridTags {
        padding-right: 0.5rem;
    }
    .filterCreator {
        margin-left: -0.5rem;
    }
    .cutCornerTop, .cutCornerBottom {
        width: 2.3rem; 
        height: 2.3rem;
    }
    .popup {
        width: 20rem;
    }
    .buildItem img, .popImg, .popImgBuild {
        width: 2.5rem;
    }
    .buildItem img.diamond {
    width: 2rem;
    margin-bottom: 0.2rem;
    }
    .sideBar {
        grid-gap: 0.75rem;
        padding-left: 0.5rem;
    }
    .roleIcon {
        top: -1.7rem;
    }
    .star {
        font-size: 2rem;
        line-height: 2rem;
    }
    .rectTags {
        width: 12rem;
        height: 1rem;
    }
}
@media screen and (max-width: 375px) {
    .buildCards {
        height: 9rem;
        width: 16rem;
    }
    .buildItem img {
        width: 3rem;
    }
    .buildItem img.diamond {
        width: 2.5rem;
        margin-bottom: 0.2rem;
    }
    .buildItem img, .popImg, .popImgBuild {
        width: 2.5rem;
    }
    .buildItem img.diamond {
        width: 2rem;
        margin-bottom: 0.2rem;
    }
    .creatorItem img {
        max-width: 4.5rem;
    }
    .popup {
        width: 19rem;
        padding: 1rem;
        margin-left: 1.1rem;
    }
    .gridName {
        font-size: 0.8rem;
    }
    .gridCreator {
       font-size: 0.7rem; 
       padding-bottom: 0.3rem;
    }
}