/* Applying consistent sizing */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
/* Arrange item cards in a responsive layout */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    max-width: 1200px;
    margin-inline: auto;
}

/* Main Page heading */
h1 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 15px;
}

/* Individual item cards */
.item-container {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Item titles */

.item-container h2 {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Image container */
.item-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* Item images */
.item-image img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Item descriptions */
.item-description h3 {
    text-align: left;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Mobile adjustments */
@media(max-width: 600px) {
    body{
        padding: 12px;
        gap: 15px;
    }
    .item-container {
        padding: 15px;
    }
    .item-container h2 {
        font-size: 1.2rem;
    }
}


