/**
 * Theme Name: Apps and Tools
 * Template:   blankslate
 */

html {
    font-family: 'roboto';
}

#container {
    margin: 0 2em;
}

#header {
    background-color: rgb(7, 33, 64);
    margin-bottom: 2em;
    padding: .5em 1em;
}

#header:after {
    content: '';
    display: block;
    clear: right;
}

#header #site-title {
    display: inline-block;
    float: right;
    font-size: 2em;
}

#header a {
    color: white;
    text-decoration: none;
}

#footer {
    margin-top: 3em;
    background-color: #ddd;
    font-style: italic;
}

a {
    color: rgb(10, 45, 87);
    text-decoration: none;
}

article header {
    text-align: center;
}

.toolslist {
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    gap: 3px;
}

.toolslist article {
    flex: 1 1 200px;
    display: flex;
    flex-flow: column nowrap;
    background-color: #beb;
    border-radius: 5px 0px 0px 0px;
    position: relative;
}

.toolslist article:hover,
.toolslist article:focus {
    background-color: #ded;
}

.toolslist article .homelink {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px;
    background-color: #eaa;
}

.toolslist article .homelink:focus,
.toolslist article .homelink:hover {
    background-color: #fbb;
}

.toolslist article .fullart {
    height: 100%;
}

.toolslist article header {
    flex: 0 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ada;
    height: 2em;
}

.toolslist article header a {
    font-weight: bold;
    display: block;
    text-decoration: none;
    padding: .25em .75em;
}

.toolslist article .body {
    flex: 1 0 auto;
    display: flex;
    flex-flow: column nowrap;
    /*justify-content: space-between;*/
    padding: .5em;
}

.toolslist article .type {
    flex: 0 0 auto;
}

.toolslist article .type li {
    display: inline-block;
    background-color: #aba;
    color: white;
    padding: .25em;
    border-radius: 5px;
    margin: 1px 2px 2px 0px;
}

.toolslist article .type li a {
    text-decoration: none;
}

.toolslist article .entry-summary {
    flex: 3 0 auto;
}

.toolslist article .rating {
    flex: 1 0 auto;
}

.toolslist article .rating a {
    color: #ff0;
    text-decoration: none;
}

.toolslist article .rights {
    flex: 0 0 auto;
}

.toolslist article .rights li {
    display: inline-block;
    background-color: #9c9;
    color: white;
    padding: .25em;
    border-radius: 5px;
    margin: 1px 2px 2px 0px;
}

.toolslist article .rights li a {
    text-decoration: none;
}

.toolslist article .content-overview {
    background-color: rgba(221, 238, 221, .9);
    padding: .444em .666em;
    /* .5 / font-size-factor */
    font-size: 1.125em;
    display: none;
    position: absolute;
    top: 95%;
    left: 0;
    z-index: 5;
    border-top: 0px;
}

.toolslist article:focus .content-overview,
.toolslist article:hover .content-overview {
    display: block;
}

#typesList .child {
    font-style: italic;
}

h1 {
    margin: .5em 0 .25em;
    font-weight: bold;
    font-size: 2.5em;
}

h3 {
    margin: .5em 0 .25em;
    font-weight: bold;
    font-size: 1.5em;
}

p {
    margin-bottom: .5em;
}

em {
    font-style: italic;
}

strong {
    font-style: bold;
}

button {
    cursor: pointer;
}

button,
.btn {
    display: inline-block;
    border-radius: 20px;
    border: none;
    padding: .25em .5em;
    line-height: 1;
    margin: 1px 1px 1px 0px;
    text-decoration: none;
    background-color: rgb(48, 112, 179);
    color: #ffffff;
    font-family: sans-serif;
    font-size: 1rem;
    text-align: center;
    transition: background 250ms ease-in-out,
        transform 150ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.btn.tag {
    background-color: rgb(48, 112, 48);
}

.btn.tag a {
    color: white;
}

.btn.tag.absent {
    background-color: rgb(182, 108, 108);
    color: lightgray;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus {
    background: #0053ba;
}

button:focus,
.btn:focus {
    outline: 1px solid #fff;
    outline-offset: -4px;
}

button.active,
.btn.active {
    transform: scale(0.99);
    background-color: #9c9;
}

article.tool.hide {
    display: none;
}

article.hidden {
    height: 0;
}

.costs {
    margin: .75em 0;
}

.costs .free:before {
    content: "Limits of free version: ";
    font-weight: bold;
}

.costs .cost:before {
    content: "Lowest paying tier: ";
    font-weight: bold;
}

.costs .limits:before {
    content: "Limits of paying tier: ";
    font-weight: bold;
}

.homelink.single:before {
    content: "Homepage: ";
    font-weight: bold;
    margin-right: 2em;
}

#freedomsList,
#typesList {
    border: 2px solid black;
    border-radius: 20px;
    line-height: 1.2;
    display: inline-block;
    padding: 0;
    overflow: hidden;
}

#freedomsList {
    background-color: black;
}

#typesList {
    background-color: lightgrey;
    border-radius: 3px;
    display: flex;
    flex-flow: row wrap;
    gap: 1px;
    padding: 1px;
}

#typesList button {
    margin: 0;
    border-radius: 5px;
}

#freedomsList button {
    border-radius: 0;
    margin: 0 0 0 2px;
}

#freedomsList button:first-child {
    margin-left: 0;
}

/*article.tool.show {display: flex;} */
article .category-recommended {
    position: relative;
}

article .category-recommended::after {
    content: "Beliebt!";
    position: absolute;
}