*{
    padding:0;
    margin:0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    text-align: center;
}

h1{
    font-weight: bold;
    font-size: 4.5rem;
}

h2{
    font-weight: bold;
    font-size: 1.5rem;
}

.text-container{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.text-container p{
    max-width: 420px;
    
}

p:last-of-type{
    font-size: 1rem;
}

.img-container{
    width: 50%;
    height: 100vh;
}

.img-container img{
    width: 100%;
    height: 100%;
    
}

#error404{
    color: #FFFFFF;
    background: linear-gradient(to bottom, #F09819, #FF512F);
    background: -webkit-linear-gradient(top, #F09819, #FF512F);
    background: -moz-linear-gradient(top, #F09819, #FF512F);
    display:flex;
    overflow: hidden;
}

#error500{
    color: #FFFFFF;
    background: linear-gradient(to bottom, #5433FF, #5429CF);
    background: -webkit-linear-gradient(top, #5433FF, #5429CF);
    background: -moz-linear-gradient(top, #5433FF, #5429CF);
    display:flex;
    overflow: hidden;
}

#error404b, #error500b{
    padding-top: 50px;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#error404b h1, #error404b p:first-of-type, #error500b h1, #error500b p:first-of-type{
    color: #FF4900;
}

#error500b p:nth-child(6){
    width: 460px;
    max-width: 100vw;
}

#error404b p:nth-child(8){
    width: 480px;
    max-width: 100vw;
}

#error404 p:last-of-type::before, #error500 p:last-of-type::before{
    content: "";
    background-image: url(./img/backarrow.png);
    display: block;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    top: 20px;
    right: 30px;
}

#error404b p:last-of-type::before{
    background-image: url(./img/arrowbackblack.png);
    top: 22px;
    background-size: auto;
}

@media (max-width: 1024px){
    #error404, #error500{
        flex-direction: column;
    }

    .text-container, .img-container{
        height: 50vh;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .img-container img{
        height: 100%;
    }
}

@media (max-width: 768px){
    *{
        font-size: 12px;
    }

    #error400 p:last-of-type::before, #error500 p:last-of-type::before{
        top:18px;
    }
}