/*
==============================
BASIC SETUP
==============================
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-gap: 10px;
    background: #222;
}

h1 {
    font-size: 3em;
    font-family: 'VT323', monospace;
}

p {
    padding-top: 0.5em;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background: #111; 
    border-radius: 5px;
}

::selection {
    background: #000;
    color: #fff;
}

.container {
    padding: 15px 30px;
    overflow-x: hidden;
}

/*
==============================
HEADER
==============================
*/

header {
    background: #065d61;
    background-image: url(../images/errorbars.png);
    color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.credit {
    font-family: 'VT323', monospace;
    font-size: 0.9em;
    text-align: right;
    text-transform: uppercase;
    opacity: 0.9;
}

.credit a {
    color: #fff;
    text-decoration: none;
    transition: .75s all;
}

.credit a:hover {
    background: #065d61;
}

#headerBtn {
    position: absolute;
    top: 15px;
    right: 16px;
    opacity: 0.8;
    transition: .75s all;
}

#headerBtn:hover {
    opacity: 1;
    visibility: visible !important;
}

/*
==============================
SECTION
==============================
*/

.sidebar {
    background: #111;
    color: #fff;
    position: relative;
    width: 320px;
    height: 100vh;
    max-height: 100vh;
    transition: transform 0.75s ease;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    overflow-x: hidden;
}

/* .sidebar > * {
    border: 2px solid red;
} */

.slide {
    transform: translate3d(-274px, 0, 0);
}

.invisible {
    visibility: hidden;
    transition: .75s all;
}

.plus {
    width: calc(100% + 274px);
    max-width: calc(100vw - 46px);
}

.mainBody {
    max-height: 100vh;
    overflow-y: auto;
    padding-top: 10px;
    transition: transform 0.75s ease;
}

/*
==============================
BUTTONS
==============================
*/

#buttons {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 92px;
    height: calc(100vh - 155px - 95px);
    overflow-y: auto;
    overflow-x: hidden;
}

#buttons::-webkit-scrollbar {
    width: 5px;
}

#buttons::-webkit-scrollbar-thumb {
    background: #065d61; 
    border: 1px solid #000;
}

button {
    padding: 5px 15px;
    background: #065d61;
    color: #fff;
    border-radius: 15px;
    border: none;
    text-transform: lowercase;
    font-size: 1em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    word-break: break-all;
    transition: all .75s;
}

button:hover {
    filter: brightness(0.5);
}

.btnClass {
    margin: 0 5px 5px 0;
}

#clear {
    width: 100%;
    background: #444;
    margin-bottom: 5px;
}

#addTopic {
    display: flex;
}

#newTopic {
    flex-grow: 1;
    border-radius: 15px;
    border: none;
    padding: 0 15px;
}

#submitBtn {
    flex-basis: auto;
    margin-left: 5px;
    font-weight: 900;
}

/*
==============================
GIFS
==============================
*/

#gifs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.divClass {
    margin-right: 10px;
    margin-bottom: 10px;
    font-family: 'VT323', monospace;
    position: relative;
    background: #000;
    height: 150px;
}

.divClass:hover > p {
    opacity: 0.1;
}

.divClass p {
    bottom: 6px;
    right: 6px;
    padding: 5px;
    position: absolute;
    z-index: 999;
    background: #111;
    color: #efefef;
    transition: .75s all;
    opacity: 0.9;
}

.gridClass {
    display: grid;
    grid-template-columns: auto 1fr;
}

/* .faveClass {
    text-align: right;
    color: #ccc;
}

.faveClass:hover {
    color: #916f03;
    transition: .75s all;
}

.favedClass {
    color: #916f03;
} */

.gifClass {
    height: 150px;
}

/*
==============================
FOOTER
==============================
*/

footer {
    padding: 5px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #444;
    background: #111;
}

footer a {
    color: #444;
    text-decoration: none;
    transition: all .75s;
}

footer a:hover {
    color: #065d61;
}

footer .container {
    display: grid;
    grid-gap: 15px;
}

footer nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.copyright {
    text-align: center;
}