* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #7c5a36;
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#formContainer {
  background-color: white;
  width: 420px;
  border: 6px solid #0b1e74;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  position: relative;
}

/* Close button */
#closeBtn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: white;
  border: 1px solid #333;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  padding: 3px 7px;
  z-index: 10;
}

#closeBtn:hover {
  background-color: #eee;
}

/* Header with Christ image */
header {
  background: url("images/jesus_feeds_5000.jpeg") no-repeat center top;
  background-size: cover;
  height: 180px;
  position: relative;
}

.overlay {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px black;
}

.overlay h1 {
  font-size: 28px;
  font-weight: bold;
}

.overlay h2 {
  font-size: 18px;
  font-style: italic;
}

/* Form styling */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 15px;
  align-items: center;
  padding: 20px 30px;
}

form h3 {
  grid-column: span 2;
  text-align: center;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

label {
  font-weight: bold;
  font-size: 14px;
  color: black;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 5px;
  border: 1px solid #999;
  border-radius: 4px;
}

.gender {
  grid-column: span 2;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-left: 90px;
}

section {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 30px;
}

button[type="submit"] {
  grid-column: span 2;
  justify-self: center;
  padding: 5px 10px;
  background-color: #f4f4f4;
  border: 1px solid #999;
  border-radius: 3px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #ddd;
}

/* Scripture book images along the bottom */
footer {
  display: flex;
  background-color: #000;
  border-top: 3px solid #0b1e74;
  height: 100px; 
  align-items: stretch; 
}

footer img {
  flex: 1; 
  width: 100%;
  height: 100%; 
  object-fit: cover;
  border-right: 3px solid white; 
}

footer img:last-child {
  border-right: none;
}

footer img:hover {
  opacity: 0.85;
  cursor: pointer;
}
