:root {
    --color-theme: #2978ad;
    --bg-primary: #212121;
    --bg-secondary: #282828;
    --bg-hover: rgba(41, 120, 173, .5);
    --color-primary: #ebdbb2;
    --padding: 1rem;
    --rounded: 0.45rem;
    --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .12);
    --bg-header: #d79921;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 15px;
    transition: opacity .5s;
    font-family: "Fira Code Medium", serif;
}

html {
    color: var(--color-primary);
    background: var(--bg-primary);
    background-image: url("../images/pine_tree.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
}

body {
    margin: 0 auto;
    padding: 0;
}

#container {
    margin: 1em auto 0;
    min-width: 65%;
    max-width: 900px;
}

h1,
h2 {
    font-weight: 300;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 3em;
}

h3,
h4 {
    text-transform: uppercase;
    text-align: left;
    color: var(--color-primary);
}

h1 {
    font-size: 4em;
    font-weight: 700;
}

h3 {
    font-size: 20px;
    font-weight: 900;
    padding: var(--padding);
    width: 100%;
}

ul {
    list-style-position: inside;
}

section {
    margin-bottom: 30px;
}

#header {
    text-align: center;
    color: var(--color-primary);
    border-radius: var(--rounded);
    background-color: var(--bg-secondary);
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: .5rem;
}

#apps-container {
    display: grid;
    grid-column-gap: 0;
    grid-row-gap: 0;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

#apps-container a {
    text-decoration: none;
    color: var(--color-primary);
}

#text-container {
    display: grid;
    grid-column-gap: 0;
    grid-row-gap: 0;
    grid-template-columns: 1fr 1fr 1fr;
}

#text-container a {
    color: var(--color-primary);
    text-align: center;
}

.foreground-item {
    background-color: rgba(120, 120, 120, .26);
    padding: 10px 20px;
    border-radius: var(--rounded);
    margin-bottom: 30px;
}

.text-item {
    margin: .5rem;
    padding: 13px;
    box-shadow: var(--shadow);
    background: var(--bg-secondary);
    border-radius: var(--rounded);
    transition: background-color .5s;
}

.text-header {
    font-size: 18;
}

.text-subtext {
    text-indent: 20px;
}

.text {
    /* text-align: center; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8px;
}

.text span {
    font-size: 1em;
    font-weight: 500;
    text-decoration: none !important;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

a {
    color: inherit;
    text-decoration: inherit;
}

.heading-container {
    text-decoration: none;
    padding: 7px;
    display: inline-flex;
    margin: .5rem;
    font-weight: bold;
    background-color: var(--bg-header);
    color: var(--color-primary);
    border-radius: var(--rounded);
}

.apps-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 64px;
    margin: .5rem;
    box-shadow: var(--shadow);
    background: var(--bg-secondary);
    border-radius: var(--rounded);
    transition: background-color .5s;
}

.apps-item:hover {
    background-color: var(--bg-hover) !important;
}

.apps-item>.apps-text {
    transition: padding-top .5s;
}

.apps-item:hover>.apps-text {
    padding-top: 15px;
}

.apps-icon {
    height: 64px;
    margin: 0 1em;
    padding-top: 13px;
}

.icon {
    font-size: 2.5em;
}

.apps-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apps-text span {
    font-size: 1em;
    font-weight: 500;
    text-decoration: none !important;
}

.apps-text span:nth-child(2n) {
    color: var(--bg-hover);
    font-size: 0.8em;
    text-transform: lowercase;
}

#searchBox {
    margin: 0 auto;
    width: 400px;
    height: 40px;
    border-radius: var(--rounded);
    background-color: var(--bg-primary);
    transition: box-shadow .5s;
}

#searchBox:hover {
    box-shadow: 0px 0px 8px 1px var(--color-primary);
}

#searchBox:focus-within {
    box-shadow: 0px 0px 8px 1px var(--color-primary);
    outline: none;
}

#searchbar {
    height: 40px;
    border: none;
    width: 95%;
    margin-left: 10px;
    font-size: 21px;
    outline: none;
    background: none;

    font-size: 10pt;
    font-style: italic;
    color: var(--color-primary);
}