* {
    box-sizing: border-box;
}

h1, h2, h3, h4 {
    text-align: center;
}

body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}

body, input, button, [role="button"] {
    font-family: monospace;
}

header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ccc;
}

footer {
    padding-top: 1rem;
}

input, button, [role="button"] {
    border: 1px solid #ccc;
    padding: .4rem .6rem;
    background-color: #0000000a;
    text-decoration: none;
    color: inherit;
}


.tabbed [type="radio"] {
    /* hiding the inputs */
    display: none;
}

.tabs {
    display: flex;
    align-items: stretch;
    list-style: none;
    padding: 0;
}
.tab {
    flex: 1;
    text-align: center;
}
.tab > label {
    display: block;
    margin-bottom: -1px;
    padding: 12px 15px;

    background: #eee;
    color: #666;
    font-size: 12px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;    
    transition: all 0.3s;
}

.tab:hover label {
    border-top-color: #333;
    color: #333;
}

.tab-content {
    display: none;
    color: #777;
    min-height: 33px;
}

/* As we cannot replace the numbers with variables or calls to element properties, the number of this selector parts is our tab count limit */
.tabbed [type="radio"]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) label,
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) label,
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tabs .tab:nth-of-type(3) label,
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tabs .tab:nth-of-type(4) label,
.tabbed [type="radio"]:nth-of-type(5):checked ~ .tabs .tab:nth-of-type(5) label {
    border-bottom-color: #fff;
    border-top-color: #B721FF;
    background: #fff;
    color: #222;
}

.tabbed [type="radio"]:nth-of-type(1):checked ~ .tab-content:nth-of-type(1),
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tab-content:nth-of-type(2),
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tab-content:nth-of-type(3),
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tab-content:nth-of-type(4),
.tabbed [type="radio"]:nth-of-type(5):checked ~ .tab-content:nth-of-type(5) {
    display: block;
}

.search-container {
    display: flex;
}

.search-container input {
    flex: 1;
}

.tag {
    display: inline-block;
    background: #eee;
    padding: .2rem .4rem;
    text-decoration: none;
    color: black;
}

.tag.active {
    color: #000;
}

.result {
    margin-bottom: 0.6rem;
		padding: 0.2rem;
}

.result:hover {
		background-color: #08080808;
}

.result a {
    color: inherit;
    text-decoration: none;
}

.result a:not(:hover), .result a:not(:focus) {
    opacity: .8;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions > * {
    margin-right: .5rem;
}

.actions > *:not(:hover), .action-icons > *:not(:focus) {
    opacity: .8;
}

.result .tag {
    font-size: .8em;
    padding: .1rem .2rem;
}

p.info {
    color: grey;
    margin: auto;
    text-style: italic;
}
