body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 20px;
}

h1 {
    font-size: 1.8em;
}

h1, h2, h3 {
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    text-align: left;
}

tr:hover {
    background-color: #cccccc;
}

/* Responsive styles */
@media screen and (max-width: 600px) {
    .ancestor-number {
        display: none;
    }

    .ancestor-individual {
        display: flex;
    }

    .ancestor-individual .ancestor-name { /* Name column */
        flex: 1; /* Allow this column to grow and wrap */
        min-width: 0; /* Allow shrinking below content size */
        display: flex; /* Add this */
        align-items: center; /* And this to vertically center the content */
    }

    .ancestor-individual .ancestor-dates { /* Date column */
        flex-shrink: 0; /* Prevent this column from shrinking */
        width: 7em; /* Give the date column a consistent width */
    }
}

.action-icon {
    font-size: 36px;
    height: 36px;
    width: 36px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    vertical-align: middle;
    line-height: 1; /* Ensure icon height dictates line height */
    display: block; /* check om det er det rigtige */
}

.action-icon:hover {
    opacity: 0.7;
}

.material-icons {
    line-height: 1; /* Reset line-height for material icons */
}

.material-icons.red {
    color: red;
}

.material-icons.green {
    color: green;
}

.action-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    line-height: 1;
}

.inline {
    display: inline;
}

.ancestor-table {
    border: 1px solid;
}

.ancestor-generation {
    text-align: center;
    background-color: #f2f2f2;
    padding: 8px;
    border-top: 1px solid;
}

.ancestor-generation h2 {
    margin: 0;
}

.ancestor-generation h3 {
    margin: 0;
    font-weight: normal;
}

.ancestor-individual {
    border-top: 1px solid;
}

.ancestor-individual td {
    padding: 8px;
}

.ancestor-name {
    vertical-align: center;
}

#locales {
    border: none;
    background: transparent;
}

.file-upload {
    display: inline-block;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}
.file-upload input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    background: white;
    cursor: inherit;
    display: block;
}
.file-upload-label {
    color: #fff;
    background-color: #007bff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}
.file-upload-label:hover {
    background-color: #0056b3;
}
#file-chosen {
    margin-left: 10px;
    font-family: sans-serif;
}
