/* --- Base Layout --- */

body {
    margin: 0;
    padding: 20px;
    font-family: system-ui, sans-serif;
    background-image: url("/images/background.png");
    background-size: cover; /* fills the screen */
    background-position: center; /* keeps it centred */
    background-attachment: fixed; /* subtle parallax effect */
    background-repeat: no-repeat; /* no tiling */

    color: #FFF8C2;
}

h1, h2 {
    margin-top: 0;
    font-weight: 600;
    color: #FFF8C2;
}

/* --- Detail Page Image --- */

.detail-image {
    max-width: 400px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    display: block;
    margin-bottom: 20px;
}

/* --- Specification Table --- */

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 600px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    overflow: hidden;
}

table th,
table td {
    padding: 10px 14px;
    text-align: left;
    color: #222;
}

table th {
    background: #eef3f8;
    width: 180px;
    font-weight: 600;
    color: #0a3d62;
}

table tr:nth-child(even) td {
    background: #fafbfc;
}

.detail-description h2 {
    color: #0a3d62; 
    margin-top: 0;
}

.detail-description {
    background: white;
    color: #222;
    padding: 16px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    max-width: 600px;
    margin-top: 20px;
    line-height: 1.5;
}


/* --- Links --- */

a {
    color: #0a3d62;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.tile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    text-decoration: none;
    color: #222;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    max-width: 180px;
    margin: 0 auto; 
}

    .tile-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

.tile-image {
    width: 150px;
    height: 100px;
    object-fit: contain;
}

.tile-label {
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: auto; 
    gap: 20px;
    margin-top: 20px;
}

.family-image-container {
    text-align: left;
    margin-bottom: 20px;
}

.family-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

