/* General styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Form container styling */
.form-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Logo styling */
.logo-container {
    text-align: center;
    margin-bottom: 15px;
}

.logo {
    width: 120px; /* Adjust the size of the logo */
    height: auto;
}

/* Form heading */
h2 {
    text-align: center;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

p{
    text-align: center;
}
/* Form group styling */
.form-group {
    margin-bottom: 10px;
    
}

.form-group span {

    color: #f44336;
}

/* Labels */
label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    display: block;
    font-weight: bold;
}

/* Input fields, select boxes */
input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
}
/* Radio button group styling */
.radio-group {
    display: flex;
    gap: 20px; /* Add spacing between Yes and No options */
    align-items: center; /* Align radio buttons and labels vertically */
}

.radio-group label {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center; /* Ensures label text is aligned with the radio button */
}

/* Style for radio inputs */
.radio-group input[type="radio"] {
    margin-right: 5px; /* Adds space between the radio button and the label text */
    -webkit-appearance: radio; /* Ensures default appearance in WebKit browsers */
    -moz-appearance: radio; /* Ensures default appearance in Mozilla browsers */
    appearance: radio; /* Standard appearance */
    width: auto; /* Ensures width does not exceed normal size */
    height: auto; /* Ensures height does not exceed normal size */
}

/* Add custom styles for better compatibility */
.radio-group input[type="radio"]:disabled {
    opacity: 0.6; /* Make disabled radios look different */
}

/* Add focus styles */
.radio-group input[type="radio"]:focus {
    outline: none; /* Remove default outline */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Add custom focus effect */
}
    


/* Canvas (Signature Pad) styling */
canvas {
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    height: 150px;
    margin-top: 5px;
}

/* Button styling */
button {
    cursor: pointer;
}

.clear-button {
    margin-top: 10px;
    padding: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 15px;
    font-weight: bold;
}

.clear-button:hover {
    background-color: #d32f2f;
}

.submit-button:hover {
    background-color: #45a049;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }

    h2 {
        font-size: 18px;
    }

    label {
        font-size: 13px;
    }

    input, select, button {
        font-size: 13px;
    }

    .submit-button {
        padding: 10px;
        font-size: 14px;
    }
}


/* Spinner Styles */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* Light background */
    border-top: 4px solid #ffffff; /* White color */
    border-radius: 50%;
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    animation: spin 1s linear infinite; /* Spinner animation */
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}




/* Keyframes for spinning the logo container */
@keyframes spinLogo {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.logo-container-logo {
    position: relative;
    width: 500px; /* Adjust size as needed */
    height: 300px;
    transform-style: preserve-3d; /* Enable 3D rotation */
    animation: spinLogo 5s linear infinite; /* 5 seconds for full spin */
}

.overlay-logo {
    position: absolute;
    width: 100%;
    height: auto;
    backface-visibility: hidden; /* Hide the backface during rotation */
    transition: transform 0.6s ease-in-out;
}

.front-image {
    transform: rotateY(0deg); /* logo 1 diri */
}

.back-image {
    transform: rotateY(180deg); /* logo 2 ni diri hidden  */
}

/* Existing styles for overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: top 0.5s ease-in-out;
    z-index: 9999;
}

.overlay.hidden {
    top: -100%;
}



/**
.overlay-text {
    color: #fff; 
    font-size: 50px; 
    margin-top: 20px; 
    text-align: center; 
    font-family: 'Arial', sans-serif; 
}

*/


