* {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

body{
    background-color: #f0f0f0;
    height: 100vh;
    overflow: hidden;
}

.mainbody {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffffa1;
    backdrop-filter: blur(20px);
    color: #000000;
    width: 100%;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #cbcbcb;
    position: sticky;
    top: 0;
}

.cardgrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    padding: 20px;
    width: fit-content;
    place-items: center;
    margin: 0px 100px;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    position: sticky;
    bottom: 0;
}

.linkbtn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
}

.linkbtn:hover {
    background-color: #0056b3;
}

.linkbtn:active {
    transform:translateY(2px);
}

.btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.btn:active {
    transform:translateY(2px);
}

.listbody {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.list {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.cardlist {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.listheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ansbody {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100%;
    width: 100%;
}

.ansimg {
    height: 80vh;
    width: auto;
}


@media  screen and (max-width: 900px) {
    .cardgrid {
        grid-template-columns: repeat(5, 1fr);
        margin: 0px 80px;
    }
}

@media  screen and (max-width: 768px) {
    .cardgrid {
        grid-template-columns: repeat(4, 1fr);
        margin: 0px 20px;
    }
}