body, html {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: linear-gradient(98deg, #ffffff 0%, #ffffff 100%);
  height: 100%; /* Ensure it takes full height */
  overflow-x: hidden; /* Disable horizontal scrolling for the whole page */
  text-align: center;
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 400px; /* Limit the width for larger screens */
  margin: 0 auto; /* Center on the page */
  padding: 20px;
}

.card-container {
  background: white;
  border-radius: 1rem;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px; /* Added margin for spacing */
}

.card-header {
  background: #ff4654;
  color: white;
  padding: 0.5rem 1rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  margin: -1.5rem -1.5rem 2rem -1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.card-image {
  border-radius: 1rem;
  overflow: hidden;
  animation: pulse 2s infinite ease-in-out;
  width: 100%; /* Ensure image fits within the container */
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.card-content h2 {
  color: #333;
  font-size: 1.2rem;
}

.card-content p {
  margin: 0.5rem 0;
}

.code-container {
    background: #e1e1e1;
    border: 5px dashed #28a745;
    border-radius: 8px;
    padding: 10px;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
    word-wrap: break-word; /* Ensure code breaks properly on smaller screens */
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    font-size: 17px;
    border-radius: 5px;
    width: 160px;
    height: 40px;
    border: 2px solid #000;
    position: relative;
    transition: 0.3s;
    background-color: #28a745;
    font-weight: 600;
    margin: 0 auto; /* Center button */
}

.button::before {
    content: "FREE";
    display: block;
    font-size: 13px;
    background-color: #000;
    color: #fff;
    border-radius: 3px;
    padding: 3px 5px;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-5px, -30%);
    transition: .3s;
}

.button:hover::before {
  transform: translate(-5px, -50%);
}

.offer-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 14.61rem;
    height: 2.6rem;
    background-size: 232% 300%;
    backdrop-filter: blur(1rem);
    border-radius: 5rem;
    transition: 0.5s;
    animation: gradient_301 5s ease infinite;
    border: double 4px transparent;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(137.48deg, #28a745 10%, #28a745 45%, #28a745 67%, #28a745 87%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    color: #28a745;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.offer-button:hover {
  transform: scale(1.1);
}

.offer-button:active {
  border: double 4px #28a745;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}

.roblox-character {
  position: absolute;
  top: -100%;
  left: 42%;
  transition: 0.5s all;
  animation: tilt 1.1s infinite ease-in-out;
}

@keyframes tilt {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  50% {
    transform: translate(-50%, -50%) rotate(10deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.robux {
    position: absolute;
    top: 12%;
    left: 8%;
    animation: flip 3s linear infinite;
}

@keyframes rotate_4991 {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

button:hover .roblox-character {
  top: 90%;
}

button:hover .robux {
  animation: none;
  transform: scale(0);
}

button:hover .go {
  color: transparent;
}

.go {
    position: absolute;
    top: 31%;
    left: 30%;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
}

.pword, .pword2 {
  position: absolute;
  font-size: 13px;
  opacity: 0;
  animation: pulse-animation_0011 1s infinite;
}

@keyframes pulse-animation_0011 {
  0% {
    transform: rotateZ(-30deg) scale(1);
  }
  50% {
    transform: rotateZ(-30deg) scale(1.1);
  }
  100% {
    transform: rotateZ(-30deg) scale(1);
  }
}

.pword {
  top: 30%;
  left: 72%;
}

.pword2 {
  top: 55%;
  left: 75%;
}

button:hover .pword, button:hover .pword2 {
  opacity: 1;
}

.warning {
  color: #ff1800;
  font-size: 0.75em;
  margin-top: 15px;
}

#challenge-modal {
  display: none; /* Hidden by default */
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.75); /* Darker background for better focus on the modal */
  z-index: 1001; /* Ensures it's above everything else */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
    height: 750px;
}

.close {
  color: #aaaaaa;
  position: absolute;
  right: 15px;
 top: 10px;
  font-size: 24px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  font-size: 18px;
  color: #333333;
  margin-bottom: 25px;
  font-weight: 600;
}

.offer-container {
  background-color: #f9f9f9; /* Slightly lighter background for the offer container */
  border-radius: 10px; /* Rounded corners for the offer container */
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  margin-top: 20px;
  text-align: center; /* Ensure text and elements are centered */
}

.offer-image {
  max-width: 100px; /* Slightly smaller image for better layout */
  height: auto;
  border-radius: 50%; /* Circular image */
  margin-bottom: 20px;
}

.offer-title {
  font-size: 1.5rem; /* Larger font size for the title */
  color: #333333;
  margin-bottom: 15px;
  font-weight: bold; /* Bold font weight for the title */
}

.offer-instructions {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.offer-steps {
  text-align: left;
  padding-left: 20px;
  font-size: 1rem;
  color: #555;
  margin: 10px 0;
}

.offer-time {
  font-size: 1rem;
  color: #ff0000;
  margin-top: 10px;
  font-weight: bold; /* Bold for emphasis */
}

.timer-note {
  font-size: 1rem;
  color: #28a745;
  margin-top: 10px;
  font-weight: bold; /* Bold for emphasis */
}

.timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem; /* Larger font size for the timer */
  color: #ff0000;
  margin-top: 10px;
  font-family: 'Roboto', sans-serif; /* Roblox-like font */
  background-color: #ffffff;
  border: 2px solid #28a745;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.timer-container div {
  margin: 0 10px;
}

.timer-container div span {
  display: block;
  font-size: 0.75rem;
  color: #555;
}

.recent-winners-container {
  background: white;
  border-radius: 1rem;
  width: 100%;
  max-width: 95%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px; /* Added margin for spacing */
  border: 3px solid #28a745;
  position: relative; /* Added for positioning animation elements */
}

.recent-winners-container h2 {
  color: #28a745;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#recent-winners p {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin: 5px 0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

#recent-winners p img {
  margin-right: 10px; /* Space between the icon and text */
  width: 24px; /* Adjust icon size */
  height: 24px; /* Adjust icon size */
}

.roblox-icon {
  animation: bounce 2s infinite;
  margin-right: 10px; /* Space between the icon and text */
  width: 24px; /* Adjust icon size */
  height: 24px; /* Adjust icon size */
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.return-note {
  font-size: 1rem;
  color: #28a745;
  margin-top: 10px;
  font-weight: bold; /* Bold for emphasis */
}

.unlock-steps-container {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.unlock-steps-container h2 {
  color: #28a745;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.unlock-steps-container ol {
  list-style-position: inside;
  padding-left: 0;
}

.unlock-steps-container li {
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin: 5px 0;
  color: #333;
}

@keyframes gradient_301 {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse_3011 {
  0% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

@media (max-width: 768px) {
  .congratulations-container {
    font-size: 1.2em; /* Smaller font size on mobile devices */
  }

  .congratulations-container i {
    margin-right: 3px;
    font-size: 1em; /* Adjust the trophy size on mobile devices */
  }

  .card-container {
    width: 95%; /* Use more width on smaller screens */
    margin-top: 10px; /* Less margin on the top */
  }

  .card-image img {
    width: 100%; /* Full width images on mobile */
  }

  /* Adjust button and code container styles for mobile */
  .button, .code-container {
    width: 90%; /* Slightly narrower on mobile for aesthetics */
    margin: 10px auto; /* Center it with automatic margin */
  }
}

@keyframes flip {
  0% {
    transform: perspective(600px) rotateY(0deg);
  }
  50% {
    transform: perspective(600px) rotateY(180deg);
  }
  100% {
    transform: perspective(600px) rotateY(360deg);
  }
}

/* Ensure the video is responsive and larger */
.tutorial-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000; /* Fallback color */
    margin-bottom: 20px; /* Add some space below the video */
}

.tutorial-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000; /* Fallback color for better appearance */
}

@media (max-width: 768px) {
    .tutorial-video-container {
        padding-bottom: 110%; /* Adjust for better fit on mobile screens */
    }
    
}

