@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=GFS+Didot&display=swap');  /* GFS Didot alternative */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

body {
    height: 100%;
    font-family: 'GFS Didot', serif;
    font-style: normal;
    background-color: transparent;
    color: black;
    margin: 0;
    padding: 0em 0.5em 0.5em 0.5em;
    text-align: center;
    overflow-x: hidden;
}

a {
    text-decoration: none;  /* Removes underline from all anchor tags */
}

a:hover, a:focus {
    text-decoration: underline;  /* Optionally add underline on hover for better usability */
}

h1 {
    text-align: center;
}

/* Hamburger and navbar styles */
.hamburger {
    position: absolute;
    right: 10px;
    top: 2%;
}

.navbar {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    right: 0; /* Start off the screen (hidden) */
    width: 30%;
    height: 100%;
    background-color: #fff;
    animation: slide-out 0.3s forwards; /* Animation effect */
    z-index: 2000;
    padding: 10px;
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
    }
}

/* Additional hover effects and link styling */
.navbar a {
    display: block;
    padding: 10px;
    font-size: 25px;
    text-decoration: none;
    color: #333;
}

.navbar a:first-child {
    border-bottom: none; /* Remove the border from the last link */
}

@keyframes slide-out {
    0% { right: -100%; }
    100% { right: 0; }
}

.navbar.open {
    animation: slide-in 0.3s forwards;
}

@keyframes slide-in {
    0% { right: 0; }
    100% { right: -100%; }
}

.close-btn {
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #333;
    padding: 10px;
}

nav a {
    color: white;
    padding: 10px;
    text-decoration: none;
}

.continent-container, .country-container, .destination-container, .index-container {
    margin: 20px;
}

.continent-container h1, .country-container h1, .destination-container h1 {
    font-family: "Satisfy", cursive;
}

.continents, .countries, .destinations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.continents, .country-card, .destination-card {
    text-align: center;
}

.continent-card img, .country-card img, .destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.continent-name, .country-name {
    font-family: "Satisfy", cursive;
    font-size: 2rem;
    text-align: center;
}

.destination-name {
    font-family: 'GFS Didot', serif; /* Using GFS Didot alternative for excerpts */
    font-size: 1.5rem;
    text-align: center;
}

.continent-excerpt, .country-excerpt, .destination-excerpt {
    font-family: 'GFS Didot', serif; /* Using GFS Didot alternative for excerpts */
    font-size: 0.9rem;
    line-height: 1.1rem;
    text-align: justify;
}

.details-card p {
    font-family: 'GFS Didot', serif; /* Using GFS Didot alternative for details */
    font-size: 1.1rem;
    text-align: justify;
}

.details-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
    padding: 20px 180px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .details-card {
        margin-top: -20px;
        padding: 20px;
    }    
}

.image-container img {
    margin: 0 auto;
    display: block;
    max-height: 400px;
}

@media (max-width: 768px) {
    .image-container img {
        max-height: auto;
        max-width: 300px;
    }    
}

.header {
    padding: 1em 0.5em;  /* Increased top and bottom padding for better spacing */
    background-color: transparent;  /* A light, neutral background color */
}

.logo-and-title {
    color: #343a40;  /* A dark grey for better readability */
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
    text-decoration: none;
}

.logo-and-title h4 {
    margin: 0;  /* Remove default margin */
    font-family: 'GFS Didot', serif;  /* Stylish, serif font */
    font-size: 1.5em;  /* Larger font size for emphasis */
    font-weight: normal;  /* Normal weight for a lighter appearance */
}

.logo-and-title a {
    text-decoration: none;  /* Remove underline */
    color: inherit;  /* Ensures the color matches the surrounding text */
    transition: color 0.3s;  /* Smooth color transition on hover */
}

.logo-and-title a:hover {
    color: #0056b3;  /* Change color on hover for user interaction */
}

.header-logo {
    width: 30px; /* Adjust the width as needed */
    height: auto;
    margin-right: 8px; /* Adjust the space between logo and title */
}
.divider {
    border: none;
    height: 1px;
    background-color: black;
    margin: 2px 0;
}        
.selector ul {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.selector ul::-webkit-scrollbar {
    display: none !important;
}

.selector ul li {
    padding: 10px 0;
    display: inline-block;
}

/* Styles for the links */
.selector ul li a {
    text-decoration: none;
    color: black; /* Adjust color as needed */
    font-weight: bold; /* Adjust font styling as needed */
    padding: 5px 10px; /* Adjust padding as needed */
}

.selector ul li a:hover {
    color: blue; /* Adjust hover color as needed */
}

/* Base styles for layout */
.content-container {
    display: flex;
    flex-direction: row;  /* Horizontal alignment by default */
    border-radius: 10px; /* Adds rounded corners to the container */
    overflow: hidden; /* Prevents children from overflowing the rounded corners */
}

.profile-card {
    flex: 0 0 20%; /* Takes up 40% of the container's width without growing or shrinking */
    margin-right: 1px; /* To avoid doubling the border with the gallery */
    border-right: 1px solid black; /* Adds a line between the profile card and gallery */
    box-sizing: border-box; /* Includes padding and border in the width calculation */
    background-color: transparent;
    color: black;
    padding: 5px;
    text-align: center;
    margin-bottom: 20px; /* Space before the search bar */
}

.profile-card img {
    border-radius: 50%;
    margin-bottom: 10px; /* Space below the image */
}

.profile-card h1 {
    margin: 10px 0;
}

.profile-card p {
    margin: 3px 0;
}

.social-links img {
    width: 24px; /* Adjust as needed */
    margin: 0 5px;
}

.right-side-container {
    display: flex; /* Establishes a flex container */
    flex-direction: column; /* Stacks items vertically */
    width: 80%; /* Adjust the width accordingly */
}

/* Position search box within right-side container */
.search-box-container {
    width: 100%; /* Full width of the right-side container */
    padding: 0.5em;
}

.search-box {
    width: 70%;
    padding: 0.5em;
    border-radius: 20px;
    border: 1px solid black; /* Outer border */
    box-shadow: 0 0 0 1px white, 0 0 0 2px black; /* Double border with white in between */
    margin-bottom: 0.1em;
}
/* Styles for the 'All Products' button link */
.all-button {
    display: inline-block; /* Allows padding and width like a button */
    padding: 0.5em 1em; /* Adjust padding to match the search box */
    background-color: blue; /* Blue background for the button */
    color: white; /* White text color */
    border: none; /* No border for a flat design */
    border-radius: 20px; /* Rounded corners to match the search box */
    cursor: pointer; /* Cursor to indicate the button is clickable */
    margin-right: 0.5em; /* Space between the button and the search box */
    text-decoration: none; /* No underline for the link */
    font-size: inherit; /* Inherits font size from parent */
    outline: none; /* Removes the default focus outline */
    text-align: center; /* Centers the text inside the link */
}
/* Additional styles if needed */
.all-button i {
    margin-right: 0.5em; /* Space between the icon and the button text */
}
.products {
    display: flex;
    flex-direction: row; /* Align products in a row */
    align-items: flex-start; /* Align items to the start of the flex container */
    overflow-x: auto; /* Allows horizontal scrolling */
    gap: 1rem; /* Space between items */
    padding: 1rem; /* Padding around the container */
    margin-bottom: 2rem; /* Space below the container */
    /* If the products still wrap, add the following line */
    white-space: nowrap; /* Prevents items from wrapping to a new line */
}
.products::-webkit-scrollbar {
    display: none;
}
.product {
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    width: 139.667px;
    height: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-shrink: 0; /* Prevents items from shrinking */
    flex-direction: column;
}
.product img {
    width: 137px; /* Set the width of the image */
    height: 160px; /* Set the height of the image */
    object-fit: cover;
    margin-bottom: 0; /* No margin between the image and the product name */
}
.product-name {
    color: black;
    padding: 0.5em;
    flex: 1; /* Name takes 1/3 of the space */
    font-family: 'GFS Didot', serif; /* GFS Didot font */
    font-size: 0.8em; /* Smaller font size */
    text-decoration: none; /* Remove underline */
    background: rgba(0, 0, 0, 0.05);
}
.product a {
    color: inherit;
    text-decoration: none; /* Remove underline from links */
}
.hidden {
    display: none;
}

@media (max-width: 768px) {
    .selector ul {
        justify-content: left;
    }
    .search-box {
        width: 60%;
    }
    .content-container {
        flex-direction: column; /* Stacks the containers vertically */
    }
    .profile-card {
        margin-right: 0; /* Resets the margin for smaller screens */
        border-right: none; /* Removes the line between the profile card and gallery */
        border-bottom: 1px solid black; /* Adds a line below the profile card on small screens */
    }
    .products {
        justify-content: space-around;
        gap: 0.5rem; /* Smaller gap for mobile */
    }
    .product {
        width: 113.333px; /* Adjusted width for mobile */
        height: 120px; /* Adjusted height for mobile */
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        margin-bottom: 0.5px; /* Add space between the rows */
    }
    .product img {
        width: 105.333px; /* Adjusted width for image */
        height: 86px; /* Adjusted height for image */
        object-fit: cover;
        margin-bottom: 0; /* No margin between the image and the product name on mobile */
    }
    .product-name {
        font-size: 0.7em; /* Smaller font size for mobile */
        padding-top: 0;
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 1px; /* Bottom padding for mobile */
    }
    .right-side-container {
        width: 100%; /* Full width on smaller screens */
    }

}

/* Footer styles */
.footer {
    background-color: #f8f9fa;  /* A light grey background for subtle contrast */
    color: #343a40;  /* Dark grey color for better readability */
    padding: 20px;
    display: flex;
    justify-content: space-evenly;  /* Distribute space evenly */
    align-items: center;  /* Vertically center items */
    flex-wrap: wrap;
    border-top: 1px solid #dee2e6;  /* Add a subtle border on top for definition */
}

.footer-column {
    flex: 1 1 20%;  /* Flexible sizing with a minimum basis of 20% */
    display: flex;
    flex-direction: column;
    align-items: center;  /* Center align content for a tidier look */
    padding: 15px;  /* Padding for spacing within columns */
}

.footer-column h2,
.footer-column p {
    margin-bottom: 5px;  /* Reduce spacing for a tighter look */
    text-align: center;  /* Center text for a balanced appearance */
}

.footer-column a {
    color: #007bff;  /* Use a Bootstrap-like blue for links to make them stand out */
    text-decoration: none;  /* Remove underline */
    transition: color 0.3s;  /* Smooth transition for hover effects */
}

.footer-column a:hover {
    color: #0056b3;  /* Darker shade of blue on hover for better interaction */
    text-decoration: underline;  /* Add underline on hover for clarity */
}

.footer-logo-img {
    width: 80px;  /* Slightly larger logo for better visibility */
    margin-bottom: 10px;  /* Consistent spacing below logo */
}

.footer-bottom-text {
    text-align: center;
    width: 100%;  /* Ensure the text spans the full width of the footer */
    padding-top: 20px;  /* Additional space above the bottom text */
    border-top: 1px solid #dee2e6;  /* Subtle top border for separation */
    font-size: 0.85em;  /* Slightly larger font size for readability */
    color: #6c757d;  /* Muted color for less emphasis */
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;  /* Stack columns vertically on small screens */
        align-items: center;  /* Center alignment for a uniform look */
        padding: 20px; /* Sufficient padding around */
    }

    .footer-column {
        width: 100%; /* Full width for each column on small screens */
        padding: 10px;  /* Adjust padding for compact layout */
    }

    .footer-bottom-text {
        order: 99; /* Ensure the bottom text is always at the end */
        padding-top: 10px;  /* Adjust top padding */
    }
}
