@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.rgb-box {
    width: 40%;
    box-shadow: 0px 0px 10px rgb(223, 221, 221);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 2rem 0;
}

.rgb-heading-box {
    text-align: center;
    text-decoration: underline;
}

.color-box {
    width: 100%;
    height: 25vh;
    box-shadow: 0px 0px 5px rgb(218, 216, 216);
    border-radius: 3px;
}

.rgb-body-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem 0;
}

.form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-row>label {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.form-row:nth-child(2)>label {
    color: red;
}

.form-row:nth-child(3)>label {
    color: green;
}

.form-row:nth-child(4)>label {
    color: blue;
}

#red,
#green,
#blue {
    cursor: pointer;
}

.answer-box {
    width: 100%;
    padding: 1rem;
    text-align: center;
}

#answer {
    font-weight: bolder;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

@media (min-width:1025px) and (max-width:1200px) {
    .rgb-box {
        width: 50%;
    }
}

@media (min-width:769px) and (max-width:1024px) {
    .rgb-box {
        width: 70%;
    }
}

@media (min-width:481px) and (max-width:768px) {
    .rgb-box {
        width: 90%;
    }
}

@media (min-width:320px) and (max-width:480px) {
    .rgb-box {
        width: 90%;
    }
}

@media (min-width:0px) and (max-width:319px) {
    .rgb-box {
        width: 95%;
        padding: 1rem;
    }
    .answer-box {
        padding: 0;
    }
}