@import url("https://fonts.googleapis.com/css?family=Roboto:700|Nunito%20Sans:400");

body {
    font-family: "Nunito Sans";
    font-weight: 400;
    padding: 1rem;
    background-color: #e5e4e6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Roboto";
    font-weight: 700;
    margin-bottom: 0px;
    margin-top: 0px;
}

html {
    font-size: 100%;
} /* 16px */

h1 {
    font-size: 4.21rem; /* 67.36px */
}

h2 {
    font-size: 3.158rem; /* 50.56px */
}

h3 {
    font-size: 2.369rem; /* 37.92px */
}

h4 {
    font-size: 1.777rem; /* 28.48px */
}

h5 {
    font-size: 1.333rem; /* 21.28px */
}

small {
    font-size: 0.75rem; /* 12px */
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
button {
    border: 0;
    cursor: pointer;
}
.button.ghost {
    background: #eee;
    color: #111;
}
[disabled] {
    cursor: not-allowed;
}
.fields-list {
    margin-top: 10px;
}
.field-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}
.field-row input[type="text"] {
    flex: 1;
}
.small {
    font-size: 13px;
    color: #555;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th,
td {
    border: 1px solid #eee;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}
.actions {
    display: flex;
    gap: 8px;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f2f4f7;
    font-size: 12px;
}
.danger {
    background: #ffdada;
    color: #800;
}
.muted {
    color: #666;
}
.button.muted {
    color: #666;
    background-color: #ddd;
    border: 0.1px #555 solid;
}
.inline {
    display: inline-block;
}

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

td,
th {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #efefef;
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex.horizontal {
    flex-direction: row;
    align-items: center;
}

.flex.vertical {
    flex-direction: column;
    align-items: center;
}

/* ----------- New Things ------------ */

:root {
    --gap: 1rem;
    --card-bg: #fff;
    --card-border: #e6e6e6;
    --radius: 12px;
    --pad: 1.5rem;
    --max-width: 100vw;
}
/* page container */
.page-header {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: var(--pad);
    box-shadow: 1px 1px 8px rgba(16, 24, 40, 0.08);
}

/* filters row */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}
.filters label {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 100%;
    margin-inline: 3rem;
    margin-block: 1rem;
    margin-inline: auto;
}
.filters h4 {
    width: 100%;
    margin-bottom: 1rem;
}

.item .button {
    margin-top: auto;
}

.styled-link {
    margin-right: auto;
    text-decoration: none;
}

.button {
    background-color: #ff8200;
    padding: 0.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
}

button.button {
    width: 100%;
    text-decoration: none;
    font-weight: 400;
    font-size: 100%;
}

.limit-width {
    max-width: 1200px;
    margin: auto;
}

.label-text {
    font-weight: 600;
}
select {
    background: #eee;
    width: 200px;
}

/* list/grid container */
.items {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 1rem;
}
/* card */
.item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.age-control {
    justify-content: center;
    justify-items: center;
}
.age-control * {
    margin: auto;
}
#age-number {
    width: 64px;
    margin: auto;
}
select {
    width: 100%;
}

.age-number {
    max-width: 100px;
}
.age-control {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-direction: row;
}
#age-slider {
    width: 100%;
    background: #e6e6e6;
    border-radius: 6px;
}

@media (max-width: 1000px) {
    .items {
        width: 100%;
        max-width: var(--max-width);
        gap: var(--gap);
        display: grid;
        flex-direction: column;
        grid-template-columns: repeat(2, 1fr);
    }
    .filters {
        flex-direction: column;
    }
    .filters label {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 700px) {
    .items {
        width: 100%;
        max-width: var(--max-width);
        gap: var(--gap);
        display: flex;
        flex-direction: column;
    }
    .filters label {
        width: 100%;
        margin-right: auto;
    }
    .filters {
    }
}
