/******************************************************************************
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: #fffae0;
  --color-text-main: #000000;
  --color-primary: #000000;
  --wrapper-height: 85vh;
  --image-max-width: 320px;
  --font-family: "Redaction";
  --font-family-header: "Redaction";
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

/* Import fonts */

@font-face {
  font-family: Redaction;
  src: url("https://cdn.glitch.global/11458250-86c7-4743-a07a-4ad60f6bc115/Redaction_10-Regular.woff2")
    format("woff2");
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: Redaction;
  src: url("https://cdn.glitch.global/11458250-86c7-4743-a07a-4ad60f6bc115/Redaction_35-Bold.woff2")
    format("woff2");
  font-weight: bold;
  font-display: swap;
}

@font-face {
  font-family: Redaction;
  src: url("https://cdn.glitch.global/11458250-86c7-4743-a07a-4ad60f6bc115/Redaction_20-Italic.woff2")
    format("woff2");
  font-display: swap;
  font-weight: normal;
  font-style: italic;
}

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

/* Navigation grid */
.nav {
  font-family: Redaction, serif;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  margin: 0 2rem 6rem;
  padding: 1rem 0 0.75rem 0;
  width: calc(min(20%, 14rem));
  flex-wrap: wrap;

  a:hover {
    font-family: Redaction, serif;
    font-weight: bold;
    color: #000000;
    text-decoration: underline;
    border-style: none;
  }

  .links {
    padding: 0.5rem 1rem 1.5rem;
    line-height: 1.5;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    max-height: 10rem;
    column-gap: 2rem;
  }
}

/* Typography */
p {
  margin: 0 0 1rem 0;
  line-height: 1.4;
  font-size: 1.2rem;
}
h1,
h2,
h3,
h4,
h5 {
  margin: 2rem 0 0.8rem;
  font-family: var(--font-family-header);
  line-height: 1.1;
  color: var(--color-text-main);
}
h1 {
  margin: 0;
  padding: 0 0 0.5rem;
  font-weight: bold;
  font-size: 2.4rem;
  display: inline-flex;
}
h2 {
  font-size: 4rem;
}
h3 {
  font-size: 2rem;
  font-style: normal;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
small,
.text_small {
  font-size: 0.8rem;
}
ul > li,
ol > li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  font-size: 1rem;
}
ul {
  padding: 0 0 0 18px;
  margin: 0;
}
ul.no-bullet {
  list-style-type: none;
}
code {
  font-size: 1rem;
}
time {
  margin-bottom: 0.5rem;
  font-family: monospace;
  margin-bottom: 1.75rem;
  background: black;
  color: #fffae0;
  display: inline-block;
  padding: 0.1rem 0.8rem;
  align-self: start;
  flex-shrink: 0;
}
summary {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Page structure */
main {
  display: flex;
  flex-direction: column-reverse;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  margin: 0;
}

.wrapper {
  min-height: var(--wrapper-height);
  place-items: center;
  margin: 3rem 2rem 0;
}

.content {
  display: flex;
  flex-direction: column;
  max-width: 32rem;
  margin-top: 0.5rem;
  margin-bottom: 4rem;
  
    img {
    width: 100%;
  }
  a{text-decoration:underline;}
    a:hover{text-decoration:none;}
}

header {
  padding: 1rem;
  padding-left: 2rem;
  width: 40%;
  height: 14rem;
  display: flex;
  align-items: center;
  justify-content: center;

  h1 {
    font-style: italic;
  }
}

/* Title style adjustments */
.title-lg {
  color: var(--color-text-main);
  font-family: Redaction, serif;
  font-style: normal;
  font-weight: bold;
  line-height: 1.5;
}
.title-md {
  font-size: 56px;
}

/* Layout: Home */
.home {
  justify-content: left;
}
.illo-container {
  display: flex;
  justify-content: flex-end;
}
.illustration {
  max-width: 180px;
  max-height: var(--image-max-width);
  margin-top: 1rem;
  margin-right: 2rem;
  transform: rotate(16deg);
}

/* Post */
.post {
  place-items: normal;
}
.postTitle {
  font-size: 4rem;
  color: #000000;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.controls {
  margin: 3rem 0 2rem;
}

.gradient-feature-top {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 7rem;
  background: linear-gradient(
    to top left,
    #ffcba6 25%,
    #b2d5db 54%,
    #b2c0e1 75%
  );
}
.gradient-feature-bottom {
  position: absolute;
  right: 0;
  top: 7rem;
  width: 60%;
  height: 7rem;
  background: linear-gradient(
    to bottom left,
    #ffcba6 25%,
    #b2d5db 54%,
    #b2c0e1 75%
  );
}

.gradient-bg-left {
  z-index: -1;
  position: fixed;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to top left,
    #ffcba6 25%,
    #b2d5db 54%,
    #b2c0e1 75%
  );
}

.gradient-bg-right {
  z-index: -1;
  position: fixed;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to top right,
    #ffcba6 25%,
    #b2d5db 54%,
    #b2c0e1 75%
  );
}



.document {
  position: relative;
  display: grid;
  grid-template-columns: auto;
  padding: 0 0 0 0.6rem;
  


  header {
    padding-left: 0;
    justify-content: start;
    height: 100%;
    width: 30%;
    z-index: 1;

    h1 {
      margin-top: 1rem;
      margin-bottom: -2.4rem;
    }
  }

  main {
    margin: 0 0 0 0.4rem;
    background: #fffae0;
    overflow: hidden;
    box-shadow: 0 0 2px rgba(255, 250, 225, 1);
  }

  main pre {
    overflow-x: scroll;
    overflow-y: visible;
  }

  .nav {
    order: 1;
    margin: 5rem 0 7rem;

    .links {
      padding: 0;
      max-height: 100%;
    }
  }

  .wrapper {
    min-height: var(--wrapper-height);
    place-items: center;
    margin: 1rem 1rem 0;
    overflow-y: scroll;
  }
}

@media (min-width: 600px) {
  main {
    flex-direction: row;
  }

  .nav {
    flex-shrink: 1;
    max-width: 14rem;
    min-width: 10rem;
  }

  .document {
    grid-template-columns: 180px auto;
    grid-template-rows: auto 1fr;
    height: 100vh;

    header {
      margin-top: 50%;

      h1 {
        z-index: 1;
        margin-bottom: 2rem;
      }
    }

    main {
      width: min(34rem, 100%);
      margin: 1rem auto;
      grid-column-start: 2;
      grid-row-start: 1;
      grid-row-end: 3;
    }

    .nav {
      margin: 0;
      order: 0;
      grid-column-start: 1;
      grid-row-start: 2;
    }
  }

  .nav .links {
    max-height: 100%;
  }
}


@media (min-width: 1200px) {
  .content {
    position: relative;
    
    img {
      position: absolute;
      left: 105%;
      top: -20%;
      width: min(512px, calc(100vw - 512px - 24rem));
      object-fit: cover;
      height: 341px;
    }
  }
}