@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Gerais */
:root {
    --color01: #034001;
    --color02: #022601;
    --color03: #488C03;
    --color04: #84BF04;
    --color05: #C0D904;

    --font-default: "Noto Sans";
}

body
{
    margin: 0px;
    font-family: var(--font-default);
    background: linear-gradient(to bottom, var(--color04), var(--color03));

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topo da Pﾃ｡gina */
.title
{
    font-weight: 750;
    text-shadow: -2px 2px 0px black;
}

header
{
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px 15px 10px;
    margin: 0px;
    background-color: var(--color01);
    box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 1);
}

.header-top {
    display: flex;
    align-items: center;
}

.header-top img:first-child {
    justify-self: end;
}

.header-top p {
    justify-self: center;
    text-align: center;
}

.header-top img:last-child {
    justify-self: start;
}

header p
{
    margin: 0px;
    color: white;
    font-size: 2em;
    font-weight: 600;
}

nav a 
{
    text-shadow: -1.5px 1.5px 0px black;
    color: var(--color04);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 550;
    padding: 5px 10px;
    margin: 8px 5px 0px 5px;
}

nav a:hover
{
    background-color: var(--color02);
    border-radius: 10px;
    color: var(--color05);
}

.logo {
    margin: 5px;
    width: 80px;
    height: auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Corpo da Pﾃ｡gina */
main {
    color: black;
    text-align: center;
    flex: 1;
    font-size: 1.1em;
    padding: 25px;
    margin: 0 auto;
    max-width: 1000px;
    background-color: white;
    box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 1);
}

main h1
{
    display: flex;
    justify-content: center;
    font-weight: 800;
}

.link-a
{
    padding-right: 2px;
    padding-left: 2px;
    font-weight: 800;
    color: rgb(0, 160, 0);
    text-decoration: none;
}

.link-a:hover
{
    color: rgb(0, 255, 0);
    text-decoration: underline;
}

/* Rodapﾃｩ */
footer {
    color: white;
    text-align: center;
    font-size: 0.55em;
    padding: 20px 10px 10px 10px;
    background-color: var(--color02);
    box-shadow: 0px 0px 0px 3px rgba(0, 0, 0, 1);
}

.footer-links {
    display: flex;
    font-size: 1.5em;
    justify-content: center;
    gap: 15px;
    margin: 10px;
}

.footer-links a {
    text-decoration: none;
    color: white;
}

.footer-links a:hover {
    color: var(--color05);
    cursor: pointer;
}

footer div {
    font-size: 1.9em;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
    }

    nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 5px 8px;
        font-size: 1.25em;
    }

    .logo {
        width: 60px;
    }

    header p {
        font-size: 1.8em;
    }
}

* {
    box-sizing: border-box;
}

main {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

#searchInput {
    width: 100%;
    box-sizing: border-box;
}

.grid, .card {
    max-width: 100%;
}

/* BOTÃO VOLTAR AO TOPO */
#btnTopo {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--color01);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.25s;
    z-index: 9999;
}

#btnTopo.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#btnTopo:hover {
    background: var(--color04);
    transform: translateY(-2px);
}