.s_event_prize {
    margin: 0;
    background: black;
    color: white;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
   /* min-height: 100vh;*/ Ensure the container takes the full height of the viewport 
}

/* Center the serial input container */
.serial_container_prize {
    padding: 5px;
    width: 80%;
    margin: 0 auto 25px;
}

/* Style for the text box */
.text_box_serial_prize {
    width: 100%;
    padding: 8px;
    border: 1px solid #999;
    border-radius: 5px;
    text-align: center;
    font-size: xx-large;
    margin: 10px 0 -10px;
}

/* Optional focus style for the text box */
.text_box_serial_prize:focus {
    border-color: #C29C3D;
    outline: none;
    background-color: #e6f7ff;
}

/* Center the luck result view text */
.luck_result_view {
margin-top: -40px;
    font-size: 40px;
    text-align: center;
    padding-top: 0px;
    margin-bottom: -40px;
}

/* Container for the scratch card and canvas */
.scratch-container {
    width: 600px;
    height: 300px;
    border-radius: 10px;
    margin: 20px auto;
    position: relative;
    background-color: #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}

/* Canvas covers the entire scratch card */
#scratch-card1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grabbing;
    border-radius: 5px;
    z-index: 1;
}

/* Scratch card text (hidden under canvas) */
.scratch-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: white;
}

/* Style for the code inside the scratch card */
.scratch-card-code {
    z-index: 0;
    color: #000000;
    font-size: 35px;
}

/* Modal Section */
.modal-custom-scratch-card {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 11%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: flex-start;
    justify-content: center;
	
	user-select: none; /* Prevents text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Modal Content/Box */
.modal-content-custom-scratch-card {
    background-color: white;
    padding: 20px;
    border: 1px solid #C29C3D;
    min-width: 300px;
    max-width: 900px;
    text-align: center;
    border-radius: 8px;
    padding-inline: 4em;
}

.modal-content-custom-scratch-card p {
    font-size: 2rem;
    font-weight: bold;
    color: black;
}

#custom-scratch-modal-title {
    font-size: 3.2rem;
    font-family: "Lobster";
    text-shadow: 0px 4px 7px #C29C3D;
    background: linear-gradient(to right, #C29C3D 0%, #939393 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons inside modal */
.modal-custom-scratch-card button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding-inline: 2em;
    font-size: large;
}

/* Confirm Button */
.confirm-btn-custom-scratch-card {
    background-color: #C29C3D;
    color: white;
}

/* Cancel Button */
.cancel-btn-custom-scratch-card {
    background-color: #f44336;
    color: white;
}

#fireworks-scratch-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Mobile Portrait View (up to 768px wide) */
@media (max-width: 768px) and (orientation: portrait) {
    .modal-content-custom-scratch-card {
        width: 90%;
        height: auto;
        padding: 10px;
    }

    .modal-content-custom-scratch-card p {
        font-size: 1.5rem;
    }

    #custom-scratch-modal-title {
        font-size: 2.2rem;
    }

    .scratch-container {
        width: 350px;
        height: 200px;
    }

    #scratch-card1 {
        width: 100%;
        height: 100%;
    }

    .modal-custom-scratch-card {
        left: 0%;
        top: 11%;
    }
	    .luck_result_view {
        font-size: 30px;
		margin-top: -5%;
    }
}

/* Large Vertical Screens (over 1800px height) */
@media (min-height: 1800px) and (orientation: portrait) {
    .s_event_prize {
        height: 56vh;
    }

    .text_box_serial_prize {
        font-size: xxx-large;
    }

    .modal-custom-scratch-card {
        top: 5%;
        /*left: 12%;*/
    }

    .scratch-card-code {
        font-size: 50px;
    }

    .modal-custom-scratch-card button {
        font-size: x-large;
    }

    .luck_result_view {
        font-size: 50px;
    }
}