* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}

body {
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* Blazor error UI - hidden by default */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Mobile-first layout */
.meowl-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 0;
}

.meowl-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: cover;
    margin: 0;
}

.meowl-container p {
    margin: 2rem 1.5rem 1.5rem;
    padding: 1rem;
    font-size: 1.1rem;
    text-align: center;
    color: #000;
    border: 2px dotted #999;
    border-radius: 4px;
    background: #fff;
    max-width: 90%;
    line-height: 1.4;
}

.meowl-container a {
    text-decoration: none;
    display: block;
    width: 90%;
    max-width: 400px;
}

.meowl-container button {
    width: 100%;
    background: #fff;
    color: #000;
    border: 3px solid #000;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    min-height: 56px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

    .meowl-container button:active {
        transform: scale(0.98);
        background: #f0f0f0;
    }

/* iPhone 14-17 optimization */
@media (max-width: 430px) {
    .meowl-image {
        max-height: 60vh;
        object-fit: cover;
    }

    .meowl-container p {
        font-size: 1rem;
        margin: 1.5rem 1rem 1rem;
    }

    .meowl-container button {
        font-size: 1.2rem;
        padding: 0.9rem 1.5rem;
    }
}

/* Safe area for notched iPhones */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .meowl-container {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Legacy styles for other pages */
header {
    background: #d6336c;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
    font-weight: bold;
}

.dancing-cat {
    position: absolute;
    width: 100px;
    height: auto;
}

.left-top {
    left: 15%;
    top: 20%;
}

.left-bottom-right {
    left: 25%;
    bottom: 35%;
}

.left-bottom-left {
    left: 5%;
    bottom: 35%;
}

.right-top {
    right: 15%;
    top: 20%;
}

.right-bottom-left {
    right: 25%;
    bottom: 35%;
}

.right-bottom-right {
    right: 5%;
    bottom: 35%;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
