body { font-family: Arial, sans-serif; margin: 0; padding: 0; }
.header {
  display: flex;
  justify-content: center; /* centers horizontally */
  padding: 10px 0;
  background-color: #fff;  /* optional: add a clean background */
}

.header img {
  max-width: 1200px;
  width: 100%;
  height: auto;
  display: block;
}
.content {
  max-width: 1200px;
  margin: 0 auto;          /* centers the content horizontally */
  padding: 0 15px;         /* adds breathing room on small screens */
  box-sizing: border-box;
}

/* === Shared Page Header === */
.page-header {
  text-align: center;
  margin-top: 20px;
  font-size: 18px;
}

.footer {
    background: #ffe8e0;
    text-align: center;
    padding: 20px;
    font-size: 10px;
    color: #333;
    font-weight: bold;
    border-top: 2px solid #f05a28;
}
.footer .contact {
    color: #d92626; /* bold red for attention */
    margin-top: 8px;
    font-size: 10px;
}

h2 {
  font-size: 18px;
  font-weight: bold;
  color: #d9534f; /* Bootstrap red, or any color you like */
  text-align: center;
  margin-bottom: 18px;
}

#image-list {
    display: grid;
    grid-template-columns:  repeat(auto-fit, minmax(120px, 1fr));; /* 4 columns */
    gap: 10px; /* spacing between images */
}

.image-item {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
}

.image-item img {
    max-width: 100%;
    height: auto;
}

# input form section

input {
    padding: 5px;
    width: 200px;
}

button {
    padding: 5px 10px;
    margin: 10px 0px;
}

.button {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 16px;
  background-color: #007BFF;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #0056b3;
}

.edit-button {
  background-color: #28a745;
}

.edit-button:hover {
  background-color: #1e7e34;
}

.back-button {
  background-color: #6c757d;
}

.back-button:hover {
  background-color: #5a6268;
}

form input[type="text"] {
    padding: 8px;
    font-size: 14px;
    width: 80%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button {
    padding: 8px 12px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

form button:hover {
    background-color: #005fa3;
}

/* === User Authentication Info Bar === */
.auth-info {
  text-align: right;
  margin-bottom: 10px;
  font-size: 12px;
  color: #555;
}

.logout-button,
.link-button {
  background: none;
  border: none;
  color: #007acc;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  font-family: inherit;
}

.hscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* for smoother scrolling on iOS */
}

/* === Table Styles === */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  min-width: 800px;
}

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 1px,1px;
  text-align: left;
}

.table thead {
  background-color: #cce5ff;
  color: #003366;
  font-weight: bold;
}

.table tbody tr:nth-child(even) {
  background-color: #cce6ff;
}

.table tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.table tr:hover {
  background-color: #e6f2ff;
}


/* For tablets and smaller */
@media (max-width: 768px) {
  .content {
    padding: 10px;
  }

  h1, h2 {
    font-size: 16px;
  }

  .footer {
    font-size: 9px;
    padding: 10px;
  }

  input {
    width: 100%;
  }
}