@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: blueviolet;
}

.wrapper {
    background-color: #fff;
    height: 600px;
    width: 600px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 8px;
}

.game {
    height: 500px;
    width: 500px;
    background-color: #101010;
    border-radius: 8%;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.colors {
    height: 210px;
    width: 210px;
    position: absolute;
    cursor: pointer;
}

.color1 {
    background-color: #006400;
    border-radius: 10px 0 0 0;
    top: 30px;
    left: 30px;
}

.color2 {
    background-color: #800000;
    border-radius: 0 10px 0 0;
    top: 30px;
    right: 30px;
}

.color3 {
    background-color: #00008b;
    border-radius: 0 0 10px 0;
    bottom: 30px;
    right: 30px;
}

.color4 {
    background-color: #808000;
    border-radius: 0 0 0 10px;
    bottom: 30px;
    left: 30px;
}

.game::before {
    position: absolute;
    content: '';
    background: #101010;
    z-index: 1;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 10%;
}

#score {
    background-color: #fff;
    font-size: 24px;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 100px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 5px;
}

.container {
    background-color: blueviolet;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hide {
    display: none;
}

.container button {
    background-color: #fff;
    font-size: 18px;
    border: none;
    outline: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.container button:hover {
    background-color: darkgray;
}

.container p {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}

.container span {
    font-weight: 600;
}

@media (max-width: 768px) {
    .wrapper {
        height: 400px;
        width: 400px;
    }

    .game {
        height: 330px;
        width: 330px;
    }

    .colors {
        height: 140px;
        width: 140px;
    }

    .color1 {
        top: 20px;
        left: 20px;
    }

    .color2 {
        top: 20px;
        right: 20px;
    }

    .color3 {
        bottom: 20px;
        right: 20px;
    }

    .color4 {
        bottom: 20px;
        left: 20px;
    }

    .game::before {
        width: 160px;
        height: 160px;
    }

    #score {
        width: 70px;
        height: 60px;
        font-size: 18px;
    }

    .container p {
        font-size: 24px;
    }

    .container button {
        font-size: 16px;
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        height: 300px;
        width: 300px;
        border-radius: 6px;
    }

    .game {
        height: 250px;
        width: 250px;
        border-radius: 6%;
    }

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

    .color1 {
        border-radius: 8px 0 0 0;
        top: 15px;
        left: 15px;
    }

    .color2 {
        border-radius: 0 8px 0 0;
        top: 15px;
        right: 15px;
    }

    .color3 {
        border-radius: 0 0 8px 0;
        bottom: 15px;
        right: 15px;
    }

    .color4 {
        border-radius: 0 0 0 8px;
        bottom: 15px;
        left: 15px;
    }

    .game::before {
        width: 110px;
        height: 110px;
    }

    #score {
        width: 60px;
        height: 50px;
        font-size: 16px;
    }

    .container p {
        font-size: 20px;
    }

    .container button {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media (max-width: 360px) {
    .wrapper {
        height: 280px;
        width: 280px;
    }

    .game {
        height: 240px;
        width: 240px;
    }

    .colors {
        height: 90px;
        width: 90px;
    }

    .color1 {
        top: 12px;
        left: 12px;
    }

    .color2 {
        top: 12px;
        right: 12px;
    }

    .color3 {
        bottom: 12px;
        right: 12px;
    }

    .color4 {
        bottom: 12px;
        left: 12px;
    }

    .game::before {
        width: 100px;
        height: 100px;
    }

    #score {
        width: 55px;
        height: 45px;
        font-size: 14px;
    }

    .container p {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .container button {
        font-size: 13px;
        padding: 8px 15px;
    }
}
