@import url('https://fonts.googleapis.com/css2?family=Dongle:wght@300;400;700&display=swap');

:root {
  --grey: #767676;
  --green: #3f7a17;
  --dark-green: #395c1d;
  --ultra-dark-green: #192210;
  --pink: #eb0058;
  --dark-pink: #960038;
  --red: #eb0058; /* needs Updating */
  --dark-red: #960038; /* needs Updating */
  --blue: #0000E0;
  --dark-blue: #007296;
  --background-blue: #F3F3FF;
  --white: white;
  --logo-size: 100px;
  --card-border: rgba(60, 80, 255, 0.25);
}

html {
    height: 100%;
}

body {
    /* Body copy runs in the fallback sans the rest of the site was measured
       against. Dongle is kept for headings and the nav pills - see the
       "Dongle" block below for why the two can't share a size. */
    font-family: sans-serif;
    font-size: 1.0625rem;
    height: calc(100% - 1em);
    margin: 0px;
    padding: 0px;
    background-color: var(--background-blue);
    color: #000020;
    overflow-x: hidden;
    /* Containing block for the off-stage cookie monster, so it is measured
       against the page rather than the viewport and gets clipped. */
    position: relative;
}

/* Dongle: headings and the nav pills only.

   It is a display face with a small x-height, so at a given pixel size it
   reads roughly 1.6x smaller than an ordinary sans - 16px of Dongle sits
   about level with 10px of the fallback. Every size here is therefore set
   explicitly rather than inherited from body copy, and the nav's mobile
   sizes further down are scaled to match. Body text deliberately stays on
   the fallback: at the sizes paragraphs need, Dongle is hard to read.

   The dropdown lists inside .pill-nav are excluded on purpose (hence the
   child combinators) - they are dense lists of post titles that read
   better in the body face. */
h1, h2, h3, h4, h5, h6,
.pill-nav > a,
.pill-nav > .menu-dropdown > a,
.card-links a {
    font-family: 'Dongle', sans-serif;
    line-height: 1.15;
}

h1 { font-size: 3.3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.95rem; }
h4 { font-size: 1.65rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.15rem; }

/* The browser's default heading margins are in em, so they scale with the
   font-size - and these sizes are inflated to compensate for Dongle's small
   glyphs, not because the heading looks that big. Left alone, that leaves a
   heading floating further from its own paragraph than from the one above. */
h1, h2, h3, h4, h5, h6 {
    margin: 0.55em 0 0.2em;
}

.skip-link {
    position: absolute;
    top: -3rem;
    left: 0.5rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--blue);
    color: var(--white);
    border-radius: 6px;
    transition: top 150ms ease;
}

.skip-link:focus {
    top: 0.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Select Styles */
*::selection  {
    background: var(--red);
    color: var(--white);
}

a {
    color: var(--blue);
}

a:hover {
    text-decoration: none;
    color: var(--white);
    background: var(--blue);  
}

.ext-link{
    fill: currentColor;
    height: 12px;
    width: 12px;
}

abbr {
    text-decoration: underline;
    text-decoration-style: dashed;
}

abbr:hover {
    text-decoration: none;
    background: var(--blue);
    color: var(--white);
    cursor: help;
}

ul {
    margin-top: -0.6rem;
}
li {
    padding-bottom: 0.7rem;
}

/* Style for text */
.green-text {
    color: var(--green);
}
.dark-green-text {
    color: var(--dark-green);
}
.ultra-dark-green-text {
    color: var(--ultra-dark-green);
}
.pink-text {
    color: var(--pink);
}
.dark-pink-text {
    color: var(--dark-pink);
}
.blue-text {
    color: var(--blue);
}
.dark-blue-text {
    color: var(--dark-blue);
}
.white-text {
    color: var(--white);
}

/* Style for Background */
.green-bg {
    background-color: var(--green);
}
.dark-green-bg {
    background-color: var(--dark-green);
}
.ultra-dark-green-bg {
    background-color: var(--ultra-dark-green);
}
.pink-bg {
    background-color: var(--pink);
}
.dark-pink-bg {
    background-color: var(--dark-pink);
}
.blue-bg {
    background-color: var(--blue);
}
.dark-blue-bg {
    background-color: var(--dark-blue);
}
.white-bg {
    background-color: var(--white);
}

/* Style for helper classes */
.container {
    width: 80%;
    margin: 10px auto;
}
.thin-container {
    width: 70%;
    max-width: 1000px;
    margin: 10px auto;
}

.center-text{
  text-align: center;
}

.post-card-list {
    margin: 1.5rem 0 2rem;
}

.post-card {
    margin: 1rem 0;
}

.post-card__link {
    display: block;
    padding: 1.25rem;
    border-radius: 18px;
    border: 2px solid var(--card-border);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.post-card__link:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-border) 60%, blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: white;
    color: inherit;
}

.post-card__link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--card-border) 92%, blue);
    outline-offset: 4px;
}

.post-card__title {
    margin: 0 0 0.5rem 0;
    font-size: 1.95rem;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.post-card__read {
    display: inline-flex;
    margin: 0;
}

.post-card__read[hidden] {
    display: none;
}

.tag--read {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(0, 0, 224, 0.06);
}

.post-card.is-read .post-card__link {
    opacity: 0.62;
}

.post-card.is-read .post-card__link:hover {
    opacity: 0.85;
}

.post-card__meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-card__dates {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: baseline;
}

.dot {
    opacity: 0.6;
}

.muted {
    opacity: 0.75;
}

.badge {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 2px solid var(--dark-green);
    background: rgba(60, 80, 255, 0.08);
    font-size: 0.85rem;
    white-space: nowrap;
}

.post-card__summary {
    margin: 0.75rem 0 1rem 0;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__footer {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tags {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    color: var(--dark-green);
    border: 2px solid var(--dark-green);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    opacity: 0.95;
}

.reviews-toggle {
    text-align: right;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.reviews-toggle .dot {
    margin: 0 0.4rem;
    opacity: 0.5;
}

/* Link-blog cards are deliberately shorter than post or review cards -
   a run of them shouldn't crowd out the actual writing on /blog. */
.link-card__link {
    padding: 0.9rem 1.25rem;
}

.link-card__note {
    margin-bottom: 0.6rem;
}

.link-post-target {
    word-break: break-word;
}

.feed-links {
    font-size: 0.85rem;
    opacity: 0.85;
    margin: 1.5rem 0 0.5rem;
    padding-top: 1rem;
}

.reviews-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 0.5rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.reviews-footer-links a:hover {
    opacity: 1;
}

.review-card__link {
    padding: 1rem 1.25rem;
}

.review-card__body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.review-card__cover {
    width: 70px;
    height: 105px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--card-border);
    flex-shrink: 0;
    background: var(--background-blue);
}

.review-card__content {
    min-width: 0;
    flex: 1;
}

.review-card__rating {
    margin: 0 0 0.4rem;
    color: var(--dark-green);
    letter-spacing: 1px;
}

.review-card__badge {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.uses-card__cover {
    width: 92px;
    height: 92px;
}

.uses-card__note {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

.uses-card__cover--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-green);
    opacity: 0.6;
}

.reading-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.reading-columns--single {
    grid-template-columns: 1fr;
}

@media (max-width: 700px) {
    .reading-columns {
        grid-template-columns: 1fr;
    }
}

.currently-reading-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 18px;
    border: 2px solid var(--card-border);
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.currently-reading-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-border) 60%, blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: white;
    color: inherit;
}

.currently-reading-card__cover {
    width: 70px;
    height: 105px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--card-border);
    flex-shrink: 0;
    background: var(--background-blue);
}

.currently-reading-card__content {
    min-width: 0;
    flex: 1;
}

.currently-reading-card__badge {
    display: inline-block;
    margin-bottom: 0.4rem;
}

.currently-reading-card__title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: bold;
}

.currently-reading-card__author {
    margin: 0.2rem 0 0;
    opacity: 0.85;
}

.currently-reading-card__progress-track {
    margin-top: 0.6rem;
    height: 8px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--background-blue);
    overflow: hidden;
}

.currently-reading-card__progress-fill {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: var(--dark-green);
}

.currently-reading-card__progress-text {
    margin: 0.2rem 0 0;
    opacity: 0.85;
}

/* Style for the pill style menu */
.pill-nav {
  text-align: center;
  margin: 3px;
  padding-top: 10px;
}

.pill-nav a, .card-links a {
  background-color: var(--background-blue);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--blue);
  fill: currentColor;
  text-align: center;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 1.95rem;
  border-radius: 100px;
  border: 1px solid var(--blue);
  margin: 3px;
  transition: background-color 400ms ease-in-out 100ms, color 400ms ease-in-out 100ms;
}

.menu-dropdown {
  display: inline-flex;
  position: relative;
}

.menu-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.menu-dropdown-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  background-color: var(--white);
  border: 1px solid var(--blue);
  border-radius: 18px;
  padding: 12px 6px 6px;
  min-width: 230px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 150ms ease,
    visibility 0s linear 300ms;
}

.menu-dropdown:hover .menu-dropdown-content,
.menu-dropdown:focus-within .menu-dropdown-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.menu-dropdown-content a {
  background-color: var(--white);
  display: block;
  text-align: left;
  border: none;
  margin: 0;
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 12px;
  text-decoration: underline;
}

.menu-dropdown-content a:hover {
  background-color: var(--blue);
  color: var(--white);
  text-decoration: none;
}

.menu-dropdown-content {
  border-top: 1px solid var(--blue);
  margin-top: 4px;
  padding-top: 10px;
  font-size: 15px;
}

.menu-dropdown-empty {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--grey);
}

.unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--dark-red);
}

.unread-dot[hidden] {
  display: none;
}

.pill-nav a.active, .card-links a.active {
  background-color: var(--blue);
  color: var(--white);
}

.pill-nav a:hover, .card-links a:hover {
  background-color: var(--blue);
  color: var(--white);
}

.pill-nav a svg, .pill-nav a img {
    display: inline;
   /*
   display: inline-flex;
    align-items: center;
    justify-content: center; */
    height:20px;
    width: auto;
    margin-right: 5px;
}

.easter-egg-wrap {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.menu-image-wrap {
    height: 50px;
    width: 50px;
    margin-right: 7px;
    margin-top: -3px;
}

.top-logo-image-wrap {
    display: block;
    height: var(--logo-size);
    width: var(--logo-size);
    margin-left: auto;
    margin-right: auto;
}

.menu-image {
    height: 50px;
    width: 50px;
    border-radius: 100px;
    border: 1px solid var(--blue);
}

.easter-egg-image {
    display: block;
    transform-origin: center;
    transform: rotate(-360deg);
    transition: transform 2.8s ease-out, opacity 0.6s ease;
}

.easter-egg-wrap::before,
.easter-egg-wrap::after {
    content: "";
    position: absolute;
    inset: -8%;
    border-radius: 45% 55% 48% 52%;
    opacity: 0;
    transform: scale(0.1) rotate(0deg);
    pointer-events: none;
}

.easter-egg-wrap::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 65, 75, 0.95) 0 16%, transparent 17%),
        radial-gradient(circle at 78% 25%, rgba(255, 150, 80, 0.9) 0 18%, transparent 19%),
        radial-gradient(circle at 32% 78%, rgba(255, 255, 255, 0.7) 0 12%, transparent 13%),
        radial-gradient(circle at 70% 70%, rgba(210, 70, 255, 0.85) 0 20%, transparent 21%),
        radial-gradient(circle at 50% 55%, rgba(255, 70, 160, 0.95) 0 50%, rgba(255, 70, 160, 0.98) 51% 100%);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}

.easter-egg-wrap::after {
    background:
        radial-gradient(circle at 55% 20%, rgba(255, 210, 90, 0.85) 0 14%, transparent 15%),
        radial-gradient(circle at 20% 60%, rgba(80, 210, 255, 0.7) 0 12%, transparent 13%),
        radial-gradient(circle at 85% 55%, rgba(130, 100, 255, 0.8) 0 14%, transparent 15%),
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.6) 0 18%, transparent 19%);
    mix-blend-mode: screen;
}

.easter-egg-wrap:hover .easter-egg-image {
    animation: menu-face-spin 0.9s linear infinite, menu-face-fade 0.35s ease forwards;
    animation-delay: 0s, 5s;
    transition: transform 0.1s linear, opacity 0.1s linear;
}

.easter-egg-wrap:hover::before,
.easter-egg-wrap:hover::after {
    animation: menu-splat 0.7s ease forwards;
    animation-delay: 5s;
}

@keyframes menu-face-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes menu-face-fade {
    to {
        opacity: 0;
    }
}

@keyframes menu-splat {
    0% {
        opacity: 0;
        transform: scale(0.1) rotate(0deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.2) rotate(28deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(-18deg);
    }
}

.top-image {
    background-image: url("index-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    margin: 0px;
    margin-bottom: calc(var(--logo-size)/2);
    height: 50%;
    width: 100%;
}

.top-logo {
    width: 100%;
    position: absolute;
    bottom: calc(0px - var(--logo-size) / 2);
}

.top-logo .easter-egg-image {
    height: var(--logo-size);
    width: var(--logo-size);
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    border: 1px solid var(--blue);
}

.top-text {
    width: 100%;
    position: absolute;
    text-align: center;
    top:  10%;
}
.top-text h1, .top-text h2 {
    margin: 0px;
    padding: 5px;
    text-shadow: 0 0 1px black, 2px 2px 4px var(--dark-blue);
}

/* Footer Classes */
.icon-bar a{
    display: inline-block;
    width: 25px; 
    height: 25px;
    margin: 1px;
    padding: 10px;
    fill: currentColor;
    border: 1px solid var(--blue);
    border-radius: 100px;
    transition: color 200ms ease-in-out, background-color 200ms ease-in-out, border-color 200ms ease-in-out;
}

.icon-bar a:hover {
    cursor: pointer;
    color: var(--white);
    background-color: var(--blue);
    fill: currentColor; 
}

.icon {
    width: 25px; 
    height: 25px;
    fill: currentColor;    
}

.footer-text {
    margin-top: 3px;
    padding-bottom: 8px;

}

.footer-links,
.footer-copyright {
    margin: 0.25rem 0;
}

.cookie-link {
  display: inline;
}

.cookie-link:after {
  color: var(--grey);
  text-decoration: underline;
  content:'Cookie Policy';
}

.cookie-link:hover:after {
  background-color: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 3px;
  content:'Cookie Story';
}

.cookie-cursor, .cookie-link:hover {
    cursor: url(cookie_cusor.png) 20 40, auto;
}

/* The monster is parked off the right-hand edge and slides in when the cookie
   link is hovered. It sits in a fixed-size stage that clips it while parked:
   hanging it off the page with `right: -200px` instead made the document 200px
   wider than the viewport, and body's overflow-x propagates to the viewport, so
   body itself never clipped it. */
.cookie-monsters-stage {
  position: absolute;
  right: 0;
  bottom: 400px;
  width: 200px;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}

.cookie-monsters {
  display: block;
  width: 200px;
  transform: translate3d(200px, 0, 0);
  transition: transform 1.2s ease 0.1s;
}

.cookie-link:hover + .cookie-monsters-stage .cookie-monsters {
  transform: translate3d(0, 0, 0);
}


/* Style for mobile sizes */
@media (max-width: 750px) {
    .pill-nav a {
        font-size: 1.45rem;
        padding: 5px 10px;
        margin: 2px;
    }
    .container, .thin-container {
        width: 90%;
    }
    .pill-nav a svg, .pill-nav a img {
        display: none;
    }
}
@media (max-width: 480px) {
    .pill-nav a {
        font-size: 1.2rem;
        padding: 2px 4px;
        margin: 2px -1px;
    }
    .container, .thin-container {
        width: 100%;
        padding: 0px 3px;
    }
    .top-image {
        height: 25%;
    }
    .top-text {
        top:  5%;
    }
    .top-text h1, .top-text h2 {
        padding: 2px;
        font-size: 1.6rem;
    }
    :root {
      --logo-size: 50px;
    }
}

/*Cards classes, gallery etc.. */
.card {
    text-align: center;
    border-radius: 0.25rem;
    margin: 0.25rem;
    border: 2px solid var(--card-border);
    flex: 0 0 auto;
    background-color: var(--white);
    /* Column layout so .card-links can be pushed to the bottom of the card.
       Cards in a row already stretch to a common height, so that lands every
       card's buttons on the same line however long its description runs. */
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    /* Never squashed to make room for a long description. */
    flex-shrink: 0;
    /* Fix the ratio and crop to it, so a project whose screenshot is a
       different shape doesn't make its card taller than the others. */
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
    border-bottom: 2px solid var(--card-border);
}

.card-text, .card-links, .card-title {
margin: 0.30rem;
}

/* After the shorthand above, which would otherwise reset the top margin:
   takes up the slack in the card's column so the buttons sit on the bottom
   edge and line up across the row, whatever length the description runs to. */
.card-links {
    margin-top: auto;
}

.card-title {
    font-size: 2.4rem;
}

.card-tags {
    color: var(--grey);
    font-size: 90%;
    margin: 0.15rem;
}

.card-links a {
    margin: 0.25rem;
    margin-left: auto;
    margin-right: auto;
}
.card-links a svg{
    height: 15px;
    width: 15px;
    margin-left: 5px;
}

.row {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}
.larger-text {
    font-size: 120%;
}
.italic {
    font-size: 95%;
    font-style: italic;
}
.project-image {
    height: 50%;
    width: 100%;
    border-bottom: 1px solid var(--blue);
    overflow: hidden;
    position: relative;
    margin: 0px;
}

.project-image img{
    /* Fill the banner rather than sitting at the image's natural size and
       being nudged up by a fixed percentage - that left a gap beside any
       image narrower than the page. */
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

blockquote {
  border-left: 5px solid var(--blue);
  padding-left: 5px;
}

blockquote:before {
    display: block;
    height: 0;
    content: "“";
    margin-left: -0.95em;
    font: italic 400%/1 Cochin,Georgia,"Times New Roman", serif;
    color: var(--blue);
}


/* Style for the gallery. Class rather than id, so a page can carry more
   than one gallery block - the id on the first block is only there as a
   link target for the old /morgan/gallery.php redirect. */
.gallery {
    text-align: center;
}

.thumbnail {
margin:5px;
padding:5px;
display:inline-block;
background-color: var(--white);
box-shadow: 3px 5px 10px grey;
}

.thumbnail:hover {
box-shadow: 5px 7px 11px grey;
}

.thumbnail > a:hover{
 text-decoration: underline;
 background: transparent;
 cursor: zoom-in;
}

.thumbnail > p {
margin:0;
padding:0;
text-align: center;
}

.thumbnail > a > img{
    border: 1px solid black;
    /* Pin the displayed size and crop to it. A thumbnail that has not been
       cached yet falls back to the full-size photo (see gallery.php), and
       without this that photo lands at its natural size and the card is
       enormous. Matches GALLERY_THUMB_SIZE so cached and uncached galleries
       lay out identically. */
    display: block;
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
}

.close, .close:hover {
width: 100%;
float:right;
text-align: right;
color: var(--green);
margin: 10px;
}

.lightbox, .lightbox:hover {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  cursor: zoom-out;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.3s linear;
}

.lightbox p,.lightbox p:hover {
    color: var(--white);
}

.lightbox img {
  /** Pad the lightbox image */
  padding:5px;
  max-width: 90%;
  max-height: 80%;
  margin-top: 2%;
background-color: var(--white);
box-shadow: 2px 4px 8px grey;
}


.lightbox:target {
  /** Show lightbox when it is target */
  display: block;
  /** Remove default browser outline style */
  outline: none;
  visibility: visible;
  opacity: 1;
}







.imessage {
  background-color: #fff;
  border: 1px solid #e5e5ea;
  border-radius: 0.25rem;
  display: flex;
  flex-direction: column;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  max-width: 800px;
  padding: 0.5rem 1.5rem;
}

.imessage p {
  border-radius: 1.15rem;
  line-height: 1.25;
  max-width: 75%;
  padding: 0.5rem .875rem;
  position: relative;
  word-wrap: break-word;
}

.imessage p::before,
.imessage p::after {
  bottom: -0.1rem;
  content: "";
  height: 1rem;
  position: absolute;
}

p.from-me {
  align-self: flex-end;
  background-color: #1a6fd1;
  color: #fff;
}

p.from-me::before {
  border-bottom-left-radius: 0.8rem 0.7rem;
  border-right: 1rem solid #1a6fd1;
  right: -0.35rem;
  transform: translate(0, -0.1rem);
}

p.from-me::after {
  background-color: #fff;
  border-bottom-left-radius: 0.5rem;
  right: -40px;
  transform:translate(-30px, -2px);
  width: 10px;
}

p[class^="from-"] {
  margin: 0.5rem 0;
  width: fit-content;
}

p.from-me ~ p.from-me {
  margin: 0.25rem 0 0;
}

p.from-me ~ p.from-me:not(:last-child) {
  margin: 0.25rem 0 0;
}

p.from-me ~ p.from-me:last-child {
  margin-bottom: 0.5rem;
}

p.from-them {
  align-items: flex-start;
  background-color: #e5e5ea;
  color: #000;
}

p.from-them:before {
  border-bottom-right-radius: 0.8rem 0.7rem;
  border-left: 1rem solid #e5e5ea;
  left: -0.35rem;
  transform: translate(0, -0.1rem);
}

p.from-them::after {
  background-color: #fff;
  border-bottom-right-radius: 0.5rem;
  left: 20px;
  transform: translate(-30px, -2px);
  width: 10px;
}

p[class^="from-"].emoji {
  background: none;
  font-size: 2.5rem;
}

p[class^="from-"].emoji::before {
  content: none;
}

.no-tail::before {
  display: none;
}

.margin-b_none {
  margin-bottom: 0 !important;
}

.margin-b_one {
  margin-bottom: 1rem !important;
}

.margin-t_one {
  margin-top: 1rem !important;
}
