/* CSS RESET - from: https://dev.to/hankchizljaw/a-modern-css-reset-6p3 */

    /* Box sizing rules */
    *,
    *::before,
    *::after {
    box-sizing: border-box;
    }

    /* Remove default padding */
    ul[class],
    ol[class] {
    padding: 0;
    }

    /* Remove default margin */
    body,
    h1,
    h2,
    h3,
    h4,
    p,
    ul[class],
    ol[class],
    li,
    figure,
    figcaption,
    blockquote,
    dl,
    dd {
    margin: 0;
    }

    /* Set core body defaults */
    body {
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    }

    /* Remove list styles on ul, ol elements with a class attribute */
    ul[class],
    ol[class] {
    list-style: none;
    }

    /* A elements that don't have a class get default styles */
    a:not([class]) {
    text-decoration-skip-ink: auto;
    }

    /* Make images easier to work with */
    img {
    max-width: 100%;
    display: inline-block;
    }

    /* Natural flow and rhythm in articles by default */
    article > * + * {
    margin-top: 1em;
    }

    /* Inherit fonts for inputs and buttons */
    input,
    button,
    textarea,
    select {
    font: inherit;
    }


/* ********** OWN CUSTOM STYLES ********** */

body {
    font-family: 'Noto Serif', serif;
    font-weight: 400;
    padding: 2.7rem 3rem;
}

a {
    color: rgb(189, 8, 71);
    text-decoration: none;
}

a:hover {
    cursor: pointer;
    color: rgb(189, 8, 71);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1 {
    margin: 2.5rem 0 0;
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

.login-wrapper {
    text-align: center;
}

.login-wrapper img {
    width: 3.7rem;
}

.login-wrapper h2 {
    max-width: 48vw;
    margin: 0 auto 2rem;
}

.login-wrapper input {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid;
}

.login-button {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    font-weight: 400;
    color: #fafafa;
    background-color: #f50057;
    border: 1px solid #f50057;
    cursor: pointer;
    width: max-content;
    transition: 0.25s ease;
}

.login-button:hover {
  box-shadow: 0 6px 18px 0 rgba(0, 0, 0, 0.1);
  color: #f50057;
  border-color: transparent;
  background-color: transparent;
}

img#gandalf-easteregg {
    width: 20vw;
    margin-bottom: 1rem;
}

.site-logo {
    display: flex;
    align-items: baseline;
}

a.logo-img img {
    width: 2.7rem;
    display: inline;
}

span.logo-title {
    font-size: 2.3rem;
    font-weight: 700;
    position: absolute;
    margin: 0 0 0 3.5rem;
    cursor: pointer;
}

span.logo-subtitle {
    font-size: 1rem;
    margin: 3rem 0 0 0.9rem;
}

span.logout-link, a.back-to-login {
    position: absolute;
    right: 6rem;
    top: 3.5rem;
}

span.logout-link a::after,
a.back-to-login::after {
    content: '☞';
    font-size: 2rem;
    top: -0.7rem;
    position: absolute;
    right: -2rem;
}

a.back-to-login {
    padding: 0 0.3rem;
}

.logout-link a {
    padding: 0.1rem 0.3rem;
}

div#js-cats-wrapper {
    padding: 2rem 0;
}

#js-cats-wrapper a {
    background-color: #b91e3b;
    color: #fafafa;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    line-height: 2.25rem;
    display: inline-block;
}

#js-cats-wrapper a:hover {
    text-decoration: none;
    background-color: #ea1039;
}


/* SEARCH RESULTS */
input#js-search-box {
    float: right;
    margin-right: 1rem;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #616161;
}

div#js-search-results {
    margin: 2.5rem 0 3rem;
}

.result-wrapper {
    margin-bottom: 2.7rem;
}

.result-wrapper img {
    width: 3rem;
    position: absolute;
    margin: 0.4rem 0 0 -4rem;
}

span.item-title {
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    font-size: 1rem;
}

span.item-description {
    display: block;
    font-size: 0.8rem;
}

a.item-link {
    padding: 0;
    font-size: 0.8rem;
    border-bottom: 1px dotted;
    text-decoration: none;
    word-break: break-all;
}

a.item-link:hover {
    border-bottom: 1px solid;
    text-decoration: none;
}

span.item-tags {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    margin-top: 0.35rem;
    font-family: Arial, Helvetica, sans-serif;
}

h2 span.destacado {
    font-weight: 700;
}

h2 span.nombre-categoría {
    font-weight: 400;
}

.slack-banner {
    background: #4b154b url('./assets/slack.gif') no-repeat scroll left top 100%/contain;
    color: #fafafa;
    display: flex;
    align-items: center;
    padding: 1.5rem 1rem;
    min-height: 7rem;
}

span.slack-text {
    margin-left: 9.7rem;
    font-size: 1.32rem;
}

span.slack-text a {
    color: #2eb57e;
    font-size: 1.32rem;
    font-weight: 700;
}

.footer .copy {
    font-family: monospace;
    font-size: 0.9rem;
    margin: 1.5rem 1.2rem;
    color: #736969;
}

/*  */
@media only screen and (max-width: 800px) {

    span.logout-link, a.back-to-login {
        right: 3rem;
        top: 1rem;
    }

    input#js-search-box {
        float: none;
        margin: 1rem 0;
    }

    #js-cats-wrapper a {
        display: block;
    }

    span.slack-text {
        margin-left: 0;
        text-align: center;
        text-shadow: -1px -1px 1px black;
    }

    .site-logo {
        display: block;
        text-align: center;
    }

    a.logo-img img {
        width: 6rem;
        display: block;
        margin: 1rem auto;
    }


    span.logo-title {
        position: static;
        display: block;
        margin: 0 auto;
    }

    span.logo-subtitle {
        margin: 0;
        display: block;
    }

    .login-wrapper h2 {
        max-width: 90vw;
        margin: 0 auto 2rem;
        font-size: 1.25rem;
    }

    img#gandalf-easteregg {
        width: auto;
    }

    .login-wrapper input {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
        border: 1px solid #616161;
        margin-bottom: 0.5rem;
    }

    .login-button {
        font-size: 1rem;
    }

}