@import url('font-awesome.css');

:root {
    --my-card-width: 165px;
    --my-card-height: 215px;
}

body {
    background-color: #eee;
}

@font-face
{
    font-family: myLogoFont;
    src: url(../fonts/sansation_light.woff);
}

h1 {
	font-family: myLogoFont, "Helvetica Neue", Helvetica, sans-serif;
    text-transform: uppercase;
    margin: 0;
}

.navbar-nav .active a,
.navbar-nav .active a:hover,
.navbar-nav .active a:focus {
    color: #14A085;
}

/* navbar-toggler */
.navbar-toggler:focus {
    box-shadow: 0 0 0 1px;
}

.navbar-toggler-icon {
    font-size: 0.8rem;
}

.category h2 {
    padding: 60px 0 40px;
    margin: 0 auto;
    font-size: 32px;
    line-height: 45px;
    color: rgb(49, 70, 89);
    text-align: center;
}

.category h2::before,
.category h2::after
 {
    content: "\00A0\002F\00A0";
    color: rgb(68, 185, 249);
    font-weight: 1000;
    font-family: 'Courier New', Courier, monospace;
}

.category a {
    text-decoration: none;
}

.my-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, 165px);
    margin-bottom: 20px;
    gap: 12px;
}

/* .my-card */
.my-card {
    width: var(--my-card-width);
    height: var(--my-card-height);
    /* padding: 20px 12px 0px; */
    padding: 40px 12px 0px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: rgba(163, 177, 191, 0.35) 0px 8px 24px;
    cursor: pointer;
    transition: transform 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.my-card > .icon {
    width: 45px;
    height: 45px;
    margin: 0;
    margin-bottom: 6px;
    border-radius: 10px;
}

.my-card > .icon svg,
.my-card > .icon img {
    width: 45px;
    height: 45px;
}

.my-card > .title,
.my-card > a:first-of-type
{
    color: rgb(102, 102, 102);
    font-weight: 600;
    font-size: 20px;
    height: 40px;
    margin: 0;
    margin-bottom: 6px;
    max-width: 100%;
    overflow: hidden;
}

.my-card > .smaller-title {
    font-size: 14px;
}

.my-card > .desc
{
    font-size: 12px;
    height: 34px;
    line-height: 17px;
    color: rgb(170, 170, 170);;
    margin: 0;
    margin-bottom: 9px;
    word-break: break-all;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.my-card > p:not(.desc):not(.title)
{
    font-size: 12px;
    line-height: 17px;
    color: rgb(170, 170, 170);;
    margin: 0;
    margin-bottom: 9px;
    word-break: break-all;
}

.my-card > .cn,
.my-card > .ver {
    font-size: 12px;
    height: 17px;
    line-height: 17px;
    color: rgb(170, 170, 170);;
    margin: 0;
    margin-bottom: 9px;
}

@media (min-width: 768px) {
    .my-card:hover {
        transform: scale(1.1);
    }
}

/* footer */
footer {
    padding: 40px 30px;
    font-size: 12px;
    line-height: 12px;
    text-align: center;
    color: #999;
    background-color: #fff;
    border-top: 1px solid #eaeaea;
}

/* scroll to up */
.scrollup {
    position: fixed;
    width: 32px;
    height: 32px;
    bottom: 0px;
    right: 20px;
    background: #222;
    display: none;
}

.scrollup.active {
    display: block;
}

a.scrollup {
    outline: 0;
    text-align: center;
}

a.scrollup:hover,
a.scrollup:active,
a.scrollup:focus {
    opacity: 1;
    text-decoration: none;
}

a.scrollup i {
    margin-top: 10px;
    color: #fff;
}
