/* Encourage browsers to honor EXIF orientation */
.category-section .thanks,
.already-voted-msg { margin: .75rem 0; font-size: 1.1rem; }

img { image-orientation: from-image; }

body {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #000;
  background-image: url("/assets/images/graveyard.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #000;
}
.bigBTN {
  width: auto;
  letter-spacing: .1em;
  margin-top: 30px;
}
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgb(255, 255, 255, 0.8);
}
h1 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  text-shadow: 1px 1px 2px #666;
}
h3 {
  font-family: 'Zapfino', cursive, sans-serif;
  font-size: 3.0rem;
  margin: 50px auto;
  text-shadow: 1px 1px 2px #666;
  line-height: 1.5em;
}
.hideMe {
  display: block;
}
form {
  margin: 2rem 0;
}
input[type="text"], select, button {
  font-size: 1.2rem;
  padding: 0.75rem;
  margin: 0.5rem 0;
  width: 220px;
  color: #000;
  background-color: #fff;
}
button, .button {
  background-color: #000;
  color: white;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  padding: 10px 20px;
  text-transform: uppercase;
  letter-spacing: .3em;
  margin: 0 10px;
}
button:hover, .button:hover {
  background-color: #666;
}
img {
  margin: 0.5rem 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
p {
  font-size: 1rem;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.card {
  border-radius: 10px;
  padding: 0.75rem;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.card-title {
  font-weight: 700;
}
.card-sub {
  opacity: .8;
  font-size: 1.5rem;
}
.card-meta {
  margin-top: .5rem;
  font-size: 1rem;
}
input[type="file"][name="photo"] {
  font-size: 1.0rem;
  display: block;
  margin: 0 auto;
  text-align: center;
  width: 130px; /* keeps button centered */
}
.file-upload-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.filename-display {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  text-align: center;
}
input[type=file]::-webkit-file-upload-button {
  visibility: hidden;
}
input[type=file]::before {
  content: 'Take Photo';
  display: inline-block;
  background: #000;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.25rem;
  text-align: center;
}
input[type=file]:hover::before {
  background-color: #0056b3;
}
input[type=file] {
  color: transparent;
  text-align: center;
}
.photo-submit {
  background: none;
  border: 0;
  padding: 0;
  margin: 0 auto 0.5rem;
  display: block;
  cursor: pointer;
}
.photo-submit img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.vote-meta {
  margin-top: .25rem;
  font-size: 1.2rem;
}
hr {
  margin-top: 40px;
}
@media (max-width: 480px) {
  .hideMe {
    display: none;
  }
}