@font-face {
    font-family: 'LemonMilk';
    src: url('font/LEMONMILK-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color:#dbdbdb;
    background-image: url('img/pattern.jpg');
    background-attachment: fixed;
}

a{
    color:#eaeaea;
    text-decoration: none;
}

a:hover{
    color:red;
}


.container{
    background-image:url("img/pattern.jpg");
    background-color: #292929;
}

#banner {
    background-color: #000000;
    height: 120px;
    text-align: center;
    line-height: 120px;
    background-repeat: repeat;
    background-image: url('img/bannerx.jpg');
    background-position: right;
}

#logo{
    width:200px;
    background-color: #292929;
    float: left;
    position:fixed;
    border-right:1px solid #dbdbdb;  
}

#head {
    font-family: 'LemonMilk';
    font-size:3rem;
    color:#fff;       
}

#head a {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

h1, .contact h1 { font-size:2rem;}


#sidebar {
    
    background-color: #000000;
    border-top:1px solid #dbdbdb;
    width: 200px;
    position: fixed;
    height: 100vh; /* Full viewport height */
    overflow-y: auto; /* Scrollable sidebar content if needed */    border-right: 1px solid #fff;
    color: #fff;
    float:left;
}

#sidebar nav ul {
    list-style: none;
    padding: 10px;
    margin: 0;
    color: #fff;
}

#sidebar nav ul li {
    font-size:12pt;
    text-align:center;
    margin: 10px 0;
    color: #ffffff;
}

#sidebar hr{
    width: 1px;
    border: 5px solid #353535;
    border-radius: 5px;
}

#main-content {
    border-top: 1px solid #ccc;
    margin-left: 200px;
    padding:0 20px;
    min-height: calc(100vh - 150px);
    background-image: url('img/pattern.jpg');
    background-attachment: fixed;
}

#footer {
    height: 50px;
    text-align: center;
    line-height: 50px;
    clear: both;
}

.login-prompt p{
    color:#fff;
}


/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
}

/* Modal content */
.modal-content {
    background-color: #aaaaaa;
    margin: 10% auto;
    padding: 16px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
}

/* Close button */
.close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Form styling */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Labels */
.modal-content form label {
    margin: 8px 0 4px;
    font-size: 14px;
}

/* Inputs and textarea */
.modal-content form input,
.modal-content form textarea {
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
}

/* Button */
.modal-content form button {
    padding: 12px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

/* Button hover state */
.modal-content form button:hover {
    background-color: #555;
}

/* Error message */
.error {
    color: red;
    margin: 8px 0;
    text-align: center;
    font-size: 14px;
}

/* Success message */
.success {
    color: green;
    margin: 8px 0;
    text-align: center;
    font-size: 14px;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        padding: 12px;
        width: 95%;
    }

    .close {
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .modal-content form label {
        font-size: 13px;
    }

    .modal-content form input,
    .modal-content form textarea {
        padding: 8px;
        font-size: 13px;
    }

    .modal-content form button {
        padding: 10px;
        font-size: 14px;
    }
}







#inventory-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
}

#inventory-form label {
    margin: 10px 0 5px;
}

#inventory-form input,
#inventory-form textarea {
    padding: 8px;
    margin-bottom: 10px;
}

#inventory-form textarea {
    height: 100px;
    resize: vertical;
}

#inventory-form button {
    padding: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#inventory-form button:hover {
    background-color: #555;
}

table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin-top: 20px;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #f0f0f0;
}

table img {
    vertical-align: middle;
}

.switch {
width:1rem;
    
    }



/*shop*/

.shop h1, .contact h1 {
    font-family: 'LemonMilk';
    font-weight: 100;
}

.shop p{
    font-family:arial;
}

 .category-filter {
            margin: 20px 0;
        }
        .category-filter a {
             font-family: 'LemonMilk';
             font-weight: 100;
             font-size: 2rem;
            
            text-decoration: none;
            color: #dbdbdb;
        }
        .category-filter a.active, .category-filter a:hover {
           font-weight: 500;
           color: white;
        }
 
.product-card p, h2,
.product-card a {
    margin: 0.3em; /* or adjust as needed */
    display: block; /* Ensures proper block stacking */
}

     
.grid { display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5em;
        padding: 1em;
    }

.product-card {
        border: 1px solid #ff0f0f00;
        border-radius: 8px;
        padding:1rem;
        background:rgb(201 201 201 / 68%);
        text-align: center;
        max-width:300px;
    }
.product-card p{
    font-family:'arial';
}

    .product-card-checkout {
        Margin:1rem 0;
        border: 1px solid #aaaaaa;
        border-radius: 8px;
        padding:1rem;
        background:rgb(88 88 88);
        text-align: center;  
        display:flex; 
        flex-direction:row; 
        justify-content: space-between;
        gap:1rem;
        text-align: left;
    }

    .flex-checkout{
        max-width: 50%;
        
    }

    .product-card-checkout img{
        max-width:100%;
        max-height:230px;
    }

.product-card img {
    max-width: 100%;
    height: auto;
    max-height: 230px;
    min-height: 230px;
    object-fit: cover;
    margin-bottom: 1em;
}


.product-card {
  font-family: 'LemonMilk', sans-serif;
  /* existing styles */
}
.product-card a {
  font-size: 1rem;
  color: #222;
  font-weight: 100;
}
.product-card p {
  font-size: 0.9em;
  color: #333;
}

.product-card .line{
    border:1px solid #767676;
}
.product-card .price {
    margin-top: 0.5em;
    font-weight: bold;
    color: #005500;
}

/*product detail page*/

.product-detail-text{
    display:flex;
    flex-direction:row;
}

.mediatext{
    flex:1;
    gap:1rem;
    max-width:300px;
    border-left:1px solid #666;
    padding:0 1rem;
}

.mediatext p{
    margin-top: 0;
}

.product-detail h1{
    font-family:'LemonMilk';
    font-weight:100;
}

.product-images{
    margin:0;
    padding:0;    
}


.product-images img{
    max-height:700px;
    max-width:700px;
    border-radius:12px;
    margin-top:1rem;
}


.intro-text{
    margin: 0;
    width: 100vh;
    display: flex; 
    flex-direction: row;
    gap: 40px;
    padding: 40px;
 }

.intro-text img{
    max-height:62vh;
   margin: 0 auto;

}

.intro-text h1{
    font-family: 'LemonMilk';
    font-weight: 100;
    margin-top: 0;
}
.intro-text p{
    max-width:500px;
    text-align: justify;
        line-height: 16pt;

}


/*Shopping Cart*/

.cart h1{
    font-family: 'LemonMilk';
    font-weight: 100;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.cart-table th,
.cart-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.cart-table th {
    background-color: #f4f4f4;
}

.cart-total {
    text-align: right;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions a {
    padding: 10px 20px;
    text-decoration: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

.cart-actions a:hover {
    background-color: #0056b3;
}

.product-detail form {
    margin-top: 10px;
}

.product-detail form input[type="number"] {
    padding: 5px;
    margin-right: 10px;
}

.product-detail form button {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product-detail form button:hover {
    background-color: #218838;
}

.checkout{
    max-width:300px;
    margin:1rem ;
    text-align:right;
    border:1px solid #dbdbdb;
    padding:1rem;
    border-radius:10px;    
}

.checkout-container h2{
    font-size: 1em;
    font-weight: lighter;
    color:yellow;
}

.checkout-container .product-card{
display:flex;
flex-direction: row;
justify-content: space-between;
max-width:100%;
}

.flexcard{
    text-align: left;
    width:50%;
    padding:1rem;
}

.flexcard h3 {
    margin-top:0;
}

.checkout-container .product-card img{
    max-width:100%;
    margin:0px;
}




/*contact form*/

 .contact .form{
        display:block;
        clear:both;
    }
    .parent {
        display: flex;
        flex-direction: column;
    }
    
.contact_form label {
    margin:0;
    padding:1rem 0 0 0 ;
    display: block;
}


.contact p{
    max-width:500px;
    text-align: justify;
    line-height: 16pt;
    float:left;
}

.contact_center{
    width:500px;
    margin: 0 auto;
}
.contact_form p{
    padding:0.5rem;
    margin-bottom: 0.5rem;
    
}

.contact_form input, .contact_form textarea{
    padding: 1rem;
    width: 400px;
    border-radius: 6px;
    color:#000;
}



.contact_form button{
    margin-top:1rem;
    padding: 12px;
    background-color: #377214;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

/* Button hover state */
.contact_form button:hover {
    background-color: #4caf43;
}

/* Custom Checkbox Styling */
.contact_form label[for="human_check"] {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #e6e6e6;
    margin-top: 10px;
}

.contact_form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e9e9e9;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact_form input[type="checkbox"]:checked {
    background-color: #333;
    border-color: #039c0b;
}

.contact_form input[type="checkbox"]:checked::after {
    content: '\2713'; /* Unicode checkmark */
    font-size: 14px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.contact_form input[type="checkbox"]:hover {
    border-color: #555;
}

.contact_form input[type="checkbox"]:focus {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.footer{
    position:fixed;
    right: 0;
    bottom: 0;
    padding: 0.5rem;
}

.footer p{
 
    font-size: small;
}