/*
 * Dark theme styles for wp_die() error pages
 * Inspired by main.css
*/

/* --- General Page Style --- */
html {
    background-color: #14141d;
    background-image: url('/site/templates/img/bg.jpg');
    background-repeat: no-repeat;
    background-size: auto;
	background-position: top center;
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    /* --- CHANGES HERE --- */
    padding: 0;          /* Removed padding which caused the scrollbar */
    width: 100%;         /* Explicitly set width for robust centering */
    min-height: 100%;
    margin: 0;
    
    color: #eee;
    font-family: Verdana, Geneva, sans-serif;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Main Error Box --- */
.error-box {
    background-color: #1e1f23;
    text-align: center;
    max-width: 600px;
    padding: 40px 40px 20px;
    border-radius: 10px;
    border-top: 3px solid #bd0d0d;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0 20px 20px; /* Added margin for spacing on small screens */
}

.error-box img {
    width: 288px;
    max-width: 80%;
    height: auto;
    margin: 0 0 30px;
}

.error-box h1 {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: normal;
    color: #ece2e2;
    margin-top: 0;
    margin-bottom: 15px;
}

.error-box p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 1em;
}

.error-box a {
    color: #f8ff2f; /* Bright yellow from main theme */
    text-decoration: none;
}

.error-box a:hover {
    text-decoration: underline;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   .error-box {
		margin-top: 120px;
	}
}