/* ==========================================================
   UNIVERSAL SITE STYLES - Josh Walker Portfolio
   ========================================================== */

/* === General Body and Page Styles === */
body {
  background: #101828;
  color: #e8eef6;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  text-align: center;
}

main {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

a {
  color: #b9d2ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Footer === */
footer {
  background: none;
  border: none;
  padding: 10px 0;
  color: #e8eef6;
  font-size: 14px;
}

/* === Homepage & Content Styles === */
.big {
  max-width: 90%;
  border-radius: 8px;
}

.pfp {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.content-box {
  width: 90%;
  max-width: 1100px;
  line-height: 1.6;
  margin: 20px auto;
  text-align: left;
  background: #0d1424;
  border: 1px solid #2a3247;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* === Horizontal Nav with Dropdown === */
.navbar {
  background: #0d1424;
  border-bottom: 1px solid #2a3247;
  padding: 0 12px;
}

.navbar .wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.navbar .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar .menu > li {
  position: relative;
}

.navbar a {
  display: block;
  padding: 14px 18px;
  color: #e8eef6;
  white-space: nowrap;
}

.navbar a:hover,
.navbar a:focus {
  background: #101828;
}

.navbar .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #151c2e;
  border: 1px solid #2a3247;
  min-width: 220px;
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar .submenu li {
  border-bottom: 1px solid #2a3247;
}

.navbar .submenu li:last-child {
  border-bottom: none;
}

.navbar .has-children:hover > .submenu {
  display: block;
}

/* === Assignment 3 Form Styles === */
.form-wrap {
  max-width: 720px;
  margin: 2rem auto;
  background: #0d1424;
  border: 1px solid #2a3247;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  color: #e8eef6;
  text-align: left;
}

.form-wrap h1 {
  margin: 0 0 0.25rem 0;
  text-align: center;
}

.form-wrap p {
  margin-top: 0.25rem;
  color: #b8c1d8;
  text-align: center;
}

.form-wrap label {
  display: block;
  margin: 1rem 0 0.25rem 0;
  font-weight: 600;
}

.form-wrap input,
.form-wrap textarea,
.form-wrap select,
.form-wrap button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid #2a3247;
  border-radius: 6px;
  background: #101828;
  color: #e8eef6;
  font-size: 1rem;
}

.form-wrap button {
  cursor: pointer;
  margin-top: 1.5rem;
  text-align: center;
  background-color: #8A2BE2; /* Blue-Violet */
  font-weight: bold;
  border: none;
}

.form-wrap small {
  font-size: 0.8em;
  color: #8a94a6;
}

.form-wrap .grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-wrap .grid2 {
    grid-template-columns: 1fr;
  }
}

/* === Confirmation Page Styles === */
.confirm-container {
  background-color: #1a1f2e;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  margin: 50px auto;
  color: #e8eef6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.confirm-container h2 {
  color: #8A2BE2;
  text-align: center;
}

.confirm-info p {
  margin: 10px 0;
  line-height: 1.4;
}

.btn-confirm {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 30px auto 0;
  padding: 10px 20px;
  background-color: #8A2BE2;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}

/* === Assignment 6 JSON Table Styles (Final + Unified) === */
#output {
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
  color: #e8eef6;
}

#output h2,
#output h3 {
  text-align: center;
  margin-bottom: 12px;
}

#output table {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 40px auto;
  border-collapse: collapse;
  background: #0d1424;
  border: 1px solid #2a3247;
  border-radius: 8px;
  color: #e8eef6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

#output th,
#output td {
  text-align: center;
  border: 1px solid #2a3247;
  padding: 10px 14px;
}

#output th {
  background-color: #2a3247;
  color: #e8eef6;
  font-weight: bold;
}

#output tr:hover {
  background-color: #18223a;
}

/* === Headings === */
h1 {
  color: #ffffff; /* White main page titles */
  text-shadow: none;
  text-align: center;
}

h2,
h3 {
  color: #8A2BE2; /* Purple accent for subtitles */
  text-align: center;
  text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

/* === Misc Elements === */
footer {
  background: none;
  border: none;
  padding: 10px 0;
  color: #e8eef6;
  font-size: 14px;
}

/* === Global Heading Color Control (Final Fix) === */

/* All main page titles */
h1 {
  color: #ffffff;             /* pure white title text */
  text-shadow: none;
  text-align: center;
}

/* Subtitles and section headers */
h2,
h3 {
  color: #8A2BE2;             /* purple accent */
  text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
  text-align: center;
}

/* Prevent inheritance of purple from content boxes or other containers */
.content-box h1,
#output h1 {
  color: #ffffff;
  text-shadow: none;
}

