* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    color: white;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Cascadia Mono', 'Cascadia Code', 'Courier New', monospace;
    padding: 1rem;
}

.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.bookmark {
    position: absolute;
    top: 0;
    left: -2px;
    right: -1.5px;
    transform: translateY(-100%);
    padding: 0.5rem 1rem;
    background-color: black;
    color: #ff6600;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
    transition: opacity 0.2s;
    border: 2px solid #ff6600;
    border-bottom: none;
    white-space: normal;
    box-sizing: border-box;
    margin-top: -2px;
    max-width: calc(100% + 4px);
    word-wrap: break-word;
}

.bookmark:hover {
    opacity: 0.8;
    cursor: pointer;
}

.bookmark .underline-text {
    text-decoration: underline;
}

.alert-box {
    border: 2px solid #ff6600;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    width: 100%;
    position: relative;
}

.error-code {
    font-size: 5rem;
    font-weight: bold;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff6600;
    margin-bottom: 1rem;
}

.vertical-separator {
    display: none;
}

.right-content {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.message {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ff6600;
    margin-bottom: 1rem;
    text-align: center;
}

.separator {
    width: 100%;
    height: 2px;
    background-color: #ff6600;
    margin-bottom: 1rem;
}

.status-bar {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-wrap: break-word;
    text-align: center;
}

.footer {
    font-size: 0.55rem;
    color: #888;
    line-height: 1.5;
    margin-top: 1rem;
    text-align: center;
    word-wrap: break-word;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    body {
        padding: 2rem;
    }

    .alert-box {
        flex-direction: row;
        align-items: center;
        padding: 2rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .error-code {
        font-size: 7rem;
        width: 30%;
        margin-bottom: 0;
        padding-left: 1rem;
        padding-right: 0.5rem;
    }

    .vertical-separator {
        display: block;
        width: 2px;
        height: 100%;
        background-color: #ff6600;
        margin: 0 1.5rem;
        align-self: stretch;
        flex-shrink: 0;
    }

    .right-content {
        width: 70%;
    }

    .message {
        font-size: 1.5rem;
        text-align: left;
    }

    .status-bar {
        text-align: left;
    }

    .footer {
        text-align: left;
    }

    .bookmark {
        white-space: nowrap;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .container {
        max-width: 750px;
    }

    .alert-box {
        padding: 1.75rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .error-code {
        font-size: 9rem;
        padding-left: 1rem;
        padding-right: 0.5rem;
    }

    .status-bar {
        font-size: 0.9rem;
    }

    .footer {
        font-size: 0.6rem;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background-color: black;
    border: 2px solid #ff6600;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    padding-top: 3rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid #ff6600;
    color: #ff6600;
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.2s;
    font-family: 'Cascadia Mono', 'Cascadia Code', 'Courier New', monospace;
}

.modal-close:hover {
    opacity: 0.8;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-title {
    color: #ff6600;
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
}

.modal-text {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.modal-link {
    color: #ff6600;
    text-decoration: underline;
}

.modal-link:hover {
    opacity: 0.8;
}

/* Tablet and larger screens - Modal */
@media (min-width: 768px) {
    .modal-content {
        max-width: 700px;
        padding: 2.5rem;
        padding-top: 3.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-text {
        font-size: 1rem;
    }

    .modal-close {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2.5rem;
        width: 3rem;
        height: 3rem;
    }
}

/* Desktop screens - Modal */
@media (min-width: 1024px) {
    .modal-content {
        max-width: 800px;
        padding: 3rem;
        padding-top: 4rem;
    }

    .modal-title {
        font-size: 1.75rem;
    }

    .modal-text {
        font-size: 1.1rem;
    }
}

