/* Dark Mode Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('../imgs/background.png') no-repeat center center fixed;
    background-size: cover;
    background-color: #121212; /* Fallback in case image doesn't load */
    color: #FFD700;
    text-align: center;
}

h1, h2 {
    color: #ffd700;
}

/* Form Styling */
form {
    margin: 20px auto;
    width: 95%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ffd700;
    border-radius: 5px;
    font-size: 16px;
    background-color: #1e1e1e;
    color: #ffd700;
}

button {
    padding: 12px 20px;
    background-color: #ffd700;
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

button:hover {
    background-color: #cfa800;
}


/* Result Display */
pre {
    background: #121212; /* Deep Black */
    padding: 15px;
    border-radius: 8px;
    text-align: left;
    max-width: 95%;
    margin: 10px auto;
    overflow-x: auto;
    color: #FFD700; /* Gold */
    border: 1px solid #FFD700;
    font-family: 'Courier New', monospace;
}

/* General Paragraph Styling */
p {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
}

/* content area */
#content {
    margin-top: 145px; /* Matches the masthead height */
    padding: 20px;
    max-width: 85%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    z-index: 100;
    position: relative; /* Ensures it's positioned correctly */
}


/* Masthead Styling */
/* Masthead Container */
.masthead-container {
    position: relative; /* Keeps it in normal document flow */
    width: 100%; /* Ensures it spans the full width */
    height: 145px; /* Fixed height */
    display: flex;
    align-items: center; /* Centers content vertically */
    justify-content: flex-start; /* Aligns content to the left */
    /*background-color: #121212;  Optional background to prevent transparency issues */
    padding: 10px 20px; /* Adds breathing room */
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Masthead Image */
.masthead {

    height: 100%; /* Ensures it fills the container */
    object-fit: contain; /* Ensures it scales properly within the height */
    margin-left: 0;
}





/* Centered Card Container */
.solr-container {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

/* Two-Column Card Layout */
.solr-card {
    display: flex;
    flex-direction: row; /* Makes it a two-column layout */
    align-items: center;
    width: 85%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3); /* Gold Glow */
    background-color: #121212;
    border: 2px solid rgba(255, 215, 0, 0.6);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.solr-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.5);
}

/* Thumbnail Styling */
.solr-thumbnail {
    width: 40%;
    min-width: 150px;
    overflow: hidden;
}

.solr-image {
    width: 50%;
    height: 50%;
    object-fit: cover;
}

/* Text Content */
.solr-text {
    width: 60%;
    padding: 20px;
    color: #FFD700;
    text-align: left;
}

/* Title */
.solr-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Location */
.solr-location {
    font-size: 0.9rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 5px;
}

/* Plot */
.solr-plot {
    font-size: 1rem;
    font-weight: normal;
    color: rgba(255, 215, 0, 0.8);
    margin-bottom: 10px;
}

/* Show Details Link */
.solr-show-details {
    color: #FFD700;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.solr-show-details:hover {
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .solr-card {
        flex-direction: column; /* Stack on smaller screens */
        width: 95%;
    }

    .solr-thumbnail {
        width: 100%;
    }

    .solr-text {
        width: 100%;
        text-align: center;
    }
}

/* Modal Styles */
#summary-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #121212;
    border: 2px solid rgba(255, 215, 0, 0.6);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    color: #FFD700;
    text-align: left;
}

#summary-modal .modal-content {
    max-height: 70vh;
    overflow-y: auto;
}

#summary-modal .close-modal {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    float: right;
    margin-top: -10px;
}

#summary-modal .close-modal:hover {
    text-decoration: underline;
}

/* Overlay Background */
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

/* Search Container */
.search-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Aligns all elements to the right */
    text-align: right;
    padding: 10px;
    max-width: 400px; /* Prevents it from getting too wide */
}

/* Title Styling */
.search-title {
    font-size: 2rem;
    color: #FFD700;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* Search Form */
.search-form {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

/* Search Box Wrapper */
.search-box {
    display: flex;
    width: 100%;
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 8px;
    overflow: hidden;
    background-color: #121212;
}

/* Search Input */
.search-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    background-color: transparent;
    color: #FFD700;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 215, 0, 0.6);
}

/* Search Button */
.search-button {
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #FFD700;
    color: #121212;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

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

.search-button:active {
    transform: scale(0.95);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .search-form {
        width: 90%;
    }
}






/* modal styles */
/* === MODAL CONTAINER === */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #121212; /* Deep Black */
    border: 2px solid rgba(255, 215, 0, 0.6); /* Gold Border */
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3); /* Gold Glow */
    padding: 20px;
    border-radius: 12px;
    color: #FFD700; /* Gold Text */
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

/* === MODAL HEADER === */
.custom-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 215, 0, 0.5);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

/* Close Button */
.custom-modal .close-modal {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-modal .close-modal:hover {
    color: #fff;
    text-decoration: underline;
}

/* === MODAL CONTENT === */
.custom-modal .modal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* === STYLED LIST === */
.custom-modal ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.custom-modal li {
    font-size: 1rem;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    transition: background 0.3s ease;
}

.custom-modal li:last-child {
    border-bottom: none;
}

/* Hover effect */
.custom-modal li:hover {
    background-color: rgba(255, 215, 0, 0.1); /* Subtle gold highlight */
}

/* === MODAL OVERLAY (BACKGROUND) === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.suggestions-button {
    margin: 20px;
    padding: 10px 15px;
    background: #FFD700;
    color: #121212;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover Effect */
.suggestions-button:hover {
    background: #FFC107;
    transform: scale(1.05);
}

/* Active Click Effect */
.suggestions-button:active {
    transform: scale(0.95);
}



/* Noir Movie Card (Side-by-Side) */
.movie-card table {
    width: 100%;
    border-collapse: collapse;
    cellpadding: 0px;
    cellspacing: 0px;
}

.movie-card blockquote {
    margin: 10px;
    padding: 20px;
}

.movie-card {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.95), rgba(30, 30, 30, 0.9));
    border: 1px solid rgba(255, 44, 85, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(255, 44, 85, 0.3);
}

.movie-image img {
    width: 140px;
    height: auto;
    display: block;
    object-fit: cover;
    margin-right: 20px;
}

.movie-content {
    padding: 10px 15px;
    color: #ccc;
    flex: 1;
    margin-left: 20px;
}

.movie-title {
    color: #ff2c55;
    font-size: 20px;
    margin-bottom: 8px;
    font-family: 'Unbounded', sans-serif;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.movie-plot {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}




