/* Reset Styles */
body,
h1,
h2,
h3,
p,
ul,
ol,
li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #9c27b0;
    /* Festive purple background */
    color: #fff;
    /* White text */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation Bar */
.navbar {
    background-color: #673ab7;
    /* Dark purple navbar */
    padding: 10px 0;
    color: #fff;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #ffd700;
    /* Yellow on hover */
}

/* Hero Section */
.hero {
    position: relative;
    background-image: url('../images/feest.png');
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
    /* Move the overlay behind other elements */
}

.hero h1 {
    font-size: 48px;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Text shadow added back */
}

.tagline {
    font-size: 24px;
    margin-top: 20px;
    font-weight: 300;
}

.search {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search input[type="text"] {
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    width: 300px;
    z-index: 1;
    /* Ensure input is above overlay */
    background-color: #fff;
    /* White background */
    color: #333;
    /* Dark text */
    text-align: center;
}

/* Update the search button styles */
.search button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    margin-left: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ffd700;
    /* Yellow button */
    color: #333;
    /* Dark text */
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Add color transition */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Add shadow effect */
}

.search button:hover {
    background-color: #ffeb3b;
    /* Lighter yellow on hover */
    color: #333;
    /* Dark text */
}


/* Party List Section */
.party-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.party-card {
    background-color: #ff6384;
    /* Pink party card */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.party-card h3 {
    font-size: 18px;
    margin: 0;
}

.party-card p {
    font-size: 14px;
}

/* Footer */
footer {
    background-color: #512da8;
    /* Dark purple footer */
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    /* Push footer to the bottom */
}

footer p {
    font-size: 14px;
    margin: 0;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
    overflow: auto;
    padding-top: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 2px solid #f9ca24;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

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

.close:hover {
    color: #f39c12;
}

h2 {
    color: #f9ca24;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.modal button {
    background-color: #f9ca24;
    color: #fff;
    border: none;
    padding: 12px 20px;
    margin-top: 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.modal button:hover {
    background-color: #f39c12;
}

/* Welcome message */
.welcome-message {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-right: 20px;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown button */
.dropdown button {
    background-color: #673ab7;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    border-radius: 5px;
    z-index: 1;
    top: 40px;
}

/* Dropdown links */
.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* Show the dropdown content when dropdown button is clicked */
.dropdown.show .dropdown-content {
    display: block;
}