@font-face {
    font-family: PixelFont;
    src: url(fonts/femme-maison-variableVF.ttf);
}
@font-face {
    font-family: ABCDiatypeRegular;
    src: url(fonts/ABCDiatype-Regular-Trial.otf);
}
@font-face {
    font-family: GTAlpinaRegular;
    src: url(fonts/GT-Alpina-Standard-Regular.otf);
}
@font-face {
    font-family: GTAlpinaLight;
    src: url(fonts/GT-Alpina-Standard-Light-Trial.otf);
}
@font-face {
    font-family: FemmeMaisonCrossStitch;
    src: url(fonts/femme-maison-cross-stitchVF.ttf);
}

:root {

    /*COLOR PALETTE*/
    --beige: #F0EDE9;
    --dark: #e4e4e4;
    --cornflower: #6e8dec;
    --darkBrown: #573319; /* 573319 */
    --darkBrownTransparent1: #6E8EEC5f;
    --darkerBrown: #27170F;
    --gold: #C5A54E;

    --cream: #F9FBF3;

    /*SPECIFIC PIECES*/
    --linen: #ffffff;

    /* TYPEFACES */
    --headers: GTAlpinaLight;
    --body: GTAlpinaLight;
    --smalltype: ABCDiatypeRegular;
}

::selection {
    color: var(--beige);
    background-color: var(--darkBrown);
}

/* GLOBAL */
html, body {
    font-family: var(--body);
    margin: 0;
    padding: 0;
    width: 100vw;

    scroll-behavior: smooth;
}

body {
    background-color: var(--cream); /*F3F3F3*/ /*fcfbf6*/
    color: var(--darkBrown);
    padding-top: 0px;
    overflow-x: hidden;
}
h1 {
    font-size: 36px;
}
h2 {
    font-size: 32px;
}
h1, h2 {
    font-family: var(--headers);
    margin: 0px;
    margin-bottom: 10px;
}
.small-type {
    font-family: var(--smalltype);
    font-size: 12px;
    letter-spacing: 1px;
}
.cross-stitch-text {
    font-family: FemmeMaisonCrossStitch;
    font-variation-settings: "SHPE" 70;
    font-size: 17px;
    line-height: 26px;
}

/* BUTTONS */
.button {
    border: 1px solid var(--darkBrown);
    color: var(--darkBrown);
    font-family: var(--smalltype);
    font-size: 14px;
    padding: 5px 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
}
.button:hover {
    background-color: var(--darkBrown);
    color: var(--cream)
}

/* OVERLAY */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff9c;
    z-index: 2;
    backdrop-filter: blur(1px);
    animation: overlay 4s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    pointer-events: none;
    transition: all 0.5s ease-in;
}
#overlay-container {
    font-family: PixelFont;
    width: 500px;
    height: 300px;
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding: 100px;
    text-align: center;
    font-size: 80px;
    text-wrap: wrap;
    line-break: anywhere;

    background: linear-gradient( to bottom, #bdccf7, #eee, #bdcdfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 5px var(--darkBrownTransparent1))
            drop-shadow(0px 0px 2px var(--darkBrown));
}
@keyframes overlay {
    0% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
/* NAVBAR */
#navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    width: 100vw;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.5s ease-in-out;
    filter: drop-shadow(0px 0px 0px var(--darkBrown));
    background-image: none;
    background-size: cover;
    z-index: 200;
    cursor: pointer;

    /*width: calc(100% - 40px);
    margin: 0 20px;
    border-bottom: 1px dashed #000000;*/
}
#navbar-title {
    margin: 0px;
    font-size: 20px;
    text-transform: uppercase;
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}
#navbar-small-type {
    font-family: var(--smalltype);
    font-size: 12px;
    letter-spacing: 1px;
    transform: all 0.5s ease-in-out;
}
#navbar-bottom {
    width: 100%;
    border-top: 0px dashed var(--darkBrown);
    border-bottom: 0px dashed var(--darkBrown);
    padding: 5px;
    box-sizing: border-box;
    font-size: 12px;
    transition: all 0.5s ease-in-out;
    position: none;
    user-select: none;
}
#hidden-menu {
    display: none;
    transition: all 0.5s ease-in-out;
    flex-direction: column;
    margin-top: 20px;
    gap: 5px;
}
#navbar:hover > #hidden-menu {
    display: flex;
}
#normal-navbar {
    display: flex;
    flex-direction: row;
    margin: 10px 40px;
    list-style: none;
    justify-content: space-between;
    position: fixed;
    z-index: 250;
    width: calc(100vw - 80px);
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-size: 12px;
}
#hidden-menu a {
    font-size: 12px;
}
#normal-navbar a, #hidden-menu a {
    color: inherit;
    text-decoration: none;
}
#normal-navbar a:hover, #hidden-menu a:hover {
    text-decoration: underline;
}

/* HERO */
#hero {
    width: 100vw;
    height: 100vh;
    margin-top: -100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
#hero img {
    width: calc(100vw - 400px);
    border-radius: 10px;
}
#hero-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darkBrown);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 1s;
}
#hero-image:hover {
    opacity: 1;
}

/* CONTENT */
.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto 40px;
    text-align: center;
}
.content p {
    width: 400px;
}

img {
    transition: all 1s ease-in-out;
}

.caption {
    border: 1px solid var(--darkBrown);
    color: var(--darkBrown);
    width: fit-content;
    background-color: #ffffff;
    padding: 10px !important;
    margin-top: 20px;
}

/* SAMPLER */

#sampler-main-container {
    margin: 20px 50% 50px 50%;
    transform: translate(-50%, 0%);
    width: auto;
    height: auto;
    padding: 5px;

    background-color: #ffffff00;
    /*border: 2px solid var(--dark);*/
    border: 2px solid var(--dark);

    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#cloth-border {
    width: 50vw;
    height: 50vh;
    position: relative;
    padding: 40px;
    /*border: 1px solid var(--dark);*/
    border: 1px solid var(--dark);
    border-radius: 0px;

    background-color: var(--linen);

    display: flex;
    justify-content: center;
    align-items: center;
}

#cloth-container-two {
    width: 50vw;
    height: 50vh;
    position: relative;
    padding: 20px;
    border: 1px dashed var(--dark);
    border-radius: 0px;

    /*background-image: repeating-linear-gradient(0deg, #cccccc, #cccccc 10px, transparent 10px, transparent 20px, #cccccc 20px), repeating-linear-gradient(90deg, #cccccc, #cccccc 10px, transparent 10px, transparent 20px, #cccccc 20px), repeating-linear-gradient(180deg, #cccccc, #cccccc 10px, transparent 10px, transparent 20px, #cccccc 20px), repeating-linear-gradient(270deg, #cccccc, #cccccc 10px, transparent 10px, transparent 20px, #cccccc 20px);
    background-size: 1px 100%, 100% 1px, 1px 100% , 100% 2px;
    background-position: 0 0, 0 0, 100% 0, 0 100%;
    background-repeat: no-repeat;*/
}
#cloth-container {
    width: 50vw;
    height: 50vh;
    overflow: hidden;
    border: 1px dashed var(--dark);

    position: relative;

    border-radius: 0px;

}
#sampler {
    background-color: var(--cream);
    position: sticky;
    top: 0px;
    height: 100vh;
}
#sampler-content {
    font-family: PixelFont;
    height: calc(100% - 100px);
    word-break: break-all;
    line-height: 100px;
    letter-spacing: 5px;
    
    /*display: flex;
    flex-direction: column;
    justify-content: end;*/

    position: relative;
    font-size: 80px;
    text-align: center;

    text-transform: uppercase;
    padding: 20px;
}

#grid {
    position: absolute;
    bottom: 100px;
    /*width: 100vw;
    height: 100vh;
    position: fixed;*/
    border-bottom: 1px dashed #cccccc;
}
td {
    width: 30px;
    height: 30px;
    border: 1px solid #00000000;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* FOOTER */
#footer {
    background-color: var(--darkBrown);
    padding: 20px;
    width: 100vw;
    height: auto;
    margin-top: 100px;
    color: var(--beige);
    text-align: center;
    font-size: 10px;
    box-sizing: border-box;
}
#footer-top {
    border: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    height: 100px;
}
#footer-bottom {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border-left: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
}
#footer-bottom > :nth-child(1) {
    padding: 8px;
    border-right: 1px solid #cccccc;
    font-size: 20px;
}
#footer-bottom > :nth-child(2) {
    padding: 50px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
#footer-bottom > :nth-child(2) p {
    margin: 0px;
}
#footer-bottom > :nth-child(3) {
    padding: 8px;
    border-left: 1px solid #cccccc;
}
.footer-border {
    border: 1px dashed #cccccc;
    height: 100%;
    box-sizing: border-box;
}

@keyframes jitter {
    0% {
        top: 0;
        right: 0;
    }
    8% {
        top: -1px;
        left: 1px;
    }
    15% {
        top: -1px;
        left: 2px;
    }
    21% {
        top: 0px;
        left: 1px;
    }
    28% {
        top: -1px;
        left: 2px;
    }
    34% {
        top: -2px;
        left: 3px;
    }
    41% {
        top: -2px;
        left: 4px;
    }
    47% {
        top: -1px;
        left: 4px;
    }
    54% {
        top: -1px;
        left: 3px;
    }
    60% {
        top: 0px;
        left: 3px;
    }
    67% {
        top: -1px;
        left: 4px;
    }
    73% {
        top: -1px;
        left: 3px;
    }
    80% {
        top: -1px;
        left: 2px;
    }
    87% {
        top: 0px;
        left: 1px;
    }
    100% {
        top: 0px;
        left: 0px;
    }
}
@keyframes walk {
    0% {
        top: 0;
        left: 0;
    }
    4% {
        top: 2px;
        left: 2px;
    }
    8% {
        top: 0px;
        left: 4px;
    }
    12% {
        top: 2px;
        left: 6px;
    }
    16% {
        top: 0px;
        left: 8px;
    }
    20% {
        top: 2px;
        left: 10px;
    }
    24% {
        top: 0px;
        left: 12px;
    }
    28% {
        top: 2px;
        left: 14px;
    }
    32% {
        top: 0px;
        left: 16px;
    }
    36% {
        top: 2px;
        left: 18px;
    }
    40% {
        top: 0px;
        left: 20px;
    }
    44% {
        top: 2px;
        left: 22px;
    }
    48% {
        top: 0px;
        left: 24px;
    }
    52% {
        top: 2px;
        left: 26px;
    }
    56% {
        top: 0px;
        left: 28px;
    }
    60% {
        top: 2px;
        left: 30px;
    }
    64% {
        top: 0px;
        left: 32px;
    }
    68% {
        top: 2px;
        left: 34px;
    }
    72% {
        top: 0px;
        left: 36px;
    }
    76% {
        top: 2px;
        left: 38px;
    }
    80% {
        top: 0px;
        left: 40px;
    }
    84% {
        top: 2px;
        left: 42px;
    }
    88% {
        top: 0px;
        left: 44px;
    }
    92% {
        top: 2px;
        left: 46px;
    }
    96% {
        top: 0px;
        left: 50px;
    }
    100% {
        top: 2px;
        left: 52px;
    }
}

/* archive */
#filters {
    display: block;
    position: fixed;
    bottom: -45px;
    padding: 10px 40px;
    background-color: #ffffff81;
    z-index: 1;
    width: 100vw;
    backdrop-filter: blur(5px);
    transition: all 0.5s ease-in-out;
}
#archive {
    /*display: grid;
    grid-template-columns: repeat(3, 1fr);*/
    columns: 4;
    gap: 40px;
    margin: auto 40px;
}

#archive img {
    width: 100%;
    margin-bottom: 5px;
    user-select: none;
    pointer-events: none;
}

.collection-item {
    break-inside: avoid;
    margin-bottom: 40px;
    cursor: pointer;

    background-color: #ffffff;
    padding: 10px;

    text-align: left;
}
.collection-item:hover {
    background-color: #ffffff;
    border: 1px dashed #000000;
    transform: rotate(5deg);
}

.collection-author {
    font-family: var(--smalltype);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}
.collection-title {
    font-family: var(--body);
    text-align: left;
    font-size: 18px;
    letter-spacing: -0.25px;
}

.collection-date {
    font-family: var(--smalltype);
    font-size: 12px;
    bottom: 5px;
    position: relative;
    bottom: 4px;
    margin-left: 5px;
    color: #9fadff;
}

.collection-description {
    display: block;
    font-size: 16px;
    padding: 0px;
    margin-bottom: 25px;
}

.collection-title-and-date {
    margin-bottom: 20px !important;
}

.collection-medium-dimensions {
    font-family: var(--body);
    font-size: 12px;
    position: relative;
    bottom: 5px;
    display: none;
    color: #9fadff;
}
.collection-item:hover > .collection-medium-dimensions {
    display: block;
    color: #8b8b8b;
}

.collection-source a {
    font-family: var(--smalltype);
    display: block;
    text-decoration: none;
    color: #000000;
    margin-top: 10px;
}
.collection-source a:hover {
    text-decoration: underline;
}

/* TYPE SPECIMEN VARIATIONS */
.type-specimen-1 {
    font-family: PixelFont;
    font-variation-settings: "SHPE" 200;
}
.type-specimen-2 {
    font-family: PixelFont;
    font-variation-settings: "SHPE" 70;
}
.type-specimen-3 {
    font-family: PixelFont;
    font-variation-settings: "SHPE" 0;
}
.type-specimen-4 {
    font-family: PixelFont;
    font-variation-settings: "SHPE" 100;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    background: var(--darkBrown);
    outline: none;
  }
  .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--cornflower);
    cursor: pointer;
    border-radius: 100%;
  }
  
  .slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--cornflower);
    cursor: pointer;
    border-radius: 100%;
  }
#typesetting {
    height: auto;
    position: sticky;
    top: 0;

    z-index: 3;
    background-color: var(--cream);
    color: var(--darkBrown);
    padding: 60px 20px;

    border-top: 1px solid var(--darkBrown);
    border-bottom: 1px solid var(--darkBrown);
}
#editable-typesetting {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.type-specimen-header {
    font-family: var(--smalltype);
    border-bottom: 1px solid var(--darkBrown);
    font-size: 12px;
    letter-spacing: 1px;
}
#typeset-regular {
    margin: 20px 0;
    font-family: PixelFont;
    font-size: 80px;
    text-transform: lowercase;
    outline: none;
    word-break: break-all;
}
#typeset-icons {
    margin: 20px 0;
    font-family: PixelFont;
    font-size: 70px;
    text-transform: uppercase;
    outline: none;
    word-break: break-all;
}
#typeset-cross-stitch {
    margin: 20px 0;
    font-family: FemmeMaisonCrossStitch;
    font-size: 30px;
    outline: none;
    word-break: break-all;
}

/* SECTIONS */
.section {
    width: 100vw;
    left: 0;
    box-sizing: border-box;
}
/* SECTION ONE */
#sectionOne {
    font-family:PixelFont;
    height:100vh;
    padding: 20px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#sectionOne h2 {
    margin: 0 0 10px 0;
    padding: 0px;
}

/*SECTION ONE Icons*/
#femme-maison {
    font-size: 160px;
    margin: 0px;
    padding: 0px;
    font-family:PixelFont;
    font-variation-settings: "SHPE" 200;
    line-height: 100px;
    animation: changeWeights0to300 8s ease-in-out infinite;
}
#sectionOneCorners span {
    user-select: none;
    animation: changeWeights100to300 5s ease-in-out infinite;
}
#sectionOneCorners span:nth-child(1) {
    position: absolute;
    font-size: 100px;
    font-variation-settings: "SHPE" 250;
    top: 40px;
    left: 40px;
}
#sectionOneCorners span:nth-child(2) {
    font-size: 100px;
    font-variation-settings: "SHPE" 250;
    position: absolute;
    top: 40px;
    right: 40px;
}
#sectionOneCorners span:nth-child(3) {
    font-size: 100px;
    font-variation-settings: "SHPE" 250;
    position: absolute;
    bottom: 40px;
    left: 40px;
}
#sectionOneCorners span:nth-child(4) {
    font-size: 100px;
    font-variation-settings: "SHPE" 250;
    position: absolute;
    bottom: 40px;
    right: 40px;
}
@keyframes changeWeights100to300 {
    0%   { font-variation-settings: 'SHPE' 100; }
    50%  { font-variation-settings: 'SHPE' 300; }
    100% { font-variation-settings: 'SHPE' 100; }
}
@keyframes changeWeights0to300 {
    0%   { font-variation-settings: 'SHPE' 0; }
    50%  { font-variation-settings: 'SHPE' 300; }
    100% { font-variation-settings: 'SHPE' 0; }
}

/* SECTION TWO */
#sectionTwo {
    font-family:PixelFont;
    height:100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -100vh;
    color: #ffffff;
}

/* SECTION TWO */
#sectionThree {
    font-family:PixelFont;
    min-height:100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    text-align: center;
    font-variation-settings: "SHPE" 200;
    line-height: 80px;
    padding: 0 50px;
}

/* SECTION FOUR */
#sectionFour {
    position: sticky;
    top: 0px;
    z-index: 2;
}
#sectionFour img {
    max-height: 100vh;
}
.subtitle {
    font-family: var(--smalltype);
    font-size: 12px;
}

.section-5050 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
}
.section-5050 img {
    width: auto;
}
.section-5050 div {
    display: flex;
    padding: 0 50px;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

/* NARRATIVE */
#glyphs {
    /*scroll-snap-type: y mandatory;*/
    overflow-y: scroll;
    background-color: var(--cream);
    z-index: 40;
}
#glyphs-content {
    position: sticky;
    top: 0;
    background-color: var(--cream);

    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.section-narrative {
    width: 100vw;
    background-color: var(--cream);
    /*position: sticky;*/
    position: relative;
    padding: 20px;
    height: 100vh;

    /*display: flex;
    flex-direction: row;*/
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    justify-content: center;
    align-items: center;

    /*scroll-snap-align: start;*/
}
.narrative-glyphs {
    font-family: PixelFont;
    animation: changeWeights0to300 12s ease-in-out infinite;
    text-align: center;

    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}
.narrative-images {
    /*position: absolute;

    top: 50%;
    left: 40px;
    transform: translate(0, -50%);*/
    width: 300px;
}
.narrative-images img {
    width: 100%;
}
.narrative-text {
    background-color: var(--darkBrown);
    width: 300px;
    position: absolute;
    color: #ffffff;
    padding: 15px;

    top: 50%;
    right: 40px;
    transform: translate(0, -50%);

    font-size: 20px;
    line-height: 25px;
}
.narrative-text .small-type {
    margin-right: 40px;
}
#visit-archive img {
    width: 100%;
}
/* Mobile */
@media only screen and (max-width: 1300px) {
    #archive {
        columns: 3;
        gap: 40px;
        margin: auto 40px;
    }
  }
@media only screen and (max-width: 900px) {
    #archive {
        columns: 2;
        gap: 40px;
        margin: auto 40px;
    }
  }

@media only screen and (max-width: 700px) {
    #archive {
        columns: 1;
        gap: 40px;
        margin: auto 40px;
    }
  }

/*Image Carousel */
.image-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-gallery-inner {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.image-gallery-item {
    flex: 0 0 100%;
    width: 100%;
    justify-content: center;
    align-content: center;
}

.image-gallery img {
    max-height: 100%;
    max-width: 100%;
    display: block;
    justify-self: center;
    align-self: center;
}

.image-gallery-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    color: var(--blue);
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 15px;
}

.prev {
    left: 8px;
    filter: grayscale(1) !important;
}

.next {
    right: 8px;
    filter: grayscale(1) !important;
}