body {
    font-family: Tahoma, sans-serif;
    padding-bottom: 150px;
}

/* Begin: styling for spoiler text */
.spoiler {
  background-color: #212121; /* Dark block background */
  color: #212121;            /* Matches text color to hide it */
  cursor: pointer;
  padding: 0 2px;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;         /* Prevents accidentally highlighting hidden text */
}

/* Reveals text when clicked (active) or focused via keyboard navigation */
.spoiler:active,
.spoiler:focus {
  background-color: rgba(255, 255, 255, 0.1); /* Light backdrop for revealed text */
  color: inherit;                             /* Restores the original text color */
  user-select: auto;                          /* Allows selecting text once revealed */
  pointer-events: none;                       /* Keeps it revealed after the click */
}
/* End: styling for spoiler text */

/* The container element needs relative positioning */
.hover-container {
  position: relative;
  display: inline-block; /* Keeps the container wrapped tightly around the text */
  cursor: pointer;
}

/* Begin: styling for tooltip hover text */
.hover-container .hover-text {
  visibility: hidden;
  position: absolute;
  z-index: 1;
  
  /* Position it right below the parent text */
  top: 100%;
  left: 50%;
  transform: translateX(-50%); /* Centers the tooltip */
  
  /* Styling details */
  background-color: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap; /* Prevents text wrapping unless desired */
  
  /* Smooth appearance */
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Trigger visibility on parent hover */
.hover-container:hover .hover-text {
  visibility: visible;
  opacity: 1;
}
/* End: styling for tooltip hover text */

/* Begin: styling for collapsable block with rotating caret */
.content {
  display: none;
  padding: 10px 15px;
  background-color: #f1f1f1;
  border-radius: 10px;
}

.clear-button {
  font-family: Tahoma, sans-serif;
  color: rgb(0, 0, 0);
  font-size: 16px;
  border: none;
  background: none;
}

.caret {
  display: inline-block;
  vertical-align: middle;  
  font-size: 15px;
  transition: transform 0.2s ease; /* Smooth animation */
  transform: rotate(-90deg);
}

.caret.rotated {
  transform: rotate(0deg);
}

.content.open {
  display: block;
}
/* End: styling for collapsable block with rotating caret */

/* Begin Toast - positioned at the bottom and in the middle of the screen */
#toast {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#toast.show {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
  However, delay the fade out process for 2.5 seconds */
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: -30px; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: -30px; opacity: 0;}
}
/* End Toast */

.responsive-video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

#zoomable-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease; 
}

.image-container {
  overflow: hidden;
}