/* Modern CSS Reset by Andy Bell */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  /* min-height: 100vh; */
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 3ex;
}
/* END Modern CSS Reset*/

/* Global variables. */
:root,
::backdrop {
  /* Set sans-serif & mono fonts */
  --sans-font: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif;
  --mono-font: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;

  /* Default (light) theme */
  --bg: #fefefa;
  --accent-bg: #e5e5e5;
  --text: #212121;
  --text-light: #585858;
  --border: #898ea4;
  --accent: #39A78D;
  --code: #d81b60;
  --preformatted: #444;
  --marked: #ffdd33;
  --disabled: #efefef;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root,
  ::backdrop {
    color-scheme: dark;
    --bg: #212121;
    --accent-bg: #343434;
    --text: #dcdcdc;
    --text-light: #ababab;
    --accent: #c1e1d1;
    --code: #f06292;
    --preformatted: #ccc;
    --disabled: #111;
    --rss: #f28500;
    --mastodon: #858afa;
  }
  /* Add a bit of transparency so light media isn't so glaring in dark mode */
  img, iframe {
    opacity: 0.8;
  }
}

/* Typography */
body {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
}

p {
  margin-block-start: 1.5rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.6rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.44rem;
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 0.96rem;
}

/* Reduce header size on mobile */
@media only screen and (max-width: 720px) {
h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.1rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}
}

ul, ol {
padding-left: 2.5rem;
}

ul ul, ol ol, ol ul, ul ol {
padding-left: 1.5rem;
}

/* Links */
a {
  color: var(--accent);
  text-decoration-color: var(--accent);
  transition: all 0.3s ease-in-out;
}

a:hover {
  text-decoration-color: transparent;
}

a:has(> em) {
  text-decoration-style: dotted;
}

/* Layout */
html {
  /* Set the font globally */
  font-family: var(--sans-font);
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-columns: 1fr min(50rem, 90%) 1fr;
}

body > * {
  grid-column: 2;
  width: fit-content;
  justify-self: center;
}

/* Form */
main > form {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  max-width: 400px;
  margin-block-start: 2rem;
  margin-inline: auto;
}

main > form > input {
  border: 2px solid transparent;
  background-color: var(--accent-bg);
  padding: 0.35rem 0.55rem 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
}

main > form > input:focus {
  outline: none;
  border-color: var(--border);
}

main > form > button {
  border: 2px solid transparent;
  padding: 0.3rem 0.55rem 0.3rem 0.5rem;
  border-radius: 4px;
  color: var(--bg);
  background-color: var(--border);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

main > form > button:hover {
  background-color: var(--text);
}

/* Home */
.home > main > div.atividades {
  margin-block-start: 1.8rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem 1rem;
}
.home > main > div.atividades > a  {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background-color: var(--accent);
  color: var(--bg);
  font-weight: bold;
  font-size: 1.3rem;
  text-decoration: none;
}

.home > main > div.atividades > a:hover  {
  background-color: var(--text);
}

/* Encontro */
ul.certificados {
  padding: 0;
}

ul.certificados > li {
  display: flex;
  margin-block-start: 2rem;
}

ul.certificados > li > span {
  flex-grow: 2;
  align-content: center;
  background-color: var(--accent-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px 0 0 4px;
  max-width: 600px;
}

ul.certificados > li > a {
  text-decoration: none;
  align-content: center;
  color: var(--bg);
  background-color: var(--border);
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s ease-in-out;
}

ul.certificados > li > a:hover {
  background-color: var(--text);
}