:root {
  --inaltimecard: 20em;
}

@media (max-width: 932px) {
  :root {
    --inaltimecard: 19.7em;
  }
}

@media (max-width: 768px) {
  :root {
    --inaltimecard: 19.7em;
  }
}

@media (max-width: 600px) {
  :root {
    --inaltimecard: 20em;
  }
}

@media (max-width: 412px) and (min-height: 741px) {
  :root {
    --inaltimecard: 20em;
  }
}

@media (max-width: 412px) and (max-height: 740px) {
  :root {
    --inaltimecard: 18.5em;
  }
}

/*
@media (max-width: 344px) {
  :root {
    --inaltimecard: 17.4em;
  }
}
  */
.rating-iconic {
    background-image: linear-gradient(to right, #009624 0%, #009624 25%, #009624 100%);
}

.rating-excellent {
    background-image: linear-gradient(to right, #009624 0%, #00c853 25%, #00c853 100%);
}

.rating-great {
    background-image: linear-gradient(to right, #009624 0%, #00e676 25%, #00e676 100%);
}

.rating-verygood {
    background-image: linear-gradient(to right, #009624 0%, #4ca305 25%, #4ca305 100%);
}

.rating-good {
    background-image: linear-gradient(to right, #009624 0%, #b4f588 25%, #b4f588 100%);
}

.rating-mixed {
    background-image: linear-gradient(to right, #009624 0%, #e5ff00 25%, #e5ff00 100%);
}

.rating-disappointing {
    background-image: linear-gradient(to right, #009624 0%, #ffab00 25%, #ffab00 100%);
}

.rating-bad {
    background-image: linear-gradient(to right, #009624 0%, #ff6d00 25%, #ff6d00 100%);
}

.rating-embarrassing {
    background-image: linear-gradient(to right, #009624 0%, #ff0000 25%, #ff0000 100%);
}

.rating-unlistenable {
    background-image: linear-gradient(to right, #009624 0%, #3b3b3b 5%, #3b3b3b 100%);
} 

.card {
    opacity:0;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: #35343C;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    will-change: transform;
    transition: filter 1s ease;
    overflow: hidden;
    backface-visibility: hidden;
    transform-origin: center center;
    transform: scale(0.5);  /* Slightly scale down by default */
    transition: transform 0.6s ease-out, filter 0.6s ease-out, opacity 0.6s ease-out;
    filter: blur(25px);  /* Initially blurred */
}

.card.visible:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background-color: #2A2930 !important;
    /*color: white;*/
}
.card.visible {
    transform: scale(1);  /* Scale up to normal size */
    opacity: 1;
    filter: blur(0);
}

.card-header {
    height: var(--inaltimecard);           /* Set your desired fixed height */
    width: var(--inaltimecard);
    flex-shrink: 0;
    display: flex;
    align-items: center;    /* Vertically center content */
    justify-content: center;/* Horizontally center content */
    overflow: hidden;       /* Prevent overflow if content is too large */
}

.thumb {
    border: 0;
    width: 100%;
    height: var(--inaltimecard);
    width: var(--inaltimecard);
}
.card-img-top {
    border: 0;
    width: 100%;
    height: var(--inaltimecard);
    background:#2d2c38;
}
.card-body {
    flex: 0 1 auto;       /* Take up remaining space */
    /* ...other styles... */
}
.card-footer {
    flex-shrink: 0;       /* Prevent shrinking */
    
    display: flex;
    flex-direction: column;
    align-items: center; /* Align children to the top/left */
    justify-content: flex-start; /* Align children to the top */
    width:100%;
}

/*************** scroll bar ***************/

::-webkit-scrollbar {
   width: 10px;          
}

::-webkit-scrollbar-thumb {   
  border-radius: 30px;
  background: -webkit-gradient(linear,left top,left bottom,from(#54514e),to(#350980));
  box-shadow: inset 2px 2px 2px rgba(255,255,255,.25), inset -2px -2px 2px rgba(0,0,0,.25);}

::-webkit-scrollbar-track {     
  background-color: #fff;
  border-radius:10px;
  background: linear-gradient(to right,#201c29,#201c29 1px,#100e17 1px,#100e17);
}

 .scroll-watcher {
    height:10px;
    position: fixed;
    top: 0;
    z-index: 5000;
    border-radius: 30px;
    background: -webkit-gradient(linear,left top, right top,from(#54514e),to(#350980));
    box-shadow: inset 2px 2px 2px rgba(255,255,255,.25), inset -2px -2px 2px rgba(0,0,0,.25);
    width: 100%;
    scale: 0 1;
    transform-origin: left;

    animation: scroll-watcher linear;
    animation-timeline: scroll();
    }
    @keyframes scroll-watcher {
        to {scale: 1 1;}
    }

@media(prefers-reduced-motion: no-preference){
    .card {
        scale: .4; opacity:0.1;
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range-start: cover;
        animation-range-end: 700px;
    }
    @keyframes fade-in {
        to {scale: 1; opacity: 1;}
        
    }
    
}

/**************** gata scroll bar ********/
.tags {
    padding-top:1em;
}

.dimmed {
    opacity: 0.5;
    pointer-events: none; /* prevent interaction while dimmed */
    filter: blur(2px);
    transition: opacity 0.3s ease, filter 0.3s ease;
  }

/***************** landing **********/

.text-prezentare {
    /*margin-left: 25%;*/
    margin-top: 30%;
    /*width: 90%;*/
    font-size:2em;
    letter-spacing: 1.5px;
    color: #2D2C38;
    -webkit-text-stroke: 1px lightblue;
    /*text-align: justify;*/
    /*text-justify: inter-word;*/
    animation: fade-out linear;
    animation-timeline: view();
    animation-range: exit -400px;
    background: linear-gradient(90deg, white, #2D2C38);
    background-clip: text;
    color: transparent;
}
@keyframes fade-out {
    to {opacity: 0;}
}
.subscr {
    -webkit-text-stroke: 1px lightskyblue;
    /*background-image: url(https://media.giphy.com/media/26BROrSHlmyzzHf3i/giphy.gif);*/
    background-image: url(../prezentare/fire.webp);
	background-size: cover;
	color: transparent;
	-moz-background-clip: text;
	-webkit-background-clip: text;
    font-style: italic;
}

.prezentare{
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ Horizontal centering */
  position: relative;
  padding: 2rem;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;  
  justify-content: center;  
  height: 100vh;
  z-index:0;  

  animation: header-image-animation linear forwards;
  animation-timeline: view();
}

.prezentare .text-prezentare .prezentare2 {
  max-width: 60vw;
  width: 100%;
  text-align: center;
  margin: 0 auto;            /* Ensures block elements are centered */
  margin-top: 40%;
  opacity: 1;
}

@keyframes header-image-animation {
    50% {opacity: 1;}
    85%, 100% {opacity: 0; }
    /*85%, 100% {opacity: 0; scale:1.3}*/
}
.prezentare2 {
    font-size:0.7em;
    letter-spacing: 2px;
    color: #2D2C38;
    -webkit-text-stroke: 1px lightskyblue;
    background: linear-gradient(90deg, white, #2D2C38);
    background-clip: text;
    color: transparent;
}

.prezentare::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url(../prezentare/music2.png);
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;

  /* ✅ Chrome/Edge */
  mask-image: url(../prezentare/ink_lv2.gif);
  mask-size: cover;
  mask-position: center;

  /* ✅ Firefox (and Safari) */
  background-color: #2A2930;
  
  -webkit-mask-image: url(../prezentare/ink_lv2.gif);
  -webkit-mask-size: cover;
  -webkit-mask-position: center;
  
}

.scroll {
    cursor: pointer;
    display:inline-block;
    /*margin-top:2em;
    margin-left: 40%;*/
	width: 60px;
	height: 60px;
	border: 2px solid #fff;
	border-radius: 50%;
	position: relative;
	animation: down 1.5s infinite;
	-webkit-animation: down 1.5s infinite;
    margin-top:1em;
    /*top:10vh;*/
	&::before {
		content: '';
		position: absolute;
		top: 15px;
		left: 18px;
		width: 18px;
		height: 18px;
		border-left: 2px solid #fff;
  	border-bottom: 2px solid #fff;
		transform: rotate(-45deg);
	}
}

@keyframes down {
	0% {
		transform: translate(0);
	}
	20% {
		transform: translateY(15px);
	}
	40% {
		transform: translate(0);
	}
}

@-webkit-keyframes down {
	0% {
		transform: translate(0);
	}
	20% {
		transform: translateY(15px);
	}
	40% {
		transform: translate(0);
	}
}


@supports not (animation-timeline: view()) {
  .prezentare,
  .text-prezentare,
  .prezentare2 {
    opacity: 1 !important;
    animation: none !important;
  }
}

  /*************** gata landing ******/

  .tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: -10em;
  right: -10em;
  margin-left: 10em;
  background-color: rgba(31, 41, 55, 0.95); /* Tailwind bg-gray-800 */
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip:hover::after {
  opacity: 1;
}

.tooltip::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(31, 41, 55, 0.95);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
}
