/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
}

#searchBar {
    width: 80%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

main {
    padding: 20px;
}

/* Front Page Styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

.app-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-card:hover {
    transform: scale(1.05);
}

.app-logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

.app-logo {
    max-width: 100%;
    max-height: 100%;
}

.single-app-logo{
    width: 150px;
    height: 150px;
    margin-right: 720px;
}

.app-name {
    font-size: 1em;
    margin: 0;
    color: #007bff;
    text-decoration: none;
}

.single-app-name{
    font-size: large;
    color:#007bff;

}

.app-name:hover {
    text-decoration: underline;
}

/* Single App Page Styles */
.app-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.app-detail-main {
    flex: 3;
    margin-right: 20px;
}

.related-apps-sidebar {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.related-apps-sidebar h3 {
    text-align: center;
    margin-bottom: 20px;
}

.related-apps-list {
    list-style-type: none;
    padding: 0;
}

.related-app-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.related-app-item .app-logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.related-app-item .app-details {
    flex: 1;
}

.app-detail-page {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.app-detail-page .app-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.app-details {
    text-align: left;
}

.app-name {
    font-size: small;
    margin-left: 5px;
    color: #007bff;
    text-decoration: none; /* Ensure no underline */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-name:hover{
    text-decoration: none;
}

.download-count {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #555;
}

.download-icon {
    width: 16px;
    height: 16px;
}

.package-name, .last-update, .developer-name, .mini-description, .description {
    margin: 5px 0;
}

.app-links {
    margin: 10px 0;
}

.app-links a, .details-link {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-link{
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    background-color: #00c003;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.ap-store{
    display: inline-block;
    margin-right: 10px;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.app-links a:hover, .details-link:hover {
    background-color: #0056b3;
}

.download-link:hover{
    background-color: #00c003;
}

.ap-store:hover{
    background-color: #0056b3;
}

main section {
    margin-bottom: 40px;
}

main section h2 {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 20px;
    text-align: left;
}

.app-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}
