* {
    margin: 0;
}

body {
    background-color: #1d1411;
    cursor: url('images/precursor.png'), auto;
}

@font-face {
    font-family: 'FlorDeRuina-Flor';
    src: url('fonts/FlorDeRuina-Flor.woff2') format('woff2');
}

@font-face {
    font-family: 'FlorDeRuina-Fractura';
    src: url('fonts/FlorDeRuina-Fractura.woff2') format('woff2');
}

@font-face {
    font-family: 'FlorDeRuina-Germen';
    src: url('fonts/FlorDeRuina-Germen.woff2') format('woff2');
}

@font-face {
    font-family: 'FlorDeRuina-Ruina';
    src: url('fonts/FlorDeRuina-Ruina.woff2') format('woff2');
}

@font-face {
    font-family: 'FlorDeRuina-Semilla';
    src: url('fonts/FlorDeRuina-Semilla.woff2') format('woff2');
}


h1 {
    font-family: 'FlorDeRuina-Semilla';
    color: #231d19;
    font-size: 14em;
    text-align: center;
}

h2 {
    /* font-family: 'FlorDeRuina-Fractura'; */
    font-family: 'FlorDeRuina-Semilla';
    color: #231d19;
    font-size: 4em;
    text-align: center;
    margin: 0 13% 0 13%;
}

h3 {
    font-family: 'FlorDeRuina-Germen';
    color: #b44a04;
    font-size: 6em;
    text-align: center;
}

h4 {
    font-family: 'FlorDeRuina-Semilla';
    color: #231d19;
    font-size: 6em;
    text-align: center;
}


/*MENU*/

#menu {
    font-family: 'FlorDeRuina-Flor';
    color: white;
    font-size: 1.4em;
    position: fixed;
    left: 20px;
    top: 20px;
}

/* The side navigation menu */
.sidenav {
    height: 100%;
    /* 100% Full-height */
    width: 0;
    /* 0 width - change this with JavaScript */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Stay on top */
    top: 0;
    /* Stay at the top */
    left: 0;
    background-color: #111;
    /* Black*/
    overflow-x: hidden;
    /* Disable horizontal scroll */
    padding-top: 60px;
    /* Place content 60px from the top */
    transition: 0.5s;
    /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
    font-family: 'FlorDeRuina-Flor';
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
    transition: margin-left .5s;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}


/*hero banner*/
.herobanner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100vh;
    place-items: center;
    background-color: black;
    background: url(images/bg-hero-banner.jpeg) no-repeat center center fixed;
    background-size: cover;
}

.herobannerdiv1 {
    grid-area: 1 / 1 / 2 / 2;
}

/*section1*/
.section1 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100vh;
    place-items: center;
    background: url(images/bg-section1.jpeg) no-repeat center center fixed;
    background-size: cover;
}

.section1div1 {
    grid-area: 1 / 1 / 2 / 2;
}

/*section2*/
.section2 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    width: 100%;
    height: 80vh;
    place-items: center;
    background: url(images/bg-section2a.jpeg) no-repeat center center fixed;
    background-size: cover;
    color: #b44a04;
}

.section2div1 {
    grid-area: 1 / 1 / 2 / 2;
}

.section2div1 p {
    font-family: 'FlorDeRuina-Germen';
    font-size: 2em;

    text-align: center;
}

.section2div2 {
    grid-area: 1 / 2 / 2 / 3;
}

.section2div2 p {
    font-family: 'FlorDeRuina-Semilla';
    font-size: 2em;
    text-align: center;
}

.section2div3 {
    grid-area: 1 / 3 / 2 / 4;
}

.section2div3 p {
    font-family: 'FlorDeRuina-Flor';
    font-size: 2em;
    text-align: center;
}

.section2div4 {
    grid-area: 1 / 4 / 2 / 5;
}

.section2div4 p {
    font-family: 'FlorDeRuina-Ruina';
    font-size: 2em;
    text-align: center;
}

.section2div5 {
    grid-area: 1 / 5 / 2 / 6;
}

.section2div5 p {
    font-family: 'FlorDeRuina-Fractura';
    font-size: 2em;
    text-align: center;
}

/*section 3 TYPE TESTER*/
.section3 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 100vh;
    place-items: center;
    padding: 4em 0;
    background: url(images/bg-section3.jpeg) no-repeat center center fixed;
    background-size: cover;
}

.type-tester {
    width: 90%;
    max-width: 1200px;
}

.type-tester h4 {
    font-family: 'FlorDeRuina-Germen';
    font-size: 3em;
    color: #231d19;
    text-align: center;
    margin-bottom: 1em;
}

.controls {
    display: flex;
    gap: 2em;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5em 2em;
    border-radius: 12px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.control-group label {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #231d19;
}

/* Variant buttons */
.variant-buttons {
    display: flex;
    border: 1px solid rgba(35, 29, 25, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.variant-btn {
    font-family: 'FlorDeRuina-Germen';
    background: transparent;
    border: none;
    padding: 0.5em 0.75em;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 1.5em;
}

.variant-btn:not(:last-child) {
    border-right: 1px solid rgba(35, 29, 25, 0.2);
}

.variant-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.variant-btn.active {
    background: #231d19;
}

/* Alignment buttons */
.align-buttons {
    display: flex;
    border: 1px solid rgba(35, 29, 25, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.align-btn {
    background: transparent;
    border: none;
    padding: 0.5em 0.75em;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #231d19;
}

.align-btn:not(:last-child) {
    border-right: 1px solid rgba(35, 29, 25, 0.2);
}

.align-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.align-btn.active {
    background: #231d19;
    color: #f5e6d3;
}

.align-btn svg {
    width: 18px;
    height: 18px;
}

/* Sliders */
.size-slider,
.line-height-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(35, 29, 25, 0.3);
    border-radius: 2px;
    outline: none;
}

.size-slider::-webkit-slider-thumb,
.line-height-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #231d19;
    border-radius: 50%;
    cursor: pointer;
}

.size-value,
.line-height-value {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.875rem;
    color: #231d19;
    min-width: 3em;
    font-variant-numeric: tabular-nums;
}

/* Color picker */
.color-picker {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(35, 29, 25, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

/* Text area */
.text-area {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(35, 29, 25, 0.2);
    border-radius: 12px;
    padding: 2em;
    min-height: 300px;
}

.editable-text {
    font-size: 80px;
    line-height: 1.1;
    outline: none;
    min-height: 200px;
    word-break: break-word;
    color: #231d19;
}

.editable-text:empty::before {
    content: "Tapez votre texte ici...";
    color: rgba(35, 29, 25, 0.4);
}

/*section4 - Wind Animation*/
.section4 {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100vh;
    place-items: center;
    background: url(images/bg-section2.jpeg) no-repeat center center fixed;
    background-size: cover;
}

.animation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.flower-svg {
    width: auto;
    height: 70vh;
    max-height: 800px;
    transform-origin: 50% 100%;
}


/*section 5 specimen*/
.section5 {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 10px;
    place-items: center;
    background: url(images/bg-section5.jpeg) no-repeat center center fixed;
    background-size: cover;
}

.section5div1 {
    grid-area: 1 / 1 / 2 / 2;
}

.section5div2 {
    grid-area: 2 / 1 / 3 / 2;
}

/*footer*/
.footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 80px);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    place-items: center;
}

.footer p {
    font-family: 'FlorDeRuina-Flor';
    color: #f5e6d3;
    font-size: 1.3em;
}

.footerdiv1 {
    grid-area: 1 / 1 / 2 / 2;
    text-align: center;
}

.footerdiv2 {
    grid-area: 2 / 1 / 3 / 2;
    text-align: center;
}

.footerdiv3 {
    grid-area: 1 / 2 / 2 / 3;
    text-align: center;
}

.footerdiv4 {
    grid-area: 2 / 2 / 3 / 3;
    text-align: center;
}

.footerdiv5 {
    grid-area: 1 / 3 / 2 / 4;
    text-align: center;
}

.footerdiv6 {
    grid-area: 2 / 3 / 3 / 4;
    text-align: center;
}


/*download*/
.download {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    width: 100%;
    height: 40vh;
    place-items: center;
}

.download a {
    font-family: 'FlorDeRuina-Germen';
    font-size: 4em;
    color: white;
    text-decoration: dashed;
}

.downloaddiv1 {
    grid-area: 1 / 1 / 2 / 2;
    text-align: center;
}