* {
    box-sizing: border-box;
}

body {
    background-color: rgb(225, 225, 225);
    font-family: helvetica, sans-serif;
    padding-inline-start: 5%;
    padding-inline-end: 5%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    font-family: 'Bungee Inline', helvetica, sans-serif;
}

/* header and navigation */
header div.containerheader {
    display: flex;
    align-items: flex-end;
}

header h1 {
    flex-grow: 1;
    font-size: 2.5rem;
}

header nav {
    flex-grow: 0;
}

nav ul {
    display: flex;
    justify-content: flex-end;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav ul li {
    margin-left: 0.75rem;
}

nav ul li a {
    display: block;
    /* turning the a elements into "block"
       let them take a border and make 
       the content + padding "clickable"
       as links.  This is a common technique for
       hyperlinks in navigation */
}

nav a:link,
nav a:visited,
nav a:hover,
nav a:active {
    color: black;
    text-decoration: none;
    padding: 1rem 0 0.25rem 0.5rem;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    border-bottom: 2px solid black;
    transition: border-color 0.5s;
}

nav li.login a,
nav li.signup a {
    border: 2px solid black;
    border-radius: 10px;
    background-color: white;
    color: black;
    padding: 0.5rem;
    margin-block-start: 0.35rem;
}

nav li.login a:hover,
nav li.signup a:hover {
    color: white;
    background-color: black;
    transition: background-color 0.5s, color 0.5s;
}

nav li.login a {
    border-color: rgb(58, 80, 156);
    color: rgb(58, 80, 156);
}

nav li.login a:hover {
    color: white;
    background-color: rgb(58, 80, 156);
}

/* main and sections */

main div.container {
    display: flex;
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 2rem;
    margin: 0 auto;
}

main section {
    border-style: solid;
    border-color: black;
    border-width: 2px;
    background-color: rgb(255, 255, 255);
    flex-basis: calc(33.333% - 1.3333rem);
    /* two gaps at 2rem each is 2x2 = 4rem,
    and 4rem distributed across three items
    is 4/3rem each, so 33.3333% - 1.333rem */
    padding: 1rem;
}

main section h2 {
    text-align: center;
}

section ul {
    margin-inline-start: 0rem;
    padding-inline-start: 2rem;
}

section img {
    width: 100%;
}

footer {
    margin-block-start: 3rem;
    padding-block-start: 1rem;
    margin-block-end: 2rem;
    border-block-start: 2px solid rgb(150, 150, 150);
}