@charset "utf-8";


html,
body {
    width: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}


h2 {
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.ad-container {
    margin: 15px auto;
}


.ad-slot {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    min-height: 250px;
    width: 300px;
    max-width: 350px;
    margin: 0 auto;
}


.ad-label {
    color: rgb(70, 70, 70);
     text-align: center;
}


header {
    position: relative;
    background: #181A17;
}


.navbar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
            justify-content: space-between;
    height: 56px;
    padding: 0 12px;
    color: #fff;
    overflow-y: hidden;
    overflow-x: auto;
}


.nav-left,
.nav-right {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    gap: 16px;
}


.nav-item {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
       -moz-box-pack: center;
            justify-content: center;
    padding: 20px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}


.home {
    position: relative;
    font-weight: 700;
}


.home::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: rgba(0, 255, 0, 0.9);
}


.nav-item:hover {
    background-color: green;
}


.search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}


.category-dropdown {
    display: none;
    position: absolute;
    top: 56px;
    background: #ffffff;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgb(0, 0, 0);
    z-index: 100;
    padding: 10px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}


.category-dropdown a {
    display: inline-block;
    padding: 12px;
    color: #fff;
    background: green;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}


.category-dropdown a:hover {
    background: #005013;
}


.site-footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 16px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
       -moz-box-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
       -moz-box-align: center;
            align-items: center;
    font-size: 14px;
    -moz-box-sizing: border-box;
         box-sizing: border-box;
}


.site-footer a {
    color: #333;
    text-decoration: none;
    padding: 10px;
}


.site-footer a:hover {
    text-decoration: underline;
}


.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    min-height: 300px;
}


.card-wrapper {
    position: relative;
    margin: 25px 0;
}


.card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
       -moz-box-orient: vertical;
       -moz-box-direction: normal;
            flex-direction: column;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
    z-index: 2;
}


.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}


.card-content {
    padding: 10px;
}


.card-category {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}


.card-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}


@media screen and (max-width:480px) {

    .category,
    .random {
        display: none;
    }

    .logo {
        font-size: 16px;
    }

    .nav-item {
        font-size: 12px;
    }

}


@media screen and (max-width:320px) {

    .category-wrapper {
        display: none;
    }
}
.section-header {
    text-align: center;
}

.section-title {
    color: white;
}

.card-container {
    grid-template-columns: repeat(5, minmax(280px, 1fr));
    padding: 0 20px;
}

.card-wrapper{
    margin-top: 0;
}

.card-title{
    overflow: hidden;  
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media screen and (max-width:470px) {

    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 100%));
    }

}
