/* General body styling */
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  text-align: center;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Ensures footer is pushed to the bottom */
  min-height: 100vh; /* Makes body height fill the viewport */
}

/* Block title styling */
.block-title {
  border: 2.5px solid var(--black-color);
  background-color: var(--white-color);
  padding: 18px;
  margin: 10px 0;
  width: 80%;
  max-width: 600px;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.3s,
    background-color 0.3s,
    color 0.3s;
  position: relative;
  z-index: 1;
}

/* Hover animation - dancing effect */
.block-title:hover,
.block-title.open {
  transform: rotate(-3deg) scale(1.05);
  background-color: var(--highlight-color, black);
  color: white; /* Keep highlight styles when active */
}

.cv-floating-button {
width: 250;
  height: 100;
  background-color: darkred;
  color: white;
  text-align: center;
  font-size: 13px;
  position: absolute;
  top: 80px;
  right: 20px;
}


.cv-floating-button:hover {
width: 255;
  height: 105;
  background-color: red;
  color: beige;
  
  font-size: 14px;
  
}

.block-content img {
  box-shadow: 10px 10px 10px black;
}

/* Spoiler content hidden by default */
.block-title + .block-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease;
  opacity: 0;
  padding: 0 18px;
  background-color: #f9f9f9;
  border-top: 1px solid var(--black-color);
  margin-top: -1px; /* To align with border */
}

.profile-picture {
  box-shadow: inline 10px 10px 10px black;
  height: 150px;
  width: 150px;
}

/* Spoiler content when expanded */
.block-title.open + .block-content {
  max-height: 500px; /* Adjust based on content height */
  opacity: 1;
  padding: 18px;
}

/* Minimal animation for the spoiler content */
.block-content p,
.block-content ul {
  transform: translateY(-10px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer styling */
footer {
  width: 100%;
  background-color: var(--footer-bg-color, #f0f0f0);
  text-align: center;
  padding: 10px 0;
  position: relative; /* Ensures it only moves based on content layout */
  bottom: 0;
}

.footer-info {
  list-style: none;
  text-decoration: none;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.footer-info-item {
  margin: 5px 0;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Add some spacing between the images */
  flex-wrap: wrap; /* Ensures proper layout if there are more than three images */
}

.container > img {
  height: 250px;
  width: 250px;
  object-fit: cover; /* Ensures the image covers the square without distortion */
  border-radius: 10px; /* Optional: Adds rounded corners for better aesthetics */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for depth */
}

/* Sticky footer for cases with little content */
html,
body {
  height: 100%; /* Ensure the HTML and body fill the viewport height */
}

main {
  flex: 1; /* Allows the main content to grow and push footer to the bottom */
  width: 100%;
}
.contacts-text {
  font-size: 17px;
  font-weight: bold;
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.contacts-text a {
  color: black;
  text-decoration: none;
}

.music-controls {
  position: absolute; /* Position relative to the closest positioned ancestor or viewport */
  top: 20px; /* Distance from the top edge */
  right: 20px; /* Distance from the right edge */
  z-index: 1000; /* Ensure it appears above other elements */
}

button.music {
  width: 150px;
  height: 150px;
  background-color: transparent; /* No background */
  border: none; /* Remove button border */
  padding: 0; /* Remove padding */
  cursor: pointer;
  display: inline-block;
  background-image: url("contents/Piano Sticker.gif"); /* Always show the GIF */
  background-size: cover; /* Ensure the GIF covers the button */
  background-position: center;
}

button.music.paused {
  opacity: 0.8; /* Optional: Add a visual difference when paused */
}

button.music img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure the image fits perfectly */
  border-radius: 10px; /* Optional: Rounded corners for the button */
}

button.music:hover {
  opacity: 0.8; /* Add a hover effect */
}
