

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
   overflow: auto; 
}


canvas {
  display: block;
  max-width: 90vw;
  max-height: 90vw;
  margin: 20px auto;
}


 #spinWheelPopup {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #008386;
    z-index: 1000;
    overflow:hidden;
}

/* Main Popup */
.popup-content {
    background: #DFF1F1;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
   height: 80%; /* ✅ Let it expand based on content */
    max-height: 90vh; /* Prevent it from going beyond screen height */
    overflow-y: auto;
    width: 90%;
        max-width: 900px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* ✅ Center the popup content in the middle */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
    
}

/* Side-by-Side Layout */
.form-and-wheel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Form Section */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 45%;
}



/* Canvas Wheel */
canvas {
    border: 5px solid #fff;
    border-radius: 50%;
    max-width: 350px;
}

/* Buttons */
button {
    background: #008386;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover {
    background: #189ea1;
}

.hidden {
    display: none;
}




.form-section h2 {
    color: #008386;  /* Change this to any color you want */
    font-size: 25px;  /* Increase font size */
    font-weight: bold;  /* Make it bold */
    text-align: left;  /* Center the heading */
    margin-bottom:-10px;
}

.entry-content p {
    text-align: left;
    margin-bottom: 1.6em;
}








.wheel-container {
    position: relative;
    width: 300px; /* Make sure it matches the wheel */
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.wheel-arrow {
    position: absolute;
    /* top: -10px; */
    /* left: 50%; */
    transform: translateX(500%) rotate(210deg);
    width: 30px;
    margin-top: 180px;
    z-index: 10;
    pointer-events: none;
    color:#E78C15;
}

#spinWheel {
    display: block;
    border-radius: 50%;
}









body {
    font-family: 'Poppins', sans-serif;
   
}
/* Responsive Table */
.wp-list-table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Make Table Stack on Small Screens */
@media (max-width: 768px) {
    .wp-list-table thead {
        display: none;
    }
    
    .wp-list-table tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #ddd;
    }

    .wp-list-table td {
        display: block;
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .wp-list-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}



/* ================================ */
/* ✅ MOBILE VIEW - STACK FORM & WHEEL */
/* ================================ */
@media (max-width: 768px) {
    
    /* ✅ Centering Popup */
    .popup-content {
      background: #DFF1F1;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    width: 90%;
        max-width: 800px;
     max-height: calc(100vh - 20px); /* gives some breathing room */
    max-height: 100vh;
    overflow-y: auto;
    
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* ✅ Center the popup content in the middle */
    display: flex;
    flex-direction: column;
    align-items: center;
   
    }

    /* ✅ Stack Form & Wheel */
    .form-and-wheel {
        flex-direction: column;
        gap: 20px;
        align-items: center; /* ✅ Center items */
        justify-content: center;
        text-align: center; /* ✅ Ensure text is centered */
    }

    /* ✅ Make Form Full-Width */
    .form-section {
        width: 100%;
        text-align: center; /* ✅ Center text inside form */
    }

    .form-section h2, 
    .form-section p {
        text-align: center !important;
        margin: 0 auto;
    }

    /* ✅ Make Wheel Centered */
    .wheel-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        text-align: center;
    }

    #spinWheel {
        width: 100% !important;
        height: auto !important;
    }
    
    /* ✅ Input & Buttons Full Width */
    .form-section input, 
    .form-section button {
        width: 100%;
   
        font-size: 16px;
    }
    
        .terms-container {
        flex-direction: row;
        align-items: flex-start; /* Align properly on small screens */
        font-size: 14px; /* Adjust text size */
    }

    .terms-container input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* ================================ */
/* ✅ Extra Small Screens (Phones) */
/* ================================ */
@media (max-width: 480px) {
    
  .popup-content {
        background: #DFF1F1;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    width: 90%;
        max-width: 800px;
    height: auto !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* ✅ Center the popup content in the middle */
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: calc(100vh - 20px); /* gives some breathing room */
  overflow-y: auto;
    }

    /* ✅ Make Spin Button Full Width */
    .spin-button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
}





/* ================================ */
/* ✅ Style the Terms Checkbox & Label */
/* ================================ */
.terms-container {
    display: flex;
    align-items: center; /* Align checkbox and label */
    gap: 8px; /* Space between checkbox and text */
    font-size: 14px; /* Match text size with other form elements */
    color: #333; /* Text color */
    margin-top: 10px; /* Add spacing from the fields above */
}

/* ✅ Style the Checkbox */
.terms-container input[type="checkbox"] {
    width: 18px; /* Slightly larger checkbox for better UX */
    height: 18px;
    accent-color: #008386; /* Set checkbox color to match your theme */
    cursor: pointer;
}

/* ✅ Style the Label & Link */
.terms-container label {
    display: flex;
    align-items: center;
    cursor: pointer; /* Make clickable */
}

.terms-container a {
    color: #008386; /* Link color */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Make it stand out */
}

.terms-container a:hover {
    text-decoration: underline; /* Show underline on hover */
}
