:root {
  --bg-color: #fff;
  --bg-second: #efeff3;
  --primary: #000;
  --secondary: blue;
  --tertiary: greenyellow;
}

* {
  font-family: monospace;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-color);
  color: var(--primary);
}

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

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

header {
  width: 75%;
}

h1 {
  text-align: center;
  margin-top: 1rem;
}

h3 {
  font-weight: lighter;
  text-align: right;
  margin-bottom: 1.2rem;
}

i {
  font-weight: bold;
}

main {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.7rem;
  width: 100%;
}

section {
  border: 2px solid var(--secondary);
  margin-inline: 1rem;
  border-radius: 4px;
  width: 75%;
  padding: 0.7rem 1rem;
}

h2 {
  margin-bottom: 0.4rem;
}

ul {
  list-style-type: circle;
  list-style-position: inside;
}

img {
  margin-block: 0.8rem;
  width: 100%;
}

details {
  margin-block: 0.4rem;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  background-color: var(--bg-second);
  cursor: pointer;
}

summary > a {
  background: linear-gradient(to right, var(--bg-second) 100%, var(--tertiary) 0%) right;
}

a {
  background: linear-gradient(to right, var(--bg-color) 100%, var(--tertiary) 0%) right;
  transition:all 325ms ease-out;
  cursor: pointer;
}

a:hover {
  background: linear-gradient(to left, var(--bg-color) 50%, var(--tertiary) 50%) right;
  background-size: 200%;
  background-position: left;
}

summary > a:hover {
  background: linear-gradient(to left, var(--bg-second) 50%, var(--tertiary) 50%) right;
  background-size: 200%;
  background-position: left;
}

footer {
  margin-block: 6px;
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

nav {
  width: 100%;
  padding-top: 3px;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}