/* Fonts */
body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background: linear-gradient(-45deg, #1f4037, #99f2c8, #6a11cb, #2575fc);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Gradient animation */
@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Container */
.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 70px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: scale(1.02);
}

/* Heading */
h2 {
    color: #1f4037;
    font-size: 50px;
    margin-bottom: 35px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    0% {opacity: 0; transform: translateY(-20px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* Inputs & select */
input[type="file"],
input[type="password"],
select {
    width: 100%;
    padding: 14px 18px;
    margin: 15px 0;
    border-radius: 10px;
    border: 2px solid #ccc;
    font-size: 16px;
    transition: all 0.4s ease;
}

input[type="file"]:hover,
input[type="password"]:hover,
select:hover {
    border-color: #2575fc;
    box-shadow: 0 0 15px rgba(37,117,252,0.3);
}

/* Submit button */
input[type="submit"] {
    background: linear-gradient(45deg, #1f4037, #99f2c8);
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

input[type="submit"]:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

input[type="submit"]:active {
    transform: scale(0.98) rotate(0deg);
}

/* File input button */
input[type="file"]::file-selector-button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #2575fc;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
    background: #6a11cb;
    transform: scale(1.05);
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    color: #fff;
    font-size: 16px;
}

footer a {
    color: #fff;
    margin: 0 15px;
    font-size: 30px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

footer a:hover {
    color: #ffdd59;
    transform: scale(1.3) rotate(-10deg);
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
 #howToUseBtn {
            background-color: #4CAF50;
            color: white;
            padding: 10px 15px;
            border: none;
            cursor: pointer;
            margin-bottom: 10px;
            font-size: 16px;
            transition: transform 0.2s ease, background-color 0.3s ease;
            border-radius: 5px;
        }

        #howToUseBtn:hover {
            background-color: #45a049;
            transform: scale(1.05);
        }

        #howToUseBtn:active {
            transform: scale(0.97);
        }

        /* Instruction Box with Animation */
        #howToUseBox {
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.5s ease, opacity 0.5s ease;
            border: 1px solid #ccc;
            padding: 0 15px;
            background-color: #f9f9f9;
            margin-top: 10px;
            border-radius: 5px;
        }

        #howToUseBox.show {
            max-height: 300px; /* Adjust if your content is longer */
            opacity: 1;
            padding: 15px;
        }
