* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.astronaut-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
}

.astronaut {
    position: relative;
    width: 100px;
    height: 150px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.helmet {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 0;
    left: 10px;
    overflow: hidden;
}

.helmet::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    top: 20px;
    left: 15px;
}

.helmet::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 50%;
    top: 20px;
    right: 15px;
}

.body {
    position: absolute;
    width: 60px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 30px;
    top: 60px;
    left: 20px;
}

.arm-left, .arm-right {
    position: absolute;
    width: 20px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 10px;
    top: 70px;
}

.arm-left {
    left: 5px;
    transform: rotate(15deg);
}

.arm-right {
    right: 5px;
    transform: rotate(-15deg);
}

.leg-left, .leg-right {
    position: absolute;
    width: 20px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 10px;
    top: 130px;
}

.leg-left {
    left: 25px;
}

.leg-right {
    right: 25px;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star:nth-child(1) {
    width: 3px;
    height: 3px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    width: 2px;
    height: 2px;
    top: 40%;
    left: 80%;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    width: 4px;
    height: 4px;
    top: 70%;
    left: 30%;
    animation-delay: 1s;
}

.star:nth-child(4) {
    width: 3px;
    height: 3px;
    top: 10%;
    left: 70%;
    animation-delay: 1.5s;
}

.star:nth-child(5) {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 60%;
    animation-delay: 2s;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    animation: pulse 2s infinite;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a3aa);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #4ecdc4;
}

.btn-secondary:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-3px);
}

.fun-fact {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    max-width: 600px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.planet-container {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    animation: rotate 60s linear infinite;
}

.planet {
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px rgba(255, 107, 107, 0.5);
}

.planet-ring {
    position: absolute;
    width: 250px;
    height: 70px;
    border: 10px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(60deg);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .planet-container {
        width: 200px;
        height: 200px;
        bottom: -100px;
        right: -100px;
    }

    .planet {
        width: 100px;
        height: 100px;
    }

    .planet-ring {
        width: 170px;
        height: 50px;
    }
}