﻿/* Base styles */

body {
    font-size: 16px;
    margin: 0;
    font-family: system-ui, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    flex-direction: column;
}

.container {
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.3em;
    word-break: break-word;
}

p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5em;
    line-height: 1.5;
}

a.button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

    a.button:hover {
        background-color: #0056b3;
    }

/* Page type specific styling */
body.error h1 {
    color: #dc3545;
}

body.landing h1 {
    color: #007bff;
}

.stacktrace {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 12px;
    font-size: 0.9rem;
    text-align: left;
    overflow-x: auto;
    max-height: 300px;
    margin-top: 20px;
}


#error-code {
    font-size: 72px;
    color: #dc3545;
    margin-bottom: 0;
}

#error-message {
    font-size: 24px;
    margin: 10px 0;
}

#error-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}


/* Responsive tweaks */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1rem;
    }

    a.button {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    a.button {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}
