/* styles.css */

body,html {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: #4d4b4b;
    color: #fff;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #4d4b4b;
}

main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.logo-container {
    width: 80%;
    display: flex;
    align-items: center;
}

.logo {
    height: 80px;
}

.word-logo {
    height: 40px;
    margin: 0;
}

.app-store-badge {
    height: 36px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    width: 100%;
    max-height: 100%;

    /* ADJUST THIS: To change the space BETWEEN images (e.g., 5px, 10px) */
    gap: 5px;

    /* ADJUST THIS: To change the total WIDTH of the gallery (e.g., 1200px, 1400px) */
    max-width: 500px; 
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    background-color: #4d4b4b;
    min-height: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block; 
    object-fit: contain;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #4d4b4b;
    color: #fff;
}

/* --- Footer Link Styles --- */
footer p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Adds a small space around the separators */
    color: #aaa; /* Softens the color of the copyright text */
    font-size: 0.9em;
}

/* Style for the links in the footer, covering all states */
footer a,
footer a:link,
footer a:visited,
footer a:active {
    color: #fff !important; /* Make link text white for all states */
    text-decoration: none; /* Remove the default underline */
}

/* Add an underline ONLY when hovering over the links */
footer a:hover {
    text-decoration: underline;
}


/* --- Mobile layout --- */
@media (max-width: 767px) {
    main {
        padding: 0;
    }
    header {
        flex-direction: column;
        align-items: center;
    }
    .app-store-link {
        margin-top: 20px;
    }
    .word-logo {
        height: 30px;
    }
    .logo {
        height: 60px;
    }
    .gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        max-width: none; 
        gap: 0;
    }
    .gallery-item {
        flex: 0 0 100%;
        scroll-snap-align: center;
        background-color: transparent;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .gallery::-webkit-scrollbar {
        height: 5px;
    }
    .gallery::-webkit-scrollbar-track {
        background: #333;
    }
    .gallery::-webkit-scrollbar-thumb {
        background-color: #555;
        border-radius: 5px;
    }

    /* Hides the separators on small mobile screens for a cleaner look */
    @media (max-width: 400px) {
        footer p {
            flex-direction: column;
            gap: 5px;
        }
        .footer-separator {
            display: none;
        }
    }
}

.app-store-container {
    position: relative;
}

.app-store-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.beta-notification {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    width: 200px;
    text-align: center;
    font-size: 0.7em;
    transition: opacity 0.2s, visibility 0.2s;
}

.app-store-container:hover .beta-notification {
    opacity: 1;
    visibility: visible;
}