/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* font-face */

@font-face {
    font-family: "Amp";
    src: url('fonts/Amp-Regular.otf');
}

@font-face {
    font-family: "Construction";
    src: url('fonts/Construction-Regular.otf');
}

@font-face {
    font-family: "Niina";
    src: url('fonts/Niina-Regular.otf');
}

@font-face {
    font-family: "Literary";
    src: url('fonts/Literary-Regular.otf');
}

@font-face {
    font-family: "Satellite";
    src: url('fonts/Satellite-RegularCondensed.otf');
}

@font-face {
    font-family: "Sirp";
    src: url('fonts/Sirp-LightExpanded.otf');
}

/* STYLES */

* {
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Niina";
    letter-spacing: .5px;
    background-color: #DEDEDE;
    color: darkblue;
}

header {
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
}

footer {
    margin: 0 auto;
    padding: 24px 48px;
    bottom: 0;
    right: 0;
}

a {
    color: darkblue;
    text-decoration: none;
}

a:visited,
a:active {
    color: inherit;
}

header a:hover {
    color: green;
    cursor: pointer;
}

main {
    padding: 0 48px;
    flex: 1 0 auto;
}

main.info {
    width: 50%;
}

.img {
    width: 100%;
}

.fonts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 48px;
    margin: 48px 0;
}

.fonts-container a {
    padding: 0 0;
}

.fonts-container a:hover {
    color: green;
}

.fonts-container a p {
    padding-top: 12px;
    text-align: center;
}

.textarea-container {
    flex: 1;
    margin: 0 24px;
    padding: 24px;
    background-color: white;
}

.textarea-controller {
    padding: 24px 48px;
    display: flex;
    gap: 8px;
}

.textarea-controller label {
    margin-bottom: 4px;
}

.textarea-controller select {
    margin-right: 16px;
}

/* Articles page */

.articles-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 48px;
    margin: 48px 0;
}

.articles-container a {
    padding: 0 0;
}

.articles-container a:hover {
    color: green;
}

.articles-container a p {
    padding-top: 12px;
    text-align: center;
}

.article {
    max-width: 640px;
    margin: auto;
    padding: 48px 24px;
}


/* .article-title {
    text-align: center;
} */

.article-description {
    font-size: 12px;
}

.indent {
    text-indent: 48px;
}

.quote {
    padding: 24px 0 24px 48px;
}

/* Font page */

.font {
    margin: 2em 0 2em 0;
}

article.font:hover,
.font:hover,
.font a:hover,
article:hover {
    color: lightgrey;
}

.font-name {
    font-size: 25vw;
    width: 100%;
    margin: 36px 0 64px;
    text-align: center;
    color: black;
}

.font-description {
    font-size: 10px;
}

.locked,
.locked p {
    pointer-events: none;
    color: lightgrey;
}

.glyphs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr) ) ;
    padding: 12px 24px 36px;
}

h3 {
    padding: 0 24px;
}

.glyph {
    height: 72px;
    background: white;
    margin: 0 1px 1px 0;
    text-align: center;
    color: black;
}

.glyph p {
    padding: 0 0 0 0;
    font-size: 32px;
}

.glyph-details {
    text-align: left;
    margin: 4px 4px 2px 4px;
    display: flex;
    justify-content: space-between;
    font-family: Arial !important;
    color: lightgrey;
}

.glyph-details span {
    font-size: 8px;
}

.amp {
    font-family: "Amp";
}

.construction {
    font-family: "Construction";
    letter-spacing: -.1px;
}

.satellite {
    font-family: "Satellite";
}

.sirp {
    font-family: "Sirp";
}

.literary {
    font-family: "Literary";
    letter-spacing: -.1px;
}

.font-demo-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 24px;
}

.font-demo {
    display: flex;
    flex-direction: column;
    color: black;
    text-align: center;
    justify-content: space-around;
    margin-bottom: 72px;
    padding: 0 24px;
}

.big-text {
    font-size: 72px;
    line-height: 1.3;
    width: 100%;
}

.medium-text {
    font-size: 48px;
    line-height: 1.3;
    width: 50%;
}

.small-text {
    font-size: 24px;
    line-height: 1.3;
    width: 25%;
}

.download {
    display: flex;
    justify-content: center;
    width: 100%;
}

.download a {
    background-color: green;
    color: white;
    font-size: 48px;
    margin: 48px 0;
    padding: 20px 48px 24px;
    text-align: center; 
}

.download a:hover {
    background-color: red;
    color: yellow;
}

.download a:active {
    background-color: blue;
    color: white;
}

/* jQuery */

.type-tester {
    font-size: 64px;
    font-family: "Niina";
}

[contenteditable] {
    outline: 0px solid transparent;
}

.textfield {
    color: black;
}

.fontselect.niina {
    font-family: "Niina";
}

.fontselect.persephone {
    font-family: "Persephone";
}

.fontselect.amp {
    font-family: "Amp";
}

.fontsize.ts {
    font-size: 32px;
}

.fontsize.fe {
    font-size: 48px;
}

.fontsize.sf {
    font-size: 64px;
}

.line-height.line-height-1 {
    line-height: 1 !important;
}

.line-height.line-height-2 {
    line-height: 1.1 !important;
}

.line-height.line-height-3 {
    line-height: 1.2 !important;
}

.line-height.line-height-4 {
    line-height: 1.3 !important;
}

.line-height.line-height-5 {
    line-height: 1.4 !important;
}
