* {
    padding: 0px;
    margin: 0px;
}

.flex {
    display: flex;
    height: 35.5rem;
}

.mainDiv {
    border-radius: 20px;
    position: relative;
    width: 25%;
    height: 254px;
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: #07182E;
    overflow: hidden;
}

.mainDiv::before {
    content: "";
    position: absolute;
    width: 100px;
    background-image: linear-gradient(180deg, rgb(0, 183, 255), rgb(255, 48, 255));
    height: 160%;
    animation: rotbgimg 3s linear infinite;
}

@keyframes rotbgimg {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mainDiv::after {
    content: "";
    border-radius: 20px;
    position: absolute;
    background-color: #07182E;
    inset: 5px;
}

.mainDiv div {
    height: 98%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    z-index: 3;
}

.mainDiv a {
    text-decoration: none;
    color: blueviolet;
    font-size: 20px;
    font-weight: 500;
}

@media (min-width:200px) and (max-width:740px) {
    .mainDiv {
        width: 75%;
        height: 254px;
    }
    .mainDiv::before {
        height: 190%;
    }
}

@media (min-height:680px) and (max-height:915px) {
    .flex {
        height: 50rem;
    }
}

@media (height:740px) {
    .flex {
        height: 40rem;
    }
}

@media (min-width:741px) and (max-width:1190px) {
    .flex {
        height: 60rem;
    }
    .mainDiv {
        width: 50%;
        height: 354px;
    }
}