body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    color: #000000;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.logo {
    margin: 40px 0 20px 0;
    text-align: center;
}

.logo-img {
    height: 150px;
    width: auto;
    display: inline-block;
}

.logo a {
    display: inline-block;
}

.tagline {
    font-size: 14px;
    color: #666666;
    margin: 5px 0 30px 0;
}

.search-box {
    margin: 15px 0;
}

.search-box input[type="text"],
.search-box input[type="email"],
.search-box input[type="password"] {
    width: 350px;
    max-width: 90%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #000000;
    border-radius: 0;
    outline: none;
}

.search-box input:focus {
    border-color: #666666;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
}

.buttons {
    margin: 15px 0 30px 0;
}

.btn {
    background-color: #eeeeee;
    border: 1px solid #666666;
    padding: 8px 16px;
    margin: 3px;
    font-size: 13px;
    cursor: pointer;
    color: #000000;
    font-family: Arial, sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #dddddd;
}

.btn-primary {
    background-color: #eeeeee;
    color: #000000;
    border: 1px solid #666666;
}

.btn-small {
    background-color: #eeeeee;
    border: 1px solid #666666;
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
}

.email-subscribe {
    width: 100px;
    padding: 3px 5px;
    font-size: 11px;
    border: 1px solid #666666;
}

.footer {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    padding: 25px 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 12px;
}

.footer-logo-img {
    height: 28px;
    width: auto;
    opacity: 0.7;
}

.footer a {
    color: #666666;
    text-decoration: underline;
    font-size: 12px;
}

.footer a:hover {
    color: #333333;
}

.copyright {
    font-size: 12px;
    color: #666666;
    margin: 5px 0;
}

.disclaimer {
    font-size: 11px;
    color: #888888;
    margin: 5px 0;
}

hr.divider {
    border: none;
    border-top: 1px solid #999999;
    margin: 25px auto;
    width: 90%;
    max-width: 500px;
}

/* App Grid Layout for Tools */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
    justify-content: center;
}

/* Completely reset the app grid and buttons to ensure no conflicts */
.app-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-top: 30px !important;
    padding: 10px !important;
    list-style: none !important;
}

.app-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 140px !important;
    height: 140px !important;
    background-color: #E0E0E0 !important;
    border-top: 2px solid #FFFFFF !important;
    border-left: 2px solid #FFFFFF !important;
    border-bottom: 2px solid #808080 !important;
    border-right: 2px solid #808080 !important;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
    color: #000000 !important;
    font-weight: bold !important;
    text-align: center !important;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(0,0,0,0.05) 100%) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.app-button:active {
    border-top: 2px solid #808080 !important;
    border-left: 2px solid #808080 !important;
    border-bottom: 2px solid #FFFFFF !important;
    border-right: 2px solid #FFFFFF !important;
    box-shadow: inset 2px 2px 4px rgba(0,0,0,0.3) !important;
    transform: translate(1px, 1px) !important;
}

.app-icon {
    font-size: 42px !important;
    margin-bottom: 10px !important;
    display: block !important;
    line-height: 1 !important;
}

.app-label {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 5px !important;
    color: #000000 !important;
    text-decoration: none !important;
}

/* Specific overrides for mobile to force the grid layout and appearance */
@media screen and (max-width: 768px) {
    .app-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .app-button {
        width: 100% !important;
        height: 140px !important;
        margin: 0 !important;
    }
}

@media screen and (max-width: 350px) {
    .app-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Hide legacy elements that might be causing interference */
.menu-list, ul.menu-list, .menu-list li {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


@media screen and (max-width: 400px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .logo-img {
        height: 80px;
    }
    
    .tagline {
        font-size: 12px;
    }
    
    .menu-list li {
        font-size: 13px;
    }
    
    .stats-table td {
        font-size: 12px;
        padding: 6px 4px;
    }
}
