/* Mengimpor font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Resetting styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* General body styling */
body {
    background: linear-gradient(to bottom right, pink, darkblue, purple);
    color: #ffffff; /* White text for readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Carousel container styling */
.image {
    width: 100%;
    height: calc(100vh - 80px); /* Subtract navbar height */
    overflow: hidden; /* Prevent overflow */
    position: relative; /* Position relative for text overlay */
    padding-top: 2px; /* Add padding to account for the navbar */
}

.image img {
    width: 100%; /* Scale image to fit the width */
    height: auto; /* Maintain aspect ratio */
    max-height: 100%; /* Prevent overflow beyond viewport height */
    object-fit: contain; /* Ensure the image is contained within the area */
}

.responsive-img {
    width: 100%; /* Ensure the image is responsive */
    height: auto;
}

.close-icon {
    position: absolute; /* Position it absolutely within the detail div */
    top: 10px; /* Position from the top */
    right: 10px; /* Position from the right */
    font-size: 24px; /* Icon size */
    color: #ffffff; /* Color of the icon */
    cursor: pointer; /* Change cursor to pointer on hover */
    z-index: 1; /* Ensure it appears above other elements */
}

/* Detail section styling */
.detail {
    position: absolute; /* Overlay text on top of the image */
    bottom: 20px; /* Position text towards the bottom */
    left: 50%;
    transform: translateX(-50%); /* Center the text */
    text-align: center;
    color: #ffffff;
    padding: 20px; /* Add padding to prevent overlap */
    background-color: rgba(0, 0, 0, 0.5); /* Optional: semi-transparent background for text */
    border-radius: 8px;
    width: 80%; /* Set width to 80% of the parent container */
    max-width: 600px;
    z-index: 10;
}

.detail h1 {
    font-size: 2rem;
    line-height: 1.5;
    margin: 10px 0; /* Space between headings */
}

.detail h1 span {
    color: #ea27c0; /* Highlighted color for specific text */
}

footer {
    background-color: transparent;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer__address {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

.footer__socials {
    margin: 10px 0;
}

.footer__social-link {
    margin: 0 10px;
    color: #fff;
    font-size: 20px; /* Adjust icon size */
    text-decoration: none;
}

.footer__text {
    margin: 10px 0 0;
    font-size: 12px;
}

/* Responsive styling */
@media (max-width: 768px) {
    nav .logo-text {
        font-size: 1.2rem;
    }

    .detail h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    nav .logo-text {
        font-size: 16px;
    }

    .detail h1 {
        font-size: 1.2rem;
    }
}
