/* HTML Selectors */
body {
    font-family: 'Kalam', cursive;
}

div {
    margin: 10px;
    text-align: center;
}

footer {
    background-color: gray;
    color: white;
    padding: 5px;
    text-align: center;
}

header {
    margin: auto;
    text-align: center;
}

label {
    display: inline-block;
    min-width: 120px;
    text-align: right;
}

nav {
    background-color: black;
    color: white;
}

nav ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: space-around;
    margin: 0;
    padding: 0;
}

nav ul li:first-child {
    display: block;
}

nav ul li {
    display: none;
    list-style: none;
    margin: 10px;
}

nav ul li a {
    color: white;
    display: block;
    padding: 10px;
    text-decoration: none;
}
nav ul li a:hover {
    background-color: #efefef;
    color: black;
}

/* Class Selectors */
.active {
    background-color: white;
    color: black;
}

/* Header */
header {
    text-align: center;
    padding: 20px;
    background:  #2E8B57;
    color: white;
}

header img {
    width: 20em;
    height: 20em;
    border-radius: 50%;
    border: 4px solid white;
}

/* Main Content */
main {
    max-width: 600px;
    margin: 30px auto;
    background: white;
    padding: 20px;
}

/* Biography Sections */
section div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

section div:last-child {
    border-bottom: none;
}

/* Labels */
label {
    font-weight: bold;
    color: #4f4c4c;
    flex-basis: 40%;
    text-align: right;
}

/* Data Content */
span, ul, dl {
    flex-basis: 55%;
    text-align: left;
    margin: 0;
    padding: 0;
}

/* Lists */
ul, dl {
    list-style: none;
}

/* Places Lived Formatting */
dl dt {
    font-weight: bold;
    color: #46a349;
}

dl dd {
    margin-left: 10px;
    color: #767474;
}

/* Footer */
footer {
    background-color: #1f1f1f;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 30px;
}

/* Media Queries */
@media only screen and (min-width: 32.5em) {
    nav ul {
        flex-direction: row;
    }
    
    nav ul li:first-child {
        display: none;
    }

    nav ul li {
        display: inline;
        margin: 0 10px;
    }
}
