/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to right, #ece9e6, #ffffff);
    font-family: 'Arial', sans-serif;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;  /* Bold weight for the brand name */
}
.navbar-brand .fas {
    /* color: #4A90E2;  or any desired color */
    margin-right: 5px; /* optional, for added spacing */
}

nav {
    background-color: #f4f4f4;  /* Light gray background */
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

nav a {
    padding: 5px 10px;
    transition: background-color 0.3s;  /* Smooth transition */
}

nav a:hover {
    background-color: #e4e4e4; /* Slightly darker gray on hover */
}

nav .active {
    border-bottom: 2px solid #2a9d8f; /* Bottom border for active link with the same color as the logo for consistency */
}

/* Style the category title on the category page */
.category-page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #333; /* Choose a suitable text color */
    margin-bottom: 20px;
}

/* Main Content Styling */
.main-content {
    flex: 1;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 60px;
    text-align: center;
}

/* Hero Section Styling */
.hero-section {
    background-image: url('/static/files/hero_image.jpg');
    background-size: cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 30px;
}

.hero-section p.lead {
    font-size: 2rem;
    margin-bottom: 40px;
}

/* Intro Section Styling */
.intro-section {
    max-width: 1000px;
    margin: 0 auto;
    font-size: 18px;
    padding: 20px;
    text-align: center;
}

/* Popular Categories Styling */
.popular-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* This will distribute categories more evenly */
    margin: 20px 0; /* Adjust margins for vertical spacing */
    width: 100%; /* Make sure it takes the full width available */
}

.popular-categories a {
    display: inline-block;
    flex-basis: calc(40% - 10px); /* Each category takes up about half the width minus some padding; adjust as needed */
    text-align: center; /* Center the text within each category */
    margin: 5px; /* Space between categories */
    max-width: 30%; /* Set a maximum width for each column */

    /* ... (other styles remain unchanged) ... */
}

.popular-categories span {
    margin: 5px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Add a class to increase the font size of the emoji */
.category-emoji-big {
    font-size: 2.5rem; /* Adjust the font size as needed */
}

.popular-categories a {
    display: inline-block;       
    margin: 5px 10px;           
    padding: 5px 10px;          
    background-color: rgba(255, 255, 255, 0.8);  
    border-radius: 5px;         
    text-decoration: none;      
    color: #333;                
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.3); /* Reduced shadow for subtlety */
    transition: background-color 0.3s;  
}

.popular-categories a:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Style the category title on the category page with shadow and background color */
.category-name-highlight {
    font-weight: bold;
    color: #0e0c03;
    background-color: #ffffcc; /* Adjust the background color to a lighter shade */
    padding: 5px 10px; /* Add padding for background color */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Add shadow effect */
    border-radius: 5px; /* Rounded corners */
    display: inline-block; /* Prevent the underline from extending too far */
    transition: background-color 0.3s;
}

/* Hover effect for the category title */
.category-name-highlight:hover {
    background-color: #ffd700; /* Change background color on hover */
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5); /* Change shadow on hover */
}


/* Call-to-Action Button Styling */
.cta-button {
    background-color: #f58221;
    padding: 10px 20px;
    margin-top: 0px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #fba94d;
}

/* Card Styling */
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.category-card {
    background-color: #e9e9e9;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.clickable-card:hover {
    transform: scale(1.05);
    transition: transform .3s;
}
.category-emoji {
    font-size: 1.5rem;
    vertical-align: middle;
}

.hover-shadow:hover {
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.15);
}

.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #d1d1d1; /* Initial grey color. Adjust as needed */
}

.favorite-icon.favorited {
    color: #e0245e; /* Color when favorited, I chose a reddish color. Adjust as needed */
}

.card {
    position: relative;
}

.card-body, .clickable-card .card-body {
    padding: 20px;
}

#footerEmailForm {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-email-input {
    flex: 1;  /* Make the email input take up the available space */
}

/* Enhanced Hack Container */

.hack-container {
    background-color: #f9f9f9; /* Light background for distinction */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for elevation */
    transition: transform .3s, box-shadow .3s; /* Smooth transition effects */
}

.hack-container:hover {
    transform: translateY(-5px); /* Slight upward movement on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Increase shadow intensity on hover */
}

.hack-name {
    font-weight: bold;
    font-size: 1.5em; /* Enlarged font size */
    color: #333;
    margin-top: 0; /* Reset top margin */
}

.hack-description {
    font-size: 1.1em;
    color: #666;
    line-height: 1.4; /* Enhanced readability */
}

.product-info {
    display: inline-flex; /* This makes it line up horizontally without stretching across */
    background-color: #e9e9e9; /* Light grey background for product info */
    padding: 10px; /* Additional padding */
    border-radius: 4px; /* Rounded corners */
    margin-bottom: 15px; /* Adjusted margin for spacing */
}

.actions button {
    font-size: 1em; /* Enlarge icon and text size */
    padding: 10px 15px; /* More padding for a larger click/tap area */
}

.doing-button.btn-success {
    background-color: #28a745; /* Slightly brighter green when active */
}

.cta-container {
    margin-top: 50px;  /* Increase space between the hack description and the CTA */
    margin-bottom: 50px;  /* Increase space between the CTA and the next section */
    padding: 30px;
    background-color: #f8f9fa;  /* Light grey background */
    border-radius: 5px;  /* Rounded corners */
}

.cta-container h5 {
    margin-bottom: 10px;  /* Space between header and text */
}

.cta-container p {
    margin-bottom: 20px;  /* Space between text and button */
}



/* This is from the Generate Hack page */

.form-group label {
    font-size: 1.2rem;
    color: #555;
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    padding: 1rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.spinner-border {
    color: #007bff;
}

#spinner p {
    font-size: 1.2rem;
    color: #555;
}



/* End of Enhancements */




/* Mobile styles */
@media (max-width: 768px) {
    .heading-mobile {
        font-size: 24px;
    }

    .form-mobile {
        font-size: 18px;
    }

    .btn-mobile {
        padding: 10px 20px;
        font-size: 18px;
    }
    nav {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .heading-mobile {
        font-size: 24px;
    }

    .form-mobile {
        font-size: 18px;
    }

    .btn-mobile {
        padding: 10px 20px;
        font-size: 18px;
    }

    nav {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .hero-section h1 {
        font-size: revert; 
    }
    
    h1 {
        font-size: revert; /* Adjust the font size as needed */
    }

    /* Reduced font size for popular categories for mobile */
    .popular-categories span {
        font-size: 0.9rem;
    }

     /* On mobile, let each category take full width */
     .popular-categories a {
        flex-basis: 100%;
        max-width: none;
    }

    /* Style individual category links */
    .popular-categories .category-link {
        display: inline-block;
        margin-right: 15px;
}


    .overlay {
        padding: 20px;
    }
    .hero-section {
        height: auto;
    }

}
