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

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,
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%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1.7;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* -- Colors -- */

:root {
  --bg: hsl(240, 100%, 95%);
  --bg2: hsl(220, 100%, 80%);
  --text-dark: hsl(0, 0%, 10%);
  --text-light: hsl(0, 0%, 90%);
  --navy: hsl(240, 100%, 25%);
  --gold: hsl(45, 65%, 50%);
}

/* -- Header -- */

header {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  row-gap: 20px;
  background-color: var(--bg2);
  border-bottom: 3px solid var(--navy);
}

h1 {
  font-size: 40px;
  padding: 0px 20px;
  border-radius: 50px;
  background-color: var(--navy);
  color: var(--text-light);
  text-shadow: 3px 3px 3px var(--text-dark);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  gap: 5px;
  background-color: var(--navy);
  color: var(--bg);
  border-radius: 30px;
  box-shadow: 0px 0px 8px var(--navy);
  text-shadow: 3px 3px 3px var(--text-dark);
  font-size: x-large;
}

nav a {
  display: flex;
  padding: 0px 12px;
  border-radius: 30px;
  color: var(--text-light);
  transition: 0.2s;
  text-decoration: none;
}

nav a:hover,
#current-page {
  background-color: var(--gold);
  text-shadow: 2px 2px 4px var(--text-dark);
}

/* -- Main -- */

body {
  background-color: var(--bg);
  color: var(--text-dark);
  font-size: large;
  font-family: "Poppins", Tahoma, sans-serif;
}

main {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: top;
  max-width: 1000px;
  min-height: 69vh;
  margin: 0 auto;
  padding: 30px;
  gap: 20px;
  row-gap: 20px;
}

section {
  width: 740px;
  grid-row: 1 / span 2;
}

card {
  display: flex;
  width: fit-content;
  height: fit-content;
  padding: 20px;
  gap: 20px;
  background-color: var(--bg2);
  border-radius: 30px;
  box-shadow: 3px 3px 5px var(--navy);
}

.aside {
  grid-column: 2;
}

img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 3px 3px 5px var(--navy);
}

.grid {
  display: grid;
  justify-content: center;
  grid-template-columns: auto auto auto auto auto;
  gap: 20px;
}

#main-img {
  justify-items: center;
  align-items: center;
  width: 40%;
}

#main-img img {
  width: 100%;
}

/* -- Footer -- */

footer {
  bottom: 0;
  left: 0;
  right: 0;
  font-size: medium;
  padding: 15px;
  text-align: center;
}
