@charset "UTF-8";
/* CSS Document */

/* GLOBAL PREFERENCE: No borders on any container-like elements */
.login-modal-box, .glass-panel, .topic-column {
    border: none !important;
    outline: none !important;
}


/* 3. Login Button Styling */
.login-nav-container {
    position: absolute;
    top: 20px;
    right: 40px; 
    z-index: 10;
}

.portal-login-trigger {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    border-radius: 13px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 13px;
    text-transform: capitalize;
}

.portal-login-trigger:hover {
    background-color: #333333;
}

/* 4. Modal & Glass Styles */
.login-modal-overlay {
    display: none; 
    position: absolute; /* Changed from fixed */
    top: 60px;          /* Adjusts distance from top */
    right: 40px;        /* Aligns it near your login button */
    z-index: 1000;
    width: 300px;       /* Keeps it from spanning the whole page */
}

/* 4. Modal & Glass Styles - confirmed this is in use for glass-panel on access_denied, but did not change login-modal box 7/11/26 */
.login-modal-box, .glass-panel {
    background: rgba(60, 55, 55, 0.4) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    outline: none !important;       /* Removes any browser-default focus outline */
    padding: 30px !important;
    border-radius: 20px !important;
    width: 90% !important;
    max-width: 400px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: #ffffff !important;
}

.login-modal-box a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-modal-box a:hover {
    color: #7fb3ff;
    text-decoration: underline;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: #fff;
}


/* 6. Footer Styles */
.site-footer {
    padding: 20px;
    text-align: center;
    color: white;
    font-family: Georgia, serif;
    font-size: 16px;
    background: transparent;
    width: 100%;
    margin-top: auto;
}



/* Ensure the icon is always on top */
#togglePassword {
    z-index: 100; /* Force it to the front */
    display: inline-block;
    padding: 10px; /* Gives it a click-target area */
}

/* Give the input field space on the right so text doesn't overlap the eye */
#passwordField {
    padding-right: 40px !important; /* Forces text to stop before the eye */
}

/* 8. Standardize Modal Inputs - UPDATED */
.login-modal-box input:not([type="checkbox"]) {
    display: block;        
    width: 100% !important;
    margin: 0 auto 10px auto !important; 
    padding: 10px !important;
    box-sizing: border-box !important; 
    border: none !important;
    border-radius: 10px !important;
}

/* --- THE MASTER GLASS STYLE ---confirmed in use on forgot_password */
.glass-master {
    background: rgba(60, 55, 55, 0.4); 
    backdrop-filter: blur(1px); 
    -webkit-backdrop-filter: blur(1px);
    border-radius: 20px;
    padding: 30px;
    color: white;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

}

/* --- UNIFYING THE LOOK & CONTENT --- */

/* 1. Global modal/column style */
.login-modal-box, .topic-column {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    color: white !important;
}

/* 2. Page Content */
.content-area { 
    padding: 40px; 
    flex: 1; 
	box-sizing: border-box; /* This keeps your padding safe */
}

h1 { 
    text-align: center; 
    color: #fff; 
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.item { 
    display: flex; 
    align-items: center; 
    margin: 12px 0; 
    font-size: 14px; 
}
.item img { width: 22px; margin-right: 12px; }
.item a { color: white; text-decoration: none; }
.item a:hover { text-decoration: underline; }


/* --- NEW HEADER FRAME --- */
/* The Frame */
.site-header {
    position: relative; /* Acts as the anchor */
    width: 100%;
    padding-top: 60px;
}

/* The Button: Pinned to the top-right */
.nav-container {
    position: absolute;
    top: 20px;
    right: 40px;
    z-index: 20;
}

/* The Logo: Centered by the page flow */
.header-image {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 800px;
    width: 90%;
}

.user-welcome {
    color: #ffffff;
    font-family: Georgia, serif;
    font-size: 14px;
    margin-right: 15px; /* Creates space between the name and the button */
    display: inline-block;

}

/* Mobile Alignment Fix */
@media (max-width: 600px) {
    .main-site-header { padding: 10px 0; }
    .header-image { margin: 10px auto; }
}


/* FORCE CENTERING ON ALL DEVICES */
/* 1. Reset Body - Let the background fill the screen normally */
body {
    margin: 0;
    padding: 0;
    min-height: 100dvh;
    font-family: Georgia, serif;
	overflow-x: hidden;
	background: url('images/milky-way.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #0f1217;
    /* REMOVED: display: flex; align-items: center; (This was forcing everything to stack/narrow) */
}
/* 1.5 Ensure the foundation of the page is solid */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* This prevents the "zoom" by hiding overflow */
}

/* 2. Create a "Wrapper" for your content instead */
.page-wrapper {
    width: 100%;
    max-width: 1600px; /* INCREASED this to let 5 columns fit again */
    margin: 0 auto;    /* This centers the wrapper on desktop */
	box-sizing: border-box; /* Crucial: ensures padding doesn't push width out */
	display: flex;
    flex-direction: column;
    min-height: 100dvh;
	padding: 0 15px;   /* Adds a tiny bit of "breathing room" so text doesn't touch the edges */
}

.glass-card {
    background: rgba(60, 55, 55, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 15px;
    padding: 30px;
    color: #ffffff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

}

/* input boxes for entire site */
/* Referenced by: thread.php, ask.php, library.php */
/* 1. Shared styles for all text inputs */
textarea, input[type="text"] { 
    background: rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.3); 
    color: white; 
    padding: 10px; 
    border-radius: 20px; 
    font-size: 1.2rem;
    font-family: Georgia, serif;
    outline: none; 
    transition: border 0.3s, box-shadow 0.3s;
}

/* 2. Shared focus/glow effect */
/* Referenced by: thread.php, ask.php, library.php */
textarea:focus, input[type="text"]:focus { 
    border: 1px solid rgba(255,255,255,1); 
    box-shadow: 0 0 8px rgba(255,255,255,0.5); 
}

/* 3. Specific sizes for different elements */
/* used by thread.php, ask.php */
textarea { 
    width: 100%; 
    height: 80px; /* Bring back the height for textareas only */
}

/* specific size for search bar on library.php */
input[type="text"] {
    width: 450px; /* Keep your search bar specific width */
    height: 38px; /* Keep your search bar specific height */
}

/* submit buttons for entire site */
/* Referenced by: thread.php, ask.php, library */
button {
    background-color: #000000;
    color: #ffffff;
    border: none !important; 
    box-shadow: none !important;
    outline: none !important;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: Georgia, serif;
    font-weight: bold;
    margin-top: 10px;
}

/* Referenced by: thread.php */
.answer-text {
    margin: 20px 0;
    font-style: italic;
    font-size: 1.3rem; /* Increase this number to make it larger (e.g., 1.4rem, 1.5rem) */
    line-height: 1.6;   /* Increases the vertical space between lines for readability */
    color: #ffffff;
}