/* Main container styles */
.home-main__fantasyblox {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #fff;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Banner box styles */
.home-main__fantasyblox-banner-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, #000, #004bcd);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect overlay */
.home-main__fantasyblox-banner-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    animation: shimmer 3s linear infinite;
    pointer-events: none;
}

/* Floating particles effect */
.home-main__fantasyblox-banner-box::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    box-shadow: 
        50px 80px rgba(255, 255, 255, 0.3),
        200px 120px rgba(255, 255, 255, 0.25),
        350px 60px rgba(255, 255, 255, 0.35),
        500px 150px rgba(255, 255, 255, 0.3);
    animation: floatParticles 6s linear infinite;
}

/* Text styles */
.home-main__fantasyblox-text {
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #000, 0 0 20px #000, 0 0 30px #00f, 0 0 40px #00f, 0 0 50px #00f;
    margin-bottom: 15px;
    animation: popIn 0.8s ease;
}

.home-main__fantasyblox-text-info {
    font-size: 18px;
    font-weight: 500;
    color: #f0f0f0;
    max-width: 90%;
    line-height: 1.6;
    margin-bottom: 0;
    animation: fadeIn 1s ease forwards;
}

/* Animations */
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

@keyframes floatParticles {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .home-main__fantasyblox-text {
        font-size: 36px;
    }
    .home-main__fantasyblox-text-info {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .home-main__fantasyblox-text {
        font-size: 28px;
    }
    .home-main__fantasyblox-text-info {
        font-size: 14px;
    }
}

/* Additional styles */
.home-main__fantasyblox-box {
    padding-top: 3%;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 32px;
}

.home-main__fantasyblox-desc {
    color: rgb(66, 66, 66);
}

.home-main__fantasyblox-calculator {
    min-width: 240px;
    min-height: 80px;
    padding: 0 25px;
    margin-top: 5%;
    font-family: 'Fredoka', Arial, Helvetica, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 20px;
    background: linear-gradient(145deg, #0077ff, #00a2ff, #80c2ff);
    color: white;
    border: 2px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25), inset 0 0 10px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    animation: pulseButton 2s ease-in-out infinite;
}

/* Hover effects */
.home-main__fantasyblox-calculator:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.3);
}

.home-main__fantasyblox-calculator:active {
    transform: scale(0.98);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Pulsing animation */
@keyframes pulseButton {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Mobile scaling */
@media (max-width: 768px) {
    .home-main__fantasyblox-calculator {
        min-width: 200px;
        min-height: 65px;
        font-size: 22px;
        padding: 0 20px;
    }
}

/* Card styles */
.home-main__fantasyblox-card {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, 250px);
    min-height: 100px;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.fb-card {
    background: #f2f2f2;
    border-radius: 25px;
    padding: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 0 #cfcfcf, 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: 0.2s ease;
}

.fb-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 0 #c9c9c9, 0 10px 20px rgba(0, 0, 0, 0.15);
}

.fb-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 #c5c5c5, 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img-box {
    width: 60px;
    margin-left: 10px;
}

.fb-card:hover .card-img-box {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card-img {
    width: 100%;
}

.home-main__fantasyblox-card-more-img {
    width: 80%;
    margin: 5px 0 0 5px;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 190px;
}

.card-title {
    font-size: 32px;
    font-weight: 500;
}

.card-description {
    font-size: 18px;
}

@media (max-width: 768px) {
    .fb-card {
        transform: scale(0.9);
    }
}

/* Questions section styles */
.home-main__fantasyblox-questions {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(
        145deg,
        #0077ff,
        #00a2ff,
        #80c2ff
    );
    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.25);
    width: 100%;
    margin-top: 30px;
    padding: 70px 0;
    row-gap: 20px;
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

/* soft animated glow */
.home-main__fantasyblox-questions::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(255, 255, 255, 0.12),
        transparent 60%
    );
    animation: glowMove 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes glowMove {
    from {
        transform: translateY(-10px);
        opacity: 0.6;
    }
    to {
        transform: translateY(10px);
        opacity: 0.9;
    }
}

/* Question card */
.home-main__fantasyblox-questions-box {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 900px;
    margin-left: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #f4f8ff 100%
    );
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
}

/* hover lift + glow */
.home-main__fantasyblox-questions-box:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 16px 36px rgba(59, 130, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

/* Question title */
.home-main__fantasyblox-info {
    font-size: 30px;
    color: #ffffff;
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.4px;
}

/* Description / answer */
.fantasyblox-questions-box-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: none;
    font-size: 15px;
    padding-top: 10px;
    color: #334155;
    line-height: 1.6;
    text-align: center;
    width: 100%;
    animation: fadeSlideIn 0.4s ease forwards;
}

/* description animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.caret {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Responsive font size */
@media (max-width: 700px) {
    .home-main__fantasyblox-info {
        font-size: 100%;
    }
}

/* Responsive grid adjustment */
@media (max-width: 1100px) {
    .home-main__fantasyblox-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-main__fantasyblox-card > .fb-card:nth-child(3) {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media (max-width: 730px) {
    .home-main__fantasyblox-card {
        grid-template-columns: 1fr;
    }
}