

/* For download button styling */
.download-btn {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #cc0000;
}


/* For download button styling */
.left-btn {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    float: left; /* <-- ADD this line to move it to the left */
    margin-right: 1rem; /* optional: adds space if stuff comes after it */
}

.left-btn:hover {
    background-color: #cc0000;
}


/* For right-aligned button styling */
.right-button {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    float: right; /* Aligns the button to the right */
    margin: 1rem 0; /* Optional: some space around */
}

.right-button:hover {
    background-color: #cc0000;
}








/* For download button styling */
.search-btn {
    padding: 10px 15px;
    background-color: #0069d9;
    color: white;
    border: none;
    border-radius: 5px;
    display: inline-block; /* <-- add this */
    float: left; /* <-- add this */
    margin-right: 1rem; /* optional: adds a little space if needed */
}


	


/* Font import (replace 'your-font' with the actual font name you will use) */
@font-face {
    font-family: 'Vox';
    src: url('/pix/font/Vox-Bold.woff2') format('woff2'),
         url('/pix/font/Vox-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


.top-banner {
    --max-gifs: 4; /* you can also define it here */
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #000;
    position: relative;
}

/* Ensure the image is positioned correctly */
.top-banner img {
    width: 100%;
    height: 100%; /* Fill the height */
    object-fit: cover; /* Ensures the image is cropped to fit the area */
    display: block;
    position: absolute; /* Ensures the GIF stays inside the container */
    top: 0;
    left: 0;
    z-index: 1; /* The image will be beneath the text */
}

/* Adding text via a pseudo-element */
.top-banner::before {
    content: "NoRulesHaveFun.com"; /* Define your text here */
    position: absolute;
    top: 6%; /* Adjust this to control the vertical position */
    left: 3%; /* Adjust this for horizontal position */
    transform: translateY(0); /* No need to adjust vertical centering */
    color: white; /* Text color */
    font-family: 'Vox', sans-serif; /* Use custom font */
    font-size: 6vw; /* Make font size scale with the viewport width */
    font-weight: bold; /* Adjust font weight */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Optional shadow for better readability */
    white-space: nowrap; /* Ensure the text doesn't wrap */
    z-index: 2; /* Ensure the text is above the GIF */
    max-width: 300px; /* Maximum width for the text */
    min-width: 120px; /* Minimum width for the text */
}

/* Loading text that appears before the GIF is loaded */
.loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Vox', sans-serif;
    font-size: 24px;
    z-index: 3; /* Ensure loading text is above everything else */
    display: block;
}



/* Ensure the images inside .item (icons) stay at 80px by 80px */
.item img {
    width: 80px; /* Set image width to 80px */
    height: 80px; /* Set image height to 80px */
    object-fit: contain; /* Make sure icons are not stretched */
    max-width: 100%; /* Allow scaling within the container */
    max-height: 100%; /* Prevent stretching beyond the defined size */
}

/* Example of styling for video thumbnails, which are full width, responsive */
.video-player img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Default body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Flexbox container settings */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* <-- changed this line */
    gap: 20px;
    padding: 10px;
}


.item {
    width: 180px; /* Each item container takes up this width */
    max-width: 90vw; /* Limit item width to 90% of the viewport */
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #222;
    transition: transform 0.2s;
    word-break: break-word;
    
}

.item:hover {
    transform: scale(1.05);
}

.item p {
    margin-top: 10px;
    font-size: 0.9rem;
    overflow-wrap: break-word;
    color: white;
}

/* For video player elements */
.video-player {
    margin-top: 30px;
    max-width: 100%;
    padding: 10px;
}

video {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
}



/* Search form styling */
.search-form {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* <-- changed from center to flex-start */
    gap: 10px;
}

.search-form input[type="text"] {
    padding: 10px;
    width: 250px;
    max-width: 80vw;
    border: none;
    border-radius: 5px;
}

.search-form button {
    padding: 10px 15px;
    background-color: #0069d9;
    color: white;
    border: none;
    border-radius: 5px;
}

.search-form .clear-search {
    color: #ccc;
    text-decoration: none;
    padding: 10px;
}

.search-form .clear-search:hover {
    text-decoration: underline;
}


/* 🔁 Responsive tweaks */
@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    .item {
        width: 45%; /* Adjust the width of items on smaller screens */
    }

    .search-form input[type="text"] {
        width: 90vw;
    }

    video {
        width: 100%;
        height: auto;
    }

    .download-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
}







img {
  image-rendering: pixelated;
  image-rendering: crisp-edges; /* fallback for older browsers */
}

  .inline-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
    margin-bottom: 15px; /* this pushes it upward manually */
}


  .inline-icon-big {
    width: 100px;
    height: 100px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}




.progress-bar {
    margin-top: 5px;
    padding: 5px;
    background: linear-gradient(90deg, #4caf50 30%, #8bc34a 70%);
    color: white;
    text-align: center;
    border-radius: 5px;
    animation: progressAnimation 2s infinite;
}

@keyframes progressAnimation {
    0% { background-position: 0% }
    100% { background-position: 100% }
}







/* New FOR START PAGE




/* Subtitle Section Styling */
.subtitle-section {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left; /* changed from center to left */
    padding-left: 20px; /* added padding to push text a bit from the edge */
}

.subtitle-section h2 {
    font-family: 'Vox', sans-serif;
    font-size: 2.8rem; /* made bigger */
    color: #fff;
    margin-bottom: 10px;
}

.subtitle-section h3 {
    font-family: 'Vox', sans-serif;
    font-size: 2.4rem; /* made bigger */
    color: #fff;
    margin-bottom: 10px;
}



.subtitle-section p {
    font-size: 1.4rem; /* made bigger */
    color: #bbb;
}

/* Services Section Styling */
.services-section {
    display: flex;
    justify-content: flex-start; /* changed from center to flex-start */
    gap: 30px; /* increased spacing between service items */
    flex-wrap: wrap;
    padding: 20px;
}

.service-item {
    background-color: #222;
    border-radius: 12px;
    width: 240px; /* made the service boxes bigger */
    padding: 25px; /* made padding a bit larger */
    text-align: center;
    transition: transform 0.3s, background-color 0.3s;
}

.service-item:hover {
    transform: scale(1.05);
    background-color: #333;
}

.service-item img {
    width: 100px; /* made the icon bigger */
    height: 100px;
    margin-bottom: 20px; /* gave a little more space below the icon */
}

.service-item h3 {
    font-size: 1.6rem; /* made the title bigger */
    color: #fff;
    margin: 0;
}

.service-item a {
    text-decoration: none;
    font-family: 'Vox', sans-serif;
    color: inherit;
    display: block;
}
