@import url("colors.css");

* {
    font-size: 1rem;
}

body {
    min-width: 375px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content > img {
    display: inline;
    max-width: 100%;
}

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

figure > img {
    display: block;
    margin-bottom: 1rem;
    width: 10rem;
    position: relative;
    left: 0;
    right: 0;
}

figure figcaption {
    flex-basis: 0px;
    flex-grow: 1;
    min-width: 100px;
    margin-bottom: 1rem;
}

nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 2rem 3rem;
    height: 3rem;
    border-radius: 1rem;
    justify-content: center;
    align-items: center;
    background-color: hsl(var(--color-surface));
    border: 1px solid hsl(var(--color-highlight-high));
}

nav ul {
    display: block;
    list-style-type: none;
}

nav ul li {
    display: inline;
    width: 3rem;
    height: 2rem;
}

nav ul li a:hover{
    border-radius: 50%;
}

nav ul li.active,
nav ul li a:hover{
    border-radius: 50%;
}

header {
    width: 100%;
    height: 7rem;
    display: flex;
    justify-content: center;
}

header h1 {
    font-size: 4rem;
}

.container {
    align-items: center;
    justify-content: center;
}

.spells {
    display: inline-grid;
    grid-template-columns: repeat(3, 5rem);
    gap: 1rem;
}
