/* customize.css */
* {
    box-sizing: border-box;
}

/* Spinner Styling */
#loadingSpinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1500; /* Higher than overlay but lower than reCAPTCHA */
}
.spinner-border {
    width: 3rem !important;
    height: 3rem !important;
}
/* Spinner Styles */
.spinner-border {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: #007bff !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


#recaptcha-container {
    display: none;
}

/* Retry Button Styling */
#retryRecaptcha {
    margin: 20px auto;
    display: block;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#retryRecaptcha:hover {
    background-color: #d32f2f;
}

#dimmingOverlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 240, 240, 0.7); /* Semi-transparent background */
    z-index: 1000; /* Lower than reCAPTCHA */
}

body {
    background-color: #f1f1f1;
    font-family: 'Raleway', sans-serif;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#customGameForm {
    background-color: #ffffff;
    margin: 100px auto;
    font-family: Raleway;
    padding: 40px;
    width: 20% !important;
    min-width: 400px;
}

h1 {
    font-family: 'Raleway', sans-serif;
    text-align: center;
}

input {
    padding: 4px;
    width: 100%;
    font-size: 17px;
    font-family: Raleway;
    border: 1px solid #aaaaaa;
    margin-bottom: 15px;
    /* Add spacing between elements */
}

/* Subdomain selection styling */
.subdomain-selection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}

/* Flexbox for aligning text and checkbox */
.subdomain-label {
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    /* Matches the input text size */
}

.subdomain-label input[type="checkbox"] {
    margin-left: 10px;
    /* Space between the text and checkbox */
    transform: translateY(2px);
    /* Fine-tuning the vertical alignment */
}

input[type="checkbox"] {
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
}

#terms {
    width: 20px;
    height: 20px;
    margin-bottom: 0px;
}

#customSubdomainCheckbox {
    width: 20px;
    margin-right: 10px;
    cursor: pointer;
}

#customSubdomainInput {
    margin-top: 10px;
    /* Space between checkbox and input */
    display: none;
    /* Hidden by default, will be shown if checkbox is checked */
}

#subdomainPreview {
    margin-top: 10px;
}

/* Mark input boxes that gets an error on validation: */
input.invalid {
    background-color: #ffdddd;
}

/* Hide all steps by default: */
.tab {
    display: none;
}

button {
    background-color: #04AA6D;
    color: #ffffff;
    border: none;
    margin-top: 5px;
    padding: 10px 20px;
    font-size: 17px;
    font-family: Raleway;
    cursor: pointer;
}

button:hover {
    opacity: 0.8;
}

#prevBtn {
    background-color: #bbbbbb;
}

/* Paypal style button */
#buyNowButton {
    background-color: #003087;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 17px;
    font-family: Raleway;
    cursor: pointer;
}

#paypal-button-container .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Make circles that indicate the steps of the form: */
.step {
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbbbbb;
    border: none;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
    background-color: #04AA6D;
}

.form-group {
    position: relative;
}

.dice-icon {
    position: absolute;
    right: 6px;
    top: 36%;
    transform: translateY(-50%);
    font-size: 24px;
    /* Adjust the size of the dice icon */
    cursor: pointer;
    color: #555;
    /* Adjust the color of the dice icon */
}

.dice-icon:hover {
    color: #007BFF;
    /* Change color on hover */
}

.defaultImages .radio-row {
    display: flex;
    /* Aligns items horizontally */
    align-items: center;
    /* Vertically aligns radio button and image */
    margin-bottom: 10px;
    /* Adds space between rows */
}

.defaultImages input[type="radio"] {
    width: 20px;
    /* Set the width of the radio button */
    margin-right: 10px;
    /* Space between radio button and image */
}

.defaultImages label {
    display: flex;
    align-items: center;
}

.defaultImages img.hero-preview {
    max-width: 100px;
    /* Set the maximum width for the preview image */
    height: auto;
}

.hero-preview {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    cursor: pointer;
}

.formHeroName {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.upload-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    /* Ensure image does not overflow the box */
}

/*
.upload-label {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
}
*/
.preview-image {
    max-width: 100%;
    /* Maintain aspect ratio */
    max-height: 100%;
    /* Maintain aspect ratio */
    object-fit: contain;
    /* Ensure image is contained without stretching */
    border-radius: 5px;
}

#customImageUpload {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#customImageUpload label {
    display: inline-block;
    margin-bottom: 10px;
}

.custom-image-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: transparent;
    overflow: hidden;
    box-sizing: border-box;
}

.custom-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.custom-image-box label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.custom-image-box input[type="file"] {
    display: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Media queries */
@media screen and (max-width: 600px) {
    #customGameForm {
        width: 80% !important;
        min-width: 300px;
        padding: 10px;
    }
}