@font-face {
    font-family: 'BobloxClassic';
    src: url('../assets/CC/fonts/BobloxClassic-nRjl4.ttf') format('truetype');
}

.moonlight-theme > img {
    height: 50vh !important;
    width: auto !important;
    max-width: 45vw !important;
    object-fit: cover !important;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    filter: none !important;
    transform: translateY(50px) !important; /* Slide up animation start */
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease !important;
}

.moonlight-theme.cc-theme > img {
    height: 25vh !important; /* Smaller logo */
    object-fit: contain !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.moonlight-theme > img.scroll-on-active {
    transform: translateY(0) !important;
    opacity: 1;
}

.moonlight-theme .banner-text {
    align-items: flex-start !important;
    text-align: left !important;
}

/* CC Theme Layout */
.moonlight-theme.cc-theme {
    justify-content: space-between !important;
    padding-left: 5vw;
    padding-right: 5vw;
    position: relative; /* For vignette overlay */
}

/* Vignette Effect */
.moonlight-theme.cc-theme::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    pointer-events: none; /* Allow clicks through */
    z-index: 1;
}

/* Ensure content is above vignette */
.moonlight-theme.cc-theme > * {
    z-index: 2;
}

.moonlight-theme.cc-theme .banner-text {
    align-items: flex-end !important;
    text-align: right !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.moonlight-theme.cc-theme .banner-text h3 {
    font-family: 'BobloxClassic', sans-serif !important;
}

/* iSounds Theme */
.isounds-theme {
    background-color: #000000;
    position: relative;
    overflow: hidden;
    justify-content: center !important;
}

/* Animated Blobs */
.isounds-theme::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 115, 0, 0.3), transparent 70%);
    filter: blur(80px);
    animation: floatBlob1 15s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.isounds-theme::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent 70%);
    filter: blur(80px);
    animation: floatBlob2 15s infinite alternate ease-in-out;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -50px) scale(1.1); }
}

.isounds-theme .banner-text {
    align-items: center !important;
    text-align: center !important;
    z-index: 1;
    position: relative;
}

.isounds-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 35px;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.isounds-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background-color: #f8f8f8;
}

.careers-theme {
    justify-content: center !important;
    align-items: center !important;
    position: relative;
    overflow: hidden;
}

.careers-ad-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.careers-logo-animated {
    height: 250px;
    filter: brightness(0) invert(1);
    animation: roll-and-bounce 4s ease-out forwards;
    z-index: 2;
}

.careers-finger-animated {
    position: absolute;
    height: 300px;
    z-index: 1;
    filter: brightness(0) invert(1); /* Make it white */
    animation: point-and-jiggle 3s ease-out 1.5s forwards;
    opacity: 0;
}

.careers-text-animated {
    position: absolute;
    z-index: 3;
    text-align: center;
    opacity: 0;
    animation: fadeInText 1s ease-out 2.5s forwards;
}

.careers-text-animated h1 {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
    font-weight: 900;
    margin: 0;
}

.careers-text-animated p {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 5px;
}

.careers-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

@keyframes roll-and-bounce {
    0% { transform: translateX(-150vw) rotate(-720deg); opacity: 0; }
    30% { transform: translateX(0) rotate(0deg); opacity: 1; }
    40% { transform: translateY(-30px); opacity: 1; }
    50% { transform: translateY(10px); opacity: 1; }
    60% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(0); opacity: 0; } /* Fade out logo at the end */
}

@keyframes point-and-jiggle {
    0% { opacity: 0; transform: scale(0.5) translateY(50px); }
    70% { opacity: 1; transform: scale(1) translateY(0); }
    80% { transform: rotate(-5deg); }
    90% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Responsive Styles for Ads */
@media (max-width: 768px) {
    .moonlight-theme {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 2rem !important;
    }
    .moonlight-theme > img {
        height: 20vh !important;
        max-width: 80vw !important;
        margin-bottom: 20px !important;
    }
    .moonlight-theme .banner-text {
        align-items: center !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100%;
    }

    /* Moonlight Specific Mobile Fixes */
    .moonlight-theme h1 {
        font-size: 3rem !important; /* Reduce font size */
    }
    .moonlight-theme .banner-text > div {
        flex-direction: column !important; /* Stack logo and text */
        gap: 5px !important;
    }

    /* CC Theme Mobile Specifics */
    .moonlight-theme.cc-theme {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        justify-content: center !important;
    }
    .moonlight-theme.cc-theme .banner-text {
        align-items: center !important;
        text-align: center !important;
    }
    .moonlight-theme.cc-theme h3 {
        font-size: 2.5rem !important; /* Smaller font for mobile */
        -webkit-text-stroke: 2px #3f002e !important; /* Thinner stroke */
    }
}

/* Add extra classes for inline styles from JS */
.moonlight-text-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.moonlight-logo-small {
    height: 80px !important;
    width: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    margin: 0 !important;
}

.moonlight-title {
    font-size: 5rem;
    margin: 0;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.moonlight-subtitle {
    font-size: 2rem;
    color: white;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.theme-coming-soon {
    font-size: 1.2rem;
    color: #ddd;
    margin-top: 15px;
    font-style: italic;
    font-weight: 500;
}

.cc-title {
    font-size: 4rem;
    color: #ff749f;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    -webkit-text-stroke: 4px #3f002e;
}

.cc-title-alt {
    font-size: 3rem;
    color: #ff749f;
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
    -webkit-text-stroke: 2px #3f002e;
}

.aprilfool-logo-animated {
    height: 200px;
    width: auto;
    animation: aprilfool-spin 0.2s linear infinite;
}

@keyframes aprilfool-spin {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}