/* styles.css */

body {
    background: linear-gradient(135deg, #1f1c2c, #928dab);
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: white;
    overflow: hidden;
    position: relative;
}

.container {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.container h1 {
    font-size: 72px;
    margin: 0;
    color: #ff4757;
}

.container p {
    font-size: 24px;
    margin: 10px 0;
    color: #ccc;
}

.background-404 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.background-404 .line {
    position: absolute;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fade 5s ease-in-out infinite;
}

.background-404 .line:nth-child(1) {
    top: 0;
    font-size: 200px;
    animation: zigzag1 10s linear infinite;
    animation-delay: 0s;
}

.background-404 .line:nth-child(2) {
    top: 25%;
    font-size: 180px;
    animation: zigzag2 12s linear infinite;
    animation-delay: 2s;
}

.background-404 .line:nth-child(3) {
    top: 50%;
    font-size: 160px;
    animation: zigzag3 15s linear infinite;
    animation-delay: 4s;
}

.background-404 .line:nth-child(4) {
    top: 75%;
    font-size: 140px;
    animation: zigzag4 18s linear infinite;
    animation-delay: 6s;
}

.background-404 .line:nth-child(5) {
    top: 10%;
    font-size: 120px;
    animation: zigzag1 14s linear infinite;
    animation-delay: 8s;
}

.background-404 .line:nth-child(6) {
    top: 35%;
    font-size: 100px;
    animation: zigzag2 16s linear infinite;
    animation-delay: 10s;
}

.background-404 .line:nth-child(7) {
    top: 60%;
    font-size: 80px;
    animation: zigzag3 20s linear infinite;
    animation-delay: 12s;
}

.background-404 .line:nth-child(8) {
    top: 85%;
    font-size: 60px;
    animation: zigzag4 22s linear infinite;
    animation-delay: 14s;
}

@keyframes fade {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes zigzag1 {
    0% {
        transform: translateX(-100%);
        opacity: 0.1;
    }
    50% {
        transform: translateX(0);
        opacity: 0.5;
    }
    100% {
        transform: translateX(100%);
        opacity: 0.1;
    }
}

@keyframes zigzag2 {
    0% {
        transform: translateX(100%);
        opacity: 0.1;
    }
    50% {
        transform: translateX(0);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0.1;
    }
}

@keyframes zigzag3 {
    0% {
        transform: translateX(-120%);
        opacity: 0.1;
    }
    50% {
        transform: translateX(0);
        opacity: 0.5;
    }
    100% {
        transform: translateX(120%);
        opacity: 0.1;
    }
}

@keyframes zigzag4 {
    0% {
        transform: translateX(120%);
        opacity: 0.1;
    }
    50% {
        transform: translateX(0);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-120%);
        opacity: 0.1;
    }
}

.watermark {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    text-align: center;
}

.game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #222;
    display: none;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.game h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 24px;
}

.circle, .bomb {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.circle {
    background-color: #f00;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.bomb {
    background-color: #f00;
    width: 50px;
    height: 50px;
    animation: pulse 1s infinite;
}

.scoreboard {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    display: none;
    z-index: 2;
}

.scoreboard h2 {
    margin: 0;
    font-size: 24px;
    color: #ff4757;
}

.end-button {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    background-color: #ff4500;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

.end-button:hover {
    background-color: #ff6347;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 3;
}

.popup button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #ff4500;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

.popup button:hover {
    background-color: #ff6347;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes moveLeftToRight {
    0% { left: 0%; }
    100% { left: 100%; }
}

@keyframes moveTopToBottom {
    0% { top: 0%; }
    100% { top: 100%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
