/* ---- A spicy combination of...

  http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)

and

  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/

-----------------------------------------------------  */


html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
button,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

a {
  color: inherit;
  display: block;
}

textarea {
  resize: none;
}


/* ----- Fonts and styles -------- */


h1,
h2 {
  font-size: 1.5rem;
  font-weight: bold;
}


/* ----- Specific elements -------- */


main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card {
  background-color: var(--color-light);
  width: min(90%, 400px);
  margin: 20px auto;
  padding-block: min(5vw, 50px);
  padding-inline: min(4vw, 30px);
  border: 1px solid var(--color-dark);
  box-shadow: 0 2px 5px rgba(19, 18, 18, 0.2);
}

.card>* {
  margin-inline: auto;
}

.card>*+* {
  margin-top: 1rem;
  width: 95%;
}

.card>h2 {
  text-align: center;
}

.card>img {
  display: block;
  max-height: 200px;
  width: auto;
}

#ingredients {
  column-count: 2;
  column-gap: 1rem;
  list-style: none;
}

#instructions {
  max-width: 50ch;
  padding-left: 15px;
}

#instructions>*+* {
  margin-top: 0.5rem;
}

.card>p {
  text-align: center;
}

.hidden {
  visibility: hidden;
}