/* Other Meter Apps css: for the apps in the other meter apps section under the featured app */

body {
    margin: 0;
    padding: 0;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #FFE066;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 9rem;/* To prevent main content from being hidden underneath the fixed header */
}

#disclosureLink {
    font-size: 0.95rem;
    padding: 0.5rem;
    /*color: #6969d7;*/
    margin-top: 1rem;
    color: white;
    text-align: left !important;
    width: 100%;
}

.mt-12 {
    margin-top: 2rem;
    /*margin-bottom: 0.5rem;*/
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.p-8 {/* py-16 in other-quiz-apps */
    padding-top: 1rem;
    padding-bottom: 1rem;
    overflow: hidden;
}
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; margin-top: 1.5rem; }

.other-app-subtitle {
    margin-top: 5px;
    margin-bottom: 10px;
    color: blue;
    font-style: italic;
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.bg-white {
    /*background-color: white;*/
    /*background-color: #493bafd6;*/
    background-image: linear-gradient(to bottom right, #FFE066);
    backdrop-filter: blur(15px);
    border: 1px solid rgb(232 163 16);
}

.text-white {
    color: white;
}

.block {
    display: block;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.back-to-top {
    position: fixed;
    top: 90%;
    right: 25px;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #ffe066;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* important not to be affected by the app button style */
}

.back-to-top.visible {
    opacity: 0.8;
    visibility: visible;
}

/* Simple arrow design */
.arrow {
    width: 24px;
    height: 24px;
    position: relative;
}

/* Arrow head pointing up */
.arrow::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 1px;
}

/* Responsive grid */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* App cards */
.app-card {
    border: 2px solid rgb(62 191 36 / 20%);
    border-radius: 0.5rem;
    padding: 0.7rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgb(62 191 36 / 10%);
    backdrop-filter: blur(10px);
}

.app-card:hover {
    border-color: rgb(62 191 36 / 30%);
    background: rgb(62 191 36 /15%);
    /*box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);*/
    transform: translateY(-2px);
}

/*////////////////////////////*/
/* Mobile Responsiveness - Add to funny-meter.css */
/* Tablet styles (768px and below) */
@media screen and (max-width: 768px) {
    .text-3xl {
        font-size: 1.75rem;
        line-height: 2rem;
    }
}

/* Mobile styles (480px and below) */
@media screen and (max-width: 480px) {
    .gap-4 {
        gap: 0.5rem;
    }

    .text-3xl {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }

    .mb-6 {
        margin-bottom: 1.25rem;
    }

    .app-card {
        padding: 0.75rem;
    }
}

/* Small mobile styles (360px and below) */
@media screen and (max-width: 360px) {
    .text-3xl {
        font-size: 1.35rem;
        line-height: 1.6rem;
    }

    .mb-6 {
        margin-bottom: 1rem;
    }

    .app-card {
        padding: 0.5rem;
        border-radius: 0.375rem;
    }
}

/* Landscape phone orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
}

@media screen and (max-width: 768px) {
    main {
        margin-top: 4rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }
}

/* Surface Duo and similar dual-screen devices */
@media screen and (min-width: 540px) and (max-width: 768px) and (orientation: portrait) {
    main {
        margin-top: 5rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }

    .content-card h1 {
        font-size: 2rem;
    }
}

/* Surface Duo and similar dual-screen devices */
@media screen and (max-width: 768px) and (max-height: 540px) and (orientation: landscape) {
    main {
        margin-top: 5rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }
}

/* Samsung Galaxy S8+ */
@media screen and (min-width: 730px) and (max-width: 750px) and (orientation: landscape) {
    main {
        margin-top: 5rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }
}

/* iPhone SE Portrait */
@media screen and (max-width: 480px) {
    main {
        margin-top: 4rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0.5rem 0.8rem;
    }

    #disclosureLink {
        font-size: 0.86rem;
        margin-top: 1rem;
    }
}

/* iPhone SE landscape (375px x 667px) */
@media screen and (min-width: 660px) and (min-height: 370px) and (max-height: 380px) and (orientation: landscape) {
    main {
        margin-top: 4.5rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }
}

/* iPhone XR, 12 Pro, 14 Pro Max, Samsung Galaxy S20 Ultra Landscape */
@media screen and (min-width: 790px) and (max-width: 935px) and (max-height: 440px) and (orientation: landscape) {
    main {
        margin-top: 4rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }
}

/* iPad Mini landscape */
@media screen and (min-width: 1014px) and (max-width: 1034px) and (orientation: landscape) {
    main {
        margin-top: 7rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 1rem 1rem 0.5rem 1rem;
    }

    .nav-menu {
        gap: 5px;
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* iPad Air landscape */
@media screen and (min-width: 1170px) and (min-height: 810px) and (max-height: 830px) and (orientation: landscape) {
    main {
        margin-top: 6rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 1rem 1rem 0.5rem 1rem;
    }
}

/* iPad Mini portrait (768px x 1024px) & Surface Pro 7 portrait */
@media screen and (min-width: 758px) and (min-height: 1024px) and (orientation: portrait) {
    main {
        margin-top: 8rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }

    .nav-menu {
        gap: 5px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .logo {
        font-size: 2rem;
    }
}

/* iPad Air and Surface Pro 7 Landscape */
@media screen and (min-width: 720px) and (min-height: 540px) and (max-height: 915px) and (orientation: landscape) {
    main {
        margin-top: 6rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 1rem 1rem 0.5rem 1rem;
        margin-bottom: 8rem;
    }

    .content-card h1 {
        font-size: 2.5rem;
    }
}

/* Surface Pro 7 Portrait (912px x 1368px) */
@media screen and (min-width: 900px) and (max-width: 920px) and (orientation: portrait) {
    main {
        margin-top: 10rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0.5rem 1rem 0.5rem 1rem;
        margin-bottom: 19rem;
        height: auto; /* Allow height to adjust based on content, combined with min and max height */
        min-height: 50vh; /* Ensure a minimum height */
        max-height: 80%; /* Limit maximum height to 80% of viewport height */
    }

    .nav-menu {
        gap: 5px;
    }
    .nav-link {
        font-size: 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .mt-12 {
        margin-top: 2rem;
    }
}

/* Galaxy Z Fold 5 (882px x 344px) */
@media screen and (min-width: 880px) and (max-width: 900px) and (max-height: 354px) and (orientation: landscape) {
    main {
        margin-top: 4rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }
}

/* iPad Air Portrait (820px x 1180px) */
@media screen and (min-width: 810px) and (max-width: 830px) and (orientation: portrait) {
    main {
        margin-top: 8rem;/* To prevent main content from being hidden underneath the fixed header */
        padding: 0rem 1rem 0.5rem 1rem;
    }
}

/* iPad Pro Portrait (1024px x 1366px) */
@media screen and (min-width: 1014px) and (max-width: 1034px) and (orientation: portrait) {
    main {
        margin-top: 9rem; /* To prevent main content from being hidden underneath the fixed header */
        margin-bottom: 12rem;
        height: auto; /* Allow height to adjust based on content, combined with min and max height */
        min-height: 50vh; /* Ensure a minimum height */
        max-height: 80%; /* Limit maximum height to 80% of viewport height */
    }

    .content-card h1 {
        font-size: 2.5rem;
    }

    .nav-menu {
        gap: 5px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 2.2rem;
    }

    .app-container {
        margin: 1.5rem auto;
    }
}

/* iPad Pro Landscape (1366px x 1024px) is same as desktop viewpoint */