* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    scroll-behavior: smooth;
    background-color: var(--frame-bg-color);
}

:root {
    --bg-color: #ffffff;
    --text-color: #24292e;
    --accent-color: #4e54c8;
    --frame-bg-color: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0d1117;
        --text-color: #c9d1d9;
        --accent-color: #4e50c8;
        --frame-bg-color: #161b22;
    }
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('/public/fonts/OpenDyslexic-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body.dyslexic {
  font-family: 'OpenDyslexic', sans-serif;
}











#font-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: background 0.3s ease, transform 0.2s ease;
}

#font-toggle:hover,
#font-toggle:focus {
    background: #3b3db0;
    outline: none;
    transform: scale(1.05);
}

#font-toggle:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    #font-toggle {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.4rem;
    }
}














a {
    color: var(--text-color);
}

.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.topnav .left-link img {
    height: 40px;
    width: 40px;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
}

.menu-toggle {
    display: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links .right-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s ease;
}

.nav-links .right-link:hover {
    border-bottom: 2px solid var(--accent-color);
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        display: none;
    }

    .menu-toggle:checked + .hamburger + .nav-links {
        display: flex;
        margin-top: 0.5rem;
    }

    .nav-links .right-link {
        padding: 0.5rem 0;
        margin-left: 0;
    }
}

.lang-switch {
    margin-left: 10px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10rem 1rem;
    text-align: center;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.hero-button:hover {
    background-color: #0550ae;
}

.hero-button.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.hero-button.secondary:hover {
    background-color: var(--accent-color);
    color: #fff;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.7;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.app-frame {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.app-icons {
    display: grid;
    grid-template-columns: repeat(3, 60px);
    grid-template-rows: repeat(3, 60px);
    gap: 1rem;
    flex-shrink: 0;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.app-icon-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 10px;
    align-self: center;
}

.app-text {
    max-width: 500px;
}

.app-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.app-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .app-frame {
        flex-direction: column;
        text-align: center;
    }

    .app-text {
        max-width: 100%;
    }
}

.about-frame {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background-color: var(--frame-bg-color);
    color: var(--text-color);
}

.about-text {
    max-width: 500px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .about-frame {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        max-width: 100%;
    }
}

.contact-frame {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background-color: var(--frame-bg-color);
    color: var(--text-color);
}

.contact-text {
    max-width: 500px;
}

.contact-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .contact-frame {
        flex-direction: column;
        text-align: center;
    }

    .contact-text {
        max-width: 100%;
    }
}

.legal-frame {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 1rem;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.legal-text {
    max-width: 500px;
}

.legal-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.legal-text p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

.legal-text a {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .legal-frame {
        flex-direction: column;
        text-align: center;
    }

    .legal-text {
        max-width: 100%;
    }
}

/*software.html*/

.gallery-frame {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 4rem 1rem;
    background-color: var(--frame-bg-color);
    color: var(--text-color);
    max-width: 1100px;
    margin: 0 auto;
    
}

.app-card {
    background-color: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 340px;
    margin: 0 auto;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.app-card-image {
    width: 100%;
    height: 150px;
    border-radius: 8px;
}

.app-card h3 {
    font-size: 1.4rem;
}

.app-card p {
    font-size: 0.95rem;
    opacity: 0.85;
    flex-grow: 1;
}

.app-card-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-bar-container {
    padding: 1rem;
    text-align: center;
    background-color: var(--frame-bg-color);
}

#appSearch {
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#appSearch:focus {
    border-color: var(--accent-color);
}

.no-results {
    opacity: 0.7;
}

.no-results .app-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}








/*Dedicated app site*/

.app-detail-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 1rem;
    background-color: var(--frame-bg-color);
    color: var(--text-color);
    max-width: 1000px;
    margin: 0 auto;
}

.app-info-card,
.app-description-card,
.app-doc-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.app-info-card h2,
.app-description-card h2,
.app-doc-card h2 {
    margin-bottom: 1rem;
}

.app-card-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-doc-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.app-doc-card ul {
    padding-left: 1.2rem;
    list-style-type: disc;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.preview-image {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.preview-image:hover {
    transform: scale(1.02);
}

/*Support.html*/

.support-frame {
    display: flex;
    justify-content: center;
    padding: 4rem 1rem;
    background-color: var(--frame-bg-color);
}

.support-card label {
    font-weight: 500;
}

.status-message {
    font-size: 0.95rem;
}

.hidden {
    display: none;
}

.support-card {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.support-card input,
.support-card select,
.support-card textarea {
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);

    background-color: var(--frame-bg-color);
    color: var(--text-color);

    font-size: 1rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.support-card input:focus,
.support-card select:focus,
.support-card textarea:focus {
    border-color: var(--accent-color);
    background-color: var(--bg-color);
    outline: none;
}
