/* Global styles */
/* Near-black page background with a slight blue hue */
body {
    color: #ffffff;
    background: #0a0a1f;
    margin: 0;
    min-height: 100vh;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 16px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.4);
    background-clip: content-box;
}

/* Firefox scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Ensure consistent width across all pages */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    overflow-y: visible;
}

h1 {
    color: #ffffff;
}

a {
    color: #add8e6;
    text-decoration: none;
}

a:hover {
    color: #cce7ff;
}

/* Remove underline for footnotes links in text */
a[href^="#footnote"] {
    text-decoration: none;
}

/* A rounded rectangle container with columns and padding */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    width: 75%;
    margin: 0 auto;
}

/* Styles for interactive buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    margin: 10px;
    background-color: #1e1e2e;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Hover effect for buttons */
.buttons .button:hover {
    background-color: #3a3a5e;
}

.app-store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin: 10px;
    padding: 0;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

.testflight-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin: 10px;
    padding: 0;
    background-color: transparent;
    position: relative;
    z-index: 2;
}

.button img {
    height: 20px;
    margin-right: 8px;
}


/* App showcase styles for the homepage */
.app-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    width: 100%;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 10px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1e1e2e;
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.app-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: contain;
}

.placeholder-icon {
    width: 100%;
    height: 100%;
    background-color: #3a3a5e;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
}

.app-card h2 {
    margin: 0 0 15px 0;
}

.app-card h2 a {
    color: #ffffff;
    text-decoration: none;
}

.app-card h2 a:hover {
    color: #add8e6;
}

.app-card .button {
    margin-top: 10px;
}

/* App header with icon for individual app pages */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.app-page-icon {
    width: 120px;
    height: 120px;
    border-radius: 22px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Container for combining info-left and info-right sections */
.info-container {
    display: flex;
    background-color: #484852; 
    padding: 20px 40px;
    border-radius: 8px;
    width: 80%;
    margin: 0 auto;
}

.info-left {
    flex: 1;
    margin-right: 20px;
    text-align: left;
}

.info-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-right img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.info-user h2,
.info-user p {
    margin: 0;
    text-align: center;
}

/* Footer styling */
.info-footer {
    margin-top: 20px;
    color: #ccc; /* Gray text */
    font-size: 0.8rem;
    width: 75%;
}

.info-footer a {
    text-decoration: none;
    line-height: 1;
    padding-bottom: 2px;
}

/* Navbar styling */
.navbar {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.navbar ul {
    list-style: none;
    padding: 0;
    display: inline-block;
}

.navbar li {
    display: inline;
    margin: 0 10px;
}

.navbar a {
    color: #ccc;
    text-decoration: none;
}

.navbar a.active {
    border-bottom: 2px solid #ffa500;
}

/* Additional details section styles */
.details-section {
    margin-top: 60px;
    padding-bottom: 80px;
    width: 100%;
    max-width: 1200px;
}

.headline-container {
    text-align: center;
    margin-bottom: 50px;
}

.large-headline {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: #60B0FB;
    margin: 0;
    font-weight: 300;
}

.hstack {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 40px;
    margin-left: 24px;
    margin-right: 24px;
}

.phone-screenshot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-image {
    width: auto;
    max-width: 480px;
    max-height: 480px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    object-fit: contain;
    display: block;
}

.phone-wide-image {
    width: auto;
    min-width: 240px;
    max-width: 40vw;
    max-height: 480px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    object-fit: contain;
    display: block;
}

.phone-image:hover {
    transform: scale(1.05);
}

.phone-wide-image:hover {
    transform: scale(1.05);
}

.features-container {
    flex: 1;
    text-align: left;
    min-width: 240px;
}

.features-header {
    font-size: 2rem;
    color: #ffffff;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.features-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    margin: 0;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .large-headline {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .hstack {
        flex-direction: column;
        gap: 30px;
    }
    
    .features-container {
        text-align: center;
        padding-left: 0;
    }
    
    .phone-image {
        width: 200px;
    }
    
    /* Reorder the reversed hstack on mobile */
    .hstack-reverse .features-container {
        order: 2;
    }
    
    .hstack-reverse .phone-screenshot {
        order: 1;
    }
}

