
/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-image: url('../img/background.jpg'); /* Path to your image */
    background-size: cover; /* Cover the entire page */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the image */
    background-attachment: scroll; /* fixed breaks on iOS/Android mobile */
    min-height: 100vh; /* Ensure the body covers the full height of the viewport */
    margin: 0; /* Remove default margin */
}

.main-content-container {
    display: flex; /* Enables flexbox */
    flex-direction: column; /* Stacks the children vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
    gap: 50px; /* Adds space between each child (equivalent to margin-bottom) */
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
    'Helvetica Neue', sans-serif;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    color: var(--ad-text-color-pink);
    margin: 30px auto;
    height: auto;
}


#top-section {
    text-align: center;
    padding: 20px;
}

.top-section h1 {
    text-align: center;
    color: var(--ad-text-color-pink);
}

.top-section img.line-divider {
    width: 100%; /* Makes the image fill the width of its container */
    height: auto; /* Adjusts the height automatically to maintain aspect ratio */
}


/* Location Sections */
.location-section {
    margin: 40px 0;
}

.location-title {
    font-size: 52px;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
    padding-bottom: 0;
}

 .location-title::first-letter {
    text-transform: capitalize;

 }


.main-content-container .content-container-inner {
    margin-bottom: 40px; /* Adjust the value as needed for more or less space */
    height: auto; /* Ensure the height grows with content */
    overflow: visible; /* Ensure overflow is visible, allowing growth */
}

/* Inner container for each location section */
.girls-container-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */

    /*grid-template-columns: repeat(3, 1fr); !* Adjust the minmax() values as needed *!*/
    grid-template-rows: auto; /* Adjust the minmax() values as needed */
    column-gap: 20px;
    row-gap: 30px;

    justify-content: center; /* Center the boxes overall */
    align-content: start; /* Vertically center grid items, if there's space */
    justify-items: center; /* Center grid items along the row */

    max-width: 960px;
    width: 100%;
    /*margin: 20px auto 50px;*/
    margin: 0 auto; /* Center the container */
}


.girl-box {
    width: 100%;
    max-width: 300px;   /* This is important */
    box-shadow: 0 0 10px #ccc;
    transition: transform 0.3s ease;
    height: auto;        /* grows with content — no aspect-ratio clipping */
    border: 1px solid var(--ad-text-color-pink); /* Example: light grey border */
    margin: 0; /* Remove any default margin */
    overflow: hidden;
}


.girl-box img {
    width: 100%;
    height: auto;
    max-width: 300px;  /* This is important */
    aspect-ratio: 3 / 3.8; /* Adjust the width/height ratio as needed */
    object-fit: cover; /* This ensures the image covers the area without distorting its aspect ratio */
}

.girl-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Adjust '100px' as needed */
    grid-template-rows: auto;
    gap: 5px; /* Adjust the gap between grid items as needed */
    padding: 15px 15px 5px;
    text-align: center;
}

.girl-name-rank {
    grid-column: 1/3;
    grid-row: 1/2;

    display: grid;
    grid-template-columns: 1fr; /* Adjust '100px' as needed */
    grid-template-rows: auto;
    gap: 5px; /* Adjust the gap between grid items as needed */
    row-gap: 0px; /* Adjust this value to increase the space between rows */
    text-align: center;

 }

.girl-name-rank .name,
.girl-name-rank .rank {
    margin: 0; /* Removes default margins */
    color: white; /* Sets color to white for .name */
    font-family: 'Playball', cursive;
    font-size: 2.2rem;
    text-align: center;
}

.girl-name-rank .name {
    margin-bottom: -5px; /* Pulls the .rank element closer */
}

.girl-name-rank .rank {
    color: var(--ad-text-color-pink); /* Specific color for .rank */
}


.girl-info p {
    text-align: center;
}

/* Contact Section */
#contact-section {
    background-color: #f1f1f1;
    padding: 20px;
    text-align: center;
}


/*.keyword-box {*/
/*    display: inline-block; !* Make each keyword its own block inline *!*/
/*    padding: 5px 10px; !* Add some padding inside the boxes *!*/
/*    margin: 2px; !* Add a little space between the boxes *!*/
/*    background-color: #f2f2f2; !* Light grey background, change as needed *!*/
/*    border-radius: 5px; !* Rounded corners for the boxes *!*/
/*    font-size: 1em; !* Smaller font size for the keywords *!*/
/*    color: #333; !* Dark text color, adjust as needed *!*/
/*}*/
.keyword-box {
    display: block; /* Make each keyword its own block inline */
    padding: 6px 20px; /* Adjust padding to match the screenshot */
    margin: 3px; /* Provide some space around each box */
    background: linear-gradient(
    180deg,
    var(--ad-text-color-pink-light), /* Lighter shade at the top */
    var(--ad-text-color-pink) 70%, /* Darker shade in the middle */
    var(--ad-text-color-pink-light) /* Lighter shade at the bottom */
    ); /* Shiny gradient */
    color: #FFFFFF; /* Assuming the text is white */
    border-radius: 5px; /* Rounded corners, adjust as necessary */
    font-size: 1em; /* font size for the keywords */
    font-weight: bold; /* If the text is bold */
    border: 1px solid transparent; /* Make border transparent to blend with the background */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    text-align: center; /* Center text */
    cursor: pointer; /* Change cursor to indicate it's clickable */
    transition: all 0.3s ease; /* Smooth transition for hover effects */}


.keyword-box:hover {
    opacity: 0.7; /* Less opaque on hover */
    background: linear-gradient(
    180deg,
    var(--ad-text-color-pink-light), /* Lighter shade at the top */
    var(--ad-text-color-pink) 70%, /* Darker shade in the middle */
    var(--ad-text-color-pink-light) /* Lighter shade at the bottom */
    ); /* Shiny gradient */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Larger shadow on hover */

    /*transform: translateY(-2px); !* Slight raise on hover *!*/
}

.image-fader {
    position: relative;
    height: 600px; /* Adjust based on your image size */
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    /*border-top: 1px solid var(--ad-text-color-pink); !* Light grey border *!*/
    border-bottom: 1px solid var(--ad-text-color-pink); /* Light grey border */
}

.fade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s; /* Adjust timing to control fade duration */
    object-fit: cover;       /* fills the box, crops rather than stretches */
    object-position: center; /* keep the centre of the image visible */
}

.fade-img.active {
    opacity: 1;
}

.warning-text span {
    display: block; /* Makes each span start on a new line */
    font-size: 1.5rem; /* Adjust the size as needed for visibility */
    text-align: center; /* Centers the text */
    /*font-weight: bold; !* Makes the text bold *!*/
    color: var(--text-background-light-grey); /* Red for warnings, adjust if needed */
    /* Padding above and below the text */
    margin: 0px 0; /* Adds space above and below the warning text */
    padding: 0px 0px;
    line-height: 1.6; /* Improves readability by increasing the line height */
}

.warning-text {
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: cover;
    }

    .girls-container-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
        column-gap: 10px;
        row-gap: 16px;
    }

    .girl-box {
        width: 100%;
        max-width: 100%;
    }

    .girl-box img {
        max-width: 100%;
    }

    .girl-name-rank .name,
    .girl-name-rank .rank {
        font-size: 1.6rem;
    }

    .girl-info {
        padding: 8px 8px 4px;
        gap: 3px;
    }

    .keyword-box {
        font-size: 1em;
        padding: 5px 10px;
    }

    .location-title {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .main-content-container {
        padding: 10px;
        margin: 10px auto;
        gap: 30px;
    }

    .warning-text span {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .girls-container-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        padding: 0 8px;
        column-gap: 8px;
        row-gap: 12px;
    }

    .girl-name-rank .name,
    .girl-name-rank .rank {
        font-size: 1.4rem;
    }

    .keyword-box {
        font-size: 0.9em;
        padding: 4px 8px;
    }

    .location-title {
        font-size: 34px;
        margin-bottom: 12px;
    }
}