@import url('https://fonts.googleapis.com/css?family=Muli:300,700&display=swap');

* {
    box-sizing: border-box;
}

body {
    background: url('./assets/photo-1572297905000-240a65cf5b03.avif') no-repeat center center fixed;
    font-family: 'Courier New', Courier, monospace;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.container {
    background-color: rgba(0, 0, 0, 0.7);
    border: 3px #000 solid;
    border-radius: 10px;
    padding: 50px;
    max-width: 1000px;
    text-align: center;
    color: white;
}

.code-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
    gap: 0 50px;
}

.code {
    font-family: 'Courier New', Courier, monospace;
    caret-color: transparent;
    border-radius: 5px;
    font-size: 75px;
    height: 120px;
    width: 150px !important;
    border: 1px solid #eee;
    margin: 1%;
    text-align: center;
    font-weight: 300;

    background-color: #2c2c2c;
    color: #ffffff;
    border: 2px solid #444;
}

.code::-webkit-outer-spin-button,
.code::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.code:valid {
    border-color: #0f0;
    box-shadow: 0 10px 10px -5px rgba(0, 0, 0, .25);
}

.info {
    background-color: #eaeaea;
    display: inline-block;
    padding: 10px;
    line-height: 20px;
    max-width: 400px;
    color: #777;
    border-radius: 5px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.popup-content h2 {
    margin-top: 0;
}

.popup .close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: white;
    font-size: 50px;
    ;
}

#explosion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 200;
}

button {
    font-family: 'Courier New', Courier, monospace;
    background-color: #111;
    color: #0f0;
    font-size: 1.2em;
    padding: 15px 30px;
    border: 2px solid #0f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #0f05, 0 0 20px #0f02 inset;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: #0f0;
    color: #000;
    box-shadow: 0 0 20px #0f0, 0 0 40px #0f0;
    transform: scale(1.05);
}

button:hover::after {
    content: " > Running...";
    margin-left: 10px;
    font-weight: normal;
    font-size: 0.9em;
}

.particle {
    width: 8px;
    height: 8px;
    background: red;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

@media (max-width: 600px) {
    .code-container {
        flex-wrap: wrap;
    }

    .code {
        font-size: 60px;
        height: 80px;
        max-width: 70px;
    }
}