/* Medieval Fantasy Theme for Cat Facts */

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: "Georgia", serif;
  background: url("https://www.transparenttextures.com/patterns/leather.png")
    repeat;
  background-color: #2f1b0c;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background-color: rgba(20, 13, 5, 0.95);
  border: 4px solid #d4af37;
  border-radius: 16px;
  padding: 40px 30px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  text-align: center;
  margin-bottom: 40px; /* pushes it away from footer */
}

h1 {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px #000;
}

button {
  font-family: "Georgia", serif;
  font-size: 1rem;
  background-color: #8b4513;
  color: #fff;
  padding: 12px 28px;
  border: 3px solid #daa520;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

button:hover {
  background-color: #a0522d;
  transform: scale(1.05);
  box-shadow: 0 0 12px #fff3cd;
}

button:active {
  transform: scale(0.95);
  background-color: #6f3612;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.5);
}

#result {
  margin-top: 25px;
  font-size: 1.2rem;
  color: #fef6d3;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer.social-footer {
  margin-top: 60px;
  text-align: center;
  padding-bottom: 20px;
}

footer.social-footer h2 {
  color: #ffd700;
  font-family: "Georgia", serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.social-icons a {
  margin: 0 12px;
  font-size: 1.5rem;
  color: #ffd700;
  transition: transform 0.2s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
  transform: scale(1.2);
}

.social-icons a:active {
  transform: scale(0.9);
  color: #ffa500;
}

.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
}

.share-btn {
  margin-top: 15px;
  background-color: #444;
  border: 3px solid #daa520;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: "Georgia", serif;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.share-btn:hover {
  background-color: #5a5a5a;
  color: #ffd700;
}

* {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

footer.social-footer .credit {
  margin-top: 15px;
  color: #ffd700;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .container {
    padding: 25px 20px;
    max-width: 90%;
  }

  h1 {
    font-size: 1.8rem;
  }

  button,
  .share-btn {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .social-footer h2 {
    font-size: 1rem;
  }

  .social-icons a {
    font-size: 1.3rem;
    margin: 0 8px;
  }

  .credit {
    font-size: 0.85rem;
  }
}
