/* General reset and responsive styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: powderblue !important;
    color: #333;
    height: 100%;
    text-align: center;
    padding: 20px;
}

/* Responsive payment form styling */
#paymentForm {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ECEFF1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Payment image styling */
.payment-image {
    display: block;
    margin: 10px auto;
    width: 100%;  
    max-width: 400px;  /* Default for larger screens */
    height: auto;
}

/* Logo image styling */
.logo-image {
    display: block;
    margin: 10px auto;
    width: 100%;
    max-width: 200px;  /* Default size for logo */
    height: auto;
}

/* Adjust the image size for smaller screens */
@media (max-width: 500px) {
    .payment-image {
        max-width: 400px; /* Reduce for smaller screens */
    }

    .logo-image {
        max-width: 200px; /* Smaller logo for mobile screens */
    }
}

/* Adjust the image size for tablets and PCs */
@media (min-width: 768px) {
    .payment-image {
        max-width: 400px; /* Maintain size for larger screens */
    }

    .logo-image {
        max-width: 200px; /* Keep logo size consistent */
    }
}

/* Login form styling */
#login-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ECEFF1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

input[type="email"],
input[type="tel"],
input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Styling for dropdown */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><polygon points="0,0 10,0 5,6" fill="green"/></svg>') no-repeat right 10px center;
    background-color: #fff;
    background-size: 12px;
    padding-right: 30px;
    font-size: 16px;
    font-weight: 500;
    color: green;
    width: 100%;
    border-radius: 4px;
}

/* Buttons */
button.login-btn,
button.buy-now-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

/* Voucher and Message Styling */
.message-bold {
    font-weight: bold;      /* Make the message bold */
    font-size: 1.2rem;      /* Increase the font size */
    color: #6c757d;         /* Use the muted color */
    text-align: center;
}

/* Voucher Code Styling */
.voucher {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    background-color: #ECEFF1;
    border-radius: 8px;
    margin: 10px 0;
}

.voucher span {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #FFD700; /* Yellow background for the voucher */
    color: #333;
    padding: 10px;
    border-radius: 5px;
}

/* Adjusting for smaller screens */
@media (max-width: 500px) {
    .voucher span {
        font-size: 1.2rem; /* Smaller font size for mobile */
        padding: 8px;
        width: auto;
    }
}

/* Blinking effect for the Back to Home link */
.blink {
    animation: blinker 1s linear infinite; /* Blinking animation */
}

@keyframes blinker {
    50% {
        opacity: 0; /* Make it disappear at 50% of each cycle */
    }
}

.text-red {
    color: red;
    font-weight: bold;
}

/* Restore font for Back to Home link */
.link a {
    font-size: 0.8rem; /* Smaller font size for the Back to Home link */
    font-weight: bold;
}

button.login-btn {
    background-color: #FF6347; /* Red */
}

button.login-btn:hover {
    background-color: #8B0000; /* Darker red */
}

button.buy-now-btn {
    background-color: #007bff;
}

button.buy-now-btn:hover {
    background-color: #0056b3;
}

.powered-by {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

/* Info Text Styling */
.info {
    font-weight: bold;      /* Make text bold */
    font-style: italic;     /* Make text italic */
    color: #9e3c3c;         /* Match the overall theme color */
    font-size: 12px;        /* Small font size */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 15px;
    }

    #paymentForm, #login-form {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 10px;
    }
}

@media (max-width: 500px) {
    #paymentForm, #login-form {
        max-width: 100%;
        padding: 10px;
    }
    
    body {
        font-size: 14px;
        padding: 10px;
    }
}
