/* 🌟 Fix for Sticky Header Overlapping Sections */
html {
    scroll-padding-top: 65px; /* Adjust this value based on your header height */
}


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


body {
    font-family: "Lato", sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column; /* Stack elements */
    align-items: center;
    min-height: 100vh;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 65px;
}


/* HEADER & FOOTER - START */
/* 🌟 Header */
.header {
    background: #3A86FF;
    height: 65px; /* Fixed height */
    padding: 0 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between; /* Ensures left, center, right alignment */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* 🌍 Navigation Links (Desktop) */
.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

.header-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    flex: 1; /* Makes it take available space */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensures full height inside header */
}

.nav a:hover {
    color: #f1c40f;
}

/* 🍔 Mobile Menu Icon (Position to Right) */
.menu-icon {
    display: none; /* Hidden on desktop */
    font-size: 28px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 20px; /* Push it to the right */
    top: 50%;
    transform: translateY(-50%); /* Center it vertically */
}

/* 📱 Mobile Dropdown Menu (Hidden by Default) */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px; /* Below navbar */
    right: 0;
    background: #3A86FF;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav a {
    color: white;
    padding: 15px;
    display: block;
    text-decoration: none;
    font-size: 18px;
}

.mobile-nav a:hover {
    background: #f1c40f;
    color: black;
}

.mobile-nav.active {
    display: flex;
}

/* 🌟 Footer */
.footer {
    background: #3A86FF; /* Bright color */
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 16px;
    width: 100%; /* Ensure full width */
}

/* HEADER & FOOTER - END */


/* 🏗 Main Layout */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    max-width: 100%;
    overflow: hidden;
}

/* 📢 Ad above the wheel */
.ad-container {
    width: 100vw;  /* Full width */
    max-width: 100%; /* Ensures no unnecessary max-width */
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid black; /* For visibility */
    padding: 15px 0;
    background-color: #f9f9f9; /* Light background for contrast */
}

/* 🎡 Wheel Section */
#spin_the_wheel {
    position: relative;
    flex: 1;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer; /* Makes the entire wheel clickable */
    margin-top: 0px; /* Adjusts for ad placement */
}


/* 🌀 Wheel Canvas */
#wheel {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* 🎯 SPIN center circle */
#spin {
    font: bold 1.2em "Lato", sans-serif;
    user-select: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20%;
    height: auto;
    background: #fff;
    color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    font-size: 1em;
    aspect-ratio: 1 / 1; /* Ensures it's always a perfect circle */
}

#spin_the_wheel.initial canvas {
    opacity: 0.6; /* Make only the wheel transparent */
    transition: opacity 0.3s ease-in-out;
}

/* 🔹 Apply heartbeat animation only to the text */
/*#spin span {
    display: inline-block;
    animation: heartbeat 1.5s infinite ease-in-out;
}
*/
/* 🔹 heartbeat Animation */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* 🔹 Remove transparency & animation after first click */
#spin_the_wheel.active canvas {
    opacity: 1;
}

/* Remove heartbeat effect after first spin */
#spin_the_wheel.active #spin span {
    animation: none; 
}


#spin:hover {
    background: #f1f1f1;
}

#spin::after {
    content: "";
    position: absolute;
    top: -15px;
    border: 10px solid transparent;
    border-bottom-color: currentColor;
    border-top: none;
}

/* 🔹 Apply animation ONLY to the text inside #spin */
#spin span {
    display: inline-block;
    animation: heartbeat 1.5s infinite ease-in-out;
    transform-origin: center; /* Keeps the position stable */
}

/* 📜 Edit Options Section */
.options {
    flex: 1;
    max-width: 400px;
    text-align: center;
}
.options h3 {
    margin-bottom: 8px; /* Adds spacing */
}

.options span {
    display: block;
    color: grey;
    margin-bottom: 10px;
}

textarea {
    width: 100%;
    font-size: 16px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    resize: none;
}

/* 📱 Mobile Layout Adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .nav {
        display: none; /* Hide desktop nav */
    }

    .mobile-nav.active {
        display: flex;
    }

    .menu-icon {
        display: block; /* Show menu icon */
    }

    .wrapper {
        margin-top: 100px; /* Increase spacing for mobile */
    }


    .title {
        font-size: 1.8rem !important; /* Slightly smaller on mobile */
        margin-bottom: 5px !important;
        padding-top: 5px !important; /* Less top space on smaller screens */
    }

    .container {
        flex-direction: column; /* Stack elements vertically */
        align-items: center;
        text-align: center;
        gap: 20px;

        padding: 0; /* Remove padding for mobile */
        margin: 0; /* No extra spacing */
        border-radius: 0; /* Remove rounded corners */
        box-shadow: none; /* Remove shadow for a cleaner mobile look */
    }

    #spin {
        width: 18%; /* Slightly bigger for smaller screens */
        font-size: 0.8em; /* Adjust text size */
    }

    /* Make wheel large in mobile */
    #spin_the_wheel {
        width: 100%;
        max-width: 90vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #wheel {
        width: 90vw; /* Make wheel large in mobile */
        max-width: 90vw;
    }

    /* Move Edit Options Below Wheel */
    .options {
        order: 2; /* Forces the textarea to be BELOW the wheel */
        width: 90%;
        text-align: center;
    }

    textarea {
        font-size: 14px;
        width: 100%;
    }


    /* ==== POPUP STYLING MOBILE START==== */
    #popup {
        width: 90%;
        max-width: 350px;
        padding: 15px;
    }

    .popup-title {
        font-size: 18px;
    }

    .popup-winning-option {
        font-size: 20px;
        padding: 10px 15px;
    }

    .remove-btn {
        font-size: 14px;
        padding: 10px 15px;
    }

    .close-btn {
        font-size: 20px;
        top: 5px;
        right: 10px;
    }
    /* ==== POPUP STYLING MOBILE END ==== */


    .faq {
        width: 90%; /* More space on smaller screens */
        text-align: left;
    }

    .faq h2 {
        font-size: 28px;
    }

    .faq-item h3 {
        font-size: 20px;
    }

    .faq-item p,
    .faq-item li {
        font-size: 16px;
    }
}




/* ======= POPUP STYLING ======= */

/* Overlay for dimming the background */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10;
}

/* Prevent scrolling when the popup is visible */
#overlay:target,
#popup:target {
    position: fixed;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}


/* Popup container */
/* Flex container for buttons */
.popup-buttons {
    display: flex;
    justify-content: center;
    gap: 8px; /* Adds space between buttons */
    width: 100%;
    margin-top: 8px;
}


#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  width: 350px;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Popup title */
.popup-title {
  font-size: 20px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
}

/* Winning option display */
.popup-winning-option {
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  margin-bottom: 50px;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: 0.2s;
}

.close-btn:hover {
  color: red;
}

/* Remove Option & Close Button Styling */
/* Remove Option & Close Button Styling */
.remove-btn, .popup-close-btn {
    flex: 1; /* Makes both buttons equal in size */
    padding: 8px 15px; /* Reduce padding */
    font-size: 14px; /* Reduce font size */
    border-radius: 6px; /* Slightly smaller corners */
    cursor: pointer;
    transition: 0.3s ease-in-out;
    max-width: 120px; /* Limit width */
}

/* Remove Button (Blue Background) */
.remove-btn {
    background: #3A86FF;
    color: white;
    border: 2px solid #3A86FF;
}

/* Remove Button Hover */
.remove-btn:hover {
    background: white;
    color: #3A86FF;
}

/* Close Button (White Background with Blue Border) */
.popup-close-btn {
    background: white;
    color: #3A86FF;
    border: 2px solid #3A86FF;
}

/* Close Button Hover */
.popup-close-btn:hover {
    background: #3A86FF;
    color: white;
}

/* ======= END POPUP STYLING ======= */


/* 🎊 Confetti Canvas */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Don't interfere with clicks */
    z-index: 50; /* Above everything */
}



/* 🎯 Reset Button */
.reset-btn {
    color: white;
    background: #3A86FF;
    border: 2px solid #3A86FF;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
    margin: 15px auto 0; /* Center horizontally */
}

/* Hover Effect */
.reset-btn:hover {
    background: white;
    color: #3A86FF;
    border: 2px solid #3A86FF;
}

/* 🏗 Main Layout Wrapper */
.wrapper {
    margin-top: 80px; /* Adjust this based on header height */

    display: flex;
    flex-direction: column; /* Stack title above container */
    align-items: center; /* Center everything */
    justify-content: center;
    width: 100%;
    padding-top: 40px; /* Space from top */
}

/* 📌 Title Styling */
.title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px; /* Adds space between title and container */
    color: #333;
}



/* FAQ - START  */
/* 📜 FAQ Section */
.faq {
    max-width: 1100px; /* Increased width */
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

/* 🏷️ FAQ Title */
.faq h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* 🔹 Individual FAQ Items */
.faq-item {
    margin-bottom: 25px;
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd; /* Adds separation between items */
}

/* 🏷️ Question Titles */
.faq-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 📖 Answer Text */
.faq-item p,
.faq-item li {
    font-size: 18px; /* Slightly larger text */
    color: #444;
    line-height: 1.7; /* More spacing for readability */
}

/* 🔹 List Styling */
.faq-item ul {
    padding-left: 25px;
    text-align: left;
}

/* 🎛 Code Snippets */
.faq-item code {
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 16px;
    font-family: monospace;
}

/* FAQ - END  */



