body{
    background-color: #f0f0f0;
}
.rainbowdiv{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border: 0px;
    border-radius: 15px;
    animation: colorChange 25s linear infinite, shadowChange 25s linear infinite;
}
.blackdiv{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 0px;
    background-color: black;
}
.text{
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: sans-serif;
    
}
@keyframes colorChange {
    0% { background-color: red; }
    14% { background-color: orange; }
    28% { background-color: yellow; }
    42% { background-color: green; }
    57% { background-color: blue; }
    71% { background-color: purple; }
    85% { background-color: pink; }
    100% { background-color: red; }
}

@keyframes shadowChange {
    0% { box-shadow: 0 0 50px 10px red; }
    14% { box-shadow: 0 0 50px 10px orange; }
    28% { box-shadow: 0 0 50px 10px yellow; }
    42% { box-shadow: 0 0 50px 10px green; }
    57% { box-shadow: 0 0 50px 10px blue; }
    71% { box-shadow: 0 0 50px 10px purple; }
    85% { box-shadow: 0 0 50px 10px pink; }
    100% { box-shadow: 0 0 50px 10px red; }
}