.title {
  color: rgba(47, 30, 8, 0.71);
  text-align: center;
  opacity: 50;
  font-weight: bold;
  font-size: 30px;
    font-family: 'cambria';
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: beige;
  border: 2px solid darkred;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}
.music-control:hover {
  transform: scale(1.1);
  background-color: darkred;
}


button{
    background-color: #f1f1b7;
    border-radius: 30px;
transition: all 0.2s ease;
  cursor: pointer;
}
button:hover {
  background-color: #4c60af;
  color: white;
  transform: scale(1.1);
}

button:active {
  background-color: #4565a0;
  transform: scale(0.95);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("minecraft2.jpg") no-repeat center/cover;

  opacity: 0.5;  /* Change this number: 0 = invisible, 1 = solid */

  z-index: -227;     /* Keep the image behind your text */
}

html, body {
  height: 100%;
  margin: 0;
    text-align: center;
    font-family: 'georgia';
    
}

.diary-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
}

.diary-card {
  background-color: rgba(255, 255, 240, 0.85);
  border-radius: 20px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 5px 10px rgba(0,9,20,0.90);
}

.diary-card h2 {
  font-size: 18px;
  color: rgba(47, 30, 8, 0.8);
  margin-bottom: 10px;
}

.diary-card p {
  font-size: 15px;
  line-height: 1.5;
}

@keyframes float {
  0% { 
    transform: translateY(0) rotate(0deg); 
    opacity: 0; 
  }
  5% { 
    opacity: 1; 
  }
  100% { 
    transform: translateY(-110vh) rotate(360deg); 
    opacity: 0; 
  }
}

.heart {
  position: fixed;
  bottom: -50px;
  font-size: 30px;
  z-index: 100;
  pointer-events: none;
}
.credits {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1px 0;
    text-align: center;
    font-family: 'georgia';
    font-size: 14px;
    color: #2d3436;
    z-index: 50;
    border-top: 2px solid darkred;
}

.credits p {
    margin: 5px 0;
    font-size: 14px;
}
