/* Variables */

:root {
    --accent: #00AAFF;
    --white: #F8F8F8;
    --black: #070707;
    --footer: #0F0F0F;
    --background: #242424;
    --pDark: #151515;
    --pLight: #282828;
    --pHead: #555555;
    --pButton: #1A1A1A;
    --fonts: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --center: center;
    --pointer: pointer;
    --underline: underline;
    --none: none;
}

/* General CSS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    color: var(--white);
    background-color: var(--background);
    width: 100%;
    height: 100%;
}

html {
    font-size: 16px;
}

.wrapper {
    flex: 1;
}

::selection {
    color: var(--black);
    background-color: var(--accent);
}

/* Fonts */

@font-face {
    font-family: 'Bold';
    src: url(../fonts/Montserrat-Bold.woff2) format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'SemiBold';
    src: url(../fonts/Montserrat-SemiBold.woff2) format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Regular';
    src: url(../fonts/Lato-Regular.woff2) format('woff2');
    font-display: swap;
}

.logo, .error-heading {
    font-family: 'Bold', var(--fonts);
    font-weight: 700;
}

.panel-heading, .item-heading, .panel-button, .body-heading, .footer-heading, .footer-subheading {
    font-family: 'SemiBold', var(--fonts);
    font-weight: 600;
}

.login-links, .login-link, .nav-link, input, input::placeholder, .search-button, p, li, .heading-button, .footer-links, .footer-link, .special-link, label {
    font-family: 'Regular';
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.error-heading {
    font-size: 2rem;
}

.footer-heading {
    font-size: 1.5rem;
}

.logo, .login-links, .login-link, .panel-heading, .body-heading, .footer-subheading {
    font-size: 1.25rem;
}

.nav-link, .panel-button, label {
    font-size: 1.125rem;
}

input, input::placeholder, .search-button, p, li, .heading-button, .item-price, .item-author, .footer-link, .special-link, .item-heading {
    font-size: 1rem;
}

.login-link, .login-links, .footer-links, .footer-links, .footer-link, .special-link {
    font-weight: 500;
}

.nav-link, input, input::placeholder, .search-button, p, li, .heading-button, .item-price, .item-author, label {
    font-weight: 400;
}

.logo, .panel-heading, .item-heading, .panel-button, .body-heading, .footer-heading, .footer-subheading, .error-heading {
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* Navbars */

.top-navbar, .bottom-navbar, .logo, .login-link, .white-link {
    color: var(--white);
}

.top-navbar {
    padding: 10px;
    background-color: var(--background);
}

.bottom-navbar {
    padding: 5px 10px 0 10px;
    background-color: var(--footer);
}

.login-link, .blue-link {
    color: var(--accent);
}

.active {
    color: var(--accent) !important;
    font-weight: 600;
}

.logo, .login-links, .login-link, .heading-button {
    text-decoration: var(--none);
}

.active, .text-link, .text-link:visited {
    text-decoration: var(--underline);
}

.nav-item {
    width: 16.66%;
    text-align: var(--center);
}

.white-link {
    border-bottom: 1px solid var(--white);
}

.blue-link {
    border-bottom: 1px solid var(--accent);
}

/* Footer */

footer {
    background-color: var(--footer);
    padding: 25px 10px;
}

.footer-link, .special-link, footer {
    color: var(--white);
}

.footer-link {
    text-decoration: var(--none);
}

.special-link {
    text-decoration: var(--underline);
}

/* Panels */

.wtc-panel {
    color: var(--white);
    border: 5px solid var(--footer);
}

.wtc-header {
    background-color: var(--pHead);
    border-bottom: 5px solid var(--footer);
}

.wtc-body {
    background-color: var(--pDark);
}

.wtc-panel, .heading-button {
    border-radius: 5px;
}

.heading-button {
    color: var(--accent);
    background-color: var(--pButton);
    padding: 5px;
}

.panel-button {
    color: var(--black);
    background-color: var(--accent);
    text-align: var(--center);
    text-decoration: var(--none);
    text-wrap: nowrap;
    border: var(--none);
    border-radius: 0;
    padding: 10px;
}

/* Items */

.item {
    color: var(--white);
    text-decoration: var(--none);
}

.item-container, .item {
    background-color: var(--pLight);
}

.item-author {
    text-align: right;
    width: 75%;
}

/* Forms */

.search-form {
    width: 50%;
}

.search-input {
    width: 90%;
}

.search-button {
    width: 10%;
}

input, .search-button, input::placeholder, .text-link, .text-link:visited {
    color: var(--white);
}

input, .search-button {
    background-color: var(--pHead);
    border-radius: 0;
}

input, .search-button {
    border: 2px solid var(--black);
}

input:focus {
    border: 2px solid var(--accent);
    outline: var(--none);
}

.search-button {
    border-left: var(--none);
}

/* Other */

img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.overflow-ellipsis {
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.center {
    text-align: var(--center);
}

ul {
    list-style-type: square;
}

.blue {
    color: var(--accent);
}

/* Hover & Active */

.logo:hover, .logo:focus, .blue-link:hover, .blue-link:focus {
    color: var(--accent);
}

.login-link:hover, .login-link:focus, .white-link:hover, .white-link:focus {
    color: var(--white);
}

.logo:active, .login-link:active, .white-link:hover, .white-link:focus, .blue-link:hover, .blue-link:focus, .item:hover .item-heading, .item:focus .item-heading, .panel-button:hover, .panel-button:focus, .footer-link:hover, .footer-link:focus {
    text-decoration: var(--underline);
}

.white-link:active, .blue-link:active, .text-link:hover, .text-link:focus, .item:active .item-heading, .special-link:hover, .special-link:focus, .footer-link:active {
    text-decoration: var(--none);
}

.text-link:active, .special-link:active {
    text-decoration: var(--underline);
}

.search-button:hover, .search-button:focus, .heading-button:hover, .heading-button:focus {
    background-color: var(--accent);
}

.panel-button:hover, .panel-button:focus {
    background-color: var(--white);
}

.heading-button:hover, .heading-button:focus,.search-button:hover, .search-button:focus {
    color: var(--black);
}

.item:hover, .item:hover .item-container, .item:focus, .item:focus .item-container {
    background-color: var(--pHead);
}

.search-button:active {
    background-color: var(--pHead);
}

.heading-button:active, .panel-button:active {
    transform: translateY(2px);
}

.item:active, .item:active .item-container {
    background-color: var(--pLight);
}

.logo:hover, .logo:active, .login-link:hover, .login-link:active, .white-link:hover, .white-link:active, .blue-link:hover, .blue-link:active, .search-button:hover, .search-button:active, .text-link:hover, .text-link:active, .heading-button:hover, .heading-button:active, .item:hover, .item:active, .panel-button:hover, .panel-button:active, .footer-link:hover, .footer-link:active, .special-link:hover, .special-link:active {
    cursor: var(--pointer);
}

/* Media Queries */

@media screen and (max-width: 767px) {
    .error-heading {
        font-size: 1.5rem;
    }
    .footer-heading {
        font-size: 1.25rem;
    }
    .panel-heading, .item-heading, .body-heading, .footer-subheading {
        font-size: 1.125rem;
    }
    .logo, .login-links, .login-link, .nav-link, .panel-button, label {
        font-size: 1rem;
    }
    .bottom-navbar {
        padding: 10px;
    }
    .nav-item {
        width: 100%;
        text-align: left;
    }
    .search-form {
        width: 75%;
    }
    .search-input {
        width: 80%;
    }
    .search-button {
        width: 20%;
    }
}