/* ================= GENERAL STYLING ================= */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #26c00b, #2196F3, #FF9800);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    color: #000;
    text-align: center;
    line-height: 1.6;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ================= MAIN CONTENT ================= */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ================= HEADER ================= */
.header-area {
    background-color: #ffffff;
    padding: 10px 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* HEADER LOGO */
.logo img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 50%;
    
}

/* ================= NAVIGATION ================= */
nav {
    background: transparent;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: 17px;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #facc15; /* 💛 Yellow accent */
}
/*  ************************************************************************************************************* */
/* Notepad Styles */
.notepad-container {
    width: 90%;
    max-width: 900px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#notepad {
    border: 1px solid #ccc;
    padding: 10px;
    min-height: 200px; /* Minimum height for the editable area */
    max-height: 300px; /* Maximum height */
    overflow-y: auto; /* Allow scrolling */
    overflow-wrap: break-word; /* Break long words */
    font-family: 'Arial', sans-serif; /* Ensure a proper font */
    font-size: 16px; /* Set the font size */
    outline: none; /* Remove the default outline */
    white-space: pre-wrap; /* Preserve whitespace */
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

/* Keyboard Styles */
.keyboard-container {
    width: 90%;
    max-width: 900px;
    background: white;
    padding: 15px;
    border-radius: 70px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.keyboard-keys {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.branah-key {
    width: 40px;
    height: 50px;
    margin: 3px;
    font-size: 16px;
    text-align: center;
    background-color: #f0f8ff; /* Light blue */
    border: 1px solid #add8e6; /* Light blue border */
    border-radius: 5px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}

.branah-key:hover {
    background-color: #e0ffff; /* Light cyan on hover */
}

.special-key {
    width: 60px;
    background-color: #ffdab9; /* Light peach */
    border: 1px solid #ffb6c1; /* Light pink border */
}

#branah-space {
    width: 200px;
    background-color: #ffffe0; /* Light yellow */
    border: 1px solid #ffd700; /* Gold border */
}

/* Footer Styles */
/* ================= FOOTER ================= */
/*-------------------------------------
        Footer
--------------------------------------*/
/* ================= FOOTER ================= */

.footer {
    background: #151a23; /* dark blue-black */
    color: #e5e7eb;
    padding: 50px 20px 20px;
    font-family: Arial, sans-serif;
}

/* Top Section */
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    align-items: flex-start;
}

/* Logo Section */
.footer-logo img {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-logo h3 {
    font-size: 24px;
    margin: 5px 0;
    color: #facc15; /* yellow 💛 */
}

.footer-logo h3 span {
    color: #38bdf8;
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5f5;
}

/* Navigation */
.footer-nav h4,
.footer-social h4 {
    margin-bottom: 12px;
    font-size: 18px;
    color: #facc15;
}

.footer-nav a {
    display: block;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 15px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #facc15;
}

/* Social Icons */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 5px 8px 0 0;
    border-radius: 50%;
    background: #1e293b;
    color: #facc15;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #facc15;
    color: #0f172a;
    transform: translateY(-3px);
}

/* Bottom Legal Section */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
}

.footer-bottom h4 {
    color: #facc15;
    margin-bottom: 15px;
}

.footer-bottom p {
    font-size: 13px;
    line-height: 1.7;
    color: #cbd5f5;
    max-width: 900px;
    margin: auto;
}

.footer-bottom .copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #94a3b8;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer-social a {
        margin: 6px;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .header-area {
        flex-direction: column;
        gap: 10px;
    } 

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

}


/**************************************************/
/* ================= NOTEPAD + KEYBOARD CENTER COLUMN ================= */

/* Notepad & keyboard ko ek vertical line me lane ke liye */
.notepad-container,
.keyboard-container {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* Header ke niche proper spacing */
.notepad-container {
    margin-top: 30px;
}

/* Keyboard spacing */
.keyboard-container {
    margin-bottom: 40px;
}

/* Toolbar responsive alignment */
.toolbar {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Buttons center */
.buttons {
    justify-content: center;
    gap: 20px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .notepad-container,
    .keyboard-container {
        width: 95%;
    }

    .keyboard-container {
        border-radius: 25px; /* mobile me 70px bahut zyada lagta */
    }
}
