﻿body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.ParentErrorContainer {
    position: relative;
    width: 100%;
    padding: 10px;
}

.error-container {
    width: 100%;
    max-width: 550px;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease-in-out;
    text-align: center;
}

.error-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    animation: bounce 1.5s infinite;
}

.error-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.error-message {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn {
    margin-top: 10px;
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: #a80000;
    color: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(168,0,0,0.3);
    transition: all 0.3s ease;
}

    .btn:hover {
        background: #7a0000;
        transform: translateY(-2px);
    }

/* === Animations === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* === Responsive Breakpoints === */

@media (max-width: 374px) {
    .errorpar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 10%;
        height: 100%;
    }

    .error-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .error-title {
        font-size: 18px;
    }

    .error-message {
        font-size: 14px;
    }

    .btn {
        font-size: 13px;
        padding: 10px 20px;
    }
}

@media (min-width: 375px) and (max-width: 424px) {
    .errorpar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 10%;
        height: 100%;
    }

    .error-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .error-title {
        font-size: 20px;
    }

    .error-message {
        font-size: 15px;
    }
}


@media (min-width: 425px) and (max-width: 767px) {
    .errorpar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 10%;
        height: 100%;
    }

    .error-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .error-title {
        font-size: 22px;
    }

    .error-message {
        font-size: 16px;
    }

    .error-icon {
        width: 80px;
        height: 80px;
    }
}






@media (min-width: 768px) and (max-width: 1023px) {
    .errorpar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 10%;
        height: 100%;
    }
    .error-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .error-title {
        font-size: 26px;
    }

    .error-message {
        font-size: 17px;
    }

    .error-icon {
        width: 90px;
        height: 90px;
    }
}


/* Desktops (1024px and above) */
@media (min-width: 1024px) {
    .errorpar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 10%;
        height: 100%;
    }

    .error-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .error-title {
        font-size: 28px;
    }

    .error-message {
        font-size: 17px;
    }
}
