body {
  font-family: sans-serif;
  text-align: center;
  margin: 0;
  background-color: #f0f0f0;
}

h1 {
  font-size: 3em;
  color: #333;
  margin-top: 20px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profiles {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 30px 0;
}

.profile a {
  text-decoration: none;
  color: #333;
  font-size: 1.2em;
}

.profile img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% -10px; /* Move image content up by 10px */
  border: 4px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.profile img:hover {
  transform: scale(1.05);
}

#calendar-container {
  width: 90%;
  max-width: 600px;
  margin-top: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Diary Page Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header a {
  text-decoration: none;
  color: #333;
  font-size: 1em;
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: background-color 0.2s;
}

header a:hover {
  background-color: #f0f0f0;
}

#diary-entry {
  width: 90%;
  max-width: 600px;
  margin-top: 20px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#diary-date {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 15px;
}

#diary-text {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: sans-serif;
  font-size: 1em;
  box-sizing: border-box;
}

#save-button {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 1em;
  transition: background-color 0.2s;
}

#save-button:hover {
  background-color: #45a049;
}

#image-input {
    margin-bottom: 15px;
}

