/* GLOBAL COLORS */

body {
    background: #0000FF;
    color: #FFFFFF;
}

a {
    color: #FFFF00;
}

/* GLOBAL HEADER */

header {
    overflow: hidden;
    text-align: center;
    margin-bottom: .5rem;
    display: flex;
    margin-bottom: .5rem;
    align-items: center;
    justify-content: space-between;
}

header > div {
    margin: 0 .5rem;
}

header h1 {
    font-family: sans-serif;
    margin-bottom: 0;
    text-shadow: .1em .1em .1em #000000;
}

header h3 {
    margin-top: 0;
}

header img {
    width: 5rem;
    border-radius: .5rem;
    float: right;
}

header img:first-of-type {
    float: left;
}

nav {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .25);
    border-radius: .5rem;
}

nav a {
    flex: 1;
    color: #FFFFFF;
    font-family: sans-serif;
    text-decoration: none;
    text-shadow: .1em .1em .2em #000000;
    font-weight: bold;
    letter-spacing: .05em;
    margin: .5em 1em;
}

nav a:hover, nav a:focus {
    color: #FFFF00;
}




/* TWO COLUMN LAYOUT */

.two-columns {
    display: flex;
}

.two-columns > div {
    flex: 1;
    margin: 0 0 0 .25rem;
}

.two-columns > div:first-child {
    margin: 0 .25rem 0 0;
}




/* FLOWING LAYOUT */

.flow {
    text-align: center;
    font-size: 0;
}

.flow > div {
    display: inline-block;
    overflow: hidden;
    width: 10rem;
    height: 14rem;
    margin: 1rem;
    font-size: 1rem;
    text-align: center;
    background: #FFFFFF;
    color: #0000FF;
    border-radius: 1rem;
}

/* orig: .flow > div > img */
.flow > div > a > img {
    /* original
    display: block;
    width: 100%;
    margin: 0;
    */
    /* new */
    width: 100%;
    height: 10rem;
    object-position: 50% 50%;
    object-fit: cover;
}

.flow > div > div {
    display: flex;
    width: 100%;
    height: 4rem;
    margin: auto;
    align-items: center;
    justify-content: center;
}

/* new */
/* unvisited link */
.flow > div > a:link {
    color: red;
}

/* visited link */
.flow > div > a:visited {
    color: green;
}

/* mouseover link */
.flow > div > a:hover {
    color: hotpink;
}

/* selected link */
.flow > div > a:active {
    color: blue;
}
