* {
  margin-left: 0.1rem;
}

@font-face {
  font-family: 'TurboType';
  src: url('/assets/turbo-type-font/WatcherPersonalUseBold-BWexB.ttf')
    format('truetype');
}

body {
  background-image: url('/assets/imgs/brick-wall-944271_1280.jpg');
  font-family: 'TurboType', sans-serif;
  text-align: center;
  margin: 0.1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#pgh {
  background: rgba(57, 54, 0, 0.819);
  width: 100%;
  padding: 0.5rem;
}

.scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 20px;
}

.scroll:hover > :not(:hover) {
  opacity: 0.3;
}
.card-stack:hover > :not(:hover) {
  opacity: 0.3;
}

.card {
  flex: 0 0 calc(100% / 6);
  scroll-snap-align: start;
  background: rgb(57, 54, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 8px;
  transition: 0.5s ease;
  cursor: pointer;
  border: 0.9px solid black;
  border-radius: 8px;
  box-shadow: 5px 1px 10px 5px grey;
}

.card img {
  background: whitesmoke;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
}

.card:hover,
.cards:hover {
  transform: scale(1.05);
}

h2 {
  background: rgba(245, 245, 245, 0.901);
  font-size: 30px;
  padding: 0.4rem;
  margin-bottom: 0.3rem;
}

h4 {
  display: flex;
  font-size: 20px;
  color: rgba(245, 245, 245, 0.923);
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin: 1rem;
  background: rgba(42, 31, 0, 0.783);
  border-radius: 8px;
}

p {
  background: rgba(245, 245, 245, 0.901);
  font-size: 20px;
}

.text {
  width: 100%;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: rgb(249, 242, 233);
  text-align: center;
  font-size: 3.8rem;
  border: 1px solid #3b010198;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.logo {
  width: 100%;
  height: auto;
  margin: 1rem;
}

#tw-logo {
  width: 18%;
  border: 5px double black;
  border-radius: 100%;
}

.contact {
  background: rgba(57, 54, 0, 0.819);
  border: 5px double black;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.contact-links {
  list-style: none;
}

a {
  font-size: 20px;
  color: whitesmoke;
  text-decoration: none;
}

/* Card Stack for top 3 Box Office Hero's */

.card-stack {
  display: flex;
  justify-content: center;
  gap: 60px;
  text-align: initial;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #3b010198;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.cards {
  position: relative;
  width: 375px;
  height: 350px;
}

.cards img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 30%;
  border: 1px solid #3b010198;
  box-shadow: 2px 4px 15px rgb(4, 0, 0);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    z-index 0.3s ease;
}

/* Adjusted stack offset for images */

.cards img:nth-child(1) {
  transform: translate(0px, 0px);
  z-index: 4;
}
.cards img:nth-child(2) {
  transform: translate(10px, 10px);
  z-index: 3;
}
.cards img:nth-child(3) {
  transform: translate(20px, 20px);
  z-index: 2;
}
.cards img:nth-child(4) {
  transform: translate(30px, 30px);
  z-index: 1;
}

#yr {
  font-family: Impact, 'Arial Narrow Bold', sans-serif;
  font-size: 17.4px;
}

.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  width: 100%;
  height: 100%;
  margin: 0.5rem;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-back {
  transform: rotateY(180deg);
}

.card-bio {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 13px;
  text-align: left;
  padding: 0.5rem;
  margin-bottom: 3rem;
}

/* Modal Section */

.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: rgba(250, 250, 248, 0.895);
  margin: 10% auto;
  padding: 10%;
  border-radius: 8px;
  width: 300px;
  position: relative;
}

.close {
  position: absolute;
  top: 5px;
  right: 10px;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
}

.social-icons a {
  margin: 5px;
  text-decoration: none;
  font-size: 24px;
}

.social-icons {
  display: flex;
  justify-content: center;
}

input,
textarea {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #333;
  color: white;
  border: none;
}

/* Tooltip Styling */

.tooltip {
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 8px 10px;
  margin: 0;
  border-radius: 6px;
  font-size: 0.9rem;
  z-index: 10;
  display: none;
  font-family: sans-serif;
  word-break: break-word;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.tooltip strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 4px;
}

.tooltip span {
  line-height: 1.4;
}

.card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info-panel {
  display: none;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 14px;
  margin-top: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: sans-serif;
  width: 100%;
  box-sizing: border-box;
  text-align: justify;
  transition: all 0.3s ease;
}

.end-note a {
  padding: 1rem;
  color: black;
}

/* Media Query */

@media (max-width: 768px) {
  .card {
    flex: 0 0 calc(100% / 2);
  }

  .card-stack {
    display: inline-block;
    width: 74%;
    border-radius: 5%;
  }

  #vs {
    margin-bottom: 3rem;
  }

  .card-stack img {
    width: 70%;
    border-radius: 100%;
  }

  .tooltip strong {
    font-size: 1rem;
  }

  .tooltip span {
    font-size: 0.85rem;
  }
}

@media (max-width: 430px) {
  .card {
    flex: 0 0 calc(100% / 1);
  }

  h2,
  text {
    font-size: 25px;
  }

  .logo {
    display: block;
    margin: 0;
    margin-top: 0.5rem;
  }

  .contact-links {
    display: inline-block;
    padding: 0;
  }

  .card-stack img {
    width: 50%;
  }
}
