/*/ / / CONTAINER FOR THE WHOLE PAGE / / /*/

/*
FranklinGothic URW Book

font-family: franklin-gothic-urw, sans-serif;

font-weight: 400;

font-style: normal;


FranklinGothic URW Demi

font-family: franklin-gothic-urw, sans-serif;

font-weight: 700;

font-style: normal;


FranklinGothic URW Book Italic

font-family: franklin-gothic-urw, sans-serif;

font-weight: 400;

font-style: italic;


FranklinGothic URW Demi Italic

font-family: franklin-gothic-urw, sans-serif;

font-weight: 700;

font-style: italic;
*/

html {
    box-sizing: border-box;
}

* {
    box-sizing: inherit;
}

*, *::before, *::after {
    border-radius: 0 !important;
}


body {
  

  
  
  
  
    /*Set default fonts for the whole page*/
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    line-height: 1.6;
    color: #2d3748;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/patterns/ypattern.png');
    background-attachment: fixed;
    background-size: 75 px 75 px;
    background-position: center;
    background-repeat: repeat;
    transform: scaleY(-1);
    z-index: -1;
}

div {
    font-size: 0.875rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*/ / / Headers and Paragraphs / / /*/

.label {
    width: 120px;
    height: 120px;
    margin: 16px;
    float: right;
    border-radius: 24px;
    padding: 1rem;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.square {
    width: 120px;
    height: 120px;
    margin: 16px;
    float: left;
    border-radius: 24px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.45);
}

.small_circle {
    height: 100px;

    margin: .5em;
    float: left;
    border-radius: 2.5em;
}

.medium_square {
    width: 220px;
    height: 220px;
    margin: 10px;
    float: left;
    border-radius: 20px;
    padding: 0.5em;
}
.rectangle {
    width: 460px;
    height: 220px;
    margin: 10px;
    float: left;
    padding: 0.8em;
}

.large_square {
    width: 460px;
    height: 440px;
    margin: 10px;
    float: left;
    padding: 0.8em;
    /* border-radius: 230px;*/
}

.divide {
    /* BREAKS THE FLOAT */
    margin-top: 10px;
    clear: left;
    height: 10px;
}



.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.45);
}

.whitetext {
    color: #ffffff;
}

.pattern-rectangle {
    width: 200px;
    height: 120px;
    margin: 10px;
    float: left;
    border-radius: 0px;
    padding: 0;
    background-color: transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.pattern-rectangle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

section {
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.color-palette,
.pattern-images,
.additional-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.gradient-types {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

/* Swatch section: labels and centered rows */
.swatch-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.row-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-label {
    font-family: "SUSE Mono", sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.swatch-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 640px;
}

.swatch-row .square { margin: 0; }

/* Responsive re-ordering: change visual positions (order) at breakpoints */
/* Medium screens: tweak order for a different visual layout */
@media (max-width: 1000px) and (min-width: 701px) {
    .swatch-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        scroll-snap-type: x proximity;
    }
    .swatch-row .square {
        width: 160px;
        height: 160px;
        min-width: 160px;
        min-height: 160px;
        scroll-snap-align: start;
    }
    .swatch-row .square:nth-child(1) { order: 1; }
    .swatch-row .square:nth-child(2) { order: 3; }
    .swatch-row .square:nth-child(3) { order: 2; }
    .swatch-row .square:nth-child(4) { order: 4; }
}

/* Small screens: stack vertically and change reading order */
@media (max-width: 700px) {
    .swatch-row {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        scroll-snap-type: y proximity;
    }
    .swatch-row .square {
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
        scroll-snap-align: center;
    }
    .swatch-row .square:nth-child(1) { order: 2; }
    .swatch-row .square:nth-child(2) { order: 4; }
    .swatch-row .square:nth-child(3) { order: 1; }
    .swatch-row .square:nth-child(4) { order: 3; }
}

.gradient-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gradient-label {
    color: #1D2D44;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.025em;
}

.pattern-bar {
    width: 100vw;
    height: 120px;
    background-image: url('images/patterns/pixelportrait1.jpg');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: left center;
    margin: 20px calc(-50vw + 50%);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pattern-label {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
}

.suse-mono {
    font-family: "SUSE Mono", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800; 
    font-style: normal;
}

.full-bleed-bar {
    width: 100vw;
    margin: 2rem calc(-50vw + 50%);
    height: 80px; /* very thick bar */
    /* use a repeating large-grid pattern and keep it fixed in the viewport */
    background-image: url('images/name_pixel.jpg');
    background-repeat: repeat;
    background-size: 60px 60px; /* denser grid: smaller tiles to show more of the pattern */
    background-position: center;
    background-attachment: fixed; /* keeps the pattern static while scrolling */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

/* Full-bleed row of circles that extends past the page margins */
.full-bleed-circles {
    width: 100vw;
    margin: .75rem calc(-50vw + 50%);
    display: flex;
    justify-content: center; /* center them tightly */
    align-items: center;
    gap: 0.75rem; /* much closer */
    padding: 1rem 0;
    box-sizing: border-box;
}

.bleed-circle {
    width: 150px;
    height: 150px;
    border-radius: 50% !important;
    flex: 0 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

@media (max-width: 700px) {
    .bleed-circle { width: 110px; height: 110px; }
    .full-bleed-circles { gap: 0.5rem; padding: 0.75rem 0; }
}

/* First bleed circle: use gradient_pattern5 as a fixed, slightly scaled background */
.bleed-gradient5 {
    background-image: url('images/gradient_patterns/gradient_pattern5.jpg');
    background-repeat: no-repeat;
    background-size: 75% 75%; /* scale down a bit */
    background-attachment: fixed; /* keep the same scrolling effect */
    background-position: center center;
}

/* Small swatch version of the fixed repeating pattern (used on one square) */
.pattern-swatch {
    background-image: url('images/name_pixel.jpg');
    background-repeat: repeat;
    background-size: 32px 32px;
    background-attachment: fixed;
    background-position: center;
    color: #ffffff;
}

/* Small swatch using the Red Sox pixel tile */
.redsox-swatch {
    background-image: url('images/redsox_pixel.jpg');
    background-repeat: repeat;
    background-size: 32px 32px;
    background-attachment: fixed;
    background-position: center;
    color: #ffffff;
}

/* Small tiled folk pattern for small squares (fixed while scrolling) */
.folk-swatch {
    background-image: url('images/patterns/folk.png');
    background-repeat: repeat;
    background-size: 160px 160px; /* scaled down from 256px */
    background-attachment: fixed; /* keeps pattern static while scrolling */
    background-position: calc(50% - 5px) center; /* shift left by 5px */
    color: #ffffff;
}

/* Single-image swatch using grid.jpg (not tiled). Scaled down slightly and fixed while scrolling */
.grid-swatch {
    background-image: url('images/grid.jpg');
    background-repeat: no-repeat;
    /* Ensure the image always fills the square so the fallback color never shows
       while preserving the fixed-scroll visual. `cover` scales to fill the
       background area (viewport for fixed attachment) and keeps the element
       visually filled as you scroll. */
    background-size: cover;
    background-attachment: fixed; /* keeps the image visually static while scrolling */
    background-position: center center;
    color: #ffffff;
}

/* Rectangle-sized repeating diagonal pattern */
.diagonal-rect {
    background-image: url('images/patterns/diagonal.png');
    background-repeat: repeat;
    background-size: 192px 192px; /* scaled up for larger tiles */
    background-attachment: fixed;
    background-position: center;
    color: #ffffff;
}

:root {
    --square-size: 120px;
    --square-gap: 16px;
}

.layout-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1rem 0 2rem 0;
}

.left-grid {
    display: grid;
    grid-template-columns: repeat(2, var(--square-size));
    grid-auto-rows: var(--square-size);
    gap: var(--square-gap);
}

.left-grid .square {
    margin: 0;
    width: var(--square-size);
    height: var(--square-size);
}

.right-stack {
    display: flex;
    flex-direction: column;
    gap: var(--square-gap);
    height: calc(var(--square-size) * 2 + var(--square-gap));
}

.right-stack .right-rect {
    flex: 1 1 0;
    width: 320px;
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.color-palette .square {
    width: 180px;
    height: 180px;
    margin: 12px;
    border-radius: 24px;
    font-size: 0.95rem;
}




footer {
    
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;

    padding: 2rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 2rem;
}


/* ...existing code... */

footer {
    /*Specific styles for just the footer. */

    clear: left;
    padding-top: 2em;
    color: #aaa;
}





/* Heading styling */
h1 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3.5rem;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

/* When the title uses SUSE Mono, render it as solid white (override gradient clip) */
h1.suse-mono {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: none;
}

/* Back button styling */
.back-button {
    display: inline-block;
    background: #FFFFFF;
    color: #060606;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0; /* sharp corners */
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.15s ease-in-out;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    letter-spacing: 0.025em;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 14px rgba(0,0,0,0.18);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}