body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Ensure other elements inherit the same font */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
button {
    font-family: 'Roboto', sans-serif;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 50px; /* Add padding for both left and right */    
    position: fixed; /* Fix the header at the top */
    top: 0; /* Align the header to the top of the page */
    width: 100%; /* Make sure the header spans the full width of the page */
    z-index: 1000; /* Ensure the header is above other content */
}


.header-left {
    display: flex;
    align-items: center;
}

.header-left img.google-logo {
    height: 25px;
    margin-right: 20px;
}

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

.header-left nav ul li {
    margin-right: 20px;
    font-size: 15px;
}

.header-left nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.header-left nav ul li a.highlight {
    color: #0F9D58;
    /* Google Play green color */
    border-bottom: 3px solid #0F9D58;
    /* Green underline */
    padding-bottom: 5px;
    /* Space between text and underline */
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right img.search-icon {
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.header-right img.help-icon {
    height: 25px;
    margin-right: 15px;
    cursor: pointer;
}

.header-right img.user-icon {
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

/* General container used for aligning content */
.container-footer {
    max-width: 1000px;
    /* Or whatever width your main content uses */
    margin: 0 auto;
    padding: 0 15px;
    background-color: white;
}

/* Footer styles */
footer {
    background-color: #f5f5f5;
    padding: 20px 0;
    font-size: 14px;
    color: #757575;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    margin: 0 15px;
}

.footer-column ul {
    list-style-type: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column li a {
    text-decoration: none;
    color: #757575;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-bottom ul li {
    margin-right: 15px;
}

.footer-bottom ul li a {
    text-decoration: none;
    color: #757575;
}

.footer-bottom ul li a:hover {
    text-decoration: underline;
}

.footer-country {
    display: flex;
    align-items: center;
}

.footer-country .flag {
    width: 24px;
    height: 16px;
    background: url('https://upload.wikimedia.org/wikipedia/en/thumb/4/41/Flag_of_India.svg/1024px-Flag_of_India.svg.png') no-repeat center center;
    background-size: contain;
    margin-right: 5px;
}

.footer-country span {
    color: #757575;
}

.container {
    background-color: white;
    padding-left: 150px;
}

.top-charts {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    padding-bottom: 50px;
}

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

.filter-buttons {
    margin-bottom: 20px;
}

.filter-buttons button {
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 20px;
    background-color: #e0e0e0;
    color: #333;
    cursor: pointer;
}

.filter-buttons button.active {
    background-color: #d3e3fc;
    color: green;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.app-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: white;
}

.app-card img {
    height: 50px;
    width: 50px;
}

.rank {
    font-size: 18px;
    margin-right: 10px;
}

.app-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.app-details h3 {
    margin: 0;
    font-size: 16px;
}

.app-details p {
    margin: 2px 0;
    font-size: 14px;
    color: #777;
}

.device-selection {
    display: flex;
    gap: 10px;
    background-color: white;
    padding: 30px 240px;
    padding-top: 70px;
}

.device-btn {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    background-color: white;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s, border-color 0.3s;
}

.device-btn.active {
    background-color: #d3e3fc;
    border-color: #d3e3fc;
    color: green;
}

.device-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.device-btn:hover {
    background-color: #f0f0f0;
}

.recent-activity-section {
    margin: 20px 0;
    background-color: white;
    margin-top: -21px;
    padding-left: 200px;
}

.recent-activity-section h2 {
    font-size: 25px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    padding-left: 25px;
}

.recent-activity-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 30px;
    scrollbar-width: thin;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    padding-left: 50px;

}

.recent-activity-list::-webkit-scrollbar {
    /* Webkit browsers */
    height: 8px;
}

.recent-activity-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
    text-align: center;
}

.app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
    border-radius: 15px;
    /* Optional: Adds rounded corners to the app icon */
}

.app-details {
    font-size: 14px;
    color: #5f6368;
}

.app-name {
    font-weight: 500;
    margin: 5px 0;
    color: #202124;
}

.app-rating {
    color: #70757a;
}

.activity-section {
    padding: 20px;
    background-color: white;
    margin-top: -20px;
    padding-left: 210px;
    box-sizing: 800px;
    padding-bottom: 50px;
    padding-right: 50px;
}

.activity-section h2 {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 15px;
}

.activity-grid {
    display: flex;
    /* justify-content: space-between; */
    gap: 10px;
}

.activity-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 30%;
    transition: transform 0.2s ease-in-out;
}

.activity-item:hover {
    transform: translateY(-5px);
}

.item-image {
    width: 100%;
    height: 100%px;
    object-fit: cover;
}

.item-content {
    display: flex;
    align-items: center;
    padding: 10px;
}

.item-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
}

.item-details h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.item-details p {
    font-size: 14px;
    color: #555;
    margin: 2px 0;
}

.item-rating {
    color: #ffc107;
    font-weight: bold;
}

/* Add this at the top of your CSS file */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* ... rest of your CSS ... */

/* Add these media queries at the bottom of your CSS file */

/* For small screens (mobile devices) */
@media only screen and (max-width: 768px) {
    .header-left li{
        display: none;
    } 
    body{
        background-color: white;
    }
    .container {
        padding-left: 20px;
        background-color: white;
    }

    .top-charts {
        padding: 20px;
    }
    .filter-buttons button{
        padding: 5px 10px;
    }
    .device-selection {
        display: flex;
        flex-wrap: wrap; /* Allows wrapping to the next line */
        padding: 20px;
        flex-direction: row; /* Ensures items are placed in a row first */
        gap: 10px; /* Adds some spacing between the buttons */
        padding-top: 80px;
    }

    .device-btn {
        margin-bottom: 10px;
    }

    .recent-activity-section {
        padding-left: 20px;

    }



.recent-activity-list {
        display: flex;
        /* flex-wrap: wrap; */
        /* padding-left: 75px; */
        gap: 10px;
    }

    .activity-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .activity-grid {
        flex-direction: column;
    }

    .activity-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .activity-grid{
        padding-left: 60px;
        
    }

    /* Adjust header for small screens */
    header {
        padding: 10px 20px;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .header-nav {
        display: none;
    }
    .footer-country {
        display: none;
    }
}

/* For medium screens (tablets) */
@media only screen and (min-width: 769px) and (max-width: 992px) {

    .container {
        padding-left: 50px;
        background-color: white;
    }

    .top-charts {
        padding: 30px;
    }

    .device-selection {
        padding: 30px;
    }

    .recent-activity-section {
        padding-left: 50px;
    }

    .recent-activity-list {
        padding-left: 50px;
    }

    .activity-section {
        padding-left: 50px;
        padding-right: 50px;
    }

    .activity-grid {
        flex-direction: row;
    }

    .activity-item {
        width: 45%;
        margin-bottom: 20px;
    }

    /* Adjust header for medium screens */
    header {
        padding: 20px 50px;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        width: 70px;
        height: 70px;
    }

    .header-nav {
        display: flex;
        gap: 20px;
    }

    .header-nav a {
        font-size: 16px;
    }
}
