/* Código base fornecido para o desafio de estilização do Wikipedia */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

ul {
    list-style: none;
    padding-left: 5px;
}

a {
    color: blue;
    text-decoration: none;
}

.bar {
    background-color: #f9f9fb;
    padding: 15px;
    border-top: solid 1px #cdcdcd;
    border-bottom: solid 1px #cdcdcd;
}

.content {
    max-width: 1440px;
    margin: auto;
    grid-gap: 3rem;
    display: grid;
    gap: 3rem;
    grid-template-areas: "sidebar main anchors";
    grid-template-columns: minmax(0, 15rem) minmax(0, 2.5fr) minmax(0, 15rem);
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer {
    min-height: 100px;
    border-top: solid 1px #cdcdcd;
    padding: 20px;
}

.anchors {
    border-left: solid 1px #cdcdcd;
    padding-left: 15px;
}

.sidebar {
    border-right: solid 1px #cdcdcd;
}

figure {
    text-align: center;
}


/* Continuação do estilo para o desafio */
.search-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}


.info-table {
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    margin: 10px;
    font-size: 14px;
    float: right;
    max-width: 250px; 
}

.info-table th,
.info-table td {
    padding: 8px;
    border-top: 1px solid #a2a9b1;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background-color: #f2f2f2;
}

.info-table img {
    max-width: 100%;
    height: auto;
    display: block;
}

.info-table .table-title th {
    background-color: #f8e1e4;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    border-top: none;
}

.info-table .table-image {
    text-align: center;
    border-top: 1px solid #a2a9b1;
}

.info-table figure {
    margin: 0;
}

.info-table figcaption {
    font-style: italic;
    font-size: 0.9em;
    padding-top: 5px;
}

.image-gallery {
    float: left;
    margin: 0 15px 15px 0;
    border: 1px solid #ccc;
    padding: 4px;
    background-color: white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    width: 200px;
}

.image-gallery img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    text-align: justify;
}

h2 {
    font-weight: lighter;
    font-family: "Linux Libertine", "Georgia", serif;

}

a:hover {
    text-decoration: underline;
}

.stub {
    display: flex;
}