/* 404 Page Styles */

@font-face {
    font-family: custom-font;
    src: url(/assets/fonts/FiraCode.ttf);
}

* {
    font-family: custom-font, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: #fff;
    background: #0f1419;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Handle iPhone safe areas */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    position: relative;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.error-code {
    font-size: 72px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    padding-right: 30px;
    margin-right: 30px;
}

.error-message {
    text-align: left;
}

.error-message h2 {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: #ffffffbf;
}

.home-button {
    color: #000;
    background-color: #fff;
    border-radius: 50px;
    padding: 12px 24px;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    border: 0;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    margin-top: 10px;
}

.home-button:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .error-container {
        flex-direction: column;
        text-align: center;
    }
    
    .error-code {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
        padding-right: 0;
        padding-bottom: 20px;
        margin-right: 0;
        margin-bottom: 20px;
        font-size: 48px;
    }
    
    .error-message {
        text-align: center;
    }
}