@import url("../constants/colors.css");

.parent {
    width: 400px;
    height: 400px;
    padding: 20px;
    perspective: 1000px;
}

.card {
    padding-top: 50px;
    /* border: 3px solid rgb(255, 255, 255); */
    border: 3px solid var(--primary-color);
    transform-style: preserve-3d;
    /* background: linear-gradient(135deg, #0000 18.75%, #f3f3f3 0 31.25%, #0000 0),
        repeating-linear-gradient(45deg, #f3f3f3 -6.25% 6.25%, #ffffff 0 18.75%); */
    background: linear-gradient(
            135deg,
            #0000 18.75%,
            var(--primary-color) 0 31.25%,
            #0000 0
        ),
        repeating-linear-gradient(
            45deg,
            var(--primary-color) -6.25% 6.25%,
            var(--secondary-color) 0 18.75%
        );
    background-size: 60px 60px;
    background-position: 0 0, 0 0;
    /* background-color: #f0f0f0; */
    background-color: var(--primary-color);
    width: 100%;
    height: inherit;
    box-shadow: rgba(142, 142, 142, 0.3) 0px 30px 30px -10px;
    transition: all 0.5s ease-in-out;
}

.card:hover {
    background-position: -100px 100px, -100px 100px;
    transform: rotate3d(0.5, 1, 0, 30deg);
}

.content-box {
    background: rgba(4, 193, 250, 0.732);
    transition: all 0.5s ease-in-out;
    padding: 60px 25px 25px 25px;
    transform-style: preserve-3d;
}

.content-box .card-title {
    display: inline-block;
    /* color: white; */
    color: var(--primary-color);
    font-size: 40px;
    font-weight: 900;
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 50px);
}

.content-box .card-title:hover {
    transform: translate3d(0px, 0px, 60px);
}

.content-box .card-content {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    /* color: #f2f2f2; */
    color: var(--primary-color);
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 30px);
}

.content-box .card-content:hover {
    transform: translate3d(0px, 0px, 60px);
}

.content-box .see-more {
    cursor: pointer;
    margin-top: 1rem;
    display: inline-block;
    font-weight: 900;
    font-size: 9px;
    text-transform: uppercase;
    color: rgb(7, 185, 255);
    background: white;
    padding: 0.5rem 0.7rem;
    transition: all 0.5s ease-in-out;
    transform: translate3d(0px, 0px, 20px);
}

.content-box .see-more:hover {
    transform: translate3d(0px, 0px, 60px);
}

.date-box {
    position: absolute;
    top: 30px;
    right: 30px;
    height: 60px;
    width: 60px;
    background: white;
    border: 1px solid rgb(7, 185, 255);
    padding: 10px;
    transform: translate3d(0px, 0px, 80px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 17px 10px -10px;
}

.date-box span {
    display: block;
    text-align: center;
}

.date-box .month {
    color: rgb(4, 193, 250);
    font-size: 9px;
    font-weight: 700;
}

.date-box .date {
    font-size: 25px;
    font-weight: 900;
    color: rgb(4, 193, 250);
}

@media (max-width: 768px) {
    .parent {
        width: 300px;
    }
    .content-box .card-title {
        font-size: 30px;
    }
}
