/* Center content container */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background: linear-gradient(to bottom right, #2b003a, #361062, #412b80);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Nunito', sans-serif;
    text-align: center;
}


/* Logo positioning */
.logo {
    position: absolute;
    top: 30px;   /* Distance from the top of the screen */
    left: 40px;  /* Distance from the left of the screen */
    width: 50px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
    z-index: 10;  /* Ensure it's on top of other elements */
}

@media (max-width: 480px) {
    .logo {
        top: 10px;
        left: 10px;
        width: 40px; /* Reduce size */
    }
}

html {
    scroll-behavior: smooth;
}

/* Falling stars with gradient */
.star {
    position: absolute;
    width: 3px;
    height: 50px; /* Adjust height to create the tail effect */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2));
    animation: fall 2.5s linear infinite;
    opacity: 0.3; /* Add some opacity for a subtle effect */
}

.star {
    width: 2px;
    height: 30px; /* Scale down star size for smaller screens */
    animation: fall 2.5s linear infinite;
}

@media (max-width: 768px) {
    .star {
        height: 20px; /* Reduce height for tablets */
    }
}

@media (max-width: 480px) {
    .star {
        width: 1px; /* Scale down further for small screens */
        height: 15px;
    }
}

@keyframes fall {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(-100vw, 100vh) rotate(45deg);
        opacity: 0;
    }
}

/* Generate random stars with varying delays */
.star:nth-child(1) {
    top: -100px;
    right: 0;
    animation-delay: 0s;
}
.star:nth-child(2) {
    top: -150px;
    right: 10%;
    animation-delay: 1s;
}
.star:nth-child(3) {
    top: -200px;
    right: 20%;
    animation-delay: 2s;
}
.star:nth-child(4) {
    top: -250px;
    right: 30%;
    animation-delay: 3s;
}
.star:nth-child(5) {
    top: -300px;
    right: 40%;
    animation-delay: 0.5s;
}
.star:nth-child(6) {
    top: 20px; /* Keep one of them */
    right: 0%;
    animation-delay: 0.5s;
}

/* copy until star nth child */
.center-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box; /* Include padding in width */
}

.center-content {
    min-height: 100vh;
    padding-top: 100px; /* Adjust based on header/logo height */
}

/* Big logo style */
.big-logo {
    font-family: 'Audiowide', cursive;
    font-size: 60px;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 4px 10px rgba(255, 255, 255, 0.7);
}
.big-logo {
    font-size: 50px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .big-logo {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .big-logo {
        font-size: 30px;
    }

    .button {
        font-size: 16px;
        padding: 10px 30px;
    }
}

/* Buttons container */
.buttons-container {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(3, 1fr); /* 3 buttons per row on large screens */
    gap: 15px; /* Spacing between buttons */
    justify-content: center; /* Center the grid */
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Limit overall container width */
    margin: 0 auto; /* Center container on the page */
}

/* Button styling */
.button {
    padding: 15px 50px;
    font-size: 20px;
    text-align: center;
    border-radius: 30px;
    box-sizing: border-box;
}

/* Media query for tablets (768px and smaller) */
@media (max-width: 768px) {
    .buttons-container {
        grid-template-columns: repeat(2, 1fr); /* 2 buttons per row on tablets */
    }
}

/* Media query for small screens (480px and smaller) */
@media (max-width: 480px) {
    .buttons-container {
        grid-template-columns: 1fr; /* Single button per row on small screens */
        gap: 10px; /* Reduce spacing for small screens */
    }
}



/* General button style */
.button {
    padding: 18px 60px;
    font-size: 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth hover effect */
}

/* Hover effect for all buttons */
.button:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.4); /* More pronounced shadow */
}





/* scroller styles */

.landing-kidsplaysafer-scroller {
    display: flex; 
    width: 100%;
    margin:0 auto;
    pointer-events:none; 
    justify-content: space-evenly;
    flex-direction: row; 
    flex-wrap: wrap;
}

.landing-kidsplaysafer-scroller section {
    display:block;
    position: relative; 
    
    justify-content:center;
    width: fit-content;
    padding:0;
    margin: 24px 16px 64px;
    pointer-events:all;
    background-color:none;
}

.landing-kidsplaysafer-scroller section .text p {
    width:100%;
    padding:15px 15px 20px;
    line-height:30px;
    color:#fff;
    background-color:#0009;
}

@media (min-width: 768px){
    .landing-kidsplaysafer-scroller section .text p {
        max-width:400px;
        margin:0 10px;
        font-size:22px;
    }
}





/* carousel styles */

.carousel-card-wrapper {
    position: relative;
    width: 300px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: 10px solid #654279; 
    background-color: #654279;
    margin: 30px 0px; 
}
.clickable-carousel-card-wrapper:hover {
    background-color: #603f72;
    border: 10px solid #603f72; 
}
.carousel-card-wrapper h3 {
    color: #e4d5f1; 
}
.carousel-card-wrapper a {
    color: #e4d5f1; 
}
.carousel-card-wrapper p {
    color: #e4d5f1; 
    height: 60px; 
}


.carousel-card {
    position: relative;
    width: 300px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 200px;
    
}


.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}
.carousel-item img {
    width: 100%;
    object-fit: cover;
    transition: filter 0.3s ease-in-out;
}
.carousel-card:hover .carousel-item img {
    filter: brightness(70%);
}



.carousel-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.carousel-card:hover .carousel-text {
    opacity: 1;
}




.carousel-buttons {
    position: absolute;
    width: 100%; 
    height: fit-content; 
    top: calc(50% - 15px);
    z-index: 3;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: 50%;
}
.carousel-card:hover .carousel-btn {
    opacity: 1;
}
.left-btn {
    left: 10px;
}
.right-btn {
    right: 10px;
}



@media (max-width: 600px) {
    .carousel-card-wrapper {
        position: relative;
        max-width: calc(100% - 120px) !important;
        overflow: hidden;
    }
    .carousel-card-wrapper h3 {
        height: 50px; 
    }
    .carousel-card-wrapper p {
        height: 80px; 
    }
}










.about-kidsplaysafer-scroller {
    max-width:1200px;
    margin:0 auto;
    pointer-events:none; 
}

/* Links inside the About Us section */
.about-kidsplaysafer-scroller a {
    color: #ff69b4; /* Keeps the links highlighted in pink */
    text-decoration: none; /* Removes underline */
    font-weight: 700; /* Emphasizes the links with bold text */
    position: relative; /* For pseudo-element positioning */
    transition: transform 0.3s ease; /* Smooth transition for hover effects */
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.5), 0 0 10px rgba(255, 105, 180, 0.4); /* Adds a glowing effect */
}

/* Hover Effect for Links */
.about-kidsplaysafer-scroller a:hover {
    transform: scale(1.1); /* Enlarges the text slightly */
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.7), 0 0 20px rgba(255, 105, 180, 0.6); /* Intensifies the glow */
}

/* Underline animation effect */
.about-kidsplaysafer-scroller a::after {
    content: ""; /* Empty content for the pseudo-element */
    position: absolute;
    left: 0;
    bottom: -5px; /* Places the underline slightly below the text */
    width: 0; /* Starts with no width */
    height: 2px; /* Thickness of the underline */
    background-color: #ff69b4; /* Pink underline */
    transition: width 0.3s ease; /* Smooth width expansion */
}

/* Expand underline on hover */
.about-kidsplaysafer-scroller a:hover::after {
    width: 100%; /* Expands the underline fully */
}


/* Intensify gradient on hover */
.about-kidsplaysafer-scroller a:hover::before {
    opacity: 0.1; /* Makes the gradient brighter */
}






.about-kidsplaysafer-scroller section {
    display:flex;
    flex-direction:column;
    justify-content:center;
    width:calc(100% - 32px);
    height:100vh;
    padding:0;
    margin:0 16px 32px;
    pointer-events:all;
    background-color:none;
}

.about-kidsplaysafer-scroller section .text p {
    width:100%;
    padding:15px 15px 20px;
    line-height:30px;
    color:#fff;
    background-color:#0009;
}

@media (min-width: 768px){
    .about-kidsplaysafer-scroller section .text p {
        max-width:400px;
        margin:0 10px;
        font-size:22px;
    }
}


.about-kidsplaysafer-background {
    height:100vh;
    overflow:hidden;
    font-size:1.4em;
    background-color:#ff3e000d;
    display:block;
    position:fixed;
    width:100%; 
    z-index: -1; 
    position: fixed;
}

.about-kidsplaysafer-background .about-bgimg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.about-kidsplaysafer-background .about-bgimg img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.3s ease; 
}



