body {
    background: #f0f0f0;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.5; /* Reduced line height for compactness */
    margin: 0;
    padding: 0;
}

.content {
    max-width: 1000px; /* Slightly reduced width */
    margin: auto;
    background: white;
    padding: 15px; /* Reduced padding */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.container {
    display: flex;
    width: 100%;
    background: #fff;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5px 0; /* Less padding */
}

.box {
    min-width: 30%;
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 15px; /* Reduced padding for compact look */
    margin: 5px; /* Tighter margin between boxes */
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    border-radius: 8px;
    background-color: #fff;
}

    .box:hover {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #007bff;
    overflow: hidden;
    font-size: 16px; /* Slightly smaller font */
    display: flex;
}

    .menu li {
        flex: 1;
        position: relative;
    }

        .menu li a {
            display: block;
            color: white;
            text-align: center;
            padding: 12px 16px; /* Reduced padding */
            text-decoration: none;
            transition: background-color 0.3s ease;
        }

            .menu li a:hover {
                background-color: #0056b3;
            }

/* Dropdown styles */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #007bff;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

    .dropdown a {
        color: white;
        padding: 10px 15px; /* Reduced padding */
        text-decoration: none;
        display: block;
        text-align: left;
    }

        .dropdown a:hover {
            background-color: #0056b3;
        }

.menu li:hover .dropdown {
    display: block;
}

.mainlogo {
    max-width: 90%; /* Reduced size to fit better */
    height: auto;
    margin-bottom: 15px; /* Reduced margin */
}

.category,
.added {
    margin-bottom: 15px; /* Reduced margin */
}

    .added a,
    .category a {
        display: block;
        padding: 15px; /* Reduced padding */
        background-color: #e9ecef;
        color: #007bff;
        text-decoration: none;
        border-radius: 5px;
        border: 1px solid #ccc;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

        .category a:hover,
        .added a:hover {
            background-color: #0056b3;
            color: #fff;
            transform: scale(1.03); /* Slight grow effect */
        }
