/* ================ MAIN =================*/

html, body  {
    background-color: #202123;
    color: #D1D5DB;
    font-family: Arial, sans-serif;
	height: 100%; /* Ensure full height */
    margin: 0;
    padding: 0;    
    display: flex;
    flex-direction: column;
}

main {
    flex: 1; /* Makes main content take available space */
}

main h1{
	text-align: center;
}

a {
	color: #D1D5DB;
}

footer {
	
}

/* ===================== Header =======================*/
header, footer {
    padding: 1rem;
    background-color: #2C2F33;
}

header { 
  height: 80px;
  text-align: center;
}

#headlogo{
    height: 80px;
    width: auto;
	float: left;
}

header h1{
    margin-right: 80px;
    margin-bottom: 0;
}

header h3{
    margin-right: 80px;
    margin-top: 0;
}

.nav-links {
	float: right;
    margin-right: -16px;
	margin-top: -10px;
	padding-right: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
    margin-right: 20px;
}

.nav-links a:hover {
  color: #4FA3D1; 
}

/* ==================== HOME PAGE =====================*/


/* ================ PROJECT LIST PAGE =================*/

#projects {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    justify-content: center;
}

.project-card {
    background-color: #3C3F41;
    padding: 1rem;
    border-radius: 8px;
    width: 280px;
    height: 320px;
	text-align: center;
}

.project-card h2 {
    text-align: center;
}

.project-card img {
    width: 100%;
    border-radius: 8px;
}

.project-card a {
    color: #4FA3D1;
    text-decoration: none;
}

/* ================== PROJECT PAGE ===================*/

main{
    margin: 0 auto; /* Center the content horizontally */
    padding: 1rem;
    text-align: center;
    max-width: 925px;
}

main h1, h2, h3 {
	margin-bottom: 0px;
}

.project-image {
    width: 100%; /* Full width on mobile */
    min-width: 300px;
    display: block;
    margin: 0 auto; /* Center the image */
}

.tutorial-image {
    width: 100%; /* Full width on mobile */
    min-width: 300px;
    max-width: 600px;
    display: block;
    margin: 0 auto; /* Center the image */
}

.description{
}

.amazon {
    color: #FFAD2B;
	margin-left: 10px;
}

.aliexpress {
    color: #FF1C14;
	margin-left: 10px;
}

.tag {
	display: none;
}

.list{
    display: inline-block;
    justify-content: center;
    align-items: center;
	padding-right: 44px;
}

.list li {
    display: inline-block;
    width: 300px;
    align-items: center;
    margin: 3px;
    padding: 1em;
    background: rgb(43, 43, 43);
    border-radius: 5px;
}

.list i:hover {
    color: #6EC6F1;
}


.bom {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the list */
}

.bom li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgb(43, 43, 43);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    color: #D1D5DB;
    font-size: 16px;
    width: 325px; /* Fixed width */
}

.bom .left {
    flex: 0 0 50px; /* Fixed width for left section */
    text-align: left;
}

.bom .center {
    flex-grow: 1; /* Takes remaining space */
    text-align: center;
}

.bom .right {
    flex: 0 0 60px; /* Fixed width for right section */
    text-align: right;
}

.bom .right i {
    margin-left: 10px; /* Space between icons */
    cursor: pointer;
}

.bom .right i:hover {
    color: #6EC6F1;
}


/* ================== CONTACT PAGE ===================*/

.contact-container {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    min-width: 350px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    justify-content: center;
    align-items: center;
}

.contact h2 {
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
}

.contact label {
    margin-top: 10px;
    font-weight: bold;
}

.contact input, .contact textarea {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
}

.contact button {
    background: #4FA3D1;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    cursor: pointer;
}

.contact button:hover {
    background: #6EC6F1;
}

.g-recaptcha{
	margin-top: 20px;
}