/* General body styles */
body {
  font-family: "Times New Roman", Times, serif;
  text-align: center;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.3);
  z-index: -1;
}

/* Container for front page */
.container {
  width: 80%;
  max-width: 500px;
  margin: 50px auto;
  background: rgba(255,255,255,0.7);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

h1 {
  color: #000;
  text-shadow: 1px 1px 3px #fff;
}

p {
  font-size: 18px;
  color: #000;
  text-shadow: 1px 1px 2px #fff;
}

img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 15px 0;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-family: "Times New Roman", Times, serif;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

/* Background images for pages */
body.page1::before {
  background-image: url('bg3');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.page2::before {
  background-image: url('bg4');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Photo gallery on front page */
.photo-gallery {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.photo-gallery img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: transform 0.3s;
}

.photo-gallery img:hover {
  transform: scale(1.1);
}

/* About page grid layout */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 90%;
  max-width: 900px;
  margin: 50px auto;
  text-align: center;
  z-index: 1;
  position: relative;
}

.pfp {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.7);
  padding: 20px;
  border-radius: 10px;
}

.info {
  background: rgba(255,255,255,0.7);
  padding: 15px;
  border-radius: 10px;
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
}

.info-button {
  grid-column: 1 / -1;
  text-align: center;
}