:root {
    --background: #160404;
    --section-background: #4d4847;
    --text-color: #eee;
    --important: #df0606;
    --hover-color: #7a0809;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background-color: var(--background);
}

nav {
    width: 100%;
    height: 60px;
    padding: 0 40px;
    background: #4d4847cc;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    border: #160404 solid .5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    top: 0;
    z-index: 1000;
}

nav .logo {
    width: 30%;
    height: 45px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav ul {
    display: flex;
    width: 45%;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    text-transform: capitalize;
    padding: 15px 20px;
    transition: .1s;
}

nav ul li:hover a {
    background-color: var(--important);
}

nav .nav-list {
    display: none;
    position: relative;
}

h1,
h2,
h3,
th {
    font-family: 'Rajdhani', sans-serif;
    text-transform: capitalize;
}

section {
    margin-top: 20px;
    width: 100%;
    border-radius: 20px;
    padding: 20px;
    min-height: 100vh;
    background-color: var(--section-background);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#feed {
    margin-top: 80px;

}

h2 {
    font-size: 36px;
}

.card-container,
.owasp-container,
.vulns-list {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.card {
    width: 350px;
    border: var(--hover-color) solid 1px;
    border-radius: 20px;
    overflow: hidden;
    height: fit-content;
    background-color: var(--background);
    transition: .5s;
    margin-top: 15px;
    min-width: 250px;
    max-width: 350px;
}

.card:hover {
    box-shadow: var(--hover-color) 0px 0px 20px;
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card .card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 15px;

}

.card-info h3 {
    font-size: 16px;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    max-height: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    -webkit-line-clamp: 3;
    font-weight: 200;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: #aba9a9;
    margin-top: 15px;
    text-transform: capitalize;
}

.card-info a,
button {
    background-color: var(--important);
    margin: 10px 0 0;
    padding: 10px 15px;
    text-decoration: none;
    text-transform: capitalize;
    cursor: pointer;
    border-radius: 15px;
    border: var(--background) 1px solid;
}

.card-info a:hover,
button:hover {
    background-color: var(--hover-color);
}

.date {
    margin-top: 10px;
    font-weight: 100;
    color: #aba9a9;
}

.owasp-container .card .card-info p {
    display: inline;
}

.owasp-container .card {
    width: 24%;
    height: 250px;
    min-width: 340px;
    max-width: 350px;
}

input {
    padding: 10px 15px;
    border-radius: 15px;
    border: var(--background) 1px solid;
    outline: none;
}

input:focus {
    box-shadow: 0 0 5px var(--important);

}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

input {
    top: 5px;
    position: relative;
    color: var(--background);
}

.search-area input:focus {
    box-shadow: var(--text-color) 0px 0px 2px;
}

.vulns-list .card {
    min-width: 350px;
}

.vulns-list .card img {
    height: 200px;
    object-fit: cover;
}

.vulns-list .card h3 {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.vulns-list .card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--important);
}

.vulns-list .card .card-info p {
    height: 70px;
}
.not-found{
    color: var(--important);
    font-size: 50px;
    text-transform: capitalize;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
#leaderboard {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

table {
    width: 80%;
    border: 2px solid var(--hover-color);
    border-collapse: collapse;
    background-color: var(--background);
    margin: 3px;
}

tbody {
    cursor: pointer;
}

th,
td {
    border: 1px solid var(--hover-color);
    padding: 10px;
    text-align: center;
}

#hackers-list tr:nth-child(1) {
    background-color: #660b0d;
}

#hackers-list tr:nth-child(2) {
    background-color: #4d0809;
}

#hackers-list tr:nth-child(3) {
    background-color: #260304;
}

#hackers-list tr:hover {
    background-color: #4d4847;
}

#leaderboard {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#leaderboard h2 {
    position: absolute;
    top: 20px;
}

.copyright {
    width: fit-content;
    margin: auto;
    text-transform: capitalize;
    text-align: center;
}

@media (max-width:1280px) {
    nav ul {
        width: 60%;
    }
}

@media (max-width:990px) {
    nav ul {
        width: 70%;
    }
}

@media (max-width:860px) {
    nav ul {
        width: 80%;
    }
}

@media (max-width:830px) {
    nav ul {
        width: 0;
        flex-direction: column;
        height: 100vh;
        background-color: var(--background);
        overflow: hidden;
        transition: 0.3s;
        position: absolute;

        top: 60px;
        right: 0;
    }

    nav ul li a {
        display: block;
    }

    .logo {
        margin: auto;
    }

    nav .nav-list {
        display: block;
        top: 0;
        left: 0;
        cursor: pointer;
        transition: 0.3s;
        background-color: var(--background);
        border-radius: 50%;
        width: 30px;
        aspect-ratio: 1/1;
        text-align: center;
        font-size: 20px;
        z-index: 1000;
    }
    table {
    width: 100%;
    }
    th{
        font-size: 16px;
    }
    tr{
        font-size: 10px;
    }
    .card{
        
    }
}