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: linear-gradient(to bottom right, #1f3042, #0b1824);
    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;
}

.sortBar {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.sortBarText {
    font-size: 22px;
    margin: 5px 8px;
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    color: aliceblue;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
    text-transform: uppercase;
}

.sortBarText:hover {
    color: #00c3ff;
}

.orderBar {
    margin-top: 10px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.orderBarText {
    font-size: 18px;
    margin: 5px 8px;
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    color: aliceblue;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: none;
}

.orderBarText:hover {
    color: #00c3ff;
}

.codexList {
    display: flex;
    justify-content: center;
    justify-self: center;
    flex-wrap: wrap;
    margin: 1rem;
    margin-top: 10px;
    min-width: 80%;
    max-width: 80%;
}

.codexItem {
    background: rgba(17, 17, 17, 0.9);
    color: #eee;
    padding: 1rem;
    margin: 15px;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    border-radius: 0.5rem;
    width: 10%;
    aspect-ratio: 1 / 1;
    cursor: pointer;

    transition: background-size 0.3s ease;

    background-size: 90% 90%;
    background-repeat: no-repeat;
    background-position: center center;

    text-decoration: none;
}

.codexItem:hover {
    background-size: 100% 100%;
}

.codexItem h3 {
    color: rgba(102, 174, 236, 0.95);
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    justify-self: right;
}

.sortBarCut {
    font-size: 22px;
    margin: 5px 0;
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    color: aliceblue;
    cursor: default;
}

.orderBarCut {
    font-size: 18px;
    margin: 5px 0;
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    color: aliceblue;
    cursor: default;
}

.searchForm {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

label {
    color: #cccccc;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    margin-right: 10px;
}

input[type="text"], input[type="password"] {
    background-color: #0f1b2d;
    border: 2px solid #1e3a5f;
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    padding: 8px 12px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #00bcd4;
    outline: none;
    box-shadow: 0 0 8px #00bcd4;
}

input[type="submit"], input[type="checkbox"] {
    background-color: #1e3a5f;
    border: 2px solid #00bcd4;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="submit"]:hover, input[type="checkbox"]:hover {
    background-color: #00bcd4;
    box-shadow: 0 0 10px #00bcd4;
    color: #0f1b2d;
}

input[type="checkbox"] {
    margin-top: 18px;
    justify-self: center;
    height: 16px;
    width: 16px;
}

.buildPlate {
    display: grid;
    grid-template-rows: 40% 45% 15%;
    grid-template-columns: 0.8fr 1.5fr 1fr;

    margin-right: 15px;
    margin-left: 15px;
    margin-top: 10px;

    min-height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
}

.newBuildImg {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;

    border-top-left-radius: 15px;

    background-color:#0f1b2d;
}

.buildTitle {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;

    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;

    background-color:#0f1b2d;
}

.warpTitle {
    font-size: 30px;
    margin: 5px 8px;
    margin-top: 15px;
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    color: aliceblue;
    text-decoration: none;
    text-transform: uppercase;

    text-align: center;

    grid-row: 1;
    grid-column-start: 1;
    grid-column-end: 3;
}

.formaDiv {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

.formaImg {
    width: 20px;
    aspect-ratio: 1 / 1;
}

.formaText {
    font-size: 18px;
    color: aliceblue;
}

.newBuildDesc {
    color: white;
    font-size: 16px;
    margin-top: 5px;
    margin-right: 10px;
    margin-left: 10px;
}

.commentList {
    grid-column: 3;
    grid-row-start: 1;
    grid-row-end: 4;

    background-color: #0b1824;

    margin: 20px;
    box-sizing: border-box;

    width: 95%;
    height: 95%;

    overflow-y: auto;
}

.comment {
    background: rgba(12, 20, 30, 0.8); /* translucent dark card */
    border: 1px solid #00bcd4; /* light blue border */
    border-left: 4px solid #29fdf5; /* energy glow accent */
    box-sizing: border-box;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(41, 253, 245, 0.3);
    transition: all 0.3s ease-in-out;
    margin-left: 5%;
    width: 90%;
}

.comment:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(41, 253, 245, 0.5);
}

.comment .author {
    color: #29fdf5;
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: block;
    text-shadow: 0 0 5px #29fdf5;
}

.comment .meta {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment .description {
    color: #e0f7fa;
    line-height: 1.4;
}

/* Optional: Like/Dislike counters */
.comment .feedback {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    font-size: 0.8rem;
    color: #81d4fa;
    margin-top: 0.5rem;
}


.newBuildStats {
    grid-column: 1;
    grid-row-start: 2;
    grid-row-end: 4;

    background-color: #0f1b2d;

    margin-bottom: 20px;
    box-sizing: border-box;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding-top: 30px;

    width: 95%;
    height: 95%;

    position: relative;

    display: grid;
    grid-template-columns: 1fr 0.5fr;
    grid-template-rows: 0.5fr 30px 1fr 30px 1fr 30px 1fr;
}

.newBuildStats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 80%;
  margin-left: 10%;
  background: linear-gradient(to right, rgba(0,0,0,0), #265b7a, rgba(0,0,0,0));
}

.newBuildStatDesc, .newBuildStatAns {
    font-family: "Orbitron", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    margin: 8px 10px 2px;
}

.newBuildStatDesc {
    color: aliceblue;
}

.newBuildStatAns {
    text-align: right;
    color: #007bff;
}

.newBuildSettingsDesc {
    margin-top: 20px;
}

.newBuildSettingsAns {
    margin-top: 20px;
}

.abilityModDesc {
    grid-column: 1;
    grid-row: 1;
}

.abilityModAns {
    grid-column: 2;
    grid-row: 1;
}

.statModDesc {
    grid-column: 1;
    grid-row: 3;
}

.statModAns {
    grid-column: 2;
    grid-row: 3;
}

.statModDesc2 {
    grid-column: 1;
    grid-row: 5;
}

.statModAns2 {
    grid-column: 2;
    grid-row: 5;
}

.creatorInfo {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row: 2;
    margin-top: 15px;

    background-color: #0b1824;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 100px);
  grid-auto-rows: 120px;
  gap: 10px;
  justify-content: center;
  padding: 20px;
  background: #0f0f0f;
}

.mod-slot {
  border: 2px solid #666;
  background-color: #1a1a1a;
  color: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
}

.aura-slot {
  border-color: #00ffff;
  background-color: #002222;
  grid-column: span 2;
}

.exilus-slot {
  border-color: #ffaa00;
  background-color: #221100;
  grid-column: span 2;
}

.creatorCard {
    background: rgba(10, 15, 25, 0.85);
    border: 1px solid #00bcd4;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 0 18px rgba(0, 188, 212, 0.3);
    margin-top: 1rem;
    box-sizing: border-box;
    width: 90%;
    margin-left: 5%;
}

.creatorMeta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #b2ebf2;
}

.creatorMeta strong {
    color: #29fdf5;
}

.interactions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.interactions button {
    background-color: rgba(0, 188, 212, 0.1);
    border: 1px solid #29fdf5;
    color: #29fdf5;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.interactions button:hover {
    background-color: rgba(41, 253, 245, 0.2);
    transform: scale(1.05);
}

.deleteBtn {
    border-color: #f44336;
    color: #f44336;
}

.deleteBtn:hover {
    background-color: rgba(244, 67, 54, 0.2);
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(0, 188, 212, 0.15);
    padding: 0.3rem 0.6rem;
    border: 1px solid #00bcd4;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #80deea;
    text-transform: uppercase;
}

.createPane {
    width: 40vw;
    min-width: 350px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #0f1b2d;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.createPane > h3 {
    color: aliceblue;
}

.createPane h3 {
    color: #61dafb;
    border-bottom: 1px solid #1f4068;
    padding-bottom: 4px;
    margin-top: 1.5rem;
}

/* Labels and inputs */
.createPane label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.9rem;
    color: #c7d5e0;
}

.createPane input,
.createPane textarea {
    background-color: #1b2a3d;
    color: #f0f0f0;
    border: 1px solid #334a6a;
    border-radius: 6px;
    padding: 0.5rem;
    margin-top: 0.3rem;
    font-size: 0.95rem;
    transition: 0.2s ease-in-out;
}

.createPane input:focus,
.createPane textarea:focus {
    border-color: #66fcf1;
    outline: none;
    box-shadow: 0 0 8px #0ff5;
}

/* Submit button */
.createBtn {
    background-color: #45a29e;
    color: #0f1b2d;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    font-weight: bold;
    margin-top: 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.likeBtn:hover {
    background-color: #66fcf1;
    transform: scale(1.05);
}

/* Date input fix for dark mode */
input[type="date"] {
    background-color: #1b2a3d;
    color: #e0e6f0;
}