html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* end css reset */

html {
    overflow-x: hidden;
}

body {
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    max-width: 100vw;
    flex-direction: column;
    align-content: center;
}

.top {
    grid-row: 1;
}

.bottom {
    grid-row: 2;
}

table {
    border-radius: 12px;
    width: 98vw;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.4);
    border-collapse: collapse;
    overflow: hidden;
}

/* Header Styling */
th {
    background-color: #0a2a3b;
    color: aliceblue;
    padding: 12px 4px;
    font-family: "Orbitron", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

th > a {
    color: aliceblue;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

th > a:hover {
    color: #00c3ff;
}

table th:first-child {
    border-top-left-radius: 12px;
}

table th:last-child {
    border-top-right-radius: 12px;
}

/* Row Styling */
tr {
    background-color: #1a3a52;
    text-align: center;
    transition: background 0.3s ease-in-out;
}

tr:nth-child(even) {
    background-color: #112430;
}

tr:hover {
    background-color: #224d68;
}

/* Cell Styling */
td {
    padding: 10px 12px;
    border: 1px solid #265b7a;
    color: #d9e6f2;
    font-size: 0.95rem;

    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

/* Corner Rounding */
table tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
    
table tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;

    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

.pagination a {
    padding: 6px 12px;
    font-size: 1.3rem;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.pageForm {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pageForm input[type="number"] {
    width: 50px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

.pageForm input[type="submit"] {
    padding: 5px 10px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pageForm input[type="submit"]:hover {
    background-color: #0056b3;
}

.searchDiv > h1 {
    text-align: center;
    font-family: Arial, sans-serif;
    color: #fff;
    background-color: #222;
    padding: 10px;
    border-radius: 5px;
}

.searchDiv > form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.searchDiv > form > label {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.searchDiv > form > input[type="text"] {
    width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.searchDiv > form > input[type="Submit"] {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.searchDiv > form > input[type="submit"]:hover {
    background-color: #0056b3;
}

.cardSleeve {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.cardSleeve {
    margin: 20px;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

h2#weaponName {
    font-size: 24px;
    font-weight: bold;
    color: #2a2a2a;
    margin: 10px 0;

    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    font-style: oblique;
}

.section {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
}

h3 {
    font-size: 20px;
    color: #444;
    margin-bottom: 10px;
}

.valuer {
    font-weight: bold;
    color: #007acc;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination a {
    text-decoration: none;
    padding: 5px 15px;
    background-color: #007acc;
    color: white;
    border-radius: 5px;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #005fa3;
}

.pageForm input[type="number"] {
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.pageForm input[type="submit"] {
    padding: 6px 15px;
    background-color: #007acc;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.pageForm input[type="submit"]:hover {
    background-color: #005fa3;
}

/* Card and Section Enhancements */
.card .section p {
    margin: 5px 0;
    font-size: 16px;

    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-optical-sizing: auto;
}

.card .section p span {
    font-weight: bold;
    color: #0056b3;
}

.card .section p:last-child {
    margin-bottom: 0;
}

/* Responsiveness */
@media (max-width: 768px) {
    .cardSleeve {
        margin: 10px;
        padding: 15px;
    }

    .card {
        margin-top: 10px;
    }

    .pagination {
        flex-direction: column;
    }

    .pagination a {
        margin: 5px 0;
    }

    .pageForm input[type="number"],
    .pageForm input[type="submit"] {
        width: 100%;
        margin: 5px 0;
    }
}


.readOnlyInput {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    font-optical-sizing: auto;
    font-weight: bold;
    color: #0056b3;
    border: none;
    outline: none;
    font-size: 1rem;
}

.readOnlyInput:focus {
    border: none;
    outline: none;
}

.inputName {
    font-size: 24px;
    font-weight: bold;
    color: #2a2a2a;
    margin: 10px 0;

    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    font-style: oblique;
}

button {
    font-family: Arial, sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    border-radius: 5px;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.btn-submit {
    background-color: #0a64c3;
    color: white;
    border-radius: 5px;
    position: relative;
    right: 0;
}

.btn-submit:hover {
    background-color: #0056b3;
}