body {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    color: #474747;
    background-color: #fff;
    line-height: 1.7em;
    font-weight: 500;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 20px;
}
main {
    padding: 0 10% 0;
    /* 
    padding: 0 20px 0;
    display: flex; 
    */
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    align-content: space-around;
}
.bio_entry {
    position: relative;
    background-color: rgba(214, 214, 214, 0.92);
    border-radius: 20px;
    box-shadow: 10px 10px 0px 0px #FFFFFF;
    padding: 20px;
    margin: 10px;
}
.content, .search_bar_flex_cont {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}
.content {
    align-items: stretch;
}
.search_bar_flex_cont {
    align-items: flex-end;
}
.content ul {
    margin: 0;
}
.content figure  {
    display: block;
    border-radius: 20px;
    margin: 0;
    height: 340px;
    position: relative;
    margin-left: 10px;
}
figure img {
    display: block;
    border-radius: 20px;
    height: 100%;
    width: auto;
}
figure figcaption {
    transition: opacity 0.5s;
    opacity: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    padding: 5px;
    border-radius: 0 0 20px 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    box-sizing: border-box;
}
figure:hover figcaption {
    opacity: 1;
}
#search_bar {
    background-color: #ae3f4c !important;
    color: #ffffff;
    padding: 15px 20% 10px 20%;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    box-sizing: border-box;
}
#search_bar.height_reduced {
    height: 69px;
    overflow: hidden;
    transition: height 0.3s ease;
}
#search_bar.height_reduced:hover {
    height: 230px;
    transition: height 0.3s ease;
}
.search_bar_flex_item > * {
    margin: 4px 0;
}
#search_bar > h1 {
    margin: 10px 0;
}
#search_bar input {
    width: 350px;
    box-sizing: border-box;
}
#search_bar form, #search_bar button, #search_bar input {
    font-size: 15px;
}
#search_bar h1 {
    font-weight: bold;
}
a {
    color: white;
    transition: color 0.3s ease;
}
a:not(#search_bar a):hover {
    color: #ae3f4c;
    transition: color 0.3s ease;
}
.name {
    display: inline-block;
    color: #ae3f4c;
    font-weight: bold;
}
h2.name {
    font-size: 20px;
    margin: 0;
}
.decoration {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}
.bio_entry ul {
    padding-left: 23px;
}
.share_btn {
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: auto;
    border-radius: 10px;
    filter: invert(25%) sepia(0%) saturate(0%) hue-rotate(351deg) brightness(104%) contrast(94%);
}
.share_btn:hover {
    filter: invert(31%) sepia(22%) saturate(4752%) hue-rotate(325deg) brightness(83%) contrast(78%);
    transition: filter 0.2s ease;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    #search_bar {
        padding: 15px 4% 10px 4%;
    }
    #search_bar.height_reduced {
        height: 54px;
        overflow: hidden;
    }
    #search_bar.height_reduced:hover {
        height: 445px;
    }
    #search_bar > h1 {
        margin-top: 0;
    }
    #search_bar input {
        width: 100%;
    }
    main {
        padding: 0 10px 0;
        display: block; 
    }
    .bio_entry {
        margin-top: 15px;
    }
    .content, .search_bar_flex_cont {
        justify-content: space-between;
        align-items: stretch;
        margin-top: 15px;
    }
    .content {
        flex-flow: column-reverse wrap;
    }
    .search_bar_flex_cont {
        flex-flow: column wrap;
    }
    .content figure  {
        height: auto;
        width: 60%;
        margin: 0 0 15px 0 !important;
    }
    figure img {
        height: auto;
        width: 100%;
    }
    .share_btn {
        width: 40px;
        height: auto;
    }
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 601px) and (max-width: 767.99px) {
    #search_bar {
        padding: 15px 4% 10px 4%;
    }
    #search_bar.height_reduced {
        height: 54px;
        overflow: hidden;
    }
    #search_bar.height_reduced:hover {
        height: 390px;
    }
    #search_bar input {
        width: 100%;
    }
    #search_bar > h1 {
        margin-top: 0;
    }
    main {
        padding: 0 15px 0;
        display: block; 
    }
    .bio_entry {
        margin-top: 15px;
    }
    .content, .search_bar_flex_cont {
        justify-content: space-between;
        align-items: stretch;
        margin-top: 15px;
    }
    .content {
        flex-flow: column-reverse wrap;
    }
    .search_bar_flex_cont {
        flex-flow: column wrap;
    }
    .content figure  {
        height: auto;
        width: 60%;
        margin: 0 0 15px 0 !important;
    }
    figure img {
        height: auto;
        width: 100%;
    }
    .share_btn {
        width: 40px;
        height: auto;
    }
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 767px) and (max-width: 991px) {
    #search_bar {
        padding: 15px 8% 10px 8%;
    }
    #search_bar.height_reduced {
        height: 54px;
        overflow: hidden;
    }
    #search_bar.height_reduced:hover {
        height: 230px;
    }
    #search_bar > h1 {
        margin-top: 0;
    }
    #search_bar input {
        width: 350px;
    }
    main {
        padding: 0 20px 0;
    }
    .bio_entry {
        margin-top: 15px;
    }
    .content figure  {
        height: auto;
        width: 60%;
    }
    figure img {
        height: auto;
        width: 100%;
    }
    .share_btn {
        width: 40px;
        height: auto;
    }
}

@media (hover: none) and (pointer: coarse) {
    /* likely a finger-touch device — make hit targets bigger, remove hover-only UI */
    figure figcaption {
        opacity: 1 !important;
    }
}