@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFE0;
    text-align: center;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.content {
    flex: 1;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: block;
    text-align: center;
}

/* CSS for the sticky topbar */
.topbar {
    background-color: #3CB371;
    color: white;
    padding: 10px 20px;
    margin: 0;
    height: 45px;

    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.topbar .home-link {
    position: absolute;
    left: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.topbar .search-link {
    position: absolute;
    right: 20px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.topbar .title {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Footer CSS */
footer {
    background-color: #e0e0e0;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.left {
    flex: 1;
}

.right {
    flex: 1;
    text-align: center;
}

.right img {
    max-width: 100%;
    height: auto;
}

/* CSS for tables in page.html */
table {
    border-collapse: collapse;
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
}

tbody tr:nth-child(odd) {
    background-color: #FFFFCC;
}

th, td {
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #E8F3E8;
    border-bottom: 2px solid #BFD8BF;
    text-align: left;
}

tbody tr:last-child td {
    border-bottom: none;
}

/*  Make anchors look "clickable" (they are) */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Small text at bottom of table (with love) */
.render-notice {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin: 20px 0;
}

/* CSS for the Leaflet map */
#map {
    height: 400px;
    width: 600px;
    margin: 20px auto;
}

/* CSS for the YASGUI editor */
#sparql-editor {
    width: 1000px;
    max-width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    margin: 0 auto 1rem auto;
    text-align: left;
    margin: 0;
}
