* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Special Elite', monospace;
    background: linear-gradient(#0a0a0a, #141414);
    color: #bbb;
    background-image: url('imgs/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    padding-top: 90px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.95);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.85);
    z-index: 999;
    display: flex;
    align-items: center;
}

header img {
    height: auto;
    max-height: 110px;
    margin-left: 15px;
    margin-right: auto; /* Pushes other elements to the right */
    /* round the corners of the logo */
    border-radius: 10px;
    margin-bottom: 0px;
}

.masthead-container {
    width: 99%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

.masthead-container img {
    /* scale down the logo */
    display: inline-block; /* Ensures proper scaling behavior */
    transform-origin: center; /* Scale from the center */
    transition: transform 0.3s ease; /* Smooth transition when scale changes */
    /*transform: scale(0.5);*/
    margin-right: auto;


}

.masthead-container h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    color: #ff2c55;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff2c55;
}

.search-bar {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.search-bar input {
    padding: 6px 10px;
    border-radius: 4px 0 0 4px;
    border: 1px solid #333;
    background-color: #222;
    color: #eee;
    border-right: none;
}

.search-bar button {
    padding: 6px 12px;
    border: 1px solid #333;
    border-left: none;
    border-radius: 0 4px 4px 0;
    background-color: #ff2c55;
    color: #FFD700;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background-color: #e31c45;
}

.content {
    display: grid;
    grid-template-columns: 15% 1fr 15%;
    gap: 2rem;
    width: 99%;
    margin: 40px auto;
    padding-bottom: 80px;
}

.column {
    background: rgba(20, 20, 20, 0.85);
    padding: 20px;
    border: 1px solid rgba(255, 44, 85, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.column:hover {
    background: rgba(30, 30, 30, 0.95);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(255, 44, 85, 0.2);
}

h2 {
    color: #ff2c55;
    margin-bottom: 10px;
    font-size: 20px;
    border-bottom: 1px dashed rgba(255, 44, 85, 0.2);
    padding-bottom: 5px;
}

p {
    line-height: 1.6;
    font-size: 14px;
    color: #aaa;
}

footer {
    text-align: center;
    color: #555;
    font-size: 12px;
    margin-top: 40px;
    padding: 20px;
}


a {
    color: #ff2c55;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #ff2c55;
    transition: width 0.3s ease;
}

a:hover {
    color: #fff;
}

a:hover::after {
    width: 100%;
}

/* Modal Dialog for Cinema Sage */
/* Chat Modal Styles */
.chat-collapsed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff2c55;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
}

.chat-collapsed:hover {
    background: #e31c45;
    transform: translateY(-3px);
}

.chat-hidden {
    display: none;
}

.chat-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vmin;
    height: 55vmin;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 44, 85, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-modal.open {
    display: flex;
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(8, 8, 8, 0.9);
    border-bottom: 1px solid rgba(255, 44, 85, 0.2);
}

.chat-modal-header h3 {
    color: #ff2c55;
    margin: 0;
    font-size: 16px;
}

.chat-controls button {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    margin-left: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.chat-controls button:hover {
    background: rgba(255, 44, 85, 0.2);
    color: white;
}

.chat-modal-body {
    flex-grow: 1;
    overflow: hidden;
}

.chat-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* Update these styles in your index.css */

/* Improved Chat Modal Positioning */
.chat-modal {
    display: none;
    position: fixed;
    top: 10%; /* Changed from 50% to position higher on screen */
    left: 50%;
    transform: translateX(-50%); /* Only center horizontally */
    width: 80vmin;
    height: 60vh; /* Use viewport height for better responsiveness */
    max-height: 600px;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 44, 85, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    z-index: 999;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px; /* Add some breathing room from bottom */
}

.chat-modal.open {
    display: flex;
}

/* Improved Chat Button Positioning */
.chat-collapsed {
    position: fixed;
    bottom: 30px; /* Slightly more space from bottom */
    right: 30px; /* Slightly more space from right */
    background: #ff2c55;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 25px; /* Slightly larger for better presence */
    cursor: pointer;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
}

/* Add some responsive behavior */
@media (max-width: 768px) {
    .chat-modal {
        top: 5%;
        width: 95vw;
        height: 70vh;
        left: 50%;
        transform: translateX(-50%);
    }

    .chat-collapsed {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
    }
}
/* Add this to ensure the modal is high enough in z-index */
.ui-draggable-dragging {
    z-index: 9999 !important;
}
.chat-modal-header {
    cursor: move; /* Indicate draggable header */
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.95);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 44, 85, 0.2);
}

.sage-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sage-identity h3 {
    margin: 0;
    font-size: 16px;
    font-family: 'Unbounded', sans-serif;
    color: #ff2c55;
}

.chat-controls button {
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.chat-controls button:hover {
    color: #ff2c55;
}
.avatar-sage {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ff2c55;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(255, 44, 85, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-sage:hover {
    transform: scale(1.05);
    box-shadow: 0 0 18px rgba(255, 44, 85, 0.4);
}


/* Style the resize handles */
.ui-resizable-handle {
    background: rgba(255, 44, 85, 0.3);
    border-radius: 3px;
}

.ui-resizable-se {
    background-image: none; /* Remove default resize icon */
    width: 10px;
    height: 10px;
    right: 1px;
    bottom: 1px;
}


/* 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;
}

header nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}
header nav ul li {
    list-style: none;
    padding: 10px;
}