body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image: url(background.jpg); /* Background image */
    background-size: cover; /* Cover the entire viewport */
    background-repeat: no-repeat; /* No repeat */
    color: #333;
}

/* General header styles */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-image: url(background.jpg);
    background-size: cover; /* Cover the entire viewport */
    background-repeat: no-repeat; /* No repeat */
}

header img {
    display: block;
    max-width: 150px; /* Set a fixed width for the image */
    height: auto; /* Maintain aspect ratio */
}

header img.logo {
    max-width: 150px; /* Adjust logo size */
    height: auto;
    margin-bottom: 10px;
}

header h1 {
    font-size: 2.5rem; /* Set the title font size */
    margin: 0; /* Remove default margin */
}

header nav ul {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
}

header nav ul li a {
    text-decoration: none;
    color: #8b0000;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: #8b0000;
    color: #fff;
}

.welcome-section h3 {
    font-size: .90rem; /* Adjust the font size */
    color: #8b0000; /* Set a wine-red color */
    font-weight: bold; /* Make the text bold */
    text-align: center; /* Center the text */
    margin-top: 10px; /* Add spacing above */
    margin-bottom: 20px; /* Add spacing below */
}
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Search Bar and Dropdowns */
.search-bar-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* Add spacing between elements */
    margin-bottom: 20px;
}

.search-bar {
    flex: 1; /* Allow the search bar to take up available space */
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-dropdown,
.date-dropdown {
    flex: 0.3; /* Adjust width proportionally */
    margin-left: 10px;
}

.categories-dropdown select,
.date-dropdown select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.search-bar input {
    flex: 1; /* Input takes up most of the space */
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-bar button {
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #8b0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #a00000;
}

/* Featured Post */
.featured-post {
    background-size:contain; /* Ensure the image fits within the section */
    background-position: center; /* Center the background image */
    background-size: cover;
    /* make the background less visible */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    padding: 20px; /* Add padding for content inside the section */
    color: #ffffff; /* Set text color to white for better contrast */
    border-radius: 8px; 
    border-color: #830000;
    border-width: 2px; /* Add a border around the section */
    border-style: solid; /* Solid border style */
    margin-bottom: 20px; /* Add spacing between featured posts */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: left; 
    gap: 10px; /* Add space between items */
}

.featured-post h2, 
.featured-post p {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background for the button */
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin: 0;
    width: fit-content;
}
.featured-post a {
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(255, 45, 45, 0.7); /* Semi-transparent background for the button */
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin: 0;
    width: fit-content;
}
.featured-post a:hover {
    background-color: rgba(0, 0, 0, 0.9); /* Darker background on hover */
}

/* Blog Post Previews */
.blog-post {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    color: white; /* Ensures text is visible */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7); /* Adds a shadow for better readability */
    padding: 20px; /* Adds spacing inside the container */
}

.blog-post .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1; /* Places the overlay behind the text */
}

.blog-post h2, .blog-post p, .blog-post .social-share {
    position: relative;
    z-index: 2; /* Ensures text is above the overlay */
}

.blog-post h2 {
    color: #ffffff;
    margin-bottom: 5px;
}

.blog-post h2 a {
    text-decoration: none;
    color: #ffffff;
}

.blog-post h2 a:hover {
    text-decoration: underline;
}

.blog-post .meta {
    font-size: 0.9rem;
    color: #a6a6a6;
    margin-bottom: 10px;
}

.blog-post img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.blog-post p {
    margin-bottom: 10px;
    color: #a6a6a6;
}

footer {
    text-align: center;
    padding: 10px;
    background-image: url(background.jpg); /* Background image */
    background-size: cover; /* Cover the entire viewport */
    background-repeat: no-repeat; /* No repeat */
    color: #fff;
    margin-top: 20px;
}

nav {
    margin: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none; /* Remove bullet points */
    margin: 0;
    padding: 0;
    display: flex; /* Align navigation items horizontally */
    gap: 15px; /* Add spacing between navigation links */
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Social Share */
.social-share {
    margin-top: 10px;
}

.social-share a {
    margin-right: 10px;
    text-decoration: none;
    color: #ffffff;
}

.social-share a:hover {
    text-decoration: underline;
}

/* Social Media Buttons */
.social-media-buttons {
    display: flex;
    justify-content: center; /* Center the buttons horizontally */
    gap: 20px; /* Add spacing between the buttons */
    margin-top: 20px; /* Add spacing above the buttons */
}

.social-button {
    display: inline-block;
    width: 50px; /* Set the size of the button */
    height: 50px;
}

.social-icon {
    width: 100%; /* Make the icon fill the button */
    height: 100%;
    object-fit: contain; /* Ensure the icon fits properly */
    transition: transform 0.3s ease; /* Add a hover effect */
}

.social-button:hover .social-icon {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Categories */
.categories {
    margin-top: 20px;
}

.categories h3 {
    margin-bottom: 10px;
    color: #8b0000;
}

.categories ul {
    list-style: none;
    padding: 0;
}

.categories ul li {
    margin-bottom: 5px;
}

.categories ul li a {
    text-decoration: none;
    color: #555;
}

.categories ul li a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    text-decoration: none;
    background-color: #8b0000;
    color: #fff;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #a00000;
}

/* Wine Block Styles */
.wine-block {
    margin-bottom: 15px; /* Reduce spacing between blocks */
    padding: 10px; /* Reduce padding inside the block */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px; /* Slightly smaller border radius */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    font-size: 0.9rem; /* Reduce overall font size */
    position: relative; /* Enable positioning for child elements */
}

.wine-block h2 {
    color: #000000;
    font-size: 1.2rem; /* Smaller font size for the title */
    margin-bottom: 8px; /* Reduce spacing below the title */
}

.wine-block p {
    margin: 4px 0; /* Reduce spacing between paragraphs */
    color: #555;
    font-size: 0.85rem; /* Smaller font size for the text */
}

/* Points Section */
.points {
    position: absolute;
    top: 10px; /* Align near the top of the block */
    right: 10px; /* Align near the right edge of the block */
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.points span {
    display: block;
    font-size: 0.8rem;
    color: #555;
}

.points strong {
    font-size: 1.2rem;
    color: #8b0000;
}

.points .rated-by {
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
    text-align: center;
}

/* Classification Menu Styles */
.classification-menu {
    display: flex;
    gap: 10px; /* Add spacing between dropdowns */
    margin-bottom: 20px; /* Add spacing below the menu */
}

.classification-menu select {
    padding: 8px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

/* General styles for the classification menu */
.classification-menu {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    gap: 10px; /* Add spacing between dropdowns */
    margin-bottom: 20px;
}

.classification-menu select {
    flex: 1; /* Allow dropdowns to take up equal space */
    min-width: 120px; /* Ensure dropdowns are not too small */
    max-width: 200px; /* Limit the maximum width */
    padding: 8px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.welcome-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.welcome-section img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.note {
    position: absolute; /* Position the note absolutely within the wine block */
    top: 10px; /* Position it near the top of the block */
    left: 50%; /* Center it horizontally */
    transform: translateX(-50%); /* Adjust for the element's width to center it */
    font-style: italic;
    color: #555;
    padding: 5px 10px; /* Reduce padding to make it smaller */
    background-color: #f0f0f0;
    border-radius: 2px; /* Slightly smaller border radius */
    text-align: center;
    width: fit-content; /* Adjust the width to fit the content */
    font-size: 0.50rem; /* Reduce font size */
    z-index: 1; /* Ensure it appears above other elements */
}
.notescontainer {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center text inside the container */
}
.notescontainer2 {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center text inside the container */
}

.collaborators {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between blocks */
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-bottom: 10px; /* Add spacing below the collaborators */
}

.collaborator {
    width: 100px; /* Set a fixed width for the blocks */
    height: 100px; /* Set a fixed height for the blocks */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collaborator img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.collaborator:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.collaborators-text {
    text-align: center; /* Center the text */
    font-size: 1rem; /* Adjust font size */
    color: #555; /* Neutral text color */
    margin-top: 10px; /* Add spacing above the text */
}

.profile {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Align items vertically */
    gap: 20px; /* Add space between the image and text */
}

.profile-image {
    width: 150px; /* Set a medium size for the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.profile-text {
    font-size: 1rem; /* Adjust font size */
    color: #555; /* Set a neutral text color */
    line-height: 1.5; /* Improve readability */
}
.wine-description {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    align-items: center; /* Centers the image and text horizontally */
    gap: 15px; /* Adds spacing between elements */
}

.wine-image {
    width: 150px; /* Adjust the size of the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: Adds rounded corners */
}

.wine-text {
    text-align: justify; /* Justifies the main text */
    max-width: 600px; /* Optional: Limits the width of the text */
}

.wine-info {
    text-align: left; /* Aligns the wine info text to the left */
    max-width: 600px; /* Optional: Limits the width of the text */
    font-size: 0.9rem; /* Optional: Makes the text slightly smaller */
}
.notescontainer .h54 {
    font-size: 1rem; /* Adjusts the font size to make it smaller */
    font-weight: normal; /* Optional: Makes the text less bold */
    margin-bottom: 5px; /* Optional: Adds spacing below the heading */
    color: #c31a00; /* Optional: Sets a neutral color for the text */
}
.explanation-block {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.explanation-block h2 {
    margin-bottom: 10px;
    color: #333;
}

.explanation-block p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}
.explanation-block ul {
    margin-left: 20px;
    color: #555;
}

.explanation-block ul li {
    margin-bottom: 5px;
}
.explanation-block {
    font-size: 0.9rem; /* Reduces the font size */
    line-height: 1.4; /* Adjusts line spacing for readability */
}

.explanation-block h2 {
    font-size: 1.2rem; /* Slightly smaller heading */
}

.explanation-block ul li {
    font-size: 0.9rem; /* Smaller list items */
}
.calendar {
    text-align: center; /* Centers the content */
    margin: 20px auto; /* Adds spacing and centers the calendar */
    max-width: 90%; /* Ensures the calendar doesn't exceed 90% of the page width */
}

.calendar h2 {
    font-size: 1.5rem; /* Adjusts the heading size */
    margin-bottom: 10px; /* Adds spacing below the heading */
}
.calendar-image {
    width: 100%; /* Makes the image responsive */
    max-width: 400px; /* Limits the maximum width of the image */
    height: auto; /* Maintains the aspect ratio */
    border-radius: 8px; /* Optional: Adds rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow */
}
.audio-player {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    max-width: 400px;
    margin-bottom: 20px;
}
.audio-player p {
    margin: 0 0 8px 0;
    font-weight: bold;
}
    
.search-bar-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}
.search-bar-container input,
.search-bar-container select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 24px 0;
    justify-content: center;
}
.alphabet-nav a {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f2f2f2;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
}
.alphabet-nav a:hover {
    background: #800020;
    color: #fff;
}
.diccionario-lista {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 30px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.diccionario-lista li {
    margin-bottom: 8px;
}
/* ...existing code... */

.floating-dictionary-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px #0003;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: box-shadow 0.2s;
    border: 2px solid #7b2ff2;
    cursor: pointer;
}
.floating-dictionary-btn:hover {
    box-shadow: 0 4px 16px #7b2ff2;
    background: #f3eaff;
}
.floating-dictionary-btn img {
    width: 32px;
    height: 32px;
    display: block;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-popup {
    background: #fff;
    padding: 32px 24px;
    border-radius: 10px;
    text-align: center;
    max-width: 320px;
    box-shadow: 0 2px 16px #0004;
}
.modal-popup h2 { margin-bottom: 12px; }
.modal-btn {
    display: inline-block;
    margin: 12px 8px 0 8px;
    padding: 10px 18px;
    background: #7b2ff2;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}
@media (max-width: 600px) {
    .floating-dictionary-btn {
        width: 44px;
        height: 44px;
        left: 10px;
        bottom: 10px;
    }
    .floating-dictionary-btn img {
        width: 24px;
        height: 24px;
    }
}
/* ...existing code... */
/* Media query for phones */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header img.logo {
        max-width: 120px; /* Smaller logo for phones */
    }

    header nav ul {
        flex-direction: column; /* Stack navigation links vertically */
        gap: 10px;
    }

    header nav ul li a {
        font-size: 0.9rem; /* Slightly smaller font size */
        padding: 8px 12px;
    }

    .search-bar-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: stretch; /* Make elements take full width */
        gap: 10px; /* Reduce spacing between elements */
    }

    .search-bar {
        flex-direction: column; /* Stack input and button vertically */
        gap: 5px;
    }

    .search-bar input {
        width: 100%; /* Full width on smaller screens */
    }

    .search-bar button {
        width: 100%; /* Full width on smaller screens */
    }

    .categories-dropdown,
    .date-dropdown {
        width: 100%; /* Full width for dropdowns */
    }

    .classification-menu {
        flex-direction: column; /* Stack dropdowns vertically */
        align-items: stretch; /* Make dropdowns take full width */
        gap: 10px; /* Add spacing between dropdowns */
    }

    .classification-menu select {
        width: 100%; /* Full width for dropdowns on smaller screens */
        max-width: none; /* Remove the maximum width restriction */
    }
    
    .wine-description {
        flex-direction: column; /* Stacks the image and text vertically on smaller screens */
        align-items: center; /* Centers the content */
    }

    .wine-text {
        text-align: center; /* Centers the text */
    }
        @media (max-width: 600px) {
  .bmc-btn-container,
  .bmc-btn-container * {
    font-size: 12px !important;
  }
}
.bmc-btn-container .bmc-btn {
  border: 5px solid #FFDD00 !important;
  box-shadow: 0 0 8px #FFDD0055;
}
}


