
:root {
    --book-cover-color: rgb(150, 0, 0);
    --book-card-cover: white;
    --book-card-cover-title: black;
    --book-card-bar: rgb(255, 208, 122);
    --book-strap: black;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
    --book-cover-color: #121683;
    --book-card-cover: black;
    --book-card-cover-title: white;
    --book-card-bar: #8446d9;
    --book-strap: grey;
}

/* ---------- System Preference ---------- */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --book-cover-color: #121683;
        --book-card-cover: black;
        --book-card-cover-title: white;
        --book-card-bar: #8446d9;
        --book-strap: grey;
    }
}

.article-card {
    cursor: pointer;
    max-width: calc(100% / 3);
    /* min-width: 15em; */
    min-width: 240px;
    width: 240px;
    height: 300px;
    border-radius: 5px 20px 20px 5px;
    margin-bottom: 10px;
    background: linear-gradient(to right, 
        transparent 0%,
        transparent 88%,
        var(--book-strap) 88%,
        var(--book-strap) 93%,
        transparent 93%,
        transparent 100%);
    margin-inline: 20px;
}

.article-card:hover {
    box-shadow: 
        3px 3px 5px rgba(0, 0, 0, 0.5), 
        -3px -3px 5px rgba(0, 0, 0, 0.5), 
        -3px 3px 5px rgba(0, 0, 0, 0.5), 
        3px -3px 5px rgba(0, 0, 0, 0.5);
}

.article-card-top {
    border-radius: 5px 20px 0px 0px;
    background-color: var(--book-cover-color);
    z-index: -1;
    position: relative;
    height: 44%;
}

.article-card-top img {
    position: absolute;
    /* width: 30%; */
    width: 50%;
    min-height: 100px;
    top: 5px;
    right: -10px;
    z-index: -16;
    rotate: -5deg;
    transition: 1s;
}

span.paper-clip:after {
    width: 7px;
    height: 20px;
    content: " ";
    background: transparent;
    display: block;
    position: absolute;
    right: 2px;
    top: 5px;
    border-radius: 10px;
    border: 3px solid black;
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    transition: 0.5s;
}

span.paper-clip {
    background: transparent;
    height: 40px;
    width: 13px;
    border-radius: 10px;
    border: 2px solid black;
    display: inline-block;
    position: absolute;
    right: 40px;
    top: -5px;
    transition: 0.5s;
}

.article-card:hover span.paper-clip{
    opacity: 0;
}

.article-card:hover span.paper-clip::after {
    opacity: 0;
}

.article-card:hover .article-card-top img{
    justify-content: center;
    rotate: 0deg;
    margin: 0px 25%;
    right: 0px;
}

.article-card-top-bar { 
    background-color: var(--book-card-bar);
    z-index: -1;
    position: relative;
    height: 3%;
}

.article-card-title-bar {
    background-color: var(--book-card-cover);
    z-index: -1;
    position: relative;
    height: 26%;
}

.article-card-bottom-bar {
    background-color: var(--book-card-bar);
    z-index: -1;
    position: relative;
    height: 3%;
}

.article-card-bottom {
    border-radius: 0px 0px 20px 5px;
    background-color: var(--book-cover-color);
    z-index: -1;
    position: relative;
    height: 24%;
}

.article-card h3 {
    color: var(--book-card-cover-title);
    margin: 0px 30px 0px 10px;
    padding: 3px 3px 10px;
    line-height: 18px;
    font-size: smaller;

    font-family: var(--font-3);
}