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

.container{
    justify-content: center;
    align-items: center;
    margin-top: 10%;
    display: flex;
    flex-direction: column;
    font-size: 30px;
}

.color{
    width: 60%;
    height: 150px;
    border-radius: 50%;
    margin: 10px;
    margin-left: 20%;
    display: flex;
    gap: 50px;

}

.red{
    width:100%;
    height:100%;
    border: 2px;
    background-color: red;
    margin-top: 6%;
    border: 5px solid black;
}

.blue{
    width:100%;
    height:100%;
    border: 5%;
    border-color: black;
    background-color: blue;
    margin-top: 6%;
    border: 5px solid black;
}

.green{
    width:100%;
    height:100%;
    border: 5%;
    border-color: black;
    background-color: green;
    margin-top: 6%;
    border: 5px solid black;
}

.yellow{
    width:100%;
    height:100%;
    border: 5%;
    border-color: black;
    background-color: yellow;
    margin-top: 6%;
    border: 5px solid black;
}

.white{
    width:100%;
    height:100%;
    border: 5%;
    border: 5px solid black;
    border-color: black;
    background-color: white;
    margin-top: 6%;
}

.peragraph{
    margin-top: 7%;
}

.peragraph p{
    margin-left: 35%;
    width: 35%;
    font-size: 30px;
}
.color div {
    width: 100%;
    height: 100%;
    border: 5px solid black;
    margin-top: 8%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.color div:hover {
    transform: scale(1.1);
}

.color div.clicked {
    animation-name: clickAnimation;
    animation-duration: 0.5s repeat infinite;
    animation-fill-mode: forwards;
}

@keyframes clickAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Media query for screens with a maximum width of 600px */
@media (max-width: 600px) {
    .container {
        /* Update styles for smaller screens */
        font-size: 30px;
    }

    .color {
        /* Update styles for smaller screens */
        width: 100%; /* Set the width to 100% to make it a row layout */
        margin-left:0%; /* Remove the left margin */
        gap: 10px;
        height: 600px; /* Set the height to 150px to make it a row layout */
        flex-direction: column; /* Set the flex direction to row */
        justify-content: center; /* Center align the items */
        align-items: center;
        margin-top: 10%;
    }

    .color div {
        /* Update styles for smaller screens */
        margin-top: 0; /* Remove the top margin */
        width: 20%; /* Set a fixed width for each color box */
        height: 100%; /* Make the height 100% to occupy the entire height of the container */
    }

    .peragraph p{
        font-size: 30px;
        margin-top: 10%;
    }
}

@media (max-width: 900px) {
   
   
    .color {
        /* Update styles for smaller screens */
        width: 25%; /* Set the width to 100% to make it a row layout */; 
        margin-left:40%; /* Remove the left margin */
        gap: 10px;
        height: 999px; /* Set the height to 150px to make it a row layout */
        flex-direction: column; /* Set the flex direction to row */
        justify-content: center; /* Center align the items */
        margin-top: 10%;
    }

    .peragraph p{
        font-size: 50px;
    }
}

@media (max-width: 1200px) {
    .container{
        font-size: 50px;
    }
    .color {
        /* Update styles for smaller screens */
        width: 25%; /* Set the width to 100% to make it a row layout */; 
        margin-left:40%; /* Remove the left margin */
        gap: 10px;
        height: 1100px; /* Set the height to 150px to make it a row layout */
        flex-direction: column; /* Set the flex direction to row */
        justify-content: center; /* Center align the items */
        margin-top: 10%;
    }

    .peragraph p{
        font-size: 40px;
        width: 50%;
        font-weight: bolder;
    }
}

@media (max-width: 480px) {
    /* CSS rules for mobile view */
    .container {
     font-size: 15px;
     margin-right: 0%;
    }

    .color {
        /* Update styles for smaller screens */
        width: 100%; /* Set the width to 100% to make it a row layout */; 
        margin-left:-8%; /* Remove the left margin */
        gap: 7px;
        height: 400px; /* Set the height to 150px to make it a row layout */
        flex-direction: column; /* Set the flex direction to row */
        justify-content: center; /* Center align the items */
        margin-top: 10%;
    }

    .peragraph p{
        font-size: 17px;
        margin-left: 18%;
        width: 55%;
    }
}






