/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px; /* Adjust based on your overall site layout */
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #4CAF50;
    color: #fff;
    z-index: 1000;
    height: 75px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-width: 165px; /* Adjust size as needed */
    height: auto;
    margin-right: 10px; /* Space between the logo and the title */
}

header h1 {
    font-size: 24px;
    margin: 0;
    font-weight: normal;
    display: inline-block; /* Ensures that the title stays inline with the logo */
    vertical-align: middle;
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-right: 20px;
}

header nav ul li:last-child {
    margin-right: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav ul li a.active {
    font-weight: bold;
}

header form {
    display: flex;
    align-items: center;
}

header form input[type="text"] {
    padding: 5px;
    border: none;
    border-radius: 4px;
    margin-right: 10px;
}

header form button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #4CAF50;
    cursor: pointer;
}

header form button:hover {
    background-color: #ddd;
}
@media (max-width: 768px) {
    header {
        height: auto;
        padding: 10px 20px;
    }

    header .container {
        flex-direction: column;
        align-items: center; /* Center all items */
        text-align: center; /* Center align text within container */
    }

    .logo-container,
    header nav ul,
    header form {
        width: 100%;
        margin-bottom: 10px;
    }

    header nav ul {
        justify-content: center; /* Center navigation items */
        flex-wrap: wrap; /* Adjusts the items if they don't fit in one row */
    }

    header form {
        justify-content: center; /* Center the search form */
    }

    .logo {
        max-width: 120px; /* Adjust size for smaller screens */
    }
}


@media (max-width: 768px) {
    header {
        height: 135px; /* Reduced height for the header */
        padding: 5px 10px; /* Reduced padding */
    }

    header .container {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center all items */
        text-align: center; /* Center align text */
    }

    .logo-container,
    header nav ul,
    header form {
        width: 100%; /* Full width */
        margin-bottom: 10px; /* Space below each item */
    }

    header nav ul {
        justify-content: center; /* Center navigation items */
        flex-wrap: wrap; /* Adjusts the items if they don't fit in one row */
    }

    header form {
        justify-content: center; /* Center the search form */
    }

    .logo {
        max-width: 120px; /* Adjust size for smaller screens */
    }
}


/* Featured App Styles */
.featured-apps {
    padding: 20px;
}

.featured-apps h2 {
    font-size: 20px;
    color: #4A90E2;
    margin-bottom: 20px;
    text-align: center; /* Center align title */
}

.app-grid, .app-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Responsive grid layout */
    gap: 10px; /* Space between app cards */
    justify-content: center; /* Center the grid items */
    width: 100%; /* Ensure grid takes full width */
    margin: 0 auto; /* Center the grid within the container */
}
/* General App Card Styles */
.app-card {
    width: 100%; /* Keep it responsive */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 26px;
    margin: 10px auto; /* Add vertical space between cards */
    max-width: 200px;
    text-align: center; /* Center align all text */
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

.app-card img {
    width: 80px; /* Set icon width */
    height: 80px; /* Set icon height */
    border-radius: 10px; /* Round image corners */
    object-fit: cover; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space below the icon */
}

.app-card h3 {
    font-size: 20px; /* App name font size */
    margin: 2px 0; /* Margin for spacing */
    color: #333; /* Text color */
}

.app-card p {
    font-size: 12px; /* Smaller font size for description and details */
    color: #666; /* Grey text color */
}

.download-button {
    margin-top: 5px;
    padding: 10px 15px;
    background-color: #4A90E2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center; /* Center align button */
}

.download-button:hover {
    background-color: #357ABD; /* Darker blue on hover */
}

/* Container for App Cards */
.app-list {
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow items to wrap onto the next line */
    justify-content: space-between; /* Space between items */
}


/* Media query for small screens */
@media (max-width: 600px) {
    .app-list {
        justify-content: center; /* Center the app cards */
    }

    .app-card {
        width: calc(33.33% - 16px); /* Approximately 3 cards per row with space */
        padding: 12px; /* Further reduce padding */
        margin: 8px; /* Adjust margin */
        font-size: 10px; /* Smaller font size */
    }

    @media (max-width: 400px) { /* For even smaller screens, adjust to 4 cards */
        .app-card {
            width: calc(25% - 26px); /* Approximately 4 cards per row */
        }
    }

    .app-card img.app-icon {
        width: 35px; /* Smaller icon */
        height: 35px; /* Maintain aspect ratio */
    }

    .app-card h3.app-name {
        font-size: 14px; /* Smaller title */
    }

    .app-card p {
        font-size: 9px; /* Smaller text for description */
    }

    .app-card a.details-button {
        font-size: 10px; /* Smaller button text */
        padding: 2px 4px; /* Reduce button padding */
    }
}


/* Top Apps Styles */
.top-apps {
    margin-top: 30px; /* Adds space above the top apps section */
}

.top-apps h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Review Styles */
.review {
    border-top: 1px solid #ddd;
    padding: 10px 0;
}

.review:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.review-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.review-header .rating {
    background-color: #ffd700;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: #999;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.pagination .btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pagination .btn:hover {
    background-color: #0056b3;
}

/* Footer Styles */
footer {
    position: fixed; /* Make the footer fixed */
    bottom: 0; /* Position it at the bottom */
    left: 0; /* Align to the left */
    width: 100%; /* Full width */
    background-color: #333; /* Footer background color */
    color: #fff; /* Footer text color */
    text-align: center; /* Center align footer content */
    height: 75px; /* Set a small, fixed height */
    z-index: 1000; /* Ensure it is on top of other content */
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    padding: 0 20px; /* Optional: Add some horizontal padding */
    box-sizing: border-box; /* Include padding in height calculation */
}

footer .container {
    display: flex;
    align-items: center; /* Vertically center items within the row */
    justify-content: center; /* Center the entire row horizontally */
}

footer p {
    margin: 0 10px; /* Add horizontal margin for spacing */
    font-size: 14px; /* Smaller font size for a compact design */
}

footer a {
    color: #4CAF50; /* Link color */
    text-decoration: none;
    margin: 0 5px; /* Add spacing between links */
}

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

footer .footer-logo img {
    width: 60px; /* Adjust logo size for a smaller footer */
    height: auto;
    margin-right: 20px; /* Add margin to separate the logo from text */
}

/* Scrollable Container Styles */
.scrollable-container {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

#loading {
    text-align: center;
    font-size: 20px;
    margin: 20px 0;
    display: none; /* Hidden by default */
}
.details-button {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #4A90E2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center; /* Center align button */
}

.details-button:hover {
    background-color: #357ABD; /* Darker blue on hover */
}
.app-details-container {
    background: white; /* White background for the details container */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow */
    padding: 20px; /* Padding inside the container */
    width: 90%; /* Make the container responsive */
    max-width: 800px; /* Set a max width for larger screens */
    margin: 0 auto; /* Center the container */
}
/* reviews form*/
.review-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.review-form .input-field {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.star-rating {
    display: flex;
    cursor: pointer;
}

.star {
    font-size: 30px; /* Adjust size as needed */
    color: #ccc; /* Default star color */
    transition: color 0.2s;
}

.star:hover,
.star:hover ~ .star {
    color: #f39c12; /* Color on hover */
}

.star.selected {
    color: #f39c12; /* Selected star color */
}

.btn {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Category Navigation Styles */
.category-nav {
    margin-bottom: 30px;
    text-align: center;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-item {
    display: inline-block;
}

.category-link {
    display: block;
    padding: 10px 20px;
    font-size: 1rem; /* Default font size */
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 8px;
    margin: 5px;
    font-weight: bold;
}

.category-link:hover,
.category-link.active {
    background-color: #007bff;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .category-link {
        padding: 2px 4px; /* Reduce padding for smaller screens */
        font-size: 0.7rem; /* Slightly smaller font size */
        font-weight: bold;
    }

    .category-item {
        margin: 1px; /* Reduce margin between items */
    }
}

@media (max-width: 480px) {
    .category-link {
        padding: 2px 4px; /* Further reduce padding for very small screens */
        font-size: 0.6rem; /* Further reduce font size */
        font-weight: bold;
    }

    .category-item {
        margin: 1px; /* Further reduce margin */
    }
}

/* App Grid Styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.app-card {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.app-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 8px;
    object-fit: cover;
}

.app-name {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.app-category,
.app-rating {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.details-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.details-button:hover {
    background-color: #0056b3;
}

/* No Apps Message */
.no-apps-message {
    font-size: 1.1rem;
    text-align: center;
    color: #999;
    margin-top: 20px;
}
.spacer {
    height: 50px; /* Default height for larger screens */
}

/* Media query for screens with max-width of 768px */
@media (max-width: 768px) {
    .spacer {
        height: 120px; /* Reduced height for smaller screens */
    }
}
.previous-searches {
    display: flex;
    flex-wrap: wrap; /* Wrap items to the next line if they don't fit */
    justify-content: center; /* Center items */
    margin-bottom: 20px; /* Space below the search text */
}

.previous-search {
    display: inline-block;
    padding: 8px 12px;
    margin: 5px; /* Space between items */
    background-color: #007bff; /* Bootstrap primary color */
    color: white;
    border-radius: 5px;
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease;
}

.previous-search:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
.clear-button {
    padding: 8px 12px;
    background-color: #dc3545; /* Bootstrap danger color */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-button:hover {
    background-color: #c82333; /* Darker red on hover */
}
.success-message {
    color: green;
    font-weight: bold;
}

.error-message {
    color: red;
    font-weight: bold;
}

