/* Import a futuristic font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    --primary-glow: #281;
    --secondary-glow: #f0f;
    --dark-bg: #151c15;
    --panel-bg: rgba(5, 14, 4, 0.8);
    --text-color: rgb(108, 169, 97);
    --header-color: #ffffff;
}

html {
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Arial', sans-serif; /* A standard fallback for readability */
}

footer {
    color: white;
}

.text-muted {
    color: #251 !important;
}

/* Apply the futuristic font to headers */
h1, h2, h3, h4, h5, h6, .navbar-brand, .display-4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--header-color);
    text-shadow: 0 0 5px var(--primary-glow);
}

.container, .container-fluid {
    background-color: transparent;
}

/* Style for links */
a {
    color: var(--primary-glow);
    border-left: 3px solid var(--primary-glow);
    padding-left: 5px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

a:hover {
    color: white;
    text-shadow: 0 0 8px var(--primary-glow);
}

/* --- Table Styling --- */
.table {
    background-color: var(--panel-bg);
    /*
    border: s1wolid var(--primary-glow);
    border-width: 0px 0px 0px 2px;
    */
    border: 4px solid #231;
    border-right: 4px solid #000; 
    border-bottom: 4px solid #000; 
    box-shadow: #000;


/*    box-shadow: inset 0 0 10px rgba(0, 255, 21, 0.5); */
    color: var(--text-color);
}

.table thead th {
    color: var(--header-color);
    border-bottom: 2px solid var(--primary-glow);
    background-color: rgba(9, 29, 9, 0.219);
    text-shadow: 0 0 3px var(--primary-glow);
}

.table > :not(caption) > * > * {
    padding: .75rem .75rem;
    background-color: transparent;
		color: var(--text-color);
    border-bottom-width: 0;
/*    box-shadow: inset 0 -1px 0 rgba(0, 255, 26, 0.2);*/
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 255, 4, 0.05);
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover > * {
    background-color: rgba(133, 217, 145, 0.2);
    color: white;
}


/* --- Navbar Styling --- */
.navbar {
    background-color: var(--panel-bg) !important;
    border-bottom: 1px solid var(--primary-glow) !important;
/*    box-shadow: 0 0 15px var(--primary-glow);*/
}

.navbar-brand {
    color: var(--primary-glow);
}

.nav-link {
    color: var(--text-color) !important;
    border: solid var(--primary-glow) !important;
    border-width: 0px 0px 0px 2px !important;

}

.nav-link:hover {
    color: white !important;
}

/* --- Player/Game Details Page Styling --- */
dl.row dt {
    color: var(--primary-glow);
    text-shadow: 0 0 2px var(--primary-glow);
}

pre {
    background-color: #000 !important;
    color: var(--primary-glow); /* Green for a terminal look */
    border: 1px solid var(--primary-glow);
/*    box-shadow: inset 0 0 8px rgba(0, 255, 0, 0.5);*/
    padding: 15px;
    border-radius: 0;
    font-family: 'Consolas', 'Menlo', monospace;
}

/* --- New Design Elements --- */

/* Dog-Eared Panel Container */
.panel {
    background-color: var(--panel-bg);
    border: 4px solid #231;
    border-right: 4px solid #000; 
    border-bottom: 4px solid #000; 
    box-shadow: #000;
/*    box-shadow: inset 0 0 10px var(--primary-glow);*/
    padding: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
}

.btn {
    color: var(--text-color) !important;

    background-color: var(--panel-bg);
    border: 4px solid #231;
    border-right: 4px solid #000; 
    border-bottom: 4px solid #000; 
    border-radius: 0 !important;

    box-shadow: 2px outset var(--primary-glow);
}

.btn:hover {
    background-color: var(--panel-bg);
    color: white !important;

    border: 4px solid #351;
    border-right: 4px solid #231; 
    border-bottom: 4px solid #231; 
    border-radius: 0 !important;

}    

.btn-primary {
    color: var(--text-color) !important;

    background-color: var(--panel-bg);
    border: 4px solid #231;
    border-right: 4px solid #000; 
    border-bottom: 4px solid #000; 
    border-radius: 0 !important;

    box-shadow: 8px outset var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--panel-bg);
    color: white !important;

    border: 4px solid #351;
    border-right: 4px solid #231; 
    border-bottom: 4px solid #231; 
    border-radius: 0 !important;

}    


.modal-dialog {
    color: var(--text-color) !important;

    background-color: var(--panel-bg);
    border: 4px solid #231;
    border-left: 4px solid #000; 
    border-top: 4px solid #000; 
    box-shadow: #000;
/*    box-shadow: inset 0 0 10px var(--primary-glow);*/
    position: relative;
}


.modal-content {
    color: var(--text-color) !important;

    background-color: var(--panel-bg);
    border: 4px solid #231;
    border-right: 4px solid #000; 
    border-bottom: 4px solid #000; 
    border-radius: 0 !important;
    box-shadow: 0 0 14px #000;
/*    box-shadow: inset 0 0 10px var(--primary-glow);*/
    padding: 1.5rem;
    position: relative;
}


/* The dog-ear effect using a pseudo-element */
/*
.panel::before {
    content: '';
    position: absolute;
    top: -1px; /* Align with the border * /
    right: -1px;
    border-style: solid;
    border-width: 0 40px 40px 0; /* Creates the triangle * /
    border-color: transparent var(--dark-bg) transparent transparent;
    transition: all 0.3s ease;
}
*/

/* Header styling with the "//" prefix */
h2.section-header::before {
    content: "// ";
    opacity: 0.7;
}

/* Styling for "| N A M E |" format in the navbar */
.navbar-brand-styled {
    letter-spacing: 0.3em; /* Spreads out the letters */
    font-weight: 700;
}

.navbar-brand-styled::before,
.navbar-brand-styled::after {
    content: "|";
    opacity: 0.7;
    padding: 0 0.5em;
}

/* The vertical separator with the .:. element */
.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    /*writing-mode: vertical-rl;*/ /* Makes the text vertical */
    text-orientation: mixed;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary-glow);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* --- New Terminal Display Styles --- */

.display-terminal {
    font-family: 'Consolas', 'Menlo', monospace;
    color: #0f0; /* Terminal green */
    text-shadow: 0 0 5px #0f0;
    white-space: pre-wrap; /* Preserve whitespace */
}

/* Blinking cursor effect */
.display-terminal-old .cursor-old {
    display: inline-block;
    background-color: #0f0;
    width: 0.7em;
    height: 1.2em;
    animation: blink 1s step-end infinite;
/*    box-shadow: 0 0 5px #0f0;*/
}

/* Blinking cursor effect (Updated for underscore) */
.display-terminal .cursor {
    display: inline-block;
    color: #0f0; /* Terminal green */
    /*text-shadow: 0 0 5px #0f0;*/
    text-shadow: 0px 0px 0px rgba(255, 255, 255, 0.0);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent }
    50% { color: #0f0; }
}

/* --- New Welcome Modal Styles --- */

/* The overlay that covers the entire screen */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Center the modal inside the overlay
    display: flex; will be set in code
    */
    display: none;
    justify-content: center;
    align-items: center;

    /* The circular gradient and blur effect */
    background: radial-gradient(circle at center, rgba(13, 29, 13, 0.2) 0%, rgba(13, 15, 26, 0.6) 70%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari support */

    z-index: 1000; /* Ensure it's on top of everything */
}

/* The modal itself, using your existing panel style as a base */
.welcome-modal {
    /* Re-using your panel style for consistency */
    background-color: var(--panel-bg);
    border: 1px solid var(--primary-glow);
/*    box-shadow: inset 0 0 10px rgba(0, 255, 21, 0.5);*/
    padding: 2rem;
    position: relative;

    /* Sizing and positioning */
    width: 90%;
    max-width: 900px;
    text-align: center;
}

/* Optional: Style for a close button */
.welcome-modal .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--primary-glow);
    cursor: pointer;
    text-decoration: none;
}

.welcome-modal .close-button:hover {
    color: white;
}

/* --- Combined Auth Panel Container --- */
#auth-panel-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px; /* Panel width */
    height: 100vh;

    /* Use panel styles */
    background-color: var(--dark-bg); /* Darker than panel-bg for more separation */
    border-left: 1px solid var(--primary-glow);
/*    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7); */

    z-index: 999; /* Below welcome overlay (1000) */
    padding: 1.5rem;
    overflow-y: auto;

    /* Animation */
    transform: translateX(100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
}

/* When active, slide into view */
#auth-panel-container.active {
    transform: translateX(0);
}

/* Adjustments for forms inside the panel */
#auth-panel-container .form-control {
    background-color: var(--dark-bg);
    color: var(--text-color);

    border: 4px solid #231;
    border-left: 4px solid #000; 
    border-top: 4px solid #000; 
}
#auth-panel-container .form-control:focus {
    background-color: #000;
    color: white;
    border: 4px solid #231;
    border-left: 4px solid #000; 
    border-top: 4px solid #000; 
}
#auth-panel-container .form-label {
    color: var(--text-color);
}
/* Style for success messages */
#auth-panel-container .text-success {
    color: #2a9d8f !important; /* Adjust color as needed */
}