/* Reset some default styles */
body, h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1;
    background-color: #e0f7fa; /* Light cyan background */
    color: #333;
}

h1 {
    margin: auto;
}

h1 a {
    font-size: 110%;
    color: inherit;
    text-decoration: none;
}

h3 {
    margin-bottom: 10px;
}

#home ul {
    padding: 12px 0px;
}

.gigs {
    font-family: 'Roboto Mono', monospace;
    border: solid black 2px;
    overflow-y: auto;
    height: 300px;
    margin-top: 0px;
    width: 300px;
}

.gig {
    padding: 6px;
    border-bottom: 1px solid black;
}

.gig:hover {
    cursor: pointer;
}

.gig:nth-child(odd) {
    background: #e2e2e2;
}

.gig_venue, .gig_band {
    font-weight: bold;
}

.cancelled p {
    text-decoration: line-through;
    color: red;
}

#map {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: white;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#map button {
    display: block;
    margin-bottom: 10px;
    padding: 5px 10px;
    background: #f44336;
    color: white;
    border: none;
    cursor: pointer;
}

#map button:hover {
    background: #d32f2f;
}

/* Optional: style for page overlay */
#pageOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.venue_coord {
    height: 0px;
    visibility: hidden;
}

table, tr {
    margin: 0px;
    padding: 0px;
}

label, input[type=submit] {
    font-weight: bold;
}

.container {
    width: 80%;
    max-width: fit-content;
    margin: 0 auto;
    flex-wrap: nowrap;
    justify-content: center;
}

.centered {
    text-align: center;
}

.result {
    border: solid black 2px;
    background-color: teal;
    color: white;
    font-weight: bold;
    width: 304px;
    height: 44px;
    height: 30px;
    text-align: center;
    margin: 4px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1px;
}

section ul {
    /*margin-left: 24px;*/
    list-style-type: square;
    margin: 0 40px;
}

/* Header styles */
header {
    background: #00796b; /* Teal background */
    color: #fff;
    padding: 10px 0;
}

header h1 {
    display: inline;
    font-size: 24px;
    color: #fff;
    max-width: fit-content;
    margin: auto;
}

nav {
    /*float: right;*/
    flex-wrap: nowrap;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    display: inline-block;
    margin: 0px;
    position: relative;
    justify-content: center;
}

nav ul li a {
    display: block;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 5px 10px;
    /*border-radius: 5px;*/
    transition: background 0.3s;
    max-width: max-content;
    justify-content: center;
}

/* Styling for the active menu item */
nav ul li a.active {
    background: #004d40; /* Darker teal to highlight active item */
    color: #e0f7fa; /* Light cyan text for contrast */
    font-weight: bold;
}

/* Hover effect for menu items */
nav ul li a:hover {
    background: #004d40; /* Darker teal for hover effect */
}

nav ul li ul {
    display: none;
    position: absolute;
    background-color: #fff;
    background-color:  #00796b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    display: block;
    white-space: nowrap;
}

nav ul li ul li a {
    display: block;
    /*padding: 10px 20px;
    */text-decoration: none;
    color: #333;
    color: #fff;
    transition: background-color 0.3s;
}

nav ul li ul li a:hover {
    background-color: #f0f0f0;
    background-color: #004d40;
}

/* Main content styles */
main {
    padding: 20px 0;
}

section {
    background: #ffffff; /* White background for sections */
    margin: 0px 20px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #004d40; /* Dark teal border */
}

section h2 {
    margin-bottom: 10px;
    color: #00796b; /* Teal for section headings */
}

select {
    border: 1px solid  black;
    width: 220px;
}

/* Footer styles */
footer {
    /* background: #004d40; Dark teal background */
    background: #00796b; /* Teal background */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    font-size: 90%;
}
/*
.buttons {
    display: inline-block;
    text-align: center;
    width: 300px;
}
*/
/* Responsive styles */
/* Responsive sizes 
    Desktop screens: 1024×768 to 1920×1080 
    Mobile devices: 360×640 to 414×896 
    Tablets: 601×962 to 1280×800 
*/

#search-dropdown {
    display: none;
    list-style-type: none;
    padding: 0;
    margin: 0;
    margin-top: 2px;
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-top: 1px solid black;
    background-color: white;
    width: fit-content;
    width: 304px;
    position: absolute;
    z-index: 1000;
}

#search-dropdown li {
    padding: 8px;          /* Add padding to items */
    cursor: pointer;       /* Change cursor on hover */
    font-size: 13.3333px;
    font-weight: bold;
    border-bottom: 1px solid black;
}

#search-dropdown li:nth-child(odd) {
    background: #e2e2e2;
}

#search-dropdown li:hover {
    background-color: #e0f7fa;
}

#search-input {
    border: solid 1px black;
    font-size: 16px;
    width: 227px;
    height: fit-content;
}

input[type="search"]::-webkit-search-cancel-button {
    /* Remove default */
    -webkit-appearance: none;
  
    /* Now your own custom styles */
     height: 14px;
     width: 14px;
     display: block;
     background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC);
    /* setup all the background tweaks for our custom icon */
    background-repeat: no-repeat;
  
    /* icon size */
    background-size: 14px;  
}

@media (max-width: 768px) {
    /* Adjust header for smaller screens */
    nav {
        text-align: center;
    }

    nav ul {
        padding: 0;
    }
/*
    .container p {
        font-size: 16px;
    }
*/
    select {
        font-size: 95%;
    }
/*
    .gig p {
        font-size: 90%;
    }
*/
}

@media (max-width: 500px) {
    /* Adjust header font size further for very small screens */
    main {
        padding: 10px 0;
        /*height: 320px;*/
    }

    #map {
        width: 300px;
    }

    iframe {
        width: 100%;
    }
/*
    section {
        height: 280px;
    }

    .container p {
        font-size: 14px;
    }
*/
    select {
        /*font-size: 90%;*/
        max-width: 300px;
    }
/*
    .gig p {
        font-size: 80%;
    }
*/
    .result {
        max-width: 300px;
    }
}