/* ============================================================
   style.css — fr.pino4.com Fundraiser Box Pool
   Adapted from superbowl.css — grid styles preserved exactly
   ============================================================ */

html {
    background-color: #000;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
}

body {
    text-align: center;
    background-color: transparent;
    margin: 0;
    padding: 0;
    overflow: auto;
}

h1,h2,h3,h4,h5,h6 {
    color: #111;
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 900;
    line-height: 1.2;
    margin: 10px 0;
}

/* ============================================================
   HEADER & NAV
   ============================================================ */

.header {
    font-family: Oswald;
    padding: 15px 30px;
    font-size: 3em;
    /*background-color: rgba(51, 51, 51, 0.95);*/
    background-color: rgba(0, 75, 148, 0.95);
    color: #fff;
}

.menu { position: relative; }

.menu ul {
    list-style-type: none;
    margin: 0; padding: 0;
    overflow: hidden;
    /*background-color: rgba(255,255,255,0.5);this is what i changed for instructions table bg*/
    background-color: rgba(0, 75, 148, 0.75);
    border-bottom: 2px solid rgba(204, 204, 204, 0.5);
}

.menu li { display: inline-block; }

.menu li a {
    display: inline-block;
    color: #ddd;
    text-align: center;
    padding: 15px 30px;
    text-decoration: none;
    font-family: Oswald;
    font-size: 2em;
}

.menu li a:hover {
    background-color: rgba(17, 17, 17, 0.60);
    color: #fff;
    border-radius: 10px;
}

.menu .active {
    background-color: #4CAF50;
    color: #000 !important;
    border-radius: 0;
}

/* ============================================================
   GRID — preserved exactly from superbowl.css
   ============================================================ */

.divContainer {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    margin: 0;
    min-height: 100vh;
    min-width: 100%;
}

html {
    background-color: #000;
    min-height: 100%;
}

.divPoolBoxesContainer {
    margin: 0 auto;
    max-width: 1300px;
    width: 100%;
    padding: 2% 0;
    background-color: transparent;
    overflow: auto; /* clearfix — forces body to expand past floated children */
}

.tblPoolBoxes,
.tblPoolBoxes tbody tr,
.tblPoolBoxes tbody tr td {
    border-collapse: collapse;
    border: 1px solid #999;
    text-align: center;
    vertical-align: middle;
}

.tblPoolBoxes tbody tr td:not(.tdScore) {
    background: rgba(255,255,255,0.75);
    border: 1px solid #f9f9f9;
    box-shadow: 0px 1px 1px rgba(0,0,0,0.5), inset 1px 2px 50px rgba(255,255,255,0.4);
}

.tblPoolBoxes tbody tr td div.divBoxUser {
    width: 54px;
    height: 25px;
    border: none;
    background-color: transparent;
    color: #008000;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    overflow: hidden;
}

.tblPoolBoxes tbody tr td:empty {
    cursor: pointer;
    background: linear-gradient(to bottom, #dcdcdc 0%, #c1c1c1 50%, #d8d8d8 92%, #dcdcdc 100%);
    border: 1px solid #7d7d7d;
    box-shadow: 0px 1px 1px rgba(0,0,0,0.5), inset 1px 2px 0px rgba(255,255,255,0.4);
}

.tblPoolBoxes tbody tr td.tdScore {
    background-color: #333;
    color: #fff;
    font-family: Oswald;
    font-size: 2em;
    text-align: center;
    width: 55px;
    height: 55px;
}

.tblPoolBoxes tbody tr td.mine {
    border: 2px solid black !important;
    background: yellow;
}

.rotated {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: inline-block;
}

/* ============================================================
   SCORES / INSTRUCTIONS TABLES
   ============================================================ */

.tblScores {
    border-collapse: collapse;
    border: 1px solid #999;
    margin: 0 auto 15px auto;
    width: 360px;
}

.tblScores thead tr th {
    /*background: linear-gradient(to bottom, #ccc 0%, #333 100%);*/
    background: linear-gradient(to bottom, #ccc 0%, #333 100%);
    color: #fff;
    font-family: Oswald;
    font-size: 1.5em;
    padding: 6px;
    text-align: center;
    border: 1px solid #888;
}

.tblScores tbody tr th {
    background-color: rgba(255,255,255,0.5);
    font-family: Oswald;
    padding: 4px 8px;
    border: 1px solid #aaa;
    font-size: 1em;
}

.tblScores tbody tr td {
    padding: 4px 8px;
    border: 1px solid #aaa;
    text-align: center;
    background-color: rgba(255,255,255,0.5);
    font-size: 1.1em;
}

.tblDefault {
    border-collapse: collapse;
    border: 1px solid rgb(128,128,128);
    position: relative;
    margin: 0 auto;
}

.tblDefault thead tr {
    height: 30px;
    /*background: linear-gradient(to bottom, #ccc 0%, #333 100%);*/
    background: linear-gradient(to bottom, #1a6cbd 0%, #004b94 100%);
}

.tblDefault thead tr th {
    border: 1px solid rgb(128,128,128);
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.2em;
    font-weight: normal;
    font-family: Oswald;
    padding: 4px 8px;
}

.tblDefault tbody tr { background-color: white; }

.tblDefault tbody tr td {
    border: 1px solid rgb(128,128,128);
    vertical-align: middle;
    font-size: 12px;
    padding: 4px 6px;
    text-align: center;
}

/* ============================================================
   PRINT BUTTON
   ============================================================ */

#divPrintButton {
    margin-bottom: 10px;
    width: 260px;
    height: 40px;
    font-size: 2em;
    font-family: Oswald;
    cursor: pointer;
    background-color: white;
    border: 1px solid black;
    display: table-cell;
    vertical-align: middle;
}

/* ============================================================
   ON/OFF TOGGLE SWITCH
   ============================================================ */

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input { display: none; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: '';
    height: 13px; width: 13px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: rgba(0,97,21,0.66); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 17px; }
.slider.round:before { border-radius: 50%; }

/* ============================================================
   LOGIN / JOIN PAGES
   ============================================================ */

body.loginPage {
    background-color: #004b94;
    background-size: cover;
    background-position: center;
}

.loginWrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    min-height: calc(100vh - 80px);
}

.loginBox {
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    padding: 36px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    text-align: left;
}

.loginBox h2 {
    text-align: center;
    color: #333;
    margin-bottom: 24px;
    font-size: 2.4em;
}

.formGroup {
    margin-bottom: 16px;
}

.formRow {
    display: flex;
    gap: 12px;
}

.formRow .formGroup { flex: 1; }

.formGroup label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
    font-size: 1.1em;
}

.formGroup input[type="text"],
.formGroup input[type="email"],
.formGroup input[type="password"],
.formGroup input[type="tel"],
.formGroup input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1.2em;
    font-family: Verdana, Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.formGroup input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76,175,80,0.2);
}

.passwordWrap {
    position: relative;
}

.passwordWrap input {
    padding-right: 40px !important;
}

.togglePassword {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.3em;
}

.btnPrimary {
    width: 100%;
    padding: 12px;
    /*background-color: #333;*/
    background-color: #004b94;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.4em;
    font-family: Oswald;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.btnPrimary:hover { background-color: #4CAF50; }

.alertError {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 1.1em;
}

.alertSuccess {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 1.1em;
}

.loginLinks {
    text-align: center;
    margin-top: 16px;
    color: #666;
    font-size: 1.1em;
}

.loginLinks a { color: #333; font-weight: bold; text-decoration: none; }
.loginLinks a:hover { color: #4CAF50; }

.req { color: #d32f2f; }

.fieldHint {
    font-size: 1em;
    color: #666;
    margin-top: 4px;
}

.fieldHint a { color: #4CAF50; font-weight: bold; }

/* Pool badge on join page */
.poolBadge {
    background: linear-gradient(135deg, #333, #555);
    color: white;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    text-align: center;
}

.poolBadgeName {
    font-family: Oswald;
    font-size: 1.8em;
    margin-bottom: 4px;
}

.poolBadgeCause {
    font-size: 1.1em;
    color: #aef;
    margin-bottom: 4px;
}

.poolBadgePrice {
    font-size: 1.3em;
    color: #4CAF50;
    font-weight: bold;
}

/* ============================================================
   ADMIN PANEL BASE
   ============================================================ */

.adminWrap {
    max-width: 960px;
    margin: 20px auto;
    background: rgba(255,255,255,0.93);
    border-radius: 10px;
    /*border: 2px solid #333;*/
    border: 2px solid #004b94;
    padding: 24px;
    text-align: left;
}

.adminSection {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.adminSection:last-child { border-bottom: none; }

.adminSection h3 {
    font-family: Oswald;
    color: #333;
    margin-bottom: 12px;
    font-size: 1.8em;
}

.btnAdmin {
    display: inline-block;
    padding: 7px 16px;
    /*background: #333;*/
    background: #004b94;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: Oswald;
    font-size: 1.2em;
    cursor: pointer;
    margin: 2px;
    text-decoration: none;
}

.btnAdmin:hover { background: #4CAF50; color: white; }

.btnAdmin.green  { background: #4CAF50; }
.btnAdmin.red    { background: #f44336; }
.btnAdmin.blue   { background: #1976D2; }
.btnAdmin.orange { background: #FF9800; }

.btnAdmin.red:hover    { background: #c62828; }
.btnAdmin.green:hover  { background: #2e7d32; }
.btnAdmin.blue:hover   { background: #0d47a1; }
.btnAdmin.orange:hover { background: #e65100; }

input[type='button'].dangerZone,
button.dangerZone {
    background-color: #f44336;
    border-radius: 10px;
    border: none;
    color: white;
    padding: 6px 14px;
    cursor: pointer;
    font-family: Oswald;
    font-size: 1.2em;
}
/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

.hidden-mobile-table { display: block; }
.show-mobile-cards   { display: none; }

/* Tablets and smaller desktops */
@media only screen and (max-width: 1000px) {
    .tblPoolBoxes, .tblPoolBoxes tr, .tblPoolBoxes tr td {
        table-layout: fixed;
    }
    .tblPoolBoxes tbody tr td div.divBoxUser {
        width: 45px !important;
        font-size: 11px;
        height: 15px !important;
        overflow: hidden;
    }
    .tblPoolBoxes tbody tr td.tdScore {
        width: 45px;
        height: 45px;
    }
}

/* Small devices, tablets */
@media only screen and (max-width: 768px) {
    .hidden-mobile-table { display: none; }
    .show-mobile-cards   { display: block; }
    .divPoolBoxesContainer { padding: 0; }
    .divPoolBoxesContainerInner {
        float: none !important;
        width: 100% !important;
        padding: 5px !important;
        box-sizing: border-box;
    }
    .tblPoolBoxes { width: 100%; }
    .tblPoolBoxes tbody tr td.tdScore {
        font-size: 13px;
        width: 32px;
        height: 32px;
    }
    .tblPoolBoxes tbody tr td div.divBoxUser {
        width: 30px !important;
        font-size: 9px !important;
        height: 13px !important;
        overflow: hidden;
    }
    .tblScores {
        width: 100%;
        margin-top: 10px;
    }
    .tblScores td, .tblScores th {
        font-size: 11px;
        padding: 3px;
    }
    #tblInstructions ul {
        font-size: 12px;
        text-align: left !important;
        margin: 0;
        padding-left: 5px;
    }
    #tblInstructions tbody tr td {
        text-align: left !important;
    }
    #tblInstructions li {
        text-align: left !important;
        margin-bottom: 2px;
    }
    #divPrintButton {
        width: 100%;
        box-sizing: border-box;
    }
    .header {
        font-size: 2em;
        padding: 10px 15px;
        text-align: left;
    }
    .header span[style*="float:right"] {
        float: none !important;
        display: block;
        font-size: 0.5em;
        background-color: rgba(0,75,148,0.95);
        margin: 0 -15px;
        padding: 6px 15px;
    }
    .menu ul li a {
        padding: 8px 12px;
        font-size: 1.3em;
    }
    .ui-dialog {
        width: 90% !important;
        left: 5% !important;
    }
    .adminWrap {
        padding: 12px;
        overflow-x: hidden;
    }
    .adminSection > div[style*="display:flex"] > div {
        min-width: 70px !important;
        padding: 8px 10px !important;
    }
    .adminSection > div[style*="display:flex"] > div > div:first-child {
        font-size: 1.4em !important;
    }
    .adminSection > div[style*="display:flex"] > div > div:last-child {
        font-size: 0.9em !important;
    }
    .btnAdmin {
        padding: 4px 8px !important;
        font-size: 1em !important;
        margin: 1px !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .menu ul {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Phones */
@media only screen and (max-width: 480px) {
    .tblPoolBoxes tbody tr td.tdScore {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    .tblPoolBoxes tbody tr td div.divBoxUser {
        width: 26px !important;
        font-size: 8px !important;
        height: 12px !important;
    }
    .header {
        font-size: 1.6em;
        padding: 8px 10px;
    }
}

@media only screen and (max-width: 675px) {
    .ui-dialog { width: 90% !important; }
}