/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and Fonts */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    font-size: 16px;
}
/* Typography */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 15px;
}


/* Container */
.container {
    display: flex;
    margin-left: 240px; /* Adjust this to match your sidebar width */
    padding: 20px;
    max-width: 1200px;
}


/* Header */
header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

header h1 {
    font-size: 2rem;
    color: #007bff;
}

/* Patterns Grid Container */
.patterns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Space between items */
}

/* Pattern Item Styles */
.pattern {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}


/* Sidebar Styles */
.sidebar {
    width: 220px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100%;
    top: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.sidebar nav ul li a:hover {
    color: #007bff;
}
main {
    padding: 20px;
    width: 100%;
}

/* Content Wrapper */
.content-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
}
/* Filters Column */
#filters-column {
    width: 250px;
    margin-right: 20px;
}

#filters {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

#filters label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}
#filters select,
#filters button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}


.pagination-button {
    margin: 5px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.pagination-button.active {
    background-color: #fbfbfb;
    border: 3px solid #b9b9b9;
} 
/* Styles for the Patterns page */
.photo-container {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.pattern-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Styles for the Pattern Details page */
.pattern-detail .photo-container {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: center;
}

.pattern-detail-photo {
    height: 500px;
    display: none;
}

.pattern-detail-photo:first-child {
    display: block;  /* Show the first photo by default */
}

.pattern-detail .prev-photo, .pattern-detail .next-photo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    font-size: 18px;
}

.pattern-detail .prev-photo {
    left: 10px;
}

.pattern-detail .next-photo {
    right: 10px;
}

.pattern-detail p, .pattern-detail a {
    margin-top: 20px;
}

