/* BASE*/
body {
  font-family: 'Comic Neue', cursive;
  background: url('images/bg-night-sky.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*THEME*/
.site-header {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.header-moon {
  position: absolute;
  top: -10px;
  right: 30px;
  width: 15%;
  animation: float 6s ease-in-out infinite;
}

.site-title {
  font-size: 3rem;
  color: #ffd8f3;
}

.inline-icon {
  width: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.main-nav li a {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px dashed #ffc0cb;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s;
}

.main-nav li a:hover {
  background: #ffd1f7;
  color: #333;
}

.section-home {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.centerpiece-sheep {
  width: 30%;
  animation: float 4s ease-in-out infinite;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.section-gallery {
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.gallery-grid img {
  max-width: 100%;
  border-radius: 16px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.section-about {
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.text-bubble {
  background: #ffeaf6;
  color: #333;
  padding: 2rem;
  border: 3px dotted #ffb6c1;
  border-radius: 25px;
  display: inline-block;
  max-width: 600px;
  box-shadow: 0 0 15px #ffbdf0;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.floating-item {
  position: absolute;
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.8;
}

/*ANIMATIONS*/

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hover-bounce:hover {
  animation: bounce 0.6s ease;
}

.hover-blink:hover {
  filter: brightness(1.2);
}

.spin:hover {
  transform: rotate(10deg);
  transition: transform 0.3s ease;
}

.glow {
  box-shadow: 0 0 15px #ffd6f6;
}

.fancy-entry {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.fancy-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

/*MD IMPORT*/

#expand-btn {
      border: none;
    background-color: transparent;
    font-family: inherit;
    color: #956571;
    font-weight: 600;
    font-size: large;
}

#sources {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

#sources h1,
#sources h2,
#sources h3 {
  font-size: 1.2em;
  margin-top: 1.5em;
}

#sources img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

#sources p {
  margin-bottom: 1em;
}

#expand-box {
  overflow-x: hidden;
  transition: max-height 0.5s ease;
  max-height: 0;
  overflow-y: auto;
}

#expand-box.expanded {
  max-height: 800px;
  
}

#expand-box::-webkit-scrollbar {
  width: 8px;
}

#expand-box::-webkit-scrollbar-thumb {
  background: #c3cfd2;
  border-radius: 8px;
}

#expand-box::-webkit-scrollbar-track {
  background: transparent;
}

