/* Example CSS - static/css/styles.css */
.issues-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.issue {
    width: 300px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.issue img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.view-issue {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.view-issue:hover {
    background-color: #0056b3;
}

/* Navigation Bar Styles */
.navbar {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
}

.navbar-nav {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-nav li {
    margin-left: 20px;
}

.navbar-nav li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
}

.navbar-nav li a:hover {
    background-color: #555;
    border-radius: 5px;
}

.navbar-nav li a.active {
    background-color: #007bff;
    border-radius: 5px;
}

/* CATalog Page Styles */
.catalog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.cat-item {
    width: 250px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.cat-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.vote-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.vote-button:hover {
    background-color: #0056b3;
}

/* Recipes Page Styles */
.recipes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.recipe-item {
    width: 250px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.recipe-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.details-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.details-button:hover {
    background-color: #218838;
}

/* Shop Page Styles */
.shop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.shop-item {
    width: 250px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.shop-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.shop-item .price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.buy-button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.buy-button:hover {
    background-color: #c82333;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7; /* Example background color */
}

.container {
    width: 300px;
    margin: auto;
    margin-top: 50px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Example box shadow for styling */
}

.form-input {
    margin-bottom: 15px;
}

.form-input label {
    display: block;
    margin-bottom: 5px;
}

.form-input input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box; /* Makes sure padding doesn't affect width */
    border: 1px solid #ddd; /* Example border for inputs */
    border-radius: 4px;
}

.submit-button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50; /* Example button color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #45a049;
}

.registration-link {
    text-align: center;
    margin-top: 20px;
}

.registration-link a {
    color: #4CAF50; /* Example link color */
    text-decoration: none;
}

.registration-link a:hover {
    text-decoration: underline;
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.thumbnail {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
}

.thumbnail img {
    width: 100px; /* Set thumbnail size */
    height: 100px;
    object-fit: cover; /* Adjust as needed for your images */
    border-radius: 5px;
}

.cat-details-container {
    text-align: center;
}

.cat-details-container img {
    width: 300px; /* Set the size for the large displayed cat image */
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px 0;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Adjust top margin */
    padding: 20px;
    border: none;
    width: auto; /* Set a suitable width */
    max-width: 480px; /* Maximum width */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* Add shadow for depth */
    border-radius: 10px; /* Rounded corners for modern look */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-details-header {
    background: #eceff1; /* Light background for the header */
    padding: 20px;
    border-top-left-radius: 15px; /* Rounded corners at the top */
    border-top-right-radius: 15px;
    text-align: center; /* Center content */
}

.cat-details-image {
    width: 120px; /* Adjust size as needed */
    height: 120px;
    object-fit: cover;
    border-radius: 50%; /* Circular image */
    border: 3px solid white; /* Give image a border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
    margin-bottom: 15px; /* Space below image */
}

.cat-details-name {
    font-weight: bold;
    font-size: 1.75em;
    margin-top: 5px;
    color: #333;
}

.cat-details-description {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.cat-profile-stats {
    display: flex;
    flex-direction: column; /* Stack stats vertically */
    align-items: center;
    gap: 10px; /* Add gap between items */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px; /* Adjust gap between icon and text */
}

.stat-item img {
    width: 50px; /* Icon size */
    height: 50px;
}

/* Adjust the size of modal for smaller screens */
@media (max-width: 768px) {
    .modal-content {
        width: 90%; /* Full width on smaller screens */
        margin: 15% auto; /* Adjust for smaller screens */
    }
}

/* The Close Button */
.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 15px; /* Move the close button outside the modal-content */
    font-size: 28px;
    font-weight: bold;
    background-color: #fff; /* Add background color */
    border-radius: 50%; /* Make it circular */
    padding: 5px 10px; /* Add padding */
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background-color: #333;
    color: #fff;
    overflow: hidden;
    padding: 15px 0;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 0 15px;
}

.navbar-brand {
    float: left;
    padding-left: 20px;
    font-size: 24px;
}

.navbar-nav {
    float: right;
}

.navbar-nav li {
    display: inline;
    padding: 0 10px;
}

.hero-section {
    position: relative;
    text-align: center;
    padding: 50px 20px;
    background: url('/static/images/hero.png') no-repeat center center/cover;
}

.hero-section h1 {
    font-size: 3em; /* Adjust the size as you see fit */
    font-weight: 900;
    color: #333; /* Or any color that fits your design */
    margin-bottom: 0.5em; /* Adds space between the h1 and the paragraph below */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* Optional: Adds depth to the text */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(255, 255, 255, 0.3); /* Adjust color and opacity as needed */
    z-index: 1;
}

.hero-section p {
    font-size: 1.75em; /* Increase font size */
    color: #ffffff; /* Keep text color white for contrast */
    max-width: 600px; /* Set a max-width for better readability */
    margin: 0 auto 1em; /* Center the text block and add margin below */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a text shadow for depth */
    line-height: 1.4; /* Improve line spacing */
    padding: 0 20px; /* Add padding on smaller screens */
}

.hero-section h1,
.hero-section p {
    position: relative;
    z-index: 2;
}

.btn-main {
    font-size: 1.25em; /* Makes the text larger */
    font-weight: bold;
    background-color: #ffa500; /* A brighter shade of orange */
    color: #fff;
    padding: 15px 40px; /* Larger padding for a larger button */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 6px rgba(0,0,0,0.2); /* Adds a subtle shadow for depth */
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition for hover effects */
    position: relative;
    z-index: 2;
    text-decoration: none; /* Removes underline from text */
}

.btn-main:hover, .btn-main:focus {
    background-color: #cc8400; /* A slightly darker shade for the hover state */
    transform: translateY(-2px); /* Slight raise effect on hover */
    box-shadow: 0px 6px 8px rgba(0,0,0,0.3); /* Larger shadow on hover for more depth */
}

.features-section {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f9f9f9;
}

.feature {
    width: 30%;
    text-align: center;
}

.feature img {
    width: 80%;
}

.feature h2 {
    color: #e67e22;
}

.btn-secondary {
    background-color: #3498db;
    color: #fff;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.user-info {
    display: flex; /* Use flexbox to control the layout */
    justify-content: space-between; /* Space between the items */
    align-items: center; /* Vertically center the items */
    padding: 10px 20px; /* Add padding for spacing */
    background-color: #2c3e50; /* Match the navbar color or as desired */
    color: white; /* Text color */
}

.user-info a {
    color: #3498db; /* Color for links */
    text-decoration: none; /* No underline for links */
    margin-left: 5px; /* Spacing after 'Welcome,' */
    margin-right: 5px; /* Spacing before '!' */
}

.user-info a:hover {
    text-decoration: underline; /* Underline on hover for links */
}

/* Add media queries for responsiveness */
@media (max-width: 768px) {
    .features-section {
        flex-direction: column;
    }

    .feature {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Profile Info Styles */
.profile-info {
    background-color: #f9f9f9; /* Light background for a softer look */
    color: #333; /* Dark text for contrast */
    padding: 20px; /* More padding for a spacious feel */
    border-radius: 10px; /* Rounded corners for a modern look */
    margin: 20px auto; /* Centered with vertical margin */
    max-width: 600px; /* Max width for better control on wider screens */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    display: flex; /* Use flex layout */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center-align items */
    gap: 10px; /* Space between items */
}

.profile-info h2 {
    font-size: 1.5em; /* Larger font size for the welcome message */
    margin-bottom: 5px; /* Space after the welcome message */
}

.profile-info p {
    font-size: 1em; /* Standard font size for email */
    background: #eef; /* Slightly different background for distinction */
    padding: 5px 10px; /* Padding for the email */
    border-radius: 5px; /* Rounded corners for the email background */
    width: 100%; /* Full width within the container */
    text-align: center; /* Center the text */
}

/* User Actions Styles */
.user-actions {
    margin-top: 20px; /* Space from the profile info box */
}

.user-actions a {
    background-color: #3498db; /* Primary color */
    color: white; /* Text color */
    padding: 12px 25px; /* Larger padding for a button-like appearance */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* No underline */
    font-weight: bold; /* Bold font for button text */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.user-actions a:hover {
    background-color: #2980b9; /* Darker shade on hover */
    text-decoration: none; /* No underline on hover */
}

/* Scoping the styles specifically to the recipes page */
.recipes-container .recipe-item {
    /* Existing styles here... */
    /* Add any new specific styles for recipe items */
}

/* Specific card-like design for each recipe */
.recipes-container .recipe-card {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin: 20px;
    overflow: hidden; /* Ensures the child elements do not overflow the rounded corners */
    transition: box-shadow 0.3s ease;
}

.recipes-container .recipe-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.recipes-container .recipe-card img {
    width: 100%;
    display: block;
    height: auto;
    transition: transform 0.3s ease;
}

.recipes-container .recipe-card:hover img {
    transform: scale(1.03); /* Slightly enlarge images on hover */
}

.recipes-container .recipe-card .card-content {
    padding: 15px;
    text-align: center;
}

.recipes-container .recipe-card .card-content h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.recipes-container .recipe-card .card-content p {
    color: #666;
    font-size: 0.9em;
}

.recipes-container .recipe-card .card-actions {
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

/* Styles for buttons within the recipes container only */
.recipes-container .btn-recipe {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.recipes-container .btn-recipe:hover {
    background-color: #2980b9;
}

/* Ensure that the styles do not affect other buttons on the site */
.btn-main, .btn-secondary {
    /* Keep existing styles, remove any conflicting styles if necessary */
}

/* If you want to use the btn-main class specifically in the recipes container without affecting others */
.recipes-container .btn-main {
    /* Adjustments specific to recipes page */
}

/* Example of a media query scoped to the recipes container */
@media (max-width: 768px) {
    .recipes-container .recipe-card {
        width: 100%; /* Full width on smaller screens */
        margin: 10px 0; /* Adjust margins for vertical stacking */
    }
}
