:root {
    --cor-azul: #005DAA;
    --cor-amarela: #FFD400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    height: 100vh;
}

header {
    background: linear-gradient(to bottom , var(--cor-azul), var(--cor-amarela));
    width: 100%;
    height: 165px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin-bottom: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.305);
}

.logo-correios {
    width: 370px;
    filter: drop-shadow(0 1px 10px white);
    margin: 10px;
    box-sizing: border-box;
}

header h1 {
    font-size: 1.8rem;
    color: var(--cor-azul);
    text-align: center;
    white-space: wrap;
    text-shadow: 0 0 10px rgb(255, 255, 255);
}

nav {
    background-color: var(--cor-amarela);
    width: 100vw;
    width: 100%;
    height: 30px;
}

nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(9 , 50px);
    padding: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.232);
}

nav ul li a {
    background-color: white;
    text-decoration: none;
    padding: 2px;
    border-radius: 5px;
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: var(--cor-azul);
    color: white;
    padding: 3px;
}

.container-principal {
    background-color: rgba(128, 128, 128, 0.151);
    width: 90vw;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.mapa {
    width: 85%;
    max-width: 100%;
    height: 500px;
    margin: 10px;
    border-radius: 10px;
    border: 1px solid black;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.529);
}

.legenda {
    font-family: 'Courier New', Courier, monospace;
    border-style: double;
    padding: 8px;
    border-radius: 4px;
}

.legenda-lista {
    list-style: none;
    padding: 10px;
}

.legenda-item {
    display: flex;
    align-items: center;
    padding:2px;
}

.legenda-cor {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
}

.link-container {
    background: linear-gradient(to bottom , var(--cor-amarela), var(--cor-azul));
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.titulo-link {
    font-size: 1.2rem;
    color: black;
    font-weight: 600;
    text-shadow: rgb(255, 255, 255) 0 0 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    padding: 5px;
}

.link {
    list-style: none;
    display: grid;
    grid-template-columns: 150px 150px;
    gap: 5px;
    margin: 1px;
    padding: 5px;
}

.link li a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.link li a:hover {
    background-color: #005DAA;
    color: white;
    padding: 3px;
    border-radius: 5px;
}


.rodape {
    background-color: var(--cor-azul);
    font-size: 13px;
    text-align: center;
    padding: 8px;
}

.end {
    border-top: 1px solid rgba(255, 255, 255, 0.297);
}

@media screen and (max-width: 768px) {

nav {
    margin: 0;
}

nav ul {
    display: flex;
}

nav ul li a {
    font-size: 12px;
    padding: 2px;
    margin: 3px;
}

.container-principal {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    box-sizing: border-box;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.305);
}

.mapa {
    width: 100%;
    border: 1px solid black;
}
    
.legenda {
    width: 100%;
    margin: 0;
    padding: 2px;
}

.titulo {
    font-size: 1.5rem;
}

.legenda-lista {
    font-size: 20px;
    text-align: justify;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
    flex-wrap: wrap;
}


}