* {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', serif;
    background-color: #edcbb4;
    color: #070505;
    text-decoration: none;
    list-style: none;
}

p a {
    text-decoration: underline;

}

h3 {
    padding: 1rem 0 0.5rem 0;
}

.name {
    font-family: Grandiflora One;
}

body {
    margin: auto;
    max-width: 60rem;
}

nav {
    display: flex;
    justify-content: flex-end;
    border-bottom: solid #683d39 1px;
}

nav ul li {
    display: inline-block;
    padding: 1rem;
    width: fit-content;
}

section {
    padding: 1rem 0;
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home h2 {
    font-size: 3rem;
    padding-bottom: 1.5rem;
    color: #070505;
}

.cv-photo {
    margin-left: 5rem;
    width: 15rem;
    border-radius: 10px;

    /* box-shadow: 20px 20px 60px #683d39; inset */
}

.teaching--title {
    color: #070505;
    padding-bottom: 1.5rem;
}

.teaching--text {

    h3 {
        padding: 2rem 0 0.5rem 0;
        color: #070505;
    }

    h4 {
        padding: 1rem 0 0.25rem 0;
        color: #070505;
    }

    li {
        padding-left: 0.25rem;
        margin-left: 2rem;
        list-style-type: disc;
    }
}

.teaching--text--smaler {
    width: 72%;
}

.teaching--class {
    display: block;
    font-size: 1.5rem;
    padding: 1rem;
    margin: 2rem 0 2rem 2rem;
    height: max-content;
    border-radius: 10px;
    background-color: #683d39;
    color: #edcbb4;
    border: solid #683d39 1px;
    /* border-radius: 50px;
    background: #8b534e;
    box-shadow: 20px 20px 60px #764742,
                -20px -20px 60px #a05f5a; */
}

.teaching--class p {
    background-color: #683d39;
    color: #edcbb4;
}

.teaching--class p {
    padding: 0.25rem;
}

.flex {
    display: flex;
    justify-content: space-between;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem 0;
    gap: 1rem;
}

.grid--item h4 {
    padding: 0 0 0.25rem 0;
}

.grid--item {
    padding: 1rem;
    /* margin: 0.5rem; */
    border-radius: 10px;
    border: solid #683d39 1px;
    /* border-radius: 10px;
    background: #8b534e;
    box-shadow: 20px 20px 60px #764742,
                -20px -20px 60px #a05f5a; */
}

.spacer {
    padding: 1rem 0;
}

address {
    font-style: normal;
}

.img-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    max-width: 25rem;
}

.img-display--big {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    max-height: 15rem;
}


@media (max-width: 979px) {
    body {
        padding: 0.5rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 0.5rem;
    }

    .flex {
        flex-direction: column;
    }

    .home {
        flex-direction: column;
    }

    .cv-photo {
        margin: 1rem 0;
        padding: 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .img-display--big,
    .img-display {
        max-width: 100%;
    }
}

table {
    border-collapse: collapse;
}

th,
td {
    padding: 0.5rem;
    border: 1px solid black;
}

pre {
    font-family: monospace;
}

.code-link {
    display: block;
    width: fit-content;
    padding: 0.5em;
    margin: 1em 0;
    border-radius: 1em;
    background-color: #683d39;
    color: #edcbb4;
}