        /* Add your CSS styles here */
        body {
            font-family: Arial, sans-serif;
        }
        header {
            position: relative;
            text-align: center;
            background-color: #007BFF;
            color: #fff;
            padding: 20px;
        }

        main {
            padding: 20px;
        }
#search-container {
    margin: 20px 0; /* Adding some margin for spacing */
    padding: 10px;
    border-radius: 8px; /* Rounded corners */
    background-color: #f5f5f5; /* Light gray background */
    max-width: 600px; /* Setting a maximum width */
    margin-left: auto; /* Center the container */
    margin-right: auto;
}

#search-input {
    width: 100%; /* Take full width of its container */
    padding: 10px 15px; /* Some padding for comfort */
    font-size: 1.2em; /* Making the text a bit bigger */
    border: 1px solid #ccc; /* A light border */
    border-radius: 5px; /* Rounded corners for the input */
    outline: none; /* Removing the default browser outline */
    transition: border-color 0.3s; /* Smooth transition for hover and focus effects */
}

#search-input:focus {
    border-color: #007BFF; /* Change border color when the input is focused */
}


        /* Add this style for the expanding effect */
.element.expanded {
    max-width: 100%;
    transition: max-width 0.5s;
}
/* Modify the .element style to use flexbox for layout */
.element {
    display: flex;
    align-items: center;
    margin: 10px 10px 10px 0;
    border: 1px solid #ccc;
    padding: 10px;
    max-width: 600px;
    cursor: pointer; /* Add cursor style to indicate it's clickable */
}

.element img {
    width: 300px;
    height: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px; /* Add margin to separate image from text */
}

.element h2 {
    margin: 5px 0;
    flex: 1; /* Let the title fill available space */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.element-content {
    display: none;
    flex-direction: column;
}

/* Style for the modal overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Style for the modal content */
.modal-content {
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Style for the modal buttons */
.modal-buttons button {
    margin: 5px;
}

.has-key {
    border-left: 5px solid green;  /* Or another visual cue of your choice */
}

.no-key {
    background-color: #f9f9f9; /* Light grey background */
    color: #a9a9a9; /* Greyed-out text */
}

/* General mobile responsive adjustments */
body {
    margin: 0;
    overflow-x: hidden;  /* Prevent horizontal scrolling if any element goes out of viewport width */
}

/* Add padding to ensure nothing touches the edge of the screen */
main {
    padding: 10px;
}

@media (max-width: 768px) {
    /* Make the header stretch and increase font size */
    header {
        width: 110%;
        text-align: center;
        padding: 20px 0;
    }

    header h1 {
        font-size: 2rem; /* Adjust as needed */
    }

    header p {
        font-size: 1.2rem; /* Adjust as needed */
    }

    /* Make the search bar larger */
    #search-container {
        padding: 10px;
    }

    #search-input {
        width: 100%;
        padding: 15px;
        font-size: 1.2rem; /* Adjust as needed */
    }

    /* Adjust the elements */
    .element {
        width: calc(100% - 0px); /* Deducting padding */
        box-sizing: border-box;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .element img {
        width: 90%; /* Adjust as needed */
        margin: 10px 0;
    }

    .element h2 {
        font-size: 1.4rem; /* Adjust as needed */
        text-align: center;
        width: 100%;
        word-wrap: break-word;
    }

    /* Ensure the link wraps and doesn't overflow its container */
    .element-content a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        white-space: pre-wrap; /* will break onto the next line */
        word-break: break-all; /* this will break up the single word if it's too long */
        margin-bottom: 5px;
    }

    /* Set the buttons to sit side by side */
    .element-content button {
        display: inline-block;
        width: 48%; /* 48% will ensure they sit side by side with a little gap */
        padding: 10px 0; /* more vertical padding, no horizontal padding */
        box-sizing: border-box; /* ensures padding doesn't add to the width */
        text-align: center; /* center the text within the button */
    }

    /* A little gap between the two buttons */
    .element-content button:nth-child(2) {
        margin-left: 4%; /* the remaining 4% to make it 100% with the buttons */
    }

}




#menu {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #007BFF;
    border: 1px solid white;
    border-top: none;
}

nav a {
    display: block;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
}

nav a:hover {
    background-color: #0056b3;
}

