:root {
    --clr-neutral-900: #13171b;
    --clr-neutral-100: #fff;
    --clr-accent-400: #e0ac1c;
}
.category-page {
    width: 100%;
    background-color: #e5e5e5;
}
.category-page .header {
    min-height: 450px;
}
@media (max-width: 768px) {
    .category-page .header {
        padding: 30px 0;
        display: flex;
    }
}
.category-page .header .inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 450px;
}
.category-page .header .inner .center {
    width: 60%;
    background-color: rgba(207, 207, 207, .82);
    border-radius: 10px;
    padding: 30px 30px;
    font-family: "Courier New", monospace, sans-serif;
}

@media (max-width: 768px) {
    .category-page .header .inner .center {
        width: 90%;
        padding: 30px 10px;
    }
}

.category-page .header .inner .center h1,
.category-page .header .inner .center h2 {
    text-align: center;
}
.category-page .header .inner .center hr {
    width: 70%;
    height: 4px;
    background-color: white;
    border: none;
}
.category-page .header .inner .center p.super-category {
    text-align: center;
}
.category-page .header.super-category p {
    text-align: center;
}
.category-page .subcategories {
    min-height: 500px;
    line-height: 1.6;
    font-family: sans-serif;
    padding: 0 10%;
    padding-bottom: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 60px;
}
@media (max-width: 768px) {
    .category-page .subcategories {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
        padding-bottom: 50px;
    }
}
.category-page .subcategories .dcard {
    color: var(--clr-neutral-100);
    background-size: cover;
    padding: 70px 0 0;
    width: 23%;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 500ms ease;
    margin-right: 2%;
    min-height: 300px;
    text-transform: capitalize;
    cursor: pointer;
    background-color: white;
    margin-bottom: 50px;
}
@media (max-width: 768px) {
    .category-page .subcategories .dcard {
        width: 94%;
        padding: 70px 0 0;
        margin: 0 3%;
    }
}
.category-page .subcategories .dcard:hover, .category-page .subcategories .dcard:focus-within {
    transform: scale(1.05);
}
.category-page .subcategories .dcard-content {
    --padding: 20px;
    padding: var(--padding);
    background: linear-gradient(transparent,rgba(0,0,0,.3) 10%,#000);
    min-height: 310px;
}
.category-page .subcategories .dcard-title {
    position: relative;
    width: auto;
    font-size: 25px;
    text-transform: lowercase;
    text-transform: capitalize;
}
.category-page .subcategories .dcard:hover .dcard-title::after, .category-page .subcategories .dcard:focus-within .dcard-title::after {
    transform: scaleX(1);
}
.category-page .subcategories .dcard-title::after {
    content: "";
    position: absolute;
    height: 4px;
    width: calc(100% + var(--padding));
    left: calc(var(--padding) * -1);
    bottom: -2px;
    background: var(--clr-accent-400);
    transform-origin: left;
    transition: transform 500ms ease;
}
@media (hover) {
    .category-page .subcategories .dcard-content {
        transform: translateY(70%);
        transition: transform 500ms ease;
    }
    .category-page .subcategories .dcard-content > *:not(.dcard-title) {
        opacity: 0;
        transition: opacity 500ms linear;
    }
    .category-page .subcategories .dcard:hover .dcard-content > *:not(.dcard-title), .category-page .subcategories .dcard:focus-within .dcard-content > *:not(.dcard-title) {
        opacity: 1;
        transition-delay: 700ms;
    }
    .category-page .subcategories .dcard:hover .dcard-content, .category-page .subcategories .dcard:focus-within .dcard-content {
        transform: translateY(0);
        transition-delay: 500ms;
    }
    .category-page .subcategories .dcard:focus-within .dcard-content {
        transition-duration: 0ms;
    }
    .category-page .subcategories .dcard-title::after {
        transform: scaleX(0);
    }
}
.category-page .subcategories .button {
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    color: var(--clr-neutral-900);
    background-color: var(--clr-accent-400);
    padding: 0.5em 1.25em;
    border-radius: 0.25rem;
}
.category-page .subcategories .button:hover, .category-page .subcategories .button:focus {
    background-color: var(--clr-neutral-100);
}
.category-page .subcategories .dcard-body {
    color: #ffff12c;
}
@media (prefers-reduced-motion: reduce) {
    .category-page .subcategories *, .category-page .subcategories *::before, .category-page .subcategories *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-delay: 0ms !important;
    }
}
