@font-face
{
  font-family: Jost;
  src: url(/assets/fonts/Jost.ttf);
}

@font-face
{
  font-family: JostItalic;
  src: url(/assets/fonts/Jost-Italic.ttf);
}

:root
{
  font-size: 14px;
  --logo-theme: 0, 113, 70;
  --color-theme: 30, 56, 51;
  --color-theme-light: 53, 88, 81;
  --color-theme-lighter: 99, 177, 161;
  --color-theme-dark: 14, 31, 27;
}

*
{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body
{
  color: white;
  background: #222;
  font-family: Jost;
}

main
{
  width: 800px;
  margin: 0 auto;
  background: #333;
  min-height: 100vh;
}

a
{
  color: white;
}

a:visited
{
  color: rgb(var(--color-theme-light));
}

a:active
{
  color: rgb(var(--color-theme-lighter));
}

h1
{
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid white;
}

.full-width
{
  width: 100%;
}

a.no-deco
{
  text-decoration: none !important;
  text-decoration-color: rgba(0, 0, 0, 0);
}

a.no-color
{
  color: white;
}

.quiet
{
  opacity: 0.5;
}

.caption
{
  font-size: 1.1rem;
}

.caption-right
{
  text-align: right;
}

.search-bar-wrap
{
  width: 100%;
  padding: 1rem 2rem;
}

input.search-bar
{
  text-align: center;
  height: 2em;
  font-size: 1.2rem;
  color: #aaa;
  background: none;
  border: none;
  outline: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  width: 100%;
}

input.search-bar:focus
{
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.content
{
  padding: 0 2rem;
}

.drink-header a
{
  text-decoration: none;
  color: white;
}

.drink-header
{
  width: 100%;
  height: 7rem;
  background: rgb(var(--color-theme-light));
  position: relative;
}

.drink-header .logo
{
  position: absolute;
  height: 75%;
  top: 50%;
  transform: translate(1rem, -50%);
}

.drink-header .title
{
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.title-shot
{
  width: 100%;
  object-fit: cover;
  object-position: center 50%;
  aspect-ratio: 100 / 40;
  display: block;
}

h1.drink-name
{
  padding: 0.5rem 1rem;
  background: rgb(var(--color-theme));
  text-align: center;
}

.under-title-shot
{
  width: 100%;
  height: 4px;
  background: rgb(var(--color-theme-dark));
}

.taste-notes-wrap
{
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.taste-notes
{
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  display: flex;
  flex-grow: 1;
  justify-content: center;
}

.taste-item
{
  flex: 1;
}

.taste-item-title
{
  font-weight: 700;
  font-size: 1.3rem;
}

.taste-item-content
{
  font-size: 1.5rem;
}

.center
{
  text-align: center;
}

.steps
{
  list-style-position: inside;
  padding-left: 0;
}

.step::marker
{
  font-size: 1.5rem;
  display: inline-block;
}

.step-row
{
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  padding: 1rem 1rem;
}

.step-row > .horizontal,
.steps-header > .horizontal
{
  display: flex;
  padding: 0.5rem 0;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.step-name
{
  font-weight: bold;
  font-size: 1.5rem;
  flex-basis: 35%;
  flex-grow: 0;
  flex-shrink: 0;
}

.step-content
{
  font-size: 1.3rem;
  flex-grow: 2;
}

.step-content-list
{
  display: flex;
}

.step-content-hlist
{
  text-align: center;
  /* font-weight: bold; */
  align-items: center;
  justify-content: center;
}

.step-content-vlist
{
  flex-direction: column;
  text-align: left;
  align-items: left;
  justify-content: left;
  padding-left: 1.5rem;
}

.step-icon
{
  display: block;
  margin-top: 0.5rem;
  max-width: 100%;
  width: 30%;
}

.step-row > .comment
{
  width: 100%;
  background: rgba(var(--color-theme), 0.6);
  padding: 0.5rem;
  margin-top: 1rem;
  font-size: 1.3rem;
}

.steps
{
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.steps-header
{
  background: #1e3833;
  padding: 0 1rem;
}

.steps-header-content
{
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-header-item
{
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 1.5rem;
}

.step-hlist-item
{
  flex: 1;
}

.step-name > span.subtext
{
  font-size: 1.2rem;
  font-weight: normal;
  display: block;
}

.drink-note
{
  margin: 2rem;
  font-size: 1.3rem;
}

.drink-category
{
  display: grid;
  justify-items: stretch;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem 1rem;
  margin: 1rem 0 2rem 0;
}

.drink-button a
{
  text-decoration: none;
  color: white;
  font-size: 1.7rem;
  text-align: center;
  display: block;
}

.drink-button .drink-thumb-wrap
{
  overflow: hidden;
  max-width: 100%;
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  border: 4px solid rgb(var(--color-theme-dark));
}

.drink-button img.drink-thumb
{
  transition: all 0.15s ease-out;
  width: 170%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: brightness(90%) contrast(107%);
}

.drink-button:hover img.drink-thumb,
.drink-button:active img.drink-thumb
{
  width: 200%;
  filter: brightness(100%) contrast(100%);
}

input[type=checkbox]
{
  width: 1.3rem;
  height: 1.3rem;
}

label.task
{
  font-weight: bold;
  display: block;
  padding: 1rem 1rem;
  font-size: 1.5rem;
}

.dropdown-button
{
  user-select: none;
  text-align: center;
  cursor: pointer;
}

.task .dropdown-button
{
  width: 4rem;
  background: rgba(0, 0, 0, 0.1);
  margin: auto;
}

label.task:has(input:checked)
{
  color: rgba(255, 255, 255, 0.2);
}

.task-label
{
  flex: 1;
  margin-left: 1rem;
}

.task-help
{
  margin-top: 0.5rem;
  border-top: 1px solid currentColor;
  padding-top: 0.5rem;
}

.flex
{
  display: flex;
}

#winner
{
  padding: 3rem;
  color: white;
  margin: auto;
  animation: 2s winner-keyframes infinite;
  font-size: 2rem;
  font-weight: bold;
  max-width: 70vw;
}

#loser
{
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
}

@keyframes winner-keyframes
{
  0%
  {
    background: blue;
  }

  25%
  {
    background: red;
  }

  50%
  {
    background: green;
  }

  75%
  {
    background: yellow;
  }

  100%
  {
    background: blue;
  }
}

/* .funny-button
{
  display: inline-block;
  height: 2.5em;
  padding: 0.7rem 1rem;
  background-color: rgb(67, 132, 218);
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease-in;
}

.funny-button:hover
{
  height: 3em;
  transform: translateY(-0.5em);
} */

@media screen and (prefers-reduced-motion: reduce)
{
  .drink-button img.drink-thumb
  {
    transition: none;
    width: 200%;
  }
}

@media screen and (max-width: 800px)
{
  :root
  {
    font-size: 20px;
  }

  main
  {
    width: 100%;
  }
}
