/* Custom colors */
:root {
    --pico-primary: #1a9a11 !important;
    --pico-primary-hover: #0ef20e !important;
}

/* Custom styles */

/* Adjust body and html to allow scrolling */
html,
body {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
}

nav {
    padding: 1rem;
    margin: 0;
}

main {
    padding: 2rem 0;
    margin-top: 5rem;
}

/* Ensure the main container allows scrolling */
main.container {
    overflow-y: auto;
    height: auto; /* Allow the main container to expand based on content */
}

section {
    margin-bottom: 2rem;
}

article {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
}

footer.footer {
    text-align: center;
    padding: 0;
    padding: 2rem 0 0.6rem 0;
    border-top: 1px dashed var(--pico-primary);
    margin: 0;
}

/* Basic picocss alerts */
.alert {
    padding: 10px 30px;
    border-radius: 0.25rem;
}

.alert p {
    margin: 0;
    padding: 0;
}

.alert-danger,
.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}
.alert-info {
    color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}
/* End Basic picocss alerts */


/* bokeh */    
    html:not([data-theme="dark"]) .bokeh {
      display: none;
    }

    .bokeh {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    .bokeh span {
        z-index: 1;
      position: absolute;
      display: block;
      border-radius: 50%;
      background: var(--pico-primary-hover); /* brighter green with more opacity */
      opacity: 0.1;
      filter: blur(10px);
      animation: float 30s ease-in-out infinite alternate;
    }

    @keyframes float {
      0% {
        transform: translateY(0) scale(1);
      }
      100% {
        transform: translateY(-50px) scale(1.01);
      }
    }

/* Navigation styles */
#nav-toggle {
    display: none;
}

#nav-toggle svg {
    fill: var(--pico-primary);
    transition: fill 0.3s ease;
}

#nav-toggle:hover svg {
    fill: var(--pico-primary-hover);
}

/* Adjust logo size */
header img.logo {
    max-height: 20px;
    width: auto;
}

header {
    margin: 0;
    padding: 0 !important;
    position: relative;

}

html[data-theme="light"] header {
    border-bottom: 1px dashed var(--pico-primary);
}

header div.container {
    display: flex;
    align-items: left;
    justify-content: space-between;
}

header nav ul,
header nav ul li {
    padding: 0;
    margin: 0;
}

header nav ul li {
    float: right;
}

header img.logo {
    max-height: 36px;
    margin: 30px 0 0 0;
}


header ul.menu a {
    font-size: 16px;
    text-decoration: none;
    color: var(--pico-primary);
    margin: 10px 0 0 5px;
}

header ul.menu a.active,
header ul.menu a:hover{
    text-decoration: underline;

}

header ul.menu a.active {
    color: var(--pico-primary);
    border-bottom: 2px solid var(--pico-primary);
}

header ul.menu a:hover {
    color: var(--pico-primary);
}

html[data-theme="dark"] header ul.menu a{
    font-weight: bold;
}

html[data-theme="dark"] header ul.menu a:hover{
    color: #fff;
}

#theme-switcher {
                background: none;
                border: none;
                cursor: pointer;
                margin-left: 10px;
                padding: 10px;
                font-size: 1.5rem;
                color:var(--pico-primary);
                background: transparent;
            }

            #theme-switcher:focus{
                box-shadow: none;
            }

            #theme-switcher svg {
                width: 24px;
                height: 24px;
                display: none;

            }

            #theme-switcher:hover svg {
                color: var(--pico-primary-hover);
            }

            [data-theme="light"] #theme-switcher .moon-icon {
                display: inline;
            }
            [data-theme="dark"] #theme-switcher .sun-icon {
                display: inline;
            }





#nav-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0; /* Remove any padding */
}

#nav-toggle svg {
    fill: var(--pico-primary);
    transition: fill 0.3s ease;
    display: block; /* Ensure the SVG doesn't have extra space */
}

#nav-toggle:hover svg {
    fill: var(--pico-primary-hover);
}

#contact-form h2 {
    margin-bottom: 0.4rem;
}

/* Modal styles */
html[data-theme="dark"] dialog h6,
html[data-theme="dark"] dialog p,
html[data-theme="dark"] dialog form label,
html[data-theme="dark"] dialog form input,
html[data-theme="dark"] dialog form textarea {
    color: #333 !important;
}

dialog > article > header > h3{
    padding: 20px;
}

dialog header button {
    position: absolute;
    top: 30px;
    right: 30px;
    transform: scale(1.5);
}

dialog#get-started-modal div.grid {
    padding: 1em;
}

dialog#get-started-modal input:not([role="switch"]),
dialog#get-started-modal textarea{
    background: #fff;
}

img.devices {
    width: 100%;
    margin: 20px 0 0 30px;
}

p.asterisk {
    width: 100%;
    font-size: 12px;
    text-align: center;
    margin-top: 1em;
}

.modal-icons {
    width: 100%;
    display: block;
    float: left;
    text-align: center;
}

.support_email {
    text-align: center;
}

.support_email a {
    font-size: 14px;
}

.modal-icons li {
    list-style: none;
    float: left;
    margin-right: 20px;
}

#nav-links {
    display: block;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 80%;
    max-width: 300px;
}

#nav-links li {
    margin-bottom: 0;
    min-width: 100%;
}

#nav-links a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    transition: opacity 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

#nav-links a:hover {
    opacity: 0.8;
}



/* Update any existing color variables that might be using the primary color */
:root:not([data-theme="dark"]),
[data-theme="light"] {
    --pico-mark-gradient: linear-gradient(
        to right,
        var(--pico-primary),
        var(--pico-primary-hover)
    );
    /* Update other color variables as needed */
}

[data-theme="dark"] {
    --pico-mark-gradient: linear-gradient(
        to right,
        var(--pico-primary),
        var(--pico-primary-hover)
    );
    /* Update other dark theme color variables as needed */
}

/* Additional style overrides to ensure the new primary color is used */
a {
    color: var(--pico-primary);
}

a:hover {
    color: var(--pico-primary-hover);
}

button.contrast,
a.contrast[role="button"] {
    background-color: var(--pico-primary);
    border-color: var(--pico-primary);
    color: #fff;
}

button.contrast:hover,
a.contrast[role="button"]:hover {
    background-color: var(--pico-primary-hover);
    border-color: var(--pico-primary-hover);
    color: #fff;
}

mark {
    background: var(--pico-mark-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="light"] mark {
    font-weight: bold;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 0rem; /* Adjust this value based on your header height */
    padding-bottom: 2rem;
    box-sizing: border-box;
    margin-top: -2rem;
    overflow: auto; /* Allow scrolling within the hero if content overflows */
    padding-left: 20%;
    padding-right: 20%;
}

.hero .container {
    width: 100%;
}

.hero .grid {
    align-items: center;
}

.hero p{
    font-size: 1.25rem !important; /* Increase this value as needed */
    line-height: 1.5;
    margin: 1rem auto;
    color: var(--pico-h2-color);
}

/* Adjust image size */
.hero .devices {
    max-width: 100%;
    height: auto;
}

.hero h1{
    margin-bottom: 0;
}

.features {
    padding: 4rem 0;
}

.features hgroup {
    text-align: center;
    margin-bottom: 3rem;
}

.features hgroup h2 {
    margin-bottom: 1rem;
}

.features article {
    background-color: var(--background-color, #fff);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

.features article h3 {
    margin-bottom: 1rem;
}

.features article p {
    margin-bottom: 1rem;
}

.features article a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.features article svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: white; /* This sets the outline color to white */
    fill: white; /* This sets the fill color to white */
    background-color: var(--pico-primary, #1b9b12); /* Use your primary color */
    padding: 10px; /* Adjust as needed */
    border-radius: 50%; /* This creates a circular background */
}

.features hgroup {
    text-align: center;
    margin-bottom: 3rem;
}

.features hgroup h2 {
    font-size: 2.5rem; /* Increase this value as needed */
    line-height: 1.2;
    margin-bottom: 1rem;
}

.features hgroup p {
    font-size: 1.25rem !important; /* Increase this value as needed */
    line-height: 1.5;
    max-width: 800px; /* This helps to keep the text from becoming too wide */
    margin-left: auto;
    margin-right: auto;
    color: var(--pico-h2-color);
}

/* Video wrapper with play overlay */
.video-wrapper {
    position: relative;
    display: inline-block;
}

.video-wrapper:hover,
.video-wrapper video:hover,
.video-play-overlay:hover,
.video-wrapper > *:hover {
    cursor: pointer;
}

.video-wrapper video {
    display: block;
    position: relative;
    z-index: 1;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* do not block clicks on the video */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}




#apps h2 {
    margin: 0
    padding: 0;
}

section.partner-logos {
    margin: 0;
    padding: 0;
}


/* Media Queries */
@media (max-width: 768px) {
    
    .bokeh,
    header ul.menu,
    div.grid article svg {
        display: none;
    }


    #nav-links {
        display: none;
        width: 100%;
        text-align: center;
        padding-top: 1rem;
    }

    #nav-links.active {
        display: flex;
        flex-direction: column;
    }

    #nav-toggle {
        display: inline-block;
    }

    nav ul {
        justify-content: space-between;
    }

    .hero {
        padding-top: 2rem;
        min-height: calc(
            100vh - 60px
        ); /* Adjust the 60px based on your header height */
        padding-top: 2rem;
    }

    .hero .grid {
        grid-template-columns: 1fr;
    }

    .hero .devices {
        max-width: 80%;
        margin: 2rem auto 0;
    }

    .features .grid {
        grid-template-columns: 1fr; /* Switch to a single column on smaller screens */
    }

    .features hgroup h2 {
        font-size: 2rem; /* Slightly smaller on mobile devices */
    }

    .features hgroup p {
        font-size: 1.1rem; /* Slightly smaller on mobile devices */
    }

    
}
