/*
    FLASHFICTION (a writing game webpage)
    by Caehdus

    Table of Contents:
        GENERAL
            reset
            styling
        HEADER
        CONTENT
*/

/* GENERAL
----------------------------------------------- */
@import url(https://fonts.bunny.net/css?family=alkalami:400|cutive-mono:400);
/* usually I get my fonts on https://fonts.bunny.net */

:root {
    --background-color: hsl(0, 0%, 91%);
    --secondary-background-color: hsl(0, 4%, 87%);
    --font-color: hsl(35, 42%, 14%);
    --accent-color: hsl(48, 86%, 43%);
    --secondary-accent-color: hsl(28, 48%, 49%);

    --main-font: 'Cutive Mono', monospace;
    --accent-font: 'Alkalami', serif;
    ;
}

/* reset
------------------------ */
*,
*:before,
*:after {
    box-sizing: inherit;
    /* Uncomment next line when you're lost */
    /* border: 1px dotted red; */
}

html,
body {
    height: 100%;
}

html {
    box-sizing: border-box;
    font-size: clamp(1rem, 0.75rem + 0.75vw, 1.5rem);
}

body {
    background-color: var(--background-color);
    font-family: var(--main-font);
    color: var(--font-color);
    line-height: 1.5;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
    font-family: var(--accent-font);
}

ol,
ul {
    list-style: none;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* styling
------------------------ */
p {
  text-align: justify;
  font-size: .8rem;
}

span, a {
  text-transform: uppercase;
  font-size: .6rem;
  text-decoration: underline dashed;
  color: var(--accent-color)
}

a {
  color: var(--secondary-accent-color);
  font-weight: bold;
}

a:hover {
  color: var(--accent-color);
}

hr {
  border-top: 1px dashed var(--font-color);
  border-bottom: none;
  padding: 0rem;
}

ol, ul {
    margin: 0 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    line-height: 1rem;
    list-style-position: inside;
}

ul {
  list-style: circle;
}

ol {
   list-style: lower-roman
}

em {
    font-size: .5rem;
}


/* HEADER
----------------------------------------------- */
.cover, main img {
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

header:first-child {
    flex-grow: 2;
}

header h1 {
    margin: 0;
    text-transform: lowercase;
    line-height: 1.5rem;
    margin-top: 1rem;
}

header p {
    margin-top: -.5rem;
}

header p, header h2, header h3 {
    font-size: .7rem;
    text-transform: uppercase;
    text-align: left;
}

header h2, header h3 {
    text-align: right;
}

header h3 {
    font-family: var(--main-font);
    font-size: .6rem;
}


/* MAIN
----------------------------------------------- */
.moodboard {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.2rem;
    padding: 1rem 0;
} 

.moodboardItem {
    padding: 0;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* CONTENT
----------------------------------------------- */
body {
    display: flex;
    justify-content: space-between;
    align-items: start;
    background-color: var(--background-color);
}

#library {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.project {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    aspect-ratio: 1/1;
    background-color: var(--secondary-background-color);
    background-size: cover;
    color: var(--font-color);
    border-radius: 1rem;
    box-shadow: 0px 0px 15px -10px rgba(0, 0, 0, 0.75) inset;
    -webkit-box-shadow: 0px 0px 15px -10px rgba(0, 0, 0, 0.75) inset;
    -moz-box-shadow: 0px 0px 15px -10px rgba(0, 0, 0, 0.75) inset;
    transition: all 0.2s ease-in-out;
    font-family: var(--accent-font);
}

.project:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#display {
    flex: 1;
    padding: 2rem;
}