/* Header styling */
header {
    background-color: #333333;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Ensure items do not wrap */
}

/* Header Title (h1) Styling */
header h1 {
    font-size: 3vw; /* Dynamic font size based on viewport width */
    color: #FFD700;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap; /* Prevents wrapping */
    overflow: hidden; /* Ensures the text doesn't overflow */
    text-overflow: ellipsis; /* Adds ellipsis if text overflows */
    position: absolute; /* Position the title absolutely */
    left: 50%; /* Position from the left */
    transform: translateX(-50%); /* Center it using transform */
}

/* Navigation styling */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin: 0 10px;
    text-align: center;
}

nav ul li a,
nav ul li button {
    text-decoration: none;
    color: #FFD700;
    background: none;
    border: none;
    font-size: 2vw; /* Dynamic font size based on viewport width */
    transition: color 0.3s ease;
    cursor: pointer;
    display: block;
    padding: 5px 10px; /* Slight padding for better spacing */
}

/* Navigation Hover Effects */
nav ul li a:hover,
nav ul li button:hover {
    color: #FFA500;
    text-decoration: underline;
}

/* Media Query for Small Screens */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header h1 {
        font-size: 5vw; /* Smaller font size for mobile */
        letter-spacing: 2px;
        position: static; /* Remove absolute positioning for mobile */
        transform: none; /* Reset transform for mobile */
    }

    nav ul {
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a,
    nav ul li button {
        font-size: 4vw; /* Match font size with h1 */
    }
}

/* Suggestion Modal Styling */
#suggestModal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 
}

#suggestModal .modal-content {
    background-color: #2C2C2C;
    margin: 10% auto; 
    padding: 20px;
    border-radius: 10px;
    width: 80%; 
    max-width: 500px;
    color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#suggestModal h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #FFD700;
    text-align: center; /* Center the heading */
}

#suggestModal textarea {
    width: calc(100% - 30px); /* Ensure the text area fits within the modal with padding */
    border-radius: 5px;
    padding: 10px; /* Adjust padding for a better fit */
    margin-bottom: 20px;
    border: 1px solid #888;
    background-color: #444;
    color: #fff;
    font-size: 1em;
    resize: none; /* Prevent resizing */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

#suggestModal .button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

#suggestModal .button-group button {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#suggestModal .button-group button:first-child {
    background-color: #FFD700;
    color: #2C2C2C;
}

#suggestModal .button-group button:last-child {
    background-color: #555;
    color: #FFF;
}

#suggestModal .button-group button:hover:first-child {
    background-color: #FFA500;
}

#suggestModal .button-group button:hover:last-child {
    background-color: #666;
}

/* Close button styling */
#suggestModal .close {
    color: #AAAAAA;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

li {
    text-align: start;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #2C2C2C;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px;
    background-color: #333333;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: center;
}

.container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.cocktail-card {
    background-color: #444444;
    border-radius: 10px;
    margin: 10px;
    width: 300px;
    max-height: 350px; /* Set a maximum height for the card */
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cocktail-card:hover {
    transform: translateY(-10px);
}

.cocktail-card img {
    max-width: 100%;
    border-radius: 10px;
    height: 200px; /* Fixed height for the image */
    object-fit: cover; /* Ensures the image covers the space without stretching */
}

.cocktail-card h3 {
    margin: 10px 0;
    font-size: 1.5em;
    color: #FFD700;
}

.cocktail-card p {
    font-size: 1em;
    color: #CCCCCC;
    margin: 5px 0 15px 0;
    flex-grow: 1; /* Allows the paragraph to take up remaining space if needed */
    display: flex;
    align-items: center; /* Vertically centers the text */
    text-align: start; /* Optional: Center text horizontally */
}

.cocktail-card button {
    background-color: #FFD700;
    color: #2C2C2C;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    flex: 1; /* Ensure buttons take equal space */
}

.button-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cocktail-card button:hover {
    background-color: #FFA500;
}

footer {
    background-color: #333333;
    color: #CCCCCC;
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 
}

.modal-content {
    background-color: #2C2C2C;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    color: #FFFFFF;
    border-radius: 10px;
}

.close {
    color: #AAAAAA;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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