﻿:root {
    --title-info-he: "אופס, משהו לא תקין בדף";
    --title-info-en: "Oops, Something Went Wrong";
    --title-info-fr: "Oups, quelque chose s’est mal passé";
    --title-info-ru: "Ой! Что-то пошло не так";
    --btn-info-he: "לעמוד הבית";
    --btn-info-en: "Try Again";
    --btn-info-fr: "Page D’accueil";
    --btn-info-ru: "На главную страницу";
}

body, html {
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    position: relative;
    justify-content: center;
    flex-direction: column;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-color: wheat;
}
.goto-contaner {
    margin-top: 1.5rem;
}
.info-contaner {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    right: 0;
    justify-content: flex-start;
    align-items: center;
    font-family: sans-serif, SimplerPro Regular;
    font-weight: bold;
    font-size: 28px;
    height: 58%;
    color: #363D50;
}

.btn {
    border-radius: 8px;
    background-color: #002D74;
    height: 46px;
    min-width: 206px;
    width: fit-content;
    padding: 0.3rem 1rem;
    font-family: SimplerPro Bold, sans-serif;
    cursor: pointer;
}

    .btn span {
        font-size: 22px;
        font-weight: bold;
        color: white;
    }

.title-contaner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#error-number {
    color: #363D50;
    font-family: sans-serif, SimplerPro Semibold;
    font-size: 9rem;
    font-weight: bold;
    text-align: center;
}
#error-info {
    max-width: 100%;
    font-size: 1.5rem;
    text-align: center
}

/* mobile */
@media screen and (max-width: 767px) {
    body {
        background-image: url(https://media.isrotel.co.il/umb/ImagesMobile/page-error.png);
        /*background-image: url(../../ImagesMobile/page-error.png);*/
    }

    #error-info {
        margin-top: 24vh;
        max-width: 80%;
    }
        #error-info:lang(ru),
        #error-info:lang(he) {
            max-width: 100%;
        }
        .title-contaner {
            height: 10rem;
        }

    .info-contaner {
        height: 80vh;
        width: 96%;
    }

    .btn {
        margin-top: 32vh;
        width: 185px;
        height: fit-content;
    }
}

/* desktop */
@media (min-width: 768px) {
    body {
        /*background-image: url(../../Images/page-error.png);*/
        background-image: url(https://media.isrotel.co.il/umb/Images/page-error.png);
    }

    .info-contaner {
        font-size: 3.5vh;
        width: 100%;
    }

    .title-contaner {
        align-items: center;
    }

    .info-contaner {
        width: 40%;
    }
}

@media (min-width: 1440px) {
    .info-contaner {
        width: 47%;
    }
}

body:lang(he) .title-contaner > #error-info::before {
    content: var(--title-info-he);
}

body:lang(en) .title-contaner > #error-info::before {
    content: var(--title-info-en);
}

body:lang(fr) .title-contaner > #error-info::before {
    content: var(--title-info-fr);
}

body:lang(ru) .title-contaner > #error-info::before {
    content: var(--title-info-ru);
}

body:lang(he) .btn > span::before {
    content: var(--btn-info-he);
}

body:lang(en) .btn > span::before {
    content: var(--btn-info-en);
}

body:lang(fr) .btn > span::before {
    content: var(--btn-info-fr);
}

body:lang(ru) .btn > span::before {
    content: var(--btn-info-ru);
}
