/* General page styling */
body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: auto;
  padding: 2em;
  background-color: #f9f9f9;
  color: #333;
}

/* Page title */
h1 {
  text-align: center;
  margin-bottom: 1em;
}

/* Search bar */
input#search {
  width: 100%;
  padding: 0.6em 0.8em;
  font-size: 1em;
  margin-bottom: 1.5em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* File list styling */
ul#file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each file entry */
ul#file-list li {
  margin-bottom: 1.5em;
  padding: 0.8em;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

/* Image previews */
ul#file-list li img {
  display: block;
  max-width: 120px;
  height: auto;
  border-radius: 7px;
  border: 1px solid #ccc;
}

/* Links */
ul#file-list li a {
  text-decoration: none;
  color: #0000EE;
  font-weight: bold;
}

ul#file-list li a:hover {
  text-decoration: underline;
}
a.mail-link {
  color: #0077cc;           /* text color */
  text-decoration: none;  /* removes underline */
  transition: color 0.2s;
}

a.mail-link:hover {
  text-decoration: underline;        /* underlines on hover */
}

/* Navigation bar */
.navbar {

  padding: 0.5em 0;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0 1em;
}

.navbar a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover,
.navbar a.active {
  text-decoration: underline;
}

.back-link a {
  color: #1a73e8;       /* Google-style blue, modern and elegant */
  text-decoration: none; /* no underline by default */
  font-weight: 500;      /* slightly bolder for readability */
  transition: all 0.2s ease; /* smooth hover effect */
}

.back-link a:hover {
  text-decoration: underline;
  color: #0c47b7;        /* darker on hover for subtle emphasis */
}

.back-link {
  font-size: 0.9rem;     /* slightly smaller than normal text */
  margin: 1em 0;
  display: inline-block;
}

/* --- Mobile layout --- */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 16px;
    text-align: center;
  }

  ul#file-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  ul#file-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  ul#file-list li img {
    max-width: 80%;
  }

  button, input[type="search"] {
    font-size: 18px;
    padding: 10px;
  }
}