
/* Base Styles */
body {
    font-family: sans-serif;
    background-color: #1a202c;
    color: #cbd5e0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #64ffda;
}


h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #64ffda;
}


/* Input and Button Container */
.search-container {
    display: flex;  /* Use flexbox to put them inline */
    align-items: center; /* Vertically align items */
    margin-bottom: 10px;
}

/* Input Styles */
#searchInput {
    flex-grow: 1; /* Allow the input to take up available space */
    padding: 12px;
    border: 1px solid #4a5568;
    border-radius: 5px;
    background-color: #2d3748;
    color: #cbd5e0;
    font-size: 1rem;
    box-sizing: border-box;
    margin-right: 10px; /* Add spacing between input and button */
}
#searchInput:focus {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

/* Button Styles */
.search-container button {
    padding: 12px 15px; /* Match input padding */
    background-color: #2d3748;
    color: #64ffda;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;

    white-space: nowrap; /* Prevent button text from wrapping */
}

.search-container button:hover {
    background-color: #4a5568;
}
.search-container button:focus {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}

/* Result Styles */
.result {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #2d3748;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

.result:hover {
    transform: scale(1.02);
}

.result h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #64ffda;
}

.result img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    margin-top: 10px;
}

.result p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Error Message Style */
.error-message {
    color: #f56565;
    font-weight: bold;
}

/* Link styles */
a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #b2ffdb;
    text-decoration: underline;
}

a:visited {
    color: #86c7e9;
}

a:focus {
    outline: 2px solid #64ffda;
    outline-offset: 2px;
}


/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #4a5568; /* Add a border to the table */
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #4a5568;
}

.data-table th {
    background-color: #2d3748;
    color: #fff;
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background-color: #2d3748; /* Alternate row color */
}


/* Back Button */
.back-button {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 10px 15px;
    background-color: #2d3748;
    color: #64ffda;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #4a5568;
    text-decoration: underline;
}

/* Image Styles */
.meme-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;       /*  Important for centering */
    margin-left: auto;   /*  Center horizontally */
    margin-right: auto;  /*  Center horizontally */
}

/* Initially hide the metadata table */
#otherMetadata {
display: none;
}

/* Metadata Toggle Button */
.toggle-button {
    padding: 10px 15px;
    background-color: #64ffda;
    color: #1a202c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.toggle-button:hover {
    background-color: #b2ffdb;
    transform: scale(1.05);
}

.toggle-button:focus {
    outline: 2px solid #1a202c;
    outline-offset: 2px;
}

/* Light Mode Styles */
.light-mode {
    background-color: #fff;
    color: #333;
}
.light-mode .result {
    background-color: #f0f0f0;
}
.light-mode .data-table th {
    background-color: #e0e0e0;
}
.light-mode .search-container button {
    background-color: #f0f0f0;
}
.light-mode #searchInput {
    background-color: white;
    color: black;
}
.light-mode a {
    color: #007bff; /* Standard blue for links */
}

.light-mode a:hover {
    color: #0056b3; /* Darker blue on hover */
}

.light-mode a:visited {
    color: #800080; /* Purple for visited links */
}


