* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1A2841;
    overflow: hidden; /* Hide scrollbars */

}
html {
    scrollbar-gutter: stable;
}
.logo{
    display: flex;
    flex-direction: column;
    margin: 220px 10px auto auto;
}
.logo img{
    width: 400px;
    max-height: 600px;
}
.logo p{
    margin: 0;
    font-size: 60px;
    color: #ffde23;
}
.wheel-container {
    position: relative;
    width: 800px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-container .spinBtn {
    position: absolute;
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #333;
    border: 4px solid rgba(0,0,0,0.75);
    cursor: pointer;
    user-select: none;
}

.wheel-container .spinBtn::before {
    content: '';
    position: absolute;
    top: -28px;
    width: 20px;
    height: 30px;
    background: #fff;
    clip-path: polygon(50% 0,15% 100%,85% 100%);
}

.wheel-container .wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 5px #333, 0 0 0 15px #fff, 0 0 0 18px #111;
}

.wheel-container .wheel .number {
    position: absolute;
    width: 50%;
    height: 50%;
    background: var(--clr);
    transform-origin: bottom right;
    transform: rotate(calc(30deg * var(--i))); /* Change from 45deg to 30deg for 12 segments */
    clip-path: polygon(0 0, 38% 0, 100% 100%, 0 40%);
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.wheel-container .wheel .number span {
    position: relative;
    left: 5px;
    transform: rotate(45deg);
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 3px 5px 2px rgba(0, 0, 0, 0.15);
    top: 5px;
}
.bg{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-image: url("assets/images/bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#prizeWheelForm{
    margin: 40px auto auto auto;
    background-color: #35496e;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    width: 850px;
    min-width: 320px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items:center;
    align-content:center;
}
#prizeWheelForm p{
    font-size: 30px;
    font-weight: 600;
    color: white;
    width: 100%;
    text-align: center;
}
.wheelFormInput{
    display: flex;
    flex-direction: column;
    align-items: start;
    align-content: start;
    margin: 6px 0px;
}
.wheelFormInput label{
    color: rgb(240, 240, 240);
    font-size: 26px;
    font-weight: 500;
}
.wheelFormInput input{
    margin-top: 4px;
    margin:4px 5px 0px 5px;
    background-color:#1A2841;
    border: 3px solid #294169;
    outline: none;
    color: white;
    font-size: 24px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 12px;
    transition: 0.2s ease-in-out;
}
.wheelFormInput input:focus{
    transition: 0.2s ease-in-out;
    border-color: white;
}
.wheelFormInput button{
    margin-top: 4px;
    background-color:white;
    border: none;
    outline: none;
    color: #1A2841;
    font-size: 24px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
}
.wheelform{
    width:100%;
    display:flex;
    justify-content:center;
    height:100vh;
}
#formMessages p{
    color: rgb(255, 80, 80);
    font-size: 24px;
    margin: 0;
}
.terms{
    font-size: 18px;
    color: white;
}

@media (max-width: 1240px) {
    .logo{
        margin: 40px auto 50px auto;
    }
    .wheel-container{
        margin: 40px 0px 120px 0px;
    }
          .wheel-container .wheel .number span {
        font-size:14px;
    }
       .wheel-container{
        width:500px;
        height: 500px;
    }
}
@media (max-width: 900px) {
    .logo img{
        width: 300px;
        max-height: 300px;
    }
    .wheel-container{
        width: 600px;
        height: 600px;
    }
    #prizeWheelForm{
        margin:20px 0px 0px 0px;
        width:80%;
    }
    .wheelform{
        width:100% !important;
    }
      .wheel-container .wheel .number span {
        font-size:14px;
    }
}
@media (max-width: 600px) {
    #prizeWheelForm{
        margin:20px 0px 0px 0px;
        width:80%;
    }
    .wheel-container{
        width: 500px;
        height: 500px;
        margin-bottom:500px;
    }
    .wheel-container .spinBtn{
        width: 70px;
        height: 70px;
    }
    .wheel-container .wheel .number span {
        font-size: 14px;
    }
    #prizeWheelForm p{
         font-size:22px;
    }
    .wheelFormInput label{
        font-size:22px;
    }
    #prizeWheelForm{
        height: fit-content;
        max-height: 700px;
        overflow-y: auto;   
        margin-bottom: 100;
        padding-bottom: 100px;
    }
    #prizeWheelForm p{
        margin:100px 0px 0px 0px;
    }
    #prizeWheelForm input{
        width: 90%;
    }
       .wheel-container .wheel .number span {
        font-size:12px;
    }
}
@media (max-width: 540px) {
    .wheel-container{
        width: 380px;
        height: 380px;
    }
    .wheel-container .wheel .number span {
        font-size:10px;
    }
    .wheelFormInput label{
        font-size:20px;
    }
    .wheelFormInput label{
        margin:0px 0px 0px 10px;
        font-size:20px;
    }
}
@media (max-width: 400px) {
  
    .wheel-container{
        width: 340px;
        height: 340px;
    }
    .wheel-container .spinBtn{
        width: 70px;
        height: 70px;
    }
    #prizeWheelForm{
        width: 100% !important;
    }
    .wheelform{
        width:100% !important;
    }
}
@media (max-width: 380px) {
      .wheel-container .wheel .number span {
        font-size:8px;
    }
    .wheel-container{
        width: 320px;
        height: 320px;
    }
}
@media (max-width: 350px) {
    .wheel-container{
        width: 290px;
        height: 290px;
    }
}

/* Styles for the loading screen */
.loading-screen {
    display: none; /* Hidden by default */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
    color: black; /* Change to black or another color to be visible on white */
    text-align: center;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    display: flex;
}
.loading-screen.show {
    display: flex; /* Show when .show class is added */
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: auto auto;
    position:relative;
    top:30%;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.show{
    display:block !important;
}