/* General Reset */
header {
  padding-top: 25px; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Import Retro Font */
@font-face {
  font-family: "2P Habbo Retro";
  src: url("https://example.com/path-to-2p-font.ttf") format("truetype");
}

/* Body Styling */
body {
  font-family: '2P Habbo Retro', 'Courier New', Courier, monospace;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Main Content Container */
.container {
  text-align: center;
  width: 90%;
  max-width: 1200px;
}

/* Logo */
.logo {
  max-width: 300px;
  margin-bottom: 10px;
  animation: flicker 2s infinite;
}

/* Subtext Below Logo */
.subtext {
  font-family: '2P Habbo Retro', 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: #808080;
  margin-bottom: 30px;
}

/* "COMING SOON" Section */
.coming-soon {
  margin: 20px 0;
}

.glitch {
  font-family: '2P Habbo Retro', 'Courier New', Courier, monospace;
  font-size: 3rem;
  color: #ff69b4;
  text-shadow: 0 0 5px #ff69b4, 0 0 10px #ff69b4, 0 0 20px #ff69b4;
  position: relative;
  animation: glitch-animation 2s infinite;
}

.glitch::after,
.glitch::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  clip-path: polygon(0 2%, 100% 2%, 100% 10%, 0 10%);
}

.glitch::before {
  color: #00ff00;
  left: 2px;
  top: 2px;
  z-index: -1;
  animation: glitch-animation 2s infinite reverse;
}

/* Animations */
@keyframes flicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes glitch-animation {
  0% {
    transform: translate(0);
  }
  33% {
    transform: translate(1px, -1px);
  }
  66% {
    transform: translate(-1px, 1px);
  }
  100% {
    transform: translate(0);
  }
}

/* Envelope Section */
.envelope-section {
  position: relative;
  margin: 40px 0;
  text-align: center;
}

.envelope .letter {
  width: 150px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.envelope .letter:hover {
  transform: scale(1.1);
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 300px;
  height: 200px;
  background-color: #d2b48c;
  border: 2px solid #ff69b4;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
  transition: transform 0.5s ease-in-out;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card.open {
  transform: translate(-50%, -50%) scale(1);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

/* Shapes container */
.shapes {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
  align-items: center;
}

.card-content svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #000;
  stroke-width: 3px;
}

.card-content svg:hover {
  transform: scale(1.2);
  stroke: #ff69b4;
}

.card-content img {
  max-width: 100%; /* Ensure image fits */
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* Close Button */
.close-card {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: #ff69b4;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  line-height: 30px;
  z-index: 3;
}

/* Collaboration Section */
.collaboration-section {
  text-align: center;
  margin: 20px 0;
}

.collaboration-section h2 {
  font-family: '2P Habbo Retro', 'Courier New', Courier, monospace;
  font-size: 2rem;
  color: #ff69b4;
  margin-bottom: 20px;
}

.collaboration-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.collaborator {
  text-align: center;
}

#countdown {
  font-size: 3rem; /* Adjust size if necessary */
  color: #ff69b4;
  text-shadow: 0 0 5px #ff69b4, 0 0 10px #ff69b4, 0 0 20px #ff69b4;
  position: relative;
}


.collaborator img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #ff69b4;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto;
}

.collaborator p {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}

/* Participant Wall Section */
.face-wall {
  margin: 40px 0;
}

.face-wall h2 {
  font-family: '2P Habbo Retro', 'Courier New', Courier, monospace;
  font-size: 2rem;
  color: #ff69b4;
  margin-bottom: 20px;
}

.face-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 15px;
}

/* Participant Face Slot */
.face {
  position: relative;
  background-color: #111;
  border: 2px solid #ff69b4;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* If participant is eliminated, grayscale their image */
.face.eliminated img {
  filter: grayscale(100%);
}

/* Participant number at the top */
.face-number, .face-name {
  font-family: '2P Habbo Retro', 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 0 3px #ff69b4, 0 0 5px #ff69b4;
  background-color: rgba(0,0,0,0.6);
  padding: 2px 5px;
  border-radius: 3px;
}

.face-number {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 1;
}

/* The Habbo name hover text, shown above the number */
.face-name {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  text-align: center;
  z-index: 5;
}

/* Show the name on hover */
.face:hover .face-name {
  opacity: 1;
}

/* Question Mark Placeholder */
.face img[src*="toolbar_06.gif"] {
  width: 50px;
  height: 50px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.face:hover img[src*="toolbar_06.gif"] {
  transform: translate(-50%, -50%) scale(1.2);
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: #111;
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #cccccc;
  margin-top: 40px;
  width: 100%;
}

.disclaimer {
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Design for Face Wall */
@media (max-width: 600px) {
  .face-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  .face {
    width: 80px;
    height: 80px;
  }

  .face img {
    width: 100%;
    height: 100%;
    object-position: center top;
  }

  .face img[src*="toolbar_06.gif"] {
    width: 40px;
    height: 40px;
  }

  .face-name {
    font-size: 0.7rem;
    bottom: 25px;
  }
}

/* Apply Now Button Styling */
.apply-now {
  text-align: center;
  margin-top: 20px;
}

.apply-now img {
  display: block;
  margin: 0 auto;
  max-width: 500px;
}
