* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: Bebas;
    src: url(../assets/fonts/Bebas_Neue/BebasNeue-Regular.ttf);
}

@font-face {
    font-family: Teko;
    src: url(../assets/fonts/Teko/static/Teko-Regular.ttf);
}

:root {
    --html-background-color: #202020;
    --header-background-color: #202020;
    --header-text-color: #ffffff;
    --background-color: #ffffff;
    --text-color: #000000;
    --footer-background-color: #202020;
    --footer-text-color: #ffffff;
    --link-color: #ffffff;
    --link-hover-color: #e62429;
    --link-visited-color: #767676;
    --font-title-family: "Bebas", sans-serif;
    --font-text-family: "Teko", sans-serif;
    --border: #393939;
    --red: #e62429;
    --white: #ffffff;
    --black: #000000;
    --grey: #767676;
}

html {
    font-size: 100%;
    font-family: var(--font-text-family);
    background-color: var(--html-background-color);
}

/* Code for Firefox */
::-moz-selection {
    color: var(--white);
    background: var(--red);
}

::selection {
    color: var(--white);
    background: var(--red);
}

/********************
HEADER
********************/

header {
    background-color: var(--header-background-color);
    color: var(--header-text-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.logo h1 {
    background-image: url(../assets/img/marvel-cinematic-universe-logo.png);
    min-height: 120px;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -99999em;
    font-size: 3rem;
}

#hamburger {
    display: none;
}

#menu {
    background-color: var(--header-background-color);
    overflow: hidden;
    color: var(--header-text-color);
    border-bottom: 1px solid var(--border);
    font-size: 1.25rem;
}

#menu ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu li {
    padding: 0 1.5rem;
    height: 100%;
    border-top: 2px solid transparent;
}

#menu .active {
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1.5rem;
}

#menu a {
    padding: 0.5rem 0;
    text-decoration: none;
    color: var(--header-text-color);
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
}

#menu a:visited {
    color: var(--link-visited-color);
}

#menu a:hover {
    border-bottom: 2px solid var(--red);
}

#breadcrumb {
    background-color: var(--header-background-color);
    color: var(--header-text-color);
    font-size: 1rem;
    padding: 0.5rem 7.5rem;
    border-bottom: 1px solid var(--border);
}

#breadcrumb a {
    color: var(--header-text-color);
}

/********************
MAIN
********************/

main {
    background-color: var(--background-color);
    color: var(--text-color);
}

.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("../assets/img/hero-background.jpg");
    min-height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
}

.hero-text {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.hero-text h2 {
    font-family: var(--font-title-family);
    font-size: 3.5rem;
}

.hero-text p {
    font-size: 1.25rem;
}

.hero-text button {
    margin-top: 0.5rem;
    cursor: pointer;
    font-family: var(--font-text-family);
    font-size: 1rem;
    background-color: var(--html-background-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border: 0;
}

.hero-text button:hover {
    text-decoration: underline;
}

.content {
    padding: 2.5rem 7.5rem;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.content h2 {
    font-family: var(--font-title-family);
    font-size: 5rem;
}

.paragraf {
    margin-bottom: 1.25rem;
}

.paragraf strong,
.paragraf abbr {
    font-size: 1.5rem;
    color: var(--red);
}

.paragraf abbr {
    text-decoration: none;
}

.top-5,
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 1rem;
    list-style: none;
}

@media screen and (max-width: 1024px) {
    .top-5,
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.top-5 li img {
    width: 100%;
    height: auto;
}

.top-5 li img:hover {
    box-shadow: 0 20px 38px -10px rgba(0, 0, 0, 0.8);
    transform: translate3d(0, -2%, 0);
    transition: all 0.3s ease-in-out;
}

.grid li:hover {
    cursor: pointer;
}

.grid li img {
    width: 100%;
    height: auto;
}

.grid li:hover img {
    box-shadow: 0 20px 38px -10px rgba(0, 0, 0, 0.8);
    transform: translate3d(0, -2%, 0);
    transition: all 0.3s ease-in-out;
}

.grid li:hover h4 {
    color: var(--red);
}

.query-error {
    color: var(--red);
}

#social-logo {
    max-height: 100px;
    width: auto;
}

.back-to-top {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

#back-to-top-button {
    cursor: pointer;
    display: inline-block;
    height: 2.5rem;
    width: 2.5rem;
    background-image: url(../assets/icons/back-to-top-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    text-indent: -99999em;
    background-color: transparent;
    border: 0;
}

/********************
FOOTER
********************/

footer {
    background-color: var(--footer-background-color);
    color: var(--footer-text-color);
}

.footer-top {
    padding: 2.5rem 7.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-logo h1 {
    font-family: var(--font-title-family);
    font-size: 5rem;
    color: var(--red);
}

.footer-link {
    padding: 2rem 0 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    font-size: 1.25rem;
}

.footer-link div h3 {
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-link div ul {
    list-style-type: none;
}

.footer-link div ul li {
    margin-bottom: 0.25rem;
}

.footer-link a {
    text-decoration: none;
    color: var(--footer-text-color);
    border-bottom: 2px solid transparent;
}

.footer-link a:visited {
    color: var(--link-visited-color);
}

.footer-link a:hover {
    border-bottom: 2px solid var(--link-hover-color);
}

.footer-bottom {
    padding: 1rem 7.5rem;
}
