* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff7f2;
    color: #333;
}
/* Styling for logo */
.logo {
    margin: 0 auto; /* Center align the logo */
    text-align: center;
}

.logo img {
    max-height: 100px; /* Adjust the maximum height of the logo */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensure the image behaves as a block element */
    margin: 0 auto; /* Center align the image inside the logo container */
}

header {
    background-color: #b7410e;
    color: rgb(51, 34, 34);
    padding: 2px 0;
    text-align: center;
    /* display: flex; */
    align-items: center;
    /* justify-content: space-between; */
    /* width: 100%; */
    /* z-index: 1000; */
    /* position: fixed; */
    top: 0;
    left: 0;
    /* transition: top 0.3s; */
    width: auto;
    /* width: 100%; */
    /* z-index: 1000; */
    /* position: fixed; */
    
}
.main-content {
    padding-top: 2; /* Adjust this value to match the header height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header select {
    margin-top: 10px;
    padding: 5px;
}
.head_button {
    text-align: center; /* Center align content inside .head_button */
    margin-top: 10px; /* Maintain space between logo and buttons */
}

.head_button button,
.head_button select {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
}
#reset-button {
    background-color: #ff4d4d;
    color: #fff;
}
#reset-button:hover {
    background-color: #e60000;
}
#purchase-button {
    background-color: #4CAF50;
    color: #fff;
}
#purchase-button:hover {
    background-color: #45a049;
}
#category-select {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.jewelry-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the items */
    gap: 20px;
    padding: 20px;
}

.jewelry-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 10px;
    padding: 10px;
    text-align: center;
    width: 200px;
}

.jewelry-item img {
    max-width: 100%;
    height: auto;
}

#pagination {
    text-align: center;
    margin: 20px 0;
}

#pagination button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

#pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-container {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.form-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

form {
    display: block;
    text-align: center;
}

form label {
    display: block;
    margin-bottom: 10px;
}

form input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background-color: #45a049;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .controls select, .controls button {
        margin-bottom: 10px;
    }
    footer .footer-social-media {
        flex-direction: row; /* Keep the direction row even on small screens */
        justify-content: center; /* Center align the icons */
        gap: 10px; /* Maintain the gap between icons */
    }
    footer .footer-contact, footer .footer-social-media {
        width: auto; /* Revert to auto width for larger screens */
    }

    footer .footer-content {
        justify-content: space-between; /* Spread out content on larger screens */
    }
}

/* Header contact info styling */
/* Footer styling */
footer {
    background-color: #b7410e;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 20px;
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
footer .footer-social-media {
    display: flex; /* Use flexbox to align items in a row */
    justify-content: center; /* Center the icons horizontally */
    gap: 10px; /* Add space between the icons */
    margin: 10px 0; /* Add some margin to the container */
    width: 100%; /* Ensure it spans full width on small screens */
}
footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center align the footer content */
    align-items: center;
    text-align: center; /* Center align text */
    width: 100%;
    max-width: 800px;
}

footer .footer-social-media a {
    margin: 10px; /* Adjust the margin for spacing */
    display: inline-block; /* Ensure the links are inline-block */
    padding: 5px; /* Add padding to increase touch area */
}

footer .footer-social-media img {
    width: 24px;
    height: 24px;
}



footer .footer-contact {
    margin-top: 10px; /* Add some space above the contact info */
    width: 100%; /* Ensure it spans full width on small screens */
}
