:root {
    --text-align: center;
    --img-height: auto;
    --border: 3px dotted #222;
    --title-font: "Montserrat", serif;
    --body-font: "Figtree", sans-serif;
    --primary-color: DarkSlateBlue;
    --secondary-color: darkblue;
}

* {
    font-family: var(--body-font);
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

footer,
main {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    max-width: 1200px;
    margin: 0 auto;
}

#course-title {
    font-family: var(--title-font);
    background-color: var(--primary-color);
    padding: 30px;
    text-align: center;
    font-size: x-large;
    color: whitesmoke;
    font-weight: 600;
    display: block;
}

#header-name {
    font-family: var(--title-font);
    background-color: var(--primary-color);
    padding: 10px;
    color: beige;
    text-decoration: underline dashed gray;
}

nav {
    background-color: rgb(54, 52, 52);
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

nav a {
    color: whitesmoke;
    display: block;
    padding: 0.5rem;
    text-decoration: none;
    font-size: 1.2rem;
}

nav a:hover {
    text-decoration: overline;
}


h1,
h2 {
    font-family: var(--title-font);
    background-color: var(--primary-color);
    color: whitesmoke;
    padding: 10px;
    text-align: center;
    font-weight: 500;
    font-size: x-large;
}

main img {
    float: right;
    width: 150px;
    height: var(--img-height);
    border: 1px solid black;
    padding: 2px;
    box-shadow: 0 0 30px gray;
}

p {
    padding: 0;
}

main {
    display: grid;
    align-items: stretch;
    grid-template-columns: 2fr 1fr;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card {
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 4px solid lightgray;
    margin: 10px;
}

#box-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card div div {
    padding: 30px;
    margin-bottom: 50px;
    margin-top: 10px;
}

.card div div img {
    margin-left: 50px;
}

h3 {
    border-bottom: 3px solid darkslategray;
    width: 65%;
    margin-left: 50px;
    text-align: center;
}

footer {
    border-top: var(--border);
    text-align: var(--text-align);
    font-family: var(--title-font);
    background-color: rgb(54, 52, 52);
    padding: 10px;
    font-size: large;
    color: whitesmoke;
    font-weight: 1;
    display: block;
}

#lastModified {
    color: beige;
}

.box {
    /* margin: 1px; */
    /* margin-top: 15rem; */
    border: 1px solid rgb(0 0 0 / 10%);
    padding: 2rem;
    background-color: ghostwhite;
    color: rgb(51, 0, 145);
}