/* Fonts */
@import url("https://fonts.googleapis.com/css2?family=Freeman&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Freeman&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Freeman", sans-serif;
}

body {
  height: 100%;
  background-image: url("../images/nvitaaaz-08-11-2025-00012.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: contain;
  background-repeat: repeat;
  /* background-color: #fc6ffc; */
  transition: background-image 1s ease-in-out;
}

.section {
  padding: 5rem 0;
}

.section-center {
  width: 90vw;
  margin: 5rem auto;
  max-width: 1170px;
}

.card {
  color: #fff;
  width: 100%;
  max-width: 600px;
  height: auto;
  padding-top: 3%;
  padding-bottom: 3%;
  text-align: center;
  margin: auto;
  margin-top: 15%;
  backdrop-filter: blur(1px);
  /* use hexa instead of opacity so text stays opaque */
  background-color: #2b0a176c; /* adjust alpha as needed */
  /* opacity: 0.5;  <-- removed */
  border-radius: 20px;
  transition: all 0.3s ease;
  box-shadow: 5px 5px 12px #c97c9a;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #c97c9a;
}

.text h1 {
  font-size: 30px;
  letter-spacing: 1.6px;
  text-transform: capitalize;
  font-family: "Roboto", sans-serif;
  margin-bottom: 10px;
}

.text h4 {
  line-height: 1.5;
  text-transform: none;
  font-family: "Freeman", sans-serif;
  margin-bottom: 15px;
  padding-left: 40px;
  padding-right: 40px;
}

h4 {
  letter-spacing: 0.1rem;
  text-transform: capitalize;
  line-height: 2;
  font-family: "Roboto", sans-serif;
}

.text {
  padding-bottom: 15px;
}

.timeleft {
  display: flex;
  align-items: center;
  justify-content: center;
}

.format h4 {
  font-size: 25px;
}

/* this selector to manipulate the js code */
.timeleft .expired {
  font-size: 1.5rem;
  color: #ff0033;
  text-transform: none;
}

.timeleft a {
  text-decoration: none;
  transform: translateX(-50%);
  color: white;
  background: crimson;
  padding: 1px 4px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}

.timeleft a:hover {
  color: crimson;
  background: none;
}

.format {
  place-items: center;
  width: 5rem;
  border: 0.5rem;
  border-color: black;
  height: 5rem;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  margin: 2px;
}

.format span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
}

/* design the footer card-footer */
.card-footer {
  margin: 10rem auto;
  color: white;
  max-width: 300px;
  text-align: center;
  margin: auto;
  backdrop-filter: blur(10px);
  background-color: #5d163150; /* use hexa, remove opacity */
  /* opacity: 0.7;  <-- removed */
  border-radius: 20px;
  box-shadow: 4px 4px 6px #1d1d1d59;
}

/* Enhance hover effect & improved transitions */
footer .card-footer a {
  color: #ff1140;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 600;
}

footer .card-footer a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ff1140;
  bottom: -2px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

footer .card-footer a:hover::before {
  transform: scaleX(1);
}

.card-footer h1 {
  font-size: 18px;
  letter-spacing: 0.1rem;
  text-transform: capitalize;
  line-height: 2;
    font-family: "Roboto", sans-serif;
}

.card-footer p {
  font-size: 15px;
  padding-bottom: 10px;
}

/* responsive for iPhone 12 pro */
@media only screen and (max-width: 394px) {
  body {
    background-size: cover;
  }

  .section-center {
    margin-bottom: 18rem;
  }

  .card h1 {
    font-size: 20px;
    margin: 10px;
  }

  .card-footer h1 {
    font-size: 15px;
  }

  .card-footer p {
    font-size: 12px;
  }

  .text h1 {
    font-size: 23px;
  }

  .timeleft .expired {
    font-size: 16px;
    margin: 0 2px 0px 2px;
  }

  .text h4 {
    font-size: 12px;
    padding-left: 35px;
    padding-right: 35px;
  }

  .format h4 {
    font-size: 20px;
  }

  .format {
    width: 4rem;
    height: 4rem;
    margin: 2px;
  }

  .format span {
    font-size: 8px;
  }
}

/* responsive for iPhone 14 Pro Max */
@media only screen and (max-width: 430px) {
  .section-center {
    margin-bottom: 18rem;
  }

  .format {
    margin-bottom: 15px;
  }
}

/* responsive for iPad mini */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .section-center {
    margin-bottom: 450px;
  }

  .format {
    width: 6rem;
    height: 6rem;
    margin: 8px;
  }

  .format span {
    margin-top: 3px;
    font-size: 12px;
  }
}

/* Music toggle button */
#music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff1140, #c97c9a);
  border: 3px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(201, 124, 154, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

#music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(201, 124, 154, 0.6);
  background: linear-gradient(135deg, #c97c9a, #ff1140);
}

#music-toggle:active {
  transform: scale(0.95);
}

/* Responsive music toggle for various screen sizes */

/* Small mobile devices (320px - 394px) */
@media only screen and (max-width: 390px) and (max-height: 932px) {
  #music-toggle {
    width: 45px;
    height: 45px;
    font-size: 14px;
    bottom: 150px;
    right: 20px;
  }
}

/* for iphone 12 pro above */
@media only screen and (max-width: 394px) and (max-height: 855px) {
  #music-toggle {
    width: 45px;
    height: 45px;
    font-size: 14px;
    bottom: 150px;
    right: 20px;
  }
}

/* Standard mobile devices (395px - 767px) */
@media only screen and (min-width: 395px) and (max-width: 767px) {
  #music-toggle {
    width: 50px;
    height: 50px;
    font-size: 16px;
    bottom: 300px;
    right: 20px;
  }
}

/* Tablets and small laptops (768px - 1024px) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  #music-toggle {
    width: 55px;
    height: 55px;
    font-size: 18px;
    bottom: 20px;
    right: 20px;
  }
}

/* Large screens (1025px - 1440px) */
@media only screen and (min-width: 1025px) and (max-width: 1440px) {
  #music-toggle {
    width: 60px;
    height: 60px;
    font-size: 20px;
    bottom: 25px;
    right: 25px;
  }
}

/* Extra large screens (1441px and above) */
@media only screen and (min-width: 1441px) {
  #music-toggle {
    width: 65px;
    height: 65px;
    font-size: 22px;
    bottom: 90px;
    right: 30px;
  }
}

/* Landscape orientation for mobile */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  #music-toggle {
    width: 40px;
    height: 40px;
    font-size: 14px;
    bottom: 10px;
    right: 10px;
  }
}
