@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');

body {
  margin: 0;
  background: url('https://i.pinimg.com/736x/6c/d0/c6/6cd0c6f8669d70bcce1604e9216a3ee3.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'IM Fell English SC', serif;
}

.frame {
  max-width: 900px;
  margin: 40px auto;
  border: 10px solid #3a2f28;
  background: linear-gradient(to bottom, #1b1a1a 0%, #2f2a2c 100%);
  box-shadow: 0 0 40px rgba(54, 87, 63, 0.6);
  position: relative;
  z-index: 1;
}

.menu {
  display: flex;
  justify-content: space-around;
  background-color: #2e1f2f;
  border-bottom: 5px solid #513f35;
}

.menu a {
  color: #d0c0aa;
  text-decoration: none;
  padding: 15px 20px;
  transition: all 0.3s ease;
}

.menu a:hover {
  background-color: #5e3c4c;
  color: #fff3e6;
  text-shadow: 0 0 5px #e2d8c4;
}

.header {
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 2.8em;
  letter-spacing: 1px;
  color: #ffffff;
}

.subtitle {
  font-size: 1em;
  font-style: italic;
  color: #b0c6a5;
}

.text {
  padding: 30px;
  font-size: 1.1em;
  line-height: 1.6;
  color: #ffffff;
  background: rgba(20, 17, 17, 0.7);
  border-top: 1px dashed #555;
}

.interactive-section {
  padding: 20px;
  text-align: center;
}

#fortune-button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1em;
  font-family: 'IM Fell English SC', serif;
  background: linear-gradient(to right, #574b90, #a29bfe);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #ccc;
  transition: transform 0.2s ease, background 0.3s ease;
}

#fortune-button:hover {
  background: linear-gradient(to right, #6c5ce7, #b2bec3);
  transform: scale(1.05);
}

#fortune-container {
  margin-top: 15px;
  min-height: 40px;
}

.fortune-hidden {
  visibility: hidden;
}

.fortune-visible {
  visibility: visible;
  font-style: italic;
  color: #f1e6ff;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Magic orb style */
#magic-orb {
  width: 60px;
  height: 60px;
  margin: 20px auto;
  background: radial-gradient(circle at center, #a29bfe 0%, #6c5ce7 100%);
  border-radius: 50%;
  box-shadow: 0 0 15px 5px #a29bfe;
  animation: pulse 2s infinite ease-in-out;
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px #a29bfe; }
  50% { box-shadow: 0 0 25px #81ecec; }
}

/* Sparkle effect for fortune */
.sparkles {
  animation: sparkle 1s ease infinite alternate;
}

@keyframes sparkle {
  0% { text-shadow: 0 0 3px #fff; }
  100% { text-shadow: 0 0 10px #fff; }
}

/* Floating magical objects */
.floating-object {
  width: 60px;
  height: 60px;
  position: absolute;
  background-size: cover;
  cursor: pointer;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

#crystal {
  background-image: url('https://i.imgur.com/w2pEwVX.png');
  top: 80px;
  left: 100px;
}

#candle {
  background-image: url('https://i.imgur.com/W4gKbTF.png');
  top: 500px;
  right: 80px;
}

#moth {
  background-image: url('https://i.imgur.com/ybmzUTM.png');
  top: 250px;
  left: 80%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
