/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Flex container to push footer down */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #fff;

    /* Background image */
    background: url('kame-house-background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

/* Dark overlay for readability */
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0; /* behind content */
}

header {
    text-align: center;
    padding: 2rem;
    background-color: rgba(51, 51, 51, 0.7);
    border-radius: 0 0 15px 15px;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2rem;
}

header p {
    color: #ccc;
    margin-top: 0.5rem;
}

/* Main content area */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    position: relative;
    z-index: 1;

    flex-grow: 1;          /* push footer to bottom */
    align-items: flex-start; /* cards don't stretch vertically */
}

.service {
    background-color: rgba(68, 68, 68, 0.8);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    transition: transform 0.2s, background-color 0.2s;

    align-self: flex-start; /* ensures cards stay natural height */
}

.service:hover {
    transform: scale(1.05);
    background-color: rgba(85, 85, 85, 0.9);
}

a {
    text-decoration: none;
    color: #ffeb3b;
    font-weight: bold;
    font-size: 1.1rem;
}

.service p {
    font-size: 0.9rem;
    color: #ddd;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(51, 51, 51, 0.7);
    color: #aaa;
    position: relative;
    z-index: 1;
}

/* Mobile responsive */
@media (max-width: 600px) {
    main {
        flex-direction: column;
        align-items: center;
    }
}

/* Desktop-only fixed background */
@media (min-width: 601px) {
    body {
        background-attachment: fixed;
    }
}
