@font-face {
    font-family: "Inerta";
    src: url(/fonts/Inerta-Regular.woff2) format('woff2'),
         url(/fonts/Inerta-Regular.woff) format('woff');
    font-weight: 400;
}
@font-face {
    font-family: "Inerta";
    src: url(/fonts/Inerta-SemiBold.woff2) format('woff2'),
         url(/fonts/Inerta-SemiBold.woff) format('woff');
    font-weight: 700;
}
@font-face {
    font-family: "Inerta";
    src: url(/fonts/Inerta-ExtraBold.woff2) format('woff2'),
         url(/fonts/Inerta-ExtraBold.woff) format('woff');
    font-weight: 900;
}

*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,body {
    position: relative;
    height: auto;
    min-height: 100% !important;
}

img {
    max-width: 100%;
    height: auto;
}

a, a:hover, a:link, a:visited, a:active {
    color: inherit;
    text-decoration: none;
}

hr {
    display: block;
    height: 0;
    border: 0;
    border-top: 1px solid #000;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}

.green {
    color: #154734;
}

.smaller {
    font-size: 0.875em;
}

.black {
    font-weight: 900;
}

.caps {
    text-transform: uppercase;
    letter-spacing: 0.04em;
} 

.arrow {
    padding-right: 10px;
}

.col2 {
    grid-column: span 2;
}

.col3 {
    grid-column: span 3;
}

.col4 {
    grid-column: span 4;
}

.col9 {
    grid-column: span 9;
}

.col10 {
    grid-column: span 10;
}

.stretch {
    display: flex;
    justify-content: space-between;
}

body {
    margin: 0;
    background-color: #F4F6F2;
    font-family: "Inerta";
    color: #000;
}

header {
    height: 80px;
    background: linear-gradient(to right, #BED600, #154734);
}

#head {
    position: relative;
    width: 1280px;
    height: 80px;
    margin: auto;
    align-content: center;
}

#menu {
    margin: 0;
    text-align: right;
    color: #FFF;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.i500 {
    grid-column: span 4;
    width: 500px;
    aspect-ratio: 1;
    height: auto;
    position: relative;
    transition: 200ms;
}

.i500:hover {
    background-color: rgba(21, 71, 52, 0.12);
}

.i500 a {
    position: absolute;
    width: 500px;
    aspect-ratio: 1;
    height: auto;
}

.i500 img {
    position: absolute;
}

.t500 {
    grid-column: span 4;
}

.opt2-inv {
    display: none;
}

.opt3 {
    display: block;
}

footer {
    width: 1280px;
    margin: 20px auto;
    padding-top: 20px;
    border-top: 1px solid #000;
}

footer img {
    max-width: 50%;
}

.foot {
    flex-direction: column;
}

#logo {
    position: absolute;
    top: -5px;
    left: -54px;
    z-index: 100;
}

.columns {
    width: 1280px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    column-gap: 20px;
    row-gap: 20px;
}

.no-margin {
    margin: 0;
}

.font {
    background-color: #FFF;
    padding: 20px;
    transition: 200ms;
}

.font2 {
    background-color: #FFF;
    margin-right: -20px;
    padding: 20px;
    transition: 200ms;
}

.font:hover, .font2:hover {
    background-color: rgba(21, 71, 52, 0.1);
}

.preview {
    grid-column: span 10;
    font-size: 80px;
    text-wrap: nowrap;
    overflow-x: hidden;
    margin-bottom: 20px;
}

.fontname {
    display: grid;
    grid-template-columns: 90px repeat(8, 1fr) 90px;
    column-gap: 20px;
    font-size: 0.875em;
}

.font2 .fontname {
    grid-template-columns: 90px repeat(7, 1fr) 90px;
}

.relative {
    position: relative;
}

.pppr {
    position: absolute;
    top: -3px;
    left: 0px;
}

.with-pppr {
    padding-left: 25px;
}

.right {
    text-align: right;
}

.bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1em;
}

#pay-logos {
    margin: -5px 0;
}

#icons {
    margin-top: 2px;
    margin-bottom: -2px;
}

.spaced {
    display: flex;
    gap: 12px;
}

.spaced2 {
    display: flex;
    gap: 40px;
}

a.u:hover {
    text-decoration: underline;
}

a.nav {
    box-shadow: inset 0 0 0 0 #000;
    color: #000;
    padding: 0.15em 0.25em 0.15em 0;
    margin: -0.15em -0.25em -0.15em 0;
    transition: 0.2s ease-out;
}

a.nav:hover {
    color: #fff;
    box-shadow: inset 220px 0 0 0 #222;
}

/* touch screens: no sweep, which a tap would otherwise leave stuck on the link */
@media (hover: none) {
    a.nav:hover {
        color: #000;
        box-shadow: inset 0 0 0 0 #000;
    }
}

/* MENU */

.menu-item {
    display: inline-block;
    position: relative;
}

.button {
    cursor: pointer;
    text-wrap: nowrap;
}

.dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    z-index: 100;
}

.dropdown a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    background-color: #000;
    padding: 16px 30px 16px 24px;
    text-align: left;
    text-wrap: nowrap;
    transition: 100ms;
}

.dropdown a:hover {
    background-color: #093322;
}

.dropdown a i {
    margin-top: 2px;
    margin-bottom: -2px;
}

#dropdown1, #dropdown2 {
    display: none;
}

#menu-closer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 99;
}

/* INNER PAGES */

h1 {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 38px;
    text-align: right;
}

h1::before {
    content: "↓ ";
}

a.back {
    text-transform: uppercase;
    font-size: 0.875em;
    letter-spacing: 0.04em;
}

a.back:hover {
    text-decoration: underline;
}

a.back::before {
    content: "←";
    margin-right: 6px;
}

#slider {
    position: relative;
}

.slick img {
    height: 360px;
    width: auto;
}

.over-slick {
    position: absolute;
    top: 0;
    height: 360px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

#over-slick-l {
    height: 360px;
    width: calc(50% - 360px);
    background: linear-gradient(to right, rgba(244,246,242,1), rgba(244,246,242,0));
}

#over-slick-r {
    height: 360px;
    width: calc(50% - 360px);
    background: linear-gradient(to left, rgba(244,246,242,1), rgba(244,246,242,0));
}

.description, .buy {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.description {
    grid-column: span 7;
    margin-right: 130px;
}

.suppl {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
}

.suppl .text {
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: flex-end;
}

.suppl2 {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.suppl .price, .suppl2 .price {
    font-size: 1.5em;
    text-align: right;
}

.buy {
    justify-content: flex-end;
    font-size: 0.875em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: #111;
    color: #FFF;
    padding: 15px 18px;
    transition: background-color 200ms;
    transition: margin-bottom 350ms;
    cursor: pointer;
    min-width: 110px;
}

.buy:hover {
    background-color: #093322;
}

.buy i {
    font-size: 1rem;
    color: #FFF;
}

.buy .text {
    position: relative;
    height: 2.5em;
    overflow: hidden;
}

.buy .text-init {
    position: absolute;
    transition: 200ms;
    top: 0;
}

.buy .text-hover {
    position: absolute;
    transition: 200ms;
    top: 2.5em;
}

.buy:hover .text-init {
    top: -2.5em;
}

.buy:hover .text-hover {
    top: 0;
}

.options {
    display: grid;
    grid-template-rows: 0fr;
    transition: 350ms;
}

.lic-wrapper {
    overflow: hidden;
}

.licenses {
    background-color: rgba(21, 71, 52, 0.1);
    padding: 20px;
    border-top: solid 20px #111;
    border-radius: 0 0 10px 10px;
    display: grid;
    grid-template-columns: 1.75em repeat(4, auto);
    width: 100%;
    column-gap: 20px;
    row-gap: 20px;
    font-size: 1.125em;
    align-items: center;
}

.lic-title {
    grid-column: span 4;
    font-size: 1.5rem;
}

.lic-close {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: right;
    cursor: pointer;
    align-self: self-start;
}

.lic-close i {
    font-size: 1.2em;
    position: relative;
    top: 1px;
    margin-left: 10px;
}

.lic-icon {
    font-size: 1.5rem;
    text-align: center;
}

.hint-wrapper {
    position: relative;
}

.hint-wrapper > i {
    color: rgba(0,0,0,0.75);
    margin-left: 5px;
    top: -1px;
    font-size: 0.75em;
}

.hint {
    position: absolute;
    top: 0;
    left: 30px;
    display: none;
    background-color: #F4F6F2;
    border: solid 1px #BBB;
    padding: 8px 12px;
    column-count: 2;
    column-gap: 15px;
    line-height: 1.35em;
    z-index: 100;
}

.hint-wrapper:hover .hint {
    display: block;
}

.hint-item {
    text-wrap: nowrap;
    font-size: 0.875em;
}

.hint-item i {
    margin-right: 5px;
}

.lic-qty {
    font-size: 1rem;
}

.lic-qty select {
    font-family: "Inerta", sans-serif;
    font-size: 1rem;
    font-weight: normal;
    width: 100%;
    padding: 4px;
    border: 0;
    background-color: #fff;
    border-radius: 5px;
}

.lic-price, .lic-button {
    text-align: right;
}

.lic-price {
    opacity: 0.5;
}

.lic-button .button {
    display: inline-block;
    background-color: rgba(21, 71, 52, 0.2);
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: 200ms;
}

.lic-button .button:hover {
    background-color: rgba(21, 71, 52, 0.55);
    color: #FFF;
}

.lic-button .button i {
    margin-right: 10px;
}

.lic-hr {
    grid-column: span 5;
}

.lic-hr-opt {
    display: none;
    grid-column: span 5;
    height: 0;
    border: 0;
    border-top: 1px solid rgba(21, 71, 52, 0.35);
    margin: 10px 0;
    padding: 0;
}

.total-name {
    font-size: 1.25em;
    font-weight: 700;
    grid-column: 2 / span 2;
}

.total-price {
    font-size: 1.25em;
    font-weight: 700;
    text-align: right;
}

.total-tocart {
    font-size: 0.875rem;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tabs {
    border-bottom: solid 20px #111;
    display: flex;
    gap: 4px;
}

.tab {
    padding: 10px 16px;
    background-color: #FFF;
    border-radius: 10px 10px 0 0;
    transition: 200ms;
}

.tab:hover {
    background-color: rgba(21, 71, 52, 0.12);
}

.tab-active {
    padding: 10px 16px;
    background-color: #111;
    border-radius: 10px 10px 0 0;
    color: #FFF;
    font-weight: 700;
}

.tab i, .tab-active i {
    margin-right: 10px;
}

h2 {
    grid-column: span 7;
    font-size: 2.25em;
}

@media only screen and (max-width: 1410px) {
    #head {
        width: 1020px;
    }
    footer {
        width: 1020px;
    }
    .columns {
        width: 1020px;
        grid-template-columns: repeat(8, 1fr);
    }
    .fontname {
        grid-template-columns: 90px repeat(6, 1fr) 90px;
    }
    .opt1{
        display: none !important;
    }
    .col10 {
        grid-column: span 8;
    }
    .col9 {
        grid-column: span 7;
    }
    .i500 {
        grid-column: span 3;
        width: 370px;
    }
    .i500 a {
        width: 370px;
    }
    .t500 {
        grid-column: span 3;
    }

    .description {
        grid-column: span 5;
        margin-right: 0;
    }
}

@media only screen and (max-width: 1150px) {
    #head {
        width: 760px;
    }
    footer {
        width: 760px;
    }
    .columns {
        width: 760px;
        grid-template-columns: repeat(6, 1fr);
    }
    #allfonts {
        grid-column: span 6;
    }
    .preview {
        font-size: 64px;
    }
    .fontname {
        grid-template-columns: 90px repeat(4, 1fr) 90px;
    }
    .opt2{
        display: none !important;
    }
    .opt2-inv{
        display: block !important;
    }
    .col10 {
        grid-column: span 6;
    }
    .col9 {
        grid-column: span 5;
    }
    .i500 {
        grid-column: span 4;
        width: 500px;
    }
    .i500 a {
        width: 500px;
    }
    .t500 {
        grid-column: span 4;
    }

    .description {
        grid-column: span 3;
    }
    .licenses {
        row-gap: 10px;
    }
    .lic-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    .lic-name {
        grid-column-start: 2;
        text-wrap: nowrap;
    }
    .lic-price, .total-price {
        grid-column: 2 / span 2;
        text-align: left;
    }
    .lic-qty {
        grid-column: span 3;
    }
    .lic-button {
        grid-column: span 2;
    }
    .lic-hr {
        margin: 10px 0;
    }
    .lic-hr-opt {
        display: block;
    }
    .total-name {
        grid-column: 2 / span 3;
    }
    .total-tocart {
        grid-column: span 2;
    }
}

@media only screen and (max-width: 880px) {
    #head {
        width: 630px;
    }
    footer {
        width: 630px;
    }
    .columns {
        width: 630px;
        grid-template-columns: repeat(5, 1fr);
    }
    #allfonts {
        grid-column: span 2;
    }
    .preview {
        font-size: 48px;
    }
    .fontname {
        grid-template-columns: 90px repeat(3, 1fr) 90px;
    }
    .opt3{
        display: none !important;
    }
    .col10 {
        grid-column: span 5;
    }
    .col9 {
        grid-column: span 4;
    }
    .i500 {
        grid-column: span 3;
        width: 370px;
    }
    .i500 a {
        width: 370px;
    }
    .t500 {
        grid-column: span 3;
    }
    footer {
        flex-direction: column;
        gap: 20px;
    }
    #pay-logos img {
        width: 165px;
    }

    .description {
        grid-column: span 2;
    }
    .licenses {
        grid-template-columns: 1.75em 1fr;
    }
}

@media only screen and (max-width: 760px) {
    h1 {
        margin-left: 40px;
    }
    #head {
        width: 500px;
    }
    #logo {
        left: -10px;
    }
    #intro {
        grid-column: span 3/5;
    }
    footer {
        width: 500px;
    }
    .columns {
        width: 500px;
        grid-template-columns: repeat(4, 1fr);
    }
    .preview {
        font-size: 40px;
    }
    .fontname {
        display: flex !important;
        justify-content: space-between;
    }
    .col10 {
        grid-column: span 4;
    }
    .col9 {
        grid-column: span 3;
    }
    .opt4 {
        display: none !important;
    }
    .category {
        text-align: right;
    }
    .fontname .col3 {
        grid-column: span 2;
    }
    .i500 {
        grid-column: span 4;
        width: 500px;
    }
    .i500 a {
        width: 500px;
    }
    .t500 {
        grid-column: span 2;
        justify-content: flex-end;
    }

    .slick img {
        height: 240px;
    }
    #over-slick-l {
        height: 240px;
        width: calc(50% - 240px);
    }
    #over-slick-r {
        height: 240px;
        width: calc(50% - 240px);
    }
    .description {
        grid-column: span 4;
    }
    .suppl {
        grid-column: span 3;
    }
    .hint {
        column-count: 1;
        top: -30px;
    }
}

@media only screen and (max-width: 540px) {
    #head {
        width: calc(100% - 40px);
    }
    footer {
        width: calc(100% - 40px);
    }
    .columns {
        width: calc(100% - 40px);
    }
    .columns .columns {
        width: 100%;
    }
    .category {
        grid-column: span 4 !important;
    }
    .category + .category {
        margin-top: -5px;
    }
    .controls {
        width: 100% !important;
    }
    .i500 {
        width: 100%;
    }
    .i500 a {
        width: 100%;
    }
    .opt5 {
        display: none !important;
    }
    .spaced2 {
        flex-direction: column;
        gap: 20px;
    }
    .slick img {
        height: 180px;
    }
    #over-slick-l {
        height: 180px;
        width: calc(50% - 180px);
    }
    #over-slick-r {
        height: 180px;
        width: calc(50% - 180px);
    }
    .lic-price {
        grid-column: 2 / span 1;
    }
    .lic-button {
        grid-column: span 3;
    }
}
/* MESSAGES: flash messages and the cookie consent bar.
   Layers over main.css. Class names follow the Rails markup (.notify, .cookies-eu). */

/* FLASH MESSAGES
   Blocks that hang from the header under the menu, built like dropdown items.
   They float over the page and push nothing. A notice is green, an alert crimson. */


.notifications {
    position: absolute;
    top: 100%;
    right: 0;
    width: 370px;
    z-index: 90;
}

.notify {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 16px 30px 16px 24px;
    color: #FFF;
    cursor: pointer;
    transition: 100ms;
}

.notify.notice {
    background-color: #154734;
}

.notify.notice:hover {
    background-color: #093322;
}

.notify.alert {
    background-color: #BC004C;
}

.notify.alert:hover {
    background-color: #8F003A;
}

.notifyText {
    flex: 1;
}

/* COOKIE CONSENT BAR
   A full-width black bar fixed to the bottom of the window: the tester bar turned
   upside down, its content aligned to the container. The button is a tester field. */

.cookies-eu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background-color: #111;
    color: #FFF;
    padding: 20px calc((100% - 1280px) / 2);
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookies-eu-content-holder {
    flex: 1;
    font-size: 0.875em;
}

.cookies-eu-ok {
    font-family: "Inerta", sans-serif;
    font-size: 0.875em;
    font-weight: normal;
    height: 26px;
    padding: 0 20px;
    border: 1px solid #FFF;
    border-radius: 4px;
    background-color: #222;
    color: #FFF;
    cursor: pointer;
    transition: 200ms;
}

.cookies-eu-ok:hover {
    background-color: #093322;
}

.cookies-eu-ok:focus {
    outline-color: #bed600;
}

@media only screen and (max-width: 1410px) {
    .cookies-eu {
        padding: 20px calc((100% - 1020px) / 2);
    }
}

@media only screen and (max-width: 1150px) {
    .cookies-eu {
        padding: 20px calc((100% - 760px) / 2);
    }
}

@media only screen and (max-width: 880px) {
    .cookies-eu {
        padding: 20px calc((100% - 630px) / 2);
    }
}

@media only screen and (max-width: 760px) {
    .cookies-eu {
        padding: 20px calc((100% - 500px) / 2);
    }
}

@media only screen and (max-width: 540px) {
    /* leaves the 40px the hanging logo needs, as the page title does */
    .notifications {
        left: 40px;
        width: auto;
    }
    .cookies-eu {
        padding: 20px;
    }
}
/* The fallback named by every specimen font (font_demo… classes): glyphs a font lacks show as
   empty boxes instead of falling back to a system font. */

@font-face {
    font-family: 'tofu';
    src: url(/fonts/tofu.woff2) format('woff2'), url(/fonts/tofu.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}
/*
 * Shared by every page: the base design (main.css) and the flash messages and cookie bar
 * (messages.css). Each page adds its own layers in the order its template page loads them,
 * through content_for :css, so the cascade matches the static template.
 *



 */

