/* General Styles */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    text-align: center;
    background: linear-gradient(135deg, #FFD700, #FF69B4);
    color: white;
    margin: 0;
    padding: 20px;
}


/* Containers */
.login-container, .signup-container {
    width: 350px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-in-out;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

label {
    font-size: 1.2em;
    margin-top: 10px;
}

input {
    padding: 10px;
    border: none;
    border-radius: 10px;
    margin-top: 5px;
    font-size: 1em;
    text-align: center;
}

button {
    margin-top: 15px;
    padding: 10px;
    border: none;
    border-radius: 15px;
    background: #32CD32;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #228B22;
    transform: scale(1.05);
}

/* Links */
p a {
    color: yellow;
    text-decoration: none;
    font-weight: bold;
}

p a:hover {
    text-decoration: underline;
}



/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff4500; /* Bright Orange */
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1.2em;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
    background: #ff6347; /* Tomato Red */
    transform: scale(1.1);
}


/* Animations */
@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Box Styles */
.kid-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: #ffeb3b; /* Bright Yellow */
    border: 5px solid #ff6347; /* Tomato Red */
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Fredoka One', sans-serif;
    font-size: 1.2em;
    text-align: center;
    color: #333;
    z-index: 1000;
    animation: pop-in 0.5s ease-out;
}

/* Pop-in Animation */
@keyframes pop-in {
    0% { transform: translate(-50%, -60%) scale(0.5); opacity: 0; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}


.kiddy-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffcc00;
    color: #333;
    font-size: 20px;
    font-weight: bold;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    animation: popUp 0.5s ease-in-out;
}

@keyframes popUp {
    0% { transform: translate(-50%, -60%) scale(0.8); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.kiddy-alert button {
    background-color: #ff5733;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.kiddy-alert button:hover {
    background-color: #ff2e00;
}




/* For screens smaller than 768px (tablets and mobile screens) */
@media screen and (max-width: 768px) {
    body{ font-family: 'Comic Sans MS',  sans-serif;}
    .login-container, .signup-container {
        width: 90%;
        margin: 50px auto;
        padding: 20px;
    }

    input, button {
        font-size: 1em;
        padding: 8px;
    }

    label {
        font-size: 1em;
    }

    button {
        font-size: 1em;
        padding: 8px 12px;
    }

    .back-btn {
        top: 15px;
        left: 15px;
        font-size: 1em;
        padding: 8px 15px;
    }

    .kid-alert {
        width: 90%;
        font-size: 1em;
    }

    .kiddy-alert {
        width: 90%;
        font-size: 18px;
    }
}

/* For screens smaller than 480px (small mobile screens) */
@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container, .signup-container {
        width: 100%;
        margin: 60px auto;
        padding: 1px;
    }

    input, button {
        font-size: 0.9em;
        padding: 6px;
    }

    label {
        font-size: 1em;
    }

    .back-btn {
        top: 10px;
        left: 10px;
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .kid-alert {
        width: 90%;
        font-size: 1em;
    }

    .kiddy-alert {
        width: 90%;
        font-size: 16px;
    }

    .kiddy-alert button {
        padding: 8px 15px;
        font-size: 16px;
    }
}
