@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");

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

body {
    font-family: Orbitron, sans-serif;

    min-height: 100vh;

    background: #060816;

    overflow: hidden;

    color: white;

    display: flex;
    flex-direction: column;

    padding: 20px;
}

.background {
    position: fixed;

    inset: 0;

    background:
        radial-gradient(
            circle,
            rgba(0, 255, 255, 0.15) 2px,
            transparent 2px
        );

    background-size: 40px 40px;

    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {

    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-300px, -300px);
    }

}

header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;

    gap: 20px;

    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 280px;

    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 20px rgba(0, 255, 255, 0.7)
        );

    transition: 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.hud {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.card {
    width: 120px;

    padding: 15px;

    text-align: center;

    border-radius: 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.08
        );

    backdrop-filter: blur(25px);

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.1
        );

    box-shadow:
        0 0 20px
        rgba(
            0,
            255,
            255,
            0.3
        );
}

.card small {
    display: block;

    opacity: 0.7;
}

.card span {
    display: block;

    font-size: 30px;

    margin-top: 5px;
}

main {
    flex: 1;

    display: flex;

    justify-content: center;
    align-items: center;

    position: relative;
}

canvas {
    width: min(100%, 1000px);

    max-height: 70vh;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );

    border-radius: 30px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.1
        );

    box-shadow:
        0 0 50px cyan;
}

.catalogButton {
    position: fixed;

    left: 30px;
    bottom: 30px;

    padding: 15px 25px;

    text-decoration: none;

    color: white;

    border-radius: 30px;

    background:
        linear-gradient(
            90deg,
            #00eaff,
            #8a2be2
        );

    transition: 0.3s;
}

.catalogButton:hover {
    transform: scale(1.05);
}

#gameOver {
    display: none;

    position: absolute;

    padding: 40px;

    text-align: center;

    background:
        rgba(
            0,
            0,
            0,
            0.85
        );

    border-radius: 30px;

    backdrop-filter: blur(20px);
}

button {
    margin-top: 20px;

    border: none;

    padding: 15px 30px;

    border-radius: 30px;

    cursor: pointer;

    font-family: inherit;

    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
}

@media (max-width:768px) {

    .logo img {
        width: 180px;
    }

    .card {
        width: 90px;
    }

    .card span {
        font-size: 20px;
    }

    .catalogButton {
        left: 50%;

        bottom: 15px;

        transform: translateX(-50%);
    }

}