html {
    font-family: sans-serif;
}
body {
    margin: 0;
    padding: 0;
    /*position: fixed;*/
}
body.modal-view {
    position: fixed;
}
body.modal-view .header {
    position: initial;
}
body.modal-view .main-content {
    position: initial;
    height: unset;
    padding: 0 1rem;
}

a {
    color: #00F;
}
.header {
    position: fixed;
    width: calc( 100% - 32px );
    height: 38px;
    background-color: #ff7200;
    padding: 16px;
    text-align: center;
    color: #FFF;
}
h1 {
    padding: 0;
    margin: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}
.header .avatar {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #c35f00;
    width: 3rem;
    height: 3rem;
    border-radius: 1.5rem;
    line-height: 3rem;
    color: #FFF;
    text-decoration: none;
}
.clearfix::after {
    content: "";
    display: table; /* creates a new block formatting context */
    clear: both;    /* clears both left and right floats */
}
.main-content {
    /*position: fixed;*/
    top: 70px;
    width: calc( 100% - 2rem );
    /*height: calc(100% - 150px);*/
    padding: 70px 1rem 92px;
    overflow-y: auto;
}
#form-new-thing {
    display: none;
}
.things-container {
}
.things-list {
    display: grid;
    grid-template-columns: 1fr;
}
@media screen and (min-width: 500px) {
    .things-list {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (min-width: 800px) {
    .things-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media screen and (min-width: 1100px) {
    .things-list {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}
@media screen and (min-width: 1400px) {
    .things-list {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}
@media screen and (min-width: 1700px) {
    .things-list {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}
@media screen and (min-width: 2000px) {
    .things-list {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }
}
.thing-container {
    margin: 0.25rem 0.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    flex-direction: column;
}
.thing-container:hover {
    background-color: #ffdbae;
    cursor: pointer;
}
.thing-container a {
    color: #000;
    margin-top: 0.5rem;
}
.thing-container .thing-image-container {
    padding-right: 10px;
    text-align: center;
    height: 195px;
    align-content: center;
}
.thing-container .thing-image {
    max-width: 195px;
    max-height: 195px;
}
.thing-container .empty-image {
    display: inline-block;
    width: 195px;
    height: 195px;
    background-color: #EEE;
}

#thing-view {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 70px - 3rem);
    overflow-y: auto;
    padding-bottom: 3rem;
    background-color: #FFF;
    text-align: center;
}
#thing-view .thing-image-container {
    margin: 1rem 0;
}
#thing-view .thing-image-container .thing-image {
    max-width: 100%;
    max-height: 80vw;
}
#thing-view .thing-details-container input {
    height: 50px;
    display: inline-block;
    padding: 1rem;
}

#recommendations-view {
    display: none;
}
.recommendations-container {
    display: none;
}
.recommendations-list {
    display: none;
}
#recommendations-loading-gif {
    display: none;
    width: 50px;
}
.recommendations-list a {
    /*font-size: 0.75rem;*/
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 3.5rem;
    background-color: #ff7200;
    padding: 0.5rem 1rem;
    text-align: center;
}
.footer a {
    color: #FFF;
    text-decoration: none;
    margin: 0 1rem;
    padding: 1rem 1rem;
    display: inline-block;
    border: 2px solid #FFF;
    border-radius: 1rem;
    background-color: #ff8a2c;
    font-weight: bold;
}
.footer a:hover {
    background-color: #d16a17;
}
.footer a.btn-home {
    position: absolute;
    bottom: 0.5rem;
    left: 10%;
}
.footer a.btn-add-via-image {
    position: absolute;
    bottom: 0.5rem;
    left: calc(50% - 4rem);
    font-size: 3rem;
    padding: 1rem 2rem;
}
.footer a.btn-for-you {
    position: absolute;
    bottom: 0.5rem;
    right: 10%;
}