* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}

body {
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	font-style: normal;
	background-color: #f9f9f9;
	color: #333;
	line-height: 1.6;
}

header {
	background-color: #222;
	color: white;
	padding: 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
}

p, h2 {
	margin-bottom: 1rem;
}

h2 {
	margin-top: 1rem;
}

.logo {
	display: flex;
	align-items: center;
}

.logo img {
	height: 40px;
	margin-right: 1rem;
	margin-left: 1rem;
	vertical-align: middle;
}

.logo span {
	font-size: 1.5rem;
	font-weight: bold;
}

.hamburger {
	font-size: 1.5rem;
	cursor: pointer;
	display: block;
	border: none;
	background: none;
	color: white;
}

nav {
	position: absolute;
	top: 0;
	left: 0;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.9);
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	padding: 4rem 1rem;
}

nav.active {
	transform: translateX(0);
}

nav ul {
	list-style: none;
}

nav ul li {
	margin: 1rem 0;
}

nav ul li a {
	color: white;
	text-decoration: none;
	font-size: 1.25rem;
}

nav ul li ul {
	margin-left: 1rem;
}

nav ul li ul li a {
	font-size: 1rem;
}

.close-menu {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	color: white;
	background: none;
	border: none;
	cursor: pointer;
}

main {
	padding: 2rem;
	max-width: 1024px;
	margin: auto;
}

.main {
	text-align: center;
	margin-bottom: 2rem;
}

.main img {
	max-width: 300px;
	height: auto;
	margin-bottom: 1rem;
}

.section {
	padding: 0.5rem;
}

.products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.5rem;
}

.product-link {
	text-decoration: none;
	color: inherit;
}

.product {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: white;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-align: center;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.5s ease;
}

.product:hover {
	transform: scale(1.02);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.product img {
	max-width: 100%;
	height: auto;
	margin-bottom: 1rem;
}

.product h3 {
	margin-bottom: 0.5rem;
}

.product p {
	flex-grow: 1;
	font-size: 0.9rem;
	color: #555;
}

.see-more {
	margin: auto auto;
	padding: 0.5rem 1rem;
	background: #0073e6;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.see-more:hover {
	background: #005bb5;
}

.curious {
	background: #80c3ff;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.5rem;
}

.step {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 0.5rem;
}

.step {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: white;
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 8px;
	text-align: center;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.5s ease;
	cursor: pointer;
}

.step img {
	max-width: 100%;
	height: auto;
	margin-bottom: 1rem;
	transition: transform 0.2s ease-in-out;
}

.step p {
	flex-grow: 1;
	font-size: 0.9rem;
	color: #555;
}

.step img:hover {
	transform: scale(1.02);
}

/* Lightbox Styles */
.lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
}

.lightbox img {
	max-width: 90%;
	max-height: 90%;
}

.lightbox.active {
	display: flex;
}

.gpio {
    display: inline-block;
    background: linear-gradient(135deg, #ff8c00, #ff4500); /* Vibrant gradient */
    color: white;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: monospace;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

    .firmware-options {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .firmware-options label {
		display: inline-block;
		width: 15rem;
        align-items: center;
        gap: 0.5rem;
        padding: 0.4rem 1rem;
		margin: 0rem 1rem;
        border: 2px solid #ccc;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .firmware-options input {
        display: none;
    }

    .firmware-options label:hover {
        background: #f0f0f0;
    }

    .firmware-options input:checked + label {
        border-color: #007bff;
        background: #007bff;
        color: white;
    }

    esp-web-install-button {
        display: block;
        width: fit-content;
        padding: 10px 0px;
        border-radius: 6px;
        font-size: 16px;
        cursor: not-allowed;
        opacity: 0.5;
        pointer-events: none;
    }

    esp-web-install-button.active {
        cursor: pointer;
        opacity: 1;
        pointer-events: auto;
        color: white;
    }
	
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
    text-align: left;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
}

th {
    background: #0078D7;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #f1f1f1;
}

.invert {
	filter: invert(100%);
}

.order-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ff6600;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.order-button-menu {
	padding: 1px 6px;
	background-color: #ff6600;
	color: #fff;
	text-align: center;
	text-decoration: none;
	border-radius: 5px;
	transition: background-color 0.3sease;
}

.order-button:hover, .order-button-menu:hover {
    background-color: #e65c00;
}

#subscribe-form {
    display: flex;
    gap: 10px;
}

input[type="email"] {
    padding: 6px 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 0;
}

button {
    padding: 6px 12px;
    background-color: #0073e6;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #005bb5;
}

#message {
    font-size: 16px;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    margin-top: 20px;
}

footer a {
    color: #333;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.banner {
    position: relative;
    overflow: hidden; 
	margin: 1rem 0rem;
}

.banner img {
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease-in-out;
-webkit-mask-image: linear-gradient(
  to bottom, 
  rgba(249, 249, 249, 0) 0%, 
  rgba(249, 249, 249, 0.1) 3%, 
  rgba(249, 249, 249, 0.4) 8%, 
  rgba(249, 249, 249, 0.8) 12%, 
  rgba(249, 249, 249, 1) 15%, 
  rgba(249, 249, 249, 1) 85%, 
  rgba(249, 249, 249, 0.8) 88%, 
  rgba(249, 249, 249, 0.4) 92%, 
  rgba(249, 249, 249, 0.1) 97%, 
  rgba(249, 249, 249, 0) 100%
);
}

.banner img:hover {
    transform: scale(1.01);
}

.banner2 {
    position: relative;
    overflow: hidden; 
	margin: 1rem 0rem;
}

.banner2 img {
    max-width: 100%;
    display: block;
    transition: transform 0.5s ease-in-out;
-webkit-mask-image: linear-gradient(
  to bottom, 
  rgba(249, 249, 249, 0) 0%, 
  rgba(249, 249, 249, 1) 3%, 
  rgba(249, 249, 249, 1) 97%, 
  rgba(249, 249, 249, 0) 100%
);
}

.banner2 img:hover {
    transform: scale(1.01);
}

.tinybutton {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    background-color: #0073e6;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}

.tinybutton:hover {
    background-color: #005bb5;
}

@media (min-width: 768px) {
    header {
        justify-content: space-between;
        align-items: center;
    }

    nav {
        position: relative;
        display: flex;
        transform: none;
        background: none;
        height: auto;
		margin-left: auto;
        padding: 0;
    }

    nav ul {
        display: flex;
    }

    nav ul li {
        margin: 0 1rem;
        /* position: relative; */
    }

    nav ul li ul {
        display: none;
        position: absolute;
        background: white;
        border: 1px solid #ddd;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
        z-index: 1000;
    }

    nav ul li:hover ul {
        display: block; /* Show dropdown on hover */
    }

    nav ul li ul li {
        margin: 0;
    }

    nav ul li ul li a {
        color: #333;
        padding: 0.5rem 0.75rem;
        display: block;
        text-decoration: none;
    }

    nav ul li ul li a:hover {
        background-color: #CCC;
    }

	.products {
		grid-template-columns: 1fr 1fr;
	}

	.steps {
		grid-template-columns: 1fr 1fr;
	}
		
    .hamburger {
        display: none; /* Hide hamburger menu on desktop */
    }

    .close-menu {
        display: none; /* Hide the close button on desktop */
    }
}

@media (min-width: 1020px) {
	.products {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}

	.steps {
		grid-template-columns: 1fr 1fr 1fr;
	}

}
