*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: inherit;
}

    body {
        background-color: blanchedalmond;
        width: 100%;    
    }

    h1 {
        font-size: 30px;
        text-align: center;
        font-family: "Chakra Petch", sans-serif;
    }

    h2 {
        font-size: 30px;
        text-align: center;
        font-family: "Chakra Petch", sans-serif;
        color: red;
    }

    h3 {
        font-size: 20px;
        font-family: "Chakra Petch", sans-serif;
    }

    ol {
        /* background-color: aqua; */
        width: 50%;
        margin: 0 auto;
        font-size: 25px;
        font-family: "Chakra Petch", sans-serif;
        line-height: 150%;
    }

    .container {
        background: greenyellow;
        margin: 1% auto 0 auto;
        border-radius: 10px;
        width: 1000px;
        padding: 20px;
        box-shadow: 0 5px 5px 5px rgba(0,0,0,0.1);
    }

    .site-footer {
        background: greenyellow;
        border-radius: 10px;
        width: 1000px;
        max-width: 100%;
        margin: 5px auto 20px auto;
        padding: 15px 20px;
        box-shadow: 0 5px 5px 5px rgba(0,0,0,0.1);
        text-align: center;
        font-family: "Chakra Petch", sans-serif;
        font-size: 14px;
        color: #333;
        box-sizing: border-box;
    }

    .site-footer a {
        color: #0645AD;
        text-decoration: underline;
    }

    .site-footer a:hover {
        color: #0b0080;
    }

    /* Home Page */

    .heading {
        /* background-color: brown; */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .logo {
        /* background-color: aqua; */
    }

    .logo img {
        height: 150px;
        width: auto;
    }

    .heading_text {
        /* background-color:blue; */
        position: static;
        width: auto;
        text-align: center;
    }

    .site-title {
        font-size: 80px;
    }

    /* a {
        text-decoration: none;
    }

    a:hover {
        text-decoration: none;
        color: black;
    }   */

/* Results Page */

    .mytable {
        background-color:aquamarine;
        margin: 0 auto;
        border-collapse: collapse;
    }

    .mytable th {
        background-color:rgb(105, 105, 215);
        border: 1px solid black;
        padding: 5px;
        font-size: 22px;
        font-weight: bold;
    }

    .mytable td {
        /* background-color: coral; */
        border: 1px solid black;
        padding: 5px;
        font-size: 22px;
        font-weight: 100;
    }

   .mytable th:nth-child(1) {
        width: 5%;
    }

    .mytable th:nth-child(2) {
        width: 30%;
    }

    .mytable th:nth-child(3) {
        width: 10%;
    }

    .mytable th:nth-child(4) {
        width: 10%;
    }

    .mytable th:nth-child(5) {
        width: 10%;
    }

    .mytable th:nth-child(6) {
        width: 15%;
    }

    .mytable th:nth-child(7) {
        width: 16%;
    }

    .mytable th:nth-child(8) {
        width: 15%;
    }

    .delete_button {
        /* background-color: blueviolet; */
        font-family: "Chakra Petch", sans-serif;
        color: red;
        font-size: 30px;
    }

    .delete_button:hover {
        color: red;
        font-size: 35px;
    }

    .form_input {
        /* background-color:brown; */
    }

    .input_part1 {
        /* background-color: darkgoldenrod; */
        display: flex;
    }

    .form_input1 {
        /* background-color: blue; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
    }

    .form_input2 {
        /* background-color:blueviolet; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
    }

    .input_part3 {
        /* background-color: deeppink; */
        display: flex;
    }

    .form_input3 {
        /* background-color:aquamarine; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
    }

    .input_part2 {
        /* background-color: darkgreen; */
        display: flex;
    }

    .form_input4 {
        /* background-color:cadetblue; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
    }

    .form_input6 {
        /* background-color:darkgoldenrod; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
    }

    .form_input5 {
        /* background-color:hotpink; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
    }
    
    .btn_add_shooter {
        background-color:rgb(6, 232, 6);
        border-radius: 5px;
        width: 170px;
        height: 35px;
        text-align: center;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
    }

    .btn_add_shooter:hover {
        background-color:rgb(6, 232, 6);
        border-radius: 5px;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
        color: aliceblue;
    }

    .form-control1 {
        /* background-color: yellow; */
        border-radius: 5px;
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
    }
        
    .form-control2 {
        /* background-color: darkorange; */
        border-radius: 5px;
        width: 100px;
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
    }

    .form-control3 {
        /* background-color: darkorange; */
        border-radius: 5px;
        width: 150px;
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
    }

    .btn_remove_shooter {
        background-color:red;
        border-radius: 5px;
        padding: 1%;
        width: 170px;
        height: 31px;
        text-align: center;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
    }

    .btn_remove_shooter:hover {
        background-color:red;
        color: aliceblue;
        border-radius: 5px;
        padding: 1%;
        width: 170px;
        height: 31px;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
    }

    .submit_btn {
        background-color: aqua;
        border: 2px solid black;
        display: block;
        margin: 2% auto;
        border-radius: 5px;
        width: 200px;
        height: 35px;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
    }

    .submit_btn:hover {
        background-color:teal;
        color: aliceblue;
    }

    .results_btn {
        background-color: aqua;
        border: 2px solid black;
        display: block;
        margin: 2% auto;
        border-radius: 5px;
        width: 200px;
        height: 35px;
        align-content: center;
        text-align: center;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
    }

    .results_btn:hover {
        background-color:teal;
        color: aliceblue;
    }

    .target_counter_btn {
        background-color: aqua;
        border: 2px solid black;
        display: block;
        margin: 2% auto;
        border-radius: 5px;
        width: 200px;
        height: 35px;
        align-content: center;
        text-align: center;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
    }

    .target_counter_btn:hover {
        background-color:teal;
        color: aliceblue;
    }

    a.results:link {
        color: black;
        font-family: "Chakra Petch", sans-serif;
      }
    
    button {
        all: unset;
    }
      
    button:focus {
        outline: revert;
    }

    .clear_form {
        background-color:rgb(232, 49, 49);
        border-radius: 5px;
        padding: 1%;
        display: block;
        margin: 2% auto;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
        font-weight: bold;
    }

    .clear_form:hover  {
        background-color:rgb(123, 5, 5);
        border-radius: 5px;
        display: block;
        padding: 1%;
        margin: 2% auto;
        color: aliceblue;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
        font-weight: bold;
    }

    .back_home {
        /* background-color: blueviolet; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
        color: blue;
        cursor: pointer;
    }

    .back_home:hover {
        /* background-color:teal; */
        padding: 1%;
        font-family: "Chakra Petch", sans-serif;
        font-size: 20px;
        font-weight: bold;
        color: blue;
    }

/* ── Auth pages (login, register) ─────────────────────────────────────── */

    .auth-card {
        background: #ffffff;
        border-radius: 10px;
        padding: 30px 40px 36px;
        max-width: 560px;
        margin: 10px auto 24px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.13);
    }

    .auth-form-group {
        margin-bottom: 16px;
    }

    .auth-form-group label {
        display: block;
        font-family: "Chakra Petch", sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #333;
        margin-bottom: 5px;
    }

    .auth-hint {
        font-weight: 400;
        font-size: 12px;
        color: #777;
        margin-left: 4px;
    }

    .auth-form-group input {
        width: 100%;
        padding: 10px 12px;
        font-size: 15px;
        font-family: "Chakra Petch", sans-serif;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
        background: #fafafa;
        transition: border-color 0.18s, box-shadow 0.18s;
    }

    .auth-form-group input:focus {
        outline: none;
        border-color: #007bff;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.12);
    }

    /* Two-column row for side-by-side fields */
    .auth-row-2col {
        display: flex;
        gap: 16px;
    }

    .auth-row-2col .auth-form-group {
        flex: 1;
    }

    .auth-btn {
        display: block;
        width: 100%;
        padding: 12px;
        background: #007bff;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        font-family: "Chakra Petch", sans-serif;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        margin-top: 10px;
        text-align: center;
        transition: background 0.18s, transform 0.1s;
    }

    .auth-btn:hover {
        background: #0056b3;
        transform: translateY(-1px);
    }

    .auth-link {
        text-align: center;
        margin-top: 18px;
        font-family: "Chakra Petch", sans-serif;
        font-size: 14px;
        color: #555;
    }

    .auth-link a {
        color: #007bff;
        text-decoration: underline;
    }

    .auth-errors {
        background: #fff0f0;
        border: 1px solid #f5a5a5;
        border-radius: 6px;
        padding: 10px 14px;
        margin-bottom: 16px;
    }

    .auth-errors ul {
        margin: 0;
        padding-left: 18px;
        width: auto;
        font-family: "Chakra Petch", sans-serif;
        font-size: 13px;
        line-height: 1.6;
        color: #c0392b;
    }

/* ── Top navigation bar (shown when logged in) ─────────────────────────── */

    .user-nav {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 18px;
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
        padding: 10px 4px 4px;
    }

    .user-nav .user-greeting {
        color: #222;
        font-weight: 700;
        margin-right: auto;
    }

    .user-nav a {
        color: #0056b3;
        text-decoration: underline;
        font-weight: 700;
    }

    .user-nav a:hover {
        color: #003d80;
    }

    .logout-btn {
        background: #dc3545;
        color: #ffffff !important;
        padding: 6px 16px;
        border-radius: 5px;
        font-weight: 700;
        text-decoration: none !important;
        transition: background 0.18s;
    }

    .logout-btn:hover {
        background: #a71d2a !important;
        color: #ffffff !important;
    }

/* ── Profile page ───────────────────────────────────────────────────────── */

    .profile-card {
        background: #ffffff;
        border-radius: 10px;
        padding: 22px 30px;
        margin: 0 0 18px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    }

    .profile-card h3 {
        color: #111;
        margin-bottom: 14px;
        font-size: 20px;
        border-bottom: 2px solid #e0e0e0;
        padding-bottom: 8px;
    }

    .profile-info p {
        font-family: "Chakra Petch", sans-serif;
        font-size: 15px;
        line-height: 1.9;
        color: #333;
    }

    .profile-info strong {
        color: #111;
        display: inline-block;
        min-width: 140px;
    }

    .profile-info code {
        font-family: monospace;
        background: #f0f0f0;
        padding: 1px 6px;
        border-radius: 4px;
        font-size: 13px;
    }

    .profile-table {
        width: 100%;
        border-collapse: collapse;
        font-family: "Chakra Petch", sans-serif;
        font-size: 14px;
        margin-top: 6px;
    }

    .profile-table th {
        background: #007bff;
        color: #ffffff;
        padding: 9px 13px;
        text-align: left;
        font-weight: 700;
    }

    .profile-table td {
        padding: 8px 13px;
        border-bottom: 1px solid #eeeeee;
        color: #333;
    }

    .profile-table tr:nth-child(even) td {
        background: #f7f9ff;
    }

    .profile-empty {
        font-family: "Chakra Petch", sans-serif;
        font-size: 14px;
        color: #888;
        font-style: italic;
        padding: 8px 0 4px;
    }
