.title {
  color: #0d0d51;
  text-align: center;
  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); }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("montagne.jpg") no-repeat center/cover;
  opacity: 0.5;
  z-index: -10;
}


html, body {
  height: 100%;
  margin: 0;
  text-align: center;
}
.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;
}

.intro {
  border-radius: 20px;
  font-family: 'georgia';
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  display: inline-block;
  margin: 10px;
}

button {
  background-color: darkblue;
  color: white;
  border: hidden;
  border-radius: 8px;
  padding: 10px 10px;
  font-family: 'georgia';
  transition: all 0.2s ease;
  cursor: pointer;
}

button:hover {
  background-color: #ae4caf;
  color: white;
  transform: scale(1.1);
}

button:active {
  background-color: #b81ddb;
  transform: scale(0.95);
}

body {
  margin: 0;
  height: 100vh;
  position: relative;
}

/* LOVE LETTER BUTTON */
button.letter {
  background-color: #8B0000;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 20px 40px;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'georgia';
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: 20px;
}

button.letter:hover {
  background-color: #DC143C;
  transform: scale(1.1);
}

/* PAPER - LOOKS LIKE A REAL LETTER */
.paper {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background-color: #fef9e7;  /* Solid color instead of gradient */
  border: 2px solid #8B4513;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 50px 40px;
  font-family: 'georgia';
  font-size: 18px;
  line-height: 1.8;
  z-index: 1000;
  border-radius: 5px;
}

.paper::before {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  color: #8B0000;
  cursor: pointer;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.paper::before:hover {
  background-color: rgba(139, 0, 0, 0.1);
}

/* Scrollbar styling for the letter */
.paper::-webkit-scrollbar {
  width: 8px;
}

.paper::-webkit-scrollbar-track {
  background: #f4e4c1;
}

.paper::-webkit-scrollbar-thumb {
  background: #d4a574;
  border-radius: 4px;
}

/* LETTER TEXT STYLES */
.text1 {
  text-align: center;
  font-weight: bold;
  font-family: 'georgia';
  font-size: 22px;
  color: #8B0000;
  margin-bottom: 20px;
}

.text2 {
  text-align: justify;
  font-family: 'georgia';
  font-size: 18px;
  color: #2c2c2c;
  margin-bottom: 25px;
  text-indent: 40px;
}

.text3 {
  text-align: justify;
  font-family: 'georgia';
  font-size: 16px;
  color: #2c2c2c;
  line-height: 2;
  margin-bottom: 20px;
  text-indent: 40px;
}

.text4 {
  text-align: right;
  font-weight: bold;
  font-family: 'georgia';
  font-size: 18px;
  color: #8B0000;
  margin-top: 30px;
  font-style: italic;
}


/* CREDITS */
.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;
}