/* custom-bootstrap.css */

/* Override Bootstrap styles */
main {
    padding-top: 50px; /* Adjust the value as needed */
}


body {
    font-family: 'Source Sans 3', sans-serif;
    text-align: center;


    /* background-image: url('bg_rosytales.jpg'); /* Replace 'image-tile.png' with your image URL */
    background-color: #FEFDFB;
    background-attachment: fixed; /* Keeps the background fixed while scrolling */
    position: relative;
    background-size: 300px; /* Keep the original size of the image */
    background-repeat: repeat; /* Repeat the image to fill the background */

}

section {
    padding: 3rem 1rem; /* Adds padding inside each section for spacing */
    margin-bottom: 2rem; /* Adds space between sections */
}

h1{
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #003152;

}

h2 {
    font-size: 1.8em;
    color: #003152;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;

}


h3 {
    font-size: 1.5em;
    color: #003152;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;

}

.wrapper{
    margin:0.5em 0;
  }
  .wrapper a, .wrapper a:visited, .wrapper a:hover, .wrapper a:active{
    -webkit-backface-visibility:hidden;
            backface-visibility:hidden;
    position:relative;
    transition:0.5s color ease;
    text-decoration:none;
    color:#003152;

  }

  .wrapper a.after:after{
    content: "";
    transition:0.5s all ease;
    -webkit-backface-visibility:hidden;
            backface-visibility:hidden;
    position:absolute;
    bottom:-0.25em;
    height:0.2rem;
    width:0;
    background:#003152;
    left:50%;
    -webkit-transform:translateX(-50%);
            transform:translateX(-50%);
  }



  .wrapper a.after:hover:after{
    width:100%;
  }

a {
    text-decoration: none; /* Remove underline */
 }


/* Container to center the header content */
.header-container {
    display: flex;
    justify-content: center; /* Center content horizontally */
}

/* Container for header content */
.header-content {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Align items vertically */
}

/* Style for main header text */
.main-header {
    flex-grow: 1; /* Allow it to grow to take up remaining space */
    text-align: right; /* Align text to the right */
}

/* Style for tagline */
.tagline {
    text-align: center; /* Align text to the right */
}

/* Place the image to the left of the header content */
.header-image {
    margin-right: 20px; /* Add margin to create space between the image and text */
}

header {
    margin-top: 20px; /* Add margin to the top */
    background-color: #E2DCD6;
    color: #333;
    padding: 20px; /* Add padding */
    text-align: center; /* Align text to the center */
}

/* Ensure the image is contained within the header */
.header-image img {
    max-width: 100%; /* Ensure the image doesn't exceed the width of its container */
    height: auto; /* Maintain the aspect ratio */
}


/* Navigation bar styles */
.navbar {
    background-color: #BFB4AA; 
    padding: 10px 0; /* Add padding */
    display: inline-flex; /* Use inline flexbox */
    justify-content: center; /* Center the navigation links */
    margin-top: 20px; 
    margin-bottom: 20px; 
    border-radius: 15px; /* Add rounded corners */
    position: sticky;
    top: 10px;
}

/* Navigation links */
.navbar a {
    color: #4a3835; /* Dark brown color for links */
    text-decoration: none; /* Remove underline */
    font-size: 18px; /* Font size */
    font-weight: 600;
    margin: 0 10px; /* Adjust margin between links */
    padding: 5px 10px; /* Add padding */
    border-radius: 10px; /* Add rounded corners */
    position: relative; /* Set position to relative */
    z-index: 1; /* Ensure links appear above pseudo-element */
    transition: color 0.3s ease; /* Smooth transition for color */
}


/* Hover effect for navigation links */
.navbar a:hover {
    color: #fff; /* White color on hover */
    background-color: #907D68; /* Darker brown background on hover */
}

/* Active link style */
.navbar a.active {
    background-color: #4a3835; /* Dark brown for active link */
}

/* Vintage pattern background */
.navbar::before {
    content: ""; /* Add empty content for the pseudo-element */
    background-image: url('https://www.transparenttextures.com/patterns/notebook.png'); /* Vintage pattern background */
    opacity: 0.2; /* Adjust opacity */
    position: absolute; /* Position pseudo-element absolutely */
    top: 0; /* Align the pseudo-element to the top */
    left: 0; /* Align the pseudo-element to the left */
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    z-index: -1; /* Ensure pseudo-element appears below links */
    pointer-events: none; /* Disable pointer events for the pseudo-element */
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem;
    /*background-color: #f3f3f3;*/
  }
  .hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .hero-images {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1rem; /* Adds padding to create space on the edges */
}

.hero-images img {
    width: 100%;
    max-width: 200px; /* Limits the maximum size of each image */
    min-width: 100px; /* Ensures the images don’t shrink too small on smaller screens */
    height: auto;
    border-radius: 5px;
    flex: 1 1 auto; /* Allows images to shrink and grow to fit the container */
}

@media (max-width: 480px) {
    .hero-images {
        gap: 0.5rem; /* Reduce gap between images on very small screens */
    }
}


/* New Patterns Section */
.new-patterns {
    padding: 2rem;
    background: #E2DCD6;
}

.new-patterns h3 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Pattern Grid Styling */
.pattern-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive column sizing */
    justify-content: center;
    padding: 1rem 1rem; /* Add padding to prevent images from touching the screen edges */
    max-width: 1000px; /* Set a maximum width for the grid */
    margin: 0 auto; /* Center the grid within its container */
}

.pattern-card {
    text-align: center;
}

/* Pattern Image Styling */
.pattern-image img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* Pattern Title Styling */
.pattern-title {
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Additional Mobile Adjustments */
@media (max-width: 768px) {
    .new-patterns h3 {
        font-size: 1.5rem;
    }
    .pattern-grid {
        gap: 1rem; /* Reduce gap for smaller screens */
    }
    .pattern-title {
        font-size: 0.9rem; /* Slightly smaller text on mobile */
    }
}


  
  
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 20px;
}

a, a:hover {
    text-decoration: none;
    color: #333;
}

.pattern-list {
    text-align: center;
}

.pattern-list img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.pattern-list span {
    display: block;
    margin-top: 10px;
}


/* Display Grid */
.display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Switch to auto-fit */
  gap: 1.5rem;
  padding: 0 2rem;
  margin: 0 auto;
  max-width: 1500px; /* Optional max-width to prevent excessive stretching */
  }

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .display-grid {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Adjusts for medium screens */
    }
}
  
@media (max-width: 900px) {
    .display-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjusts for smaller screens */
    }
}
  
@media (max-width: 600px) {
    .display-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Adjusts for small screens */
    }
}
  .display-card {
    display: block;
    background-color: #E2DCD6;
    border: 5px solid transparent; /* Invisible border by default */
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
  }
  .display-card:hover {
    transform: scale(1.03); /* Slight scaling effect */
    background-color: #FEFDFB; /* Light background color on hover */
    border-color: #003152; /* Border color on hover */
  }
  .display-card img {
    width: 100%;
    height: 250px; /* Fixed height for uniformity */
    object-fit: cover;
  }
  .display-info{
    padding: 1rem;
    text-align: center;
  }
  .display-info h2 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  .year {
    font-size: 0.9rem;
    color: #666;
  }


/* CSS for pattern-section */
.pattern-section {
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 20px; /* Adjust the value as needed */
    border-radius: 10px;
    width: 70%; /* Adjust the width as needed */
    margin-left: auto;
    margin-right: auto;
}

.pattern-section h3 {
    font-size: 1.7em;
    color: #333;
    margin-bottom: 10px;
     font-family: "Gloria Hallelujah", cursive;

}

.pattern-section ul, .pattern-section ol {
    list-style-type: disc;
    margin-left: 20px;
}

.pattern-section p {
    line-height: 1.6;
}

.pattern-section ul {
    list-style: none;
    padding: 0;
    text-align: left; /* Center the text */
}

.pattern-section ul li::before {
    content: "\2619"; /* Use a custom bullet character */
    color: #333; /* Adjust the color as needed */
    display: inline-block;
    width: 1em;
    margin-left: -1em; /* Align the bullet with the text */
    text-align: right; /* Align the bullet to the right */
    font-size: 1.5em; /* Adjust the size of the bullet */
    margin-right: 0.5em; /* Add some space between the bullet and the text */
}


/* Example styles for specific sections */
.pattern-section.materials {
    background-color: #fff8dc; /* Light yellow */
}

.pattern-section.gauge {
    background-color: #f0f8ff; /* Light blue */
}

.pattern-section.instructions {
    background-color: #f0f0f0

; /* Light gray */
}

.pattern-section.notes {
    background-color: #f5f5dc; /* Beige */
}

.pattern-section img {
    width: 800px;
    height: auto;
    display: block;
    margin:  auto;
    margin-bottom: 20px; /* Adjust the value as needed */

}

.button {
    margin-bottom: 20px; /* Bottom margin for the button container */
}

.click-button {
    background-color: #E2DCD6;
    margin: 20px;
    border: 2px solid #003152;
    border-radius: 30px;
    box-shadow: #003152 4px 4px 0 0;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    padding: 0 18px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }

  .click-button:hover {
    background-color: #fff;
  }
  
  .click-button:active {
    box-shadow: #003152 2px 2px 0 0;
    transform: translate(2px, 2px);
  }

.download-button {
    background-color: #c99e9b;
    color: #333;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin: 20px;
}

.download-button:hover {
    background-color: #916b69;
}

.download-button:active {
    background-color: #916b69;
}

.download-link {
    text-decoration: none; /* Remove underline from the anchor */
}



/* Custom link style */
a.custom-link {
    color: #003152; /* Link color */
    text-decoration: none; /* Remove default underline */
    font-weight: bold; /* Make text bold */
    transition: color 0.3s; /* Smooth color transition on hover */
}

/* Change color on hover */
a.custom-link:hover {
    filter: brightness(150%);
}

/* styles.css */

.footer {
    background-color: #BFB4AA;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensures both sections align vertically */
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 1rem; /* Adds space between links */
    align-items: center; /* Vertically aligns links within the flex container */
}

/* Style for the links */
.social-links a {
    color: #fff; /* Ensure link text is white */
    text-decoration: none; /* Remove underline by default */
    transition: color 0.3s, text-decoration 0.3s;
}

.social-links a:hover {
    text-decoration: underline; /* Adds underline on hover */
}

/* Ensure consistent line height for alignment */
.footer p {
    margin: 0;
    line-height: 1.5; /* Adjust line-height as needed */
}


.image-container {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.image-container img {
    margin: 0 10px; /* Adjust spacing between images */
    max-width: 25%; /* Ensure images don't exceed container width */
}

.image-container-main {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.image-container-main img {
    margin: 0 10px; /* Adjust spacing between images */
    max-width: 50%; /* Ensure images don't exceed container width */
}


.centered-form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Style for the form elements */
    .form-group {
        margin-bottom: 10px; /* Adjust spacing between form elements */
        width: 300px; /* Set a fixed width for the form elements */
    }

    /* Style for labels */
    label {
        display: inline-block;
        width: 100px; /* Set a fixed width for the labels */
        text-align: center; /* Align the text to the right within the label */
    }

    /* Style for inputs */
    input[type="text"] {
        width: 180px; /* Set a fixed width for the input fields */
    }


/* Style for the comment section */
.comment-section {
    margin-top: 20px;
}

/* Style for individual comments */
.comment {
    width: 50%;
    margin: 0 auto;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    text-align: left;

        /* Ensure long words or text breaks into a new line */
        word-wrap: break-word; /* For older browsers */
        overflow-wrap: break-word; /* Modern browsers */
        white-space: normal; /* Allow text to wrap naturally */

}

.comment .author {
    font-weight: bold;
}

.comment .timestamp {
    color: #888;
    font-size: 0.8em;
}

/* Style for the comment form */
.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 50%;
    resize: vertical; /* Allow vertical resizing of textarea */
    background-image: linear-gradient(#F1F1F1 50%, #F9F9F9 50%);
    background-size: 100% 4rem;
    border: 1px solid #CCC;
    height: 100px;
    line-height: 2rem;
    margin: 0 auto;
    padding: 4px 8px;
}


@media (min-width: 768px) {
  .button-74 {
    min-width: 120px;
    padding: 0 25px;
  }
}


.text-container {
    width: 70%; /* Set the width to 70% of the parent container */
    margin: 0 auto; /* Center the container horizontally */
}

.pattern-header, .pattern-details, .measurement-form, .guide-and-notes, .finished-example {
    padding: 1.5rem;

  }
  
  .pattern-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .book-reference {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin-top: 0.5rem;
  }
  
  .pattern-details, .measurement-form, .guide-and-notes, .finished-example {
    border: 2px solid #E2DCD6;
    border-radius: 8px;
    padding: 1rem;

  }

  
  /* Original Measurements */
  .original-measurements {
    background-color: #E2DCD6;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  
  
  
  /* Measurement Guide (collapsible) */
  .measurement-guide {
    background-color: #E2DCD6;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    text-align: left;
  }


  .measurement-guide h3 {
    font-size: 1.1rem;
    cursor: pointer;
    color: #003152;
    font-weight: 600;
    transition: color 0.3s ease; /* Smooth transition for color */
  }

  .measurement-guide h3:hover {
    filter: brightness(150%);


  }
  /* Arrow styling */
.toggle-arrow {
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.3s ease; /* Smooth rotation transition */
    font-family: Arial, Helvetica, sans-serif;
  }
  
  /* Rotate arrow when the guide is expanded */
  .expanded .toggle-arrow {
    transform: rotate(90deg); /* Rotates the arrow down */
  }
  
  .guide-content {
    display: none; /* Hidden by default */
    padding: 0.8rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
  }
  
  /* Pattern Notes */
  .pattern-notes {
    background-color: #DFE4E6;
    padding: 1.2rem;
    border-left: 4px solid #003152;
    border-radius: 8px;

    text-align: left;
  }
  .pattern-notes h3 {
    font-size: 1.1rem;
    color: #003152;
    margin-bottom: 0.5rem;
  }
  .pattern-notes p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
  }
  
  /* Finished Product */
  .finished-example img {
    max-width: 70%;
    border-radius: 8px;
  }

  /* Main Container for Page Layout */
.pattern-container {
    max-width: 800px; /* Adjust as needed for layout preference */
    margin: 0 auto; /* Center the container */
    padding: 1rem;
  }
  
  /* Optional: Adjust individual sections to prevent overly wide cards */
  .pattern-header, .pattern-details, .measurement-form, .guide-and-notes, .finished-example {
    width: 100%; /* Ensures these sections fit within the container width */
    box-sizing: border-box;
  }


  
 