<!DOCTYPE html><html><head>
    <title>404 Not Found</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width">
    <link href="css.css" rel="stylesheet" type="text/css">
    <style>
        body, html {
            height: 100%;
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: #f1f4f5;
            color: #37474f;
            font-family: 'Open Sans', sans-serif;
        }
        .container {
            display: flex;
            width: 535px;
        }
        .container-code{
            min-width: 250px;
            text-align: center;
        }
        .container-text {
            min-width: 250px;
            padding-left: 20px;
        }
        .error_code {
            display: block;
            font-size: 92px;
            font-weight: 700;
            margin-top: -25px;
        }
        .error_brief {
            display: block;
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 15px;
        }

        @media (max-width: 768px) {
            .container {
                display: flex;
                flex-direction: column;
                width: 100%;
            }
            .container-text{
                padding: 30px;
                text-align: center;
                min-width: auto;
            }
            .container-code{
                min-width: auto;
                text-align: center;
                margin-top: 100px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="container-code">
            <span class="error_code">404</span>
            <span class="error_description message_2"></span>
        </div>
        <div class="container-text">
            <span class="error_brief message_0"></span>
        </div>
    </div>
<script>
    window.languages = {
        'en': {
            '.message_0': 'The requested resource was not found on the server',
            'title': '404 Not Found',
            '.message_2': 'Not Found'
        },
        'pl': {
            '.message_0': 'Å»Ä…dany zasÃ³b nie zostaÅ‚ znaleziony na serwerze',
            'title': '404 Nie znaleziono',
            '.message_2': 'Nie znaleziono'
        },
        'de': {
            '.message_0': 'Die angeforderte Ressource wurde auf dem Server nicht gefunden',
            'title': '404 Nicht gefunden',
            '.message_2': 'Nicht gefunden'
        },
        'uk': {
            '.message_0': 'Ð—Ð°Ð¿Ð¸Ñ‚ÑƒÐ²Ð°Ð½Ð¸Ð¹ Ñ€ÐµÑÑƒÑ€Ñ Ð½Ðµ Ð·Ð½Ð°Ð¹Ð´ÐµÐ½Ð¾ Ð½Ð° ÑÐµÑ€Ð²ÐµÑ€Ñ–',
            'title': '404 ÐÐµ Ð·Ð½Ð°Ð¹Ð´ÐµÐ½Ð¾',
            '.message_2': 'ÐÐµ Ð·Ð½Ð°Ð¹Ð´ÐµÐ½Ð¾'
        },
        'cn': {
            '.message_0': 'æœåŠ¡å™¨ä¸Šæœªæ‰¾åˆ°è¯·æ±‚çš„èµ„æº',
            'title': '404 æœªæ‰¾åˆ°',
            '.message_2': 'æœªæ‰¾åˆ°'
        },
        'ru': {
            '.message_0': 'Ð—Ð°Ð¿Ñ€Ð¾ÑˆÐµÐ½Ð½Ñ‹Ð¹ Ñ€ÐµÑÑƒÑ€Ñ Ð½Ðµ Ð½Ð°Ð¹Ð´ÐµÐ½ Ð½Ð° ÑÐµÑ€Ð²ÐµÑ€Ðµ',
            'title': '404 ÐÐµ Ð½Ð°Ð¹Ð´ÐµÐ½',
            '.message_2': 'ÐÐµ Ð½Ð°Ð¹Ð´ÐµÐ½'
        }
    };

	function display(){
		let default_lang = 'en',
			browser_lang = window.navigator.language || navigator.userLanguage,
			lang = '';

		browser_lang = browser_lang.slice(0, 2).toLowerCase();

		if( window.languages.hasOwnProperty(browser_lang) ){
			lang = browser_lang;
		}else{
			lang = default_lang;
		}

		for (let key in window.languages[lang]){
			if(undefined !== document.querySelector(key)){
				document.querySelector(key).innerHTML = window.languages[lang][key];
			}
		}

		return false;
	}

	document.addEventListener("DOMContentLoaded", display);
</script>

</body></html>