﻿@import url(/assets/css/base-style.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

.container {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    display: inline-block;
    color: var(--primary-color);
    font-size: 12rem;
    font-weight: bold;
    margin-bottom: 2rem;
    position: relative;
    animation: error-code-animation 2s infinite;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-gray-color);
}

.jewel {
    font-size: 5rem;
    display: inline-block;
    margin: 20px;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
}

.star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color-transparent);
    border-radius: 50%;
    animation: twinkle 2s infinite;
}


/* =========================== Animations =========================== */

@keyframes error-code-animation {
    0% {
        text-shadow: 0 0 0px #fff, 0 0 10px var(--primary-color-transparent), 0 0 40px var(--primary-color-high-transparent);
    }

    50% {
        text-shadow: 0 0 10px #fff, 0 0 30px var(--primary-color-transparent), 0 0 50px var(--primary-color-high-transparent);
    }

    100% {
        text-shadow: 0 0 0px #fff, 0 0 10px var(--primary-color-transparent), 0 0 40px var(--primary-color-high-transparent);
    }
}

@keyframes float {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes twinkle {
    0%,100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}
