@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Quicksand:wght@300..700&family=Rubik:ital,wght@0,300..900;1,300..900&family=Share+Tech+Mono&display=swap');

*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    background: none;
    border: none;
    outline: none;
}

body {
    margin: 0;
    font-family: Rubik, Arial, sans-serif;
    background: #141418;
    color: white;

    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #E445FF;
    margin-top: 20px;
}

.form {
    margin: 20px;
}

.form input { /* Из GO TRIP xD */
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 20px 0 0 20px;
    color: #898989;
    font-weight: 400;
    font-size: 16px;
}

.form button {
    background: #E445FF;
    padding: 9px 14px;
    border-radius: 0 20px 20px 0;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 14px;
}

.time-input {
    padding: 10px;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    border: none;
}

.difficulty button {
    background: #3d3d47;
    color: white;
    transition: 0.3s;
}

.difficulty button.active {
    background: #E445FF;
    color: white;
    transform: scale(1.1);
    transition: 0.3s;
}

.info {
    margin: 15px;
    font-size: 18px;
    display: flex;
    gap: 20px;
}

.game-area {
    width: 500px;
    height: 500px;
    background: #222;
    border: 3px solid #555;
    position: relative;
    overflow: hidden;
}

.shape {
    position: absolute;
    cursor: pointer;
    transition: 0.2s;
}

.end-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    font-size: 28px;
}

.restart-btn {
    padding: 10px 20px;
    font-size: 18px;
    background: white;
    color: black;
}

/* Шизо анимация от Чата гпт: */
.hit-effect { 
    position: absolute;
    border-radius: 50%;
    pointer-events: none;

    animation: hitAnim 0.4s ease-out forwards;
}

@keyframes hitAnim {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}