/*==========================error 404 styling start===============================*/
.error_section {
    background: var(--secondary);
    height: 100vh;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 7%;
}

.error_section .error_img {
    height: 16rem;
    position: absolute;
    right: 0;
    bottom: 1rem;
}

.error_section .text h1 {
    font-size: clamp(3rem, 4vw, 4.25rem);
    margin-block-end: 0.5rem;
}

.error_section .text p {
    font-size: 1.5rem;
}

.redirect_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: #ffffff;
    border: none;
    color: var(--theme);
    text-align: center;
    font-size: 17px;
    padding: 8px 12px;
    width: 100px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
    height: 24px;
    text-decoration: none;
}

.redirect_btn:last-child {
    background-color: transparent;
    outline: 1px solid #ffffff;
    color: #ffffff;
}

.redirect_btn span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.redirect_btn span:after {
    content: "»";
    position: absolute;
    opacity: 0;
    top: 0;
    right: -15px;
    transition: 0.5s;
}

.redirect_btn:hover span {
    padding-right: 15px;
}

.redirect_btn:hover span:after {
    opacity: 1;
    right: 0;
}

/*============================error 404 styling end===============================*/
@media screen and (max-width: 980px) {
    .error_section .error_img {
        height: auto;
        width: 50%;
        position: absolute;
        right: 0;
        bottom: 1rem;
    }
}

@media screen and (max-width: 425px) {
    .error_section .error_img {
        width: 100%;
        height: auto;
        position: absolute;
        right: 0;
        bottom: 1rem;
    }

    .error_section .text p {
        font-size: 1rem;
    }
}
