/******************************************************************************
START Glitch hello-app default styles

The styles in this section do some minimal CSS resets, set default fonts and 
colors, and handle the layout for our footer and "Remix on Glitch" button. If
you're new to CSS they may seem a little complicated, but you can scroll down
to this section's matching END comment to see page-specific styles.
******************************************************************************/
/* Our default values set as CSS variables */
:root {
  --color-bg: #eee;
  --color-text-main: #010101;
  --color-primary: #010101;
  --color-accent: #010101;
  --wrapper-height: 87vh;
  --image-max-width: 300px;
  --image-margin: 3rem;
  --font-family: "HK Grotesk";
  --font-family-header: "HK Grotesk";
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

/* Import fonts */
@font-face {
  font-family: HK Grotesk;
  src: url("/fonts/HKGrotesk-Regular.otf")
    format("opentype");
}
@font-face {
  font-family: HK Grotesk;
  font-weight: bold;
  src: url("/fonts/HKGrotesk-Bold.otf")
    format("opentype");
}

/* Our remix on glitch button */
.btn--remix {
  font-family: HK Grotesk;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  line-height: 1rem;
  font-weight: 500;
  height: 2.75rem;
  align-items: center;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid #000000;
  box-sizing: border-box;
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  margin-left: auto;
  
  display: none;
}
.btn--remix img {
  margin-right: 0.5rem;
}
.btn--remix:hover {
  background-color: #D0FFF1;
}

/* Navigation grid */
.footer {
  display: flex;
  justify-content: center;
  margin: 80px auto 0;
  padding: 1rem 0 0.75rem 0;
  width: 100%;
  flex-wrap: wrap;
  border-top: 1px solid #ffe6f8cc;
}

.footer a:link, a:visited {
  font-family: HK Grotesk;
  font-style: normal;
  font-weight: normal;
  font-size: 0.8rem;
  color: var(--color-primary);
  text-decoration: none;
  border-style: none;
  opacity: 0.6;
  transition: all 0.2s ease-in-out;
}
.footer a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer .links {
  padding: 0.5rem 1rem 1.5rem;
  white-space: nowrap;
}

.divider {
  padding: 0 1rem;
}
/******************************************************************************
END Glitch hello-app default styles
******************************************************************************/

body {
  font-family: HK Grotesk;
  background-color: #A9B2CA;
  color: var(--color-primary);
  
/*   background-image: url(/images/bg-small.jpg); */
  background-image: url(/images/bg-small-30.jpg);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* Page structure */
.wrapper {
  min-height: var(--wrapper-height);
  display: grid;
  place-items: center;
  margin: 0 1rem;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
/*   max-width: 600px; */
  width: clamp(300px, 100%, 600px);
/*   width: clamp(100%, 100%, 600px); */
  
/*     background-image: url(https://thepeeps-static-5b5e5f.netlify.app/images/avatar.png);
    background-blend-mode: hard-light;
    background-repeat: no-repeat;
    background-size: 100px;
    background-position: 99% 3vh;
    background-color: var(--color-bg); */
}

p,
label,
pre {
  font-size: 1.25rem;
}

/* Title h1 style */
h1 {
  color: var(--color-accent);
  font-family: HK Grotesk;
  font-style: normal;
  font-weight: bold;
  font-size: 64px;
  line-height: 105%;
  margin: 2rem 0 1rem 0;
  text-wrap-style: balance;
}

a {
  color: var(--color-accent);
}

/* Very light scaling for our illustration */
.illo-container {
  display: flex;
  justify-content: flex-end;
}
.illustration {
  max-width: 100%;
  max-height: 150px;
  margin-top: 1rem;
}

/* Styles for our poll form and its results */
.poll-form,
.poll-results {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin-top: 40px;
}
.poll-form button {
  margin-top: 10px;
  background-color: #ffe6f8;
}
.poll-form button:hover {
  cursor: pointer;
  box-shadow: 0 4px 20px var(--color-accent);
}
.poll-form div {
  margin-bottom: 10px;
}
button,
input,
textarea{
  font-family: inherit;
  font-size: 100%;
  background: #FFFFFF;
  border: 1px solid #000000;
  box-sizing: border-box;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  width: 100%;
}
button {
  cursor: pointer;
}
label {
  color: var(--color-primary);
  font-weight: bold;
}

/* Instructions */
.instructions {
  margin: 1rem auto 0;
}
.instructions p {
  font-size: 1rem;
}
h2 {
  color: var(--color-accent);
  font-size: 28px;
}

/* Admin page */
table {
  text-align: left;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.1);
}
td,
th {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  vertical-align: top;
}
p a {
  text-decoration: none;
  font-weight: bold;
}
p.error,
p.error a:link,
p.error a:visited {
  color: var(--color-accent);
}
.results {
  padding-top:10px;
}

.poem {
      white-space: pre-line;
  font-size: 1.25rem;
}

.poem::first-line {
      font-weight: bold;
}

.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

h2 a {
  color: inherit !important;
  text-decoration: underline;
}

ul {
  text-underline-offset: 5px;
}

li {
  margin-bottom: 1em;
}

.monospace {
  font-family: monospace;
  background-color: rgba(0, 0, 0, 0.1);
    padding: 16px;
    border-radius: 8px;
  font-weight: 100;
  line-height: 1.3;
}
span.monospace {
    padding: inherit;
}

@media (max-width: 600px) {
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 22px;
  }
}

/* the poem page */
.poem-title {
}

.poem-title small {
  font-size: 24px;
  display: block;
  margin: -10px 0;
}

.video {
  
}

.video iframe {
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}

@view-transition {
  navigation: auto;
}
