/* Our default values set as CSS variables */
:root {
  --color-bg: #e6eafd;
  --color-text-main: #000000;
  --color-primary: #AFECE0;
  --wrapper-height: 95vh;
  --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;
}
.btn--remix img {
  margin-right: 0.5rem;
}
.btn--remix:hover {
  background-color: #D0FFF1;
}

/* Navigation grid */
.footer {
  display: flex;
  justify-content: space-between;
  margin: 1rem auto 0;
  padding: 1rem 0 0.75rem 0;
  width: 100%;
  flex-wrap: wrap;
  border-top: 4px solid #fff;
}

.footer a:not(.btn--remix):link,
a:not(.btn--remix):visited {
  font-family: HK Grotesk;
  font-style: normal;
  font-weight: normal;
  font-size: 1.1rem;
/*   color: #000; */
  text-decoration: none;
  border-style: none;
}
.footer a:hover {
  background: var(--color-primary);
}

.footer .links {
  padding: 0.5rem 1rem 1.5rem 0;
  white-space: nowrap;
}

.divider {
  padding: 0 1rem;
}
/******************************************************************************
END Glitch hello-app default styles
******************************************************************************/

body {
  font-family: HK Grotesk;
  background-color: var(--color-bg);
}

/* Page structure */
.wrapper {
  min-height: var(--wrapper-height);
  display: grid;
/*   place-items: center; */
  margin: auto;
  max-width: 600px;
  align-content: space-between;
}
/* .content {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
} */

p {
  font-size: 1.25rem;
  text-wrap-style: balance;
}

a {
  color: #1f5cff;
  text-decoration: none;
}

/* Title h1 style */
.title {
/*   color: #2800FF; */
  font-family: HK Grotesk;
/*   font-style: normal; */
/*   font-weight: bold; */
/*   font-size: 40px; */
  line-height: 1.6;
  margin: 0;
  text-wrap: balance;
}

h1.page-title {
  font-size: 1.25rem;
  text-wrap: pretty;
}


.films-list {
  list-style: none;
  
  & li {
    margin: 1em 0;
  }
  
  & a {
    color: #333333;
    text-decoration: none;
    
    &:hover {
      text-decoration: underline;
    }
  }
}

.time {
  margin-left: 0.2em;
  opacity: 0.5;
  color: #2800FF;
  &::before {
    content: "... ";
  opacity: 0.5;
  }
}

footer {
  border-top: 1px solid #a1baff;
  margin-top: 40px;
  
  & a {
    color: #1f5cff;
    text-decoration: none;
    
    &:hover {
      text-decoration: underline;
    }
  }
}

footer p {
  font-size: 0.9em;
}

/* .films-list {
  
  & .film {
    display: grid;
    grid-template-columns: 1fr 3fr;
    
    & .image {
      
    }
    
    & .title {
      
    }
  }
} */

.film {
  margin: 1em 0;
  
  & .title {
    
    & a {
/*       font-size: 50px; */
      color: inherit;
      text-decoration: none;
    }
  }
  
  & .avatar {
    height: 1.2em;
    border-radius: 100%;
    vertical-align: middle;
/*     margin-right: 5px; */
  }
}

.hidden {
  display: none;
}

/* .htmx-request {
    display: block;
} */

#success {
    a {
        color: inherit;
    }
}

header p {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5em;
}