

/* Alpha Styling applied to all pages */

/*------- START Scrollbar Styles -------*/
*::-webkit-scrollbar-track {
    -moz-box-shadow: 0;
    -webkit-box-shadow: inset 0 0 2px rgba(0,0,0,0.9);
    box-shadow:  inset 0 0 2px rgba(0,0,0,0.9);
    border-radius: 5px;
    background-color: silver; }
*::-webkit-scrollbar { width: 5px; }
*::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #000;
    background-image: -webkit-linear-gradient(90deg,
    transparent,
    rgb(255, 153, 0) 65%,
    transparent,
    transparent) }
/*------- END Scrollbar Styles -------*/

/*------- START Link Styles -------*/
a:link { text-decoration: none; color: inherit; }
a:visited { text-decoration: none; color: inherit; }
a:hover { text-decoration: none; color: inherit; }
a:focus, select:focus, textarea:focus, button:focus, input:focus { outline: none; }
/*------- END Link Styles -------*/


/*------- START Button Styles -------*/
button { letter-spacing: 0.05em; font-family: Georgia, sans-serif; font-size: 18px; padding: 5px 15px; border: none; border-radius: 5px; cursor: pointer; }

/*--- START GLOBAL STYLED BUTTONS ---*/
.login,
.register { font-size: 18px; font-weight: 700; padding: 4px 12px; }
.login { background-color: #0b0; border: 1px solid #0b0; }
.register { background-color: #f90; border: 1px solid #f90; }
/*--- END GLOBAL STYLED BUTTONS ---*/
/*------- END Button Styles -------*/

/*------- START Input Styles -------*/
select,
input[type="text"],
input[type="email"],
input[type="password"] { font-size: 16px; padding: 10px; border: none; border-radius: 5px; cursor: text; }
select { padding: 5px 10px; cursor: pointer; }
input[type="checkbox"] { height: 20px; width: 20px; border-radius: 100%; }
/*------- END Input Styles -------*/


/*------- Main Body -------*/
body, html { background-color: #000; font-family: Georgia, sans-serif; font-size: 15px; color: white; margin: 0; padding: 0; cursor: default; }
/*------- END -------*/

/*------- START HEADER -------*/
#header {
    background-image: linear-gradient(to right, black, #f90);
    position: sticky;
    top: 0;
    width: 100%;
    text-align: center;
    font-size: 22px;
    color: white;
    width: 100%;
    padding: 3px 0;
    border-top: 2px solid #f90;
    border-bottom: 1px solid #f90;
    z-index: 10;
}
#header table { width: 100%; border: 0px solid red; }
#header table td { vertical-align: middle; border: 0px solid red; }
#header-text {
    display: inline-block;
    font-weight: bolder;
    background-image: linear-gradient(to right, #f90, black, rgba(0, 0, 0, 1.0));
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
}

#icon-root { width: 30px; margin-top: 6px; cursor: pointer; }
/*------- END HEADER -------*/



/* START Menu Display & Buttons */
#menu-main-button { color: black; font-size: 30px; cursor: pointer; z-index: 8; }
#menu-main-display {
    display: none;
    background-color: #111;
    position: absolute;
    top: 50px;
    right: 10px;
    max-height: 450px;
    width: 160px;
    text-align: center;
    padding: 15px;
    border: 1px solid #f90;
    border-top: 3px solid rgba(255, 153, 0, 0.6);
    border-bottom: 3px solid #d70;
    border-radius: 5px;
    z-index: 7;
    overflow-y: auto;
}
#menu-nav { width: 100%; margin-top: 10px; }

#menu-site-label { text-align: center; font-size: 85%; margin: 10px 0; padding: 5px 0; border-top: 1px solid #666; border-bottom: 1px solid #606060; }

#menu-site-table { margin: 5px 0; border-collapse: collapse; }
#menu-nav-button,
#instructions-button {
    background-color: #ccc;
    width: 135px;
    font-weight: bolder;
    font-size: 14px;
    margin: 2px 5px;
    padding: 5px 0;
    border: 2px solid #f90;
    cursor: pointer;
}
#instructions-button { background-color: #f90; margin: 0px 4px; border-color: #831; }
#menu-nav-button:hover,
#instructions-button:hover { opacity: 0.65; border-color: limegreen; }
/* END Menu Display & Buttons */

#instructions-display { border: 1px solid red; }
#instructions-header { text-decoration: underline; }
#instructions-content { text-align: left; margin-left: 15px; }
#icon-back { width: 100%; color: Limegreen; font-size:22px; margin: 5px; cursor: pointer; }


/*------- START FOOTER -------*/
#footer {
    background-color: #000;
    position: fixed;
    bottom: 0;
    width: 100%;
    width: 100%;
    padding: 0;
    border-top: 1px solid #f90;
    border-bottom: 1px solid #f90;
    z-index: 10;
}
#footer_table { width: 100%; margin: 0 auto; }
#footer_table td { vertical-align: middle; padding: 0px; border-left: 1px solid #000; border-right: 1px solid #000; }
.footer-btn { height: 40px; width: 100%; font-size: 28px; font-weight: bolder; padding: 2px 0; border: 1px solid #0b0; border-radius: 0px; }
/*------- END FOOTER -------*/

/* Page Title */
#title {
    background-color: #000;
    position: sticky;
    width: 100%;
    color: #ccc;
    font-size: 12px;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.08em;
    padding: 10px 0;
    border-top: 1px solid #f90;
    border-bottom: 2px solid #f90;
    z-index: 5;
}

/* Main Page Display */
#game-display {
    background-color: #222;
    flex: 1;
    width: 85dvw;
    max-width: 600px;
    max-height: 80dvh;
    margin: auto;
    padding: 10px;
    border: 1px solid #f90;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* LOGIN/REGISTER BUTTONS */
.login,
.register { font-size: 18px; font-weight: 700; padding: 4px 12px; }
.login { background-color: #0b0; border: 1px solid #0b0; }
.register { background-color: #f90; border: 1px solid #f90; }
/* LOGIN/REGISTER BUTTONS */


.stands-tower-container { display: flex; flex-direction: column; gap: 8px; max-height: 68dvh; padding-right: 5px; overflow-y: auto; }

.tower-header { margin-bottom: 10px; padding: 0 10px 10px 10px; border-bottom: 1px solid #f90; }
.tower-header table td { vertical-align: bottom; }
.header-cash-display,
.header-gold-display  { color: #0b0; font-weight: bolder; font-family: "Lucida Console"; }
.header-gold-display { color: #f90; }

.offline-earnings-banner { display: none; background: #222; border: 1px solid #f90; padding: 10px; margin-bottom: 10px; border-radius: 5px; text-align: center; }
.offline-earnings-text { color: #0b0; font-weight: bold; }
.offline-earnings-button { margin-left: 10px; font-size: 12px; padding: 4px 8px; }

.collect-all { background-color: #080; font-size: 14px; color: #f90; margin-left: 10px; padding: 2px 10px; border: 1px solid #f90; border-radius: 5px; }

.stand-card {
    background: #111;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid #888;
    border-radius: 5px;
}
.stand-icon { width: 50px; height: 50px; }

/* Display Only */
.stand-info { flex: 1; line-height: 18px; }
.stand-name { color: #f90; font-weight: bold; }
.stand-level { color: #aaa; font-size: 14px; font-family: "Lucida Console"; }
.stand-revenue { color: #0b0; font-size: 12px; font-family: "Lucida Console"; }

.stand-action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border: 0px solid white; }

/* Stand Action Buttons */
.manager-icon { width: 32px; height: 32px; border-radius: 100%; }

.can-upgrade,
.cannot-upgrade,
.max-level { flex: 1; font-size: 12px; font-family: "Lucida Console"; font-weight: bolder; padding: 3px 6px; z-index: 99; }

.can-upgrade { background-color: #09f; color: #000; border: 1px solid #07d; }
.cannot-upgrade { background-color: #666; color: #bbb; border: 1px solid #888; opacity: 0.65; cursor: not-allowed; }
.max-level { background-color: #aaa; color: #222; border: 1px solid #fff; opacity: 0.65; cursor: not-allowed; }

.lock-revenue,
.collect-revenue,
.unlock-stand,
.lock-stand { font-size: 25px; font-family: "Lucida Console"; font-weight: bolder; padding: 2px 8px; padding-bottom: 0; z-index: 99; }

.lock-revenue { background-color: #050; color: #aaa; font-size: 12px; padding: 8px 14px; opacity: 0.5; cursor: not-allowed; }
.collect-revenue { background-color: #0b0; color: #030; }
.unlock-stand { background-color: #f90; color: #000; }
.lock-stand { background-color: #666; color: #bbb; font-size: 20px; border: 1px solid #555; opacity: 0.5; cursor: not-allowed; }

.collect-revenue-timer { font-size: 16px; }



/* AUTHENTICATION */
#auth-container {
    background-color: #111;
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    padding: 12px 20px;
    border: 1px solid #444;
    border-left: 3px solid #f90;
    border-radius: 6px;
}


/*------- START MODAL STYLES -------*/
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.modal-content {
    background-color: #111;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
    position: relative;
    width: 90%;
    max-width: 380px;
    text-align: center;
    padding: 20px;
    border: 1px solid #f90;
    border-radius: 6px;
}
.modal-header { color: #f90; font-size: 20px; font-weight: bold; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #444; }
.modal-close { position: absolute; top: 10px; right: 15px; color: #aaa; font-size: 24px; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input { background-color: #222; color: #fff; border: 1px solid #444; }
.modal-form input:focus { border-color: #f90; }
#auth-msg { min-height: 18px; color: #f55; font-size: 13px; margin-top: 5px; }
.auth-switch-link { text-decoration: underline; color: #f90; cursor: pointer; }
.auth-switch-link:hover { color: #fff; }
/*------- END MODAL STYLES -------*/




