/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* BODY GRID LAYOUT */

body {
    background-image: url('/public/bg7.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
}

section #main-sec {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    min-height: 100vh;
    /* display: flex;
    flex-direction: row;
    justify-content: space-evenly; */
}


/* MAIN CONTENT CENTERED */

.main {
    grid-column: 2;
    display: grid;
    place-items: center;
}


/* CONTENT CONTAINER */

.content {
    width: 100%;
    max-width: 750px;
    display: grid;
    gap: 20px;
}


/* OUTPUT AREA */

.output-area {
    background: rgba(51, 50, 50, 0.5);
    border-radius: 12px;
    padding: 20px;
}


/* INPUT AREA ROW */

.input-area {
    display: grid;
    grid-template-columns: 30px 1fr 50px;
    align-items: center;
    gap: 10px;
    background: rgba(51, 50, 50, 0.5);
    padding: 15px;
    border-radius: 30px;
}


/* TEXTAREA STYLE */

textarea {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    border: none;
    outline: none;
    resize: none;
    padding: 15px;
    font-size: 18px;
    background: transparent;
    color: white;
}


/* INPUT FIELD */

#userInput {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.6);
    color: rgb(0, 0, 0);
    font-size: 16px;
}


/* SEND BUTTON */

#sendButton {
    height: 45px;
    width: 45px;
    border-radius: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 25px;
    font-weight: bolder;
    cursor: pointer;
}

#sendButton:hover {
    font-weight: bolder;
    color: black;
    background: rgba(255, 255, 255, 0.35);
}


/* PLUS BUTTON */

.plus label {
    font-size: 40px;
    padding: 9px;
    cursor: pointer;
    color: white;
}

#fileInput {
    display: none;
}

#footer {
    width: 100%
}


@media (max-width: 900px) {

    section {
        grid-template-columns: 1fr;
    }

    .main {
        grid-column: 1 / -1;
        padding: 15px;
    }

    .content {
        width: 100%;
        max-width: 95%;
        margin: auto;
    }

    textarea {
        height: 240px;
        font-size: 15px;
    }

    .input-area {
        grid-template-columns: 25px 1fr 45px;
        gap: 8px;
        padding: 10px;
    }

    #userInput {
        font-size: 14px;
        padding: 8px;
    }

    #sendButton {
        height: 42px;
        width: 42px;
        font-size: 18px;
    }

    .plus label {
        font-size: 28px;
        padding: 5px;
    }
}

/* SIDEBAR


/* ------------------------------------------- 

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: rgba(0, 0, 0, 0.85);
    color: rgb(255, 255, 255);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
}

#toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    font-size: larger;
    background: rgba(0, 0, 0, 0.4);
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.sidebar.active {
    transform: translateX(0);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1002;
}

#closeSidebar {
    opacity: 1;
    pointer-events: all;
}

a {
    text-decoration: none;
    color: white
}

ul {
    list-style: none;

    li {
        margin: 15px 0;
    }
}

button {
    background-color: rgba(0, 0, 0, 0);
}

#closeSidebar {
    border: none;
    color: white;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    left: 200px;
    font-size: 25px;
}



#logo {
    width: 35px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.nav-btn {
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: start;
}

.nav-btn:hover {
    background: #ffffff;

    a {
        text-decoration: none;
        color: rgb(0, 0, 0)
    }

    transform: scale(1.15);
} */


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: rgba(0, 0, 0, 0.85);
    color: rgb(255, 255, 255);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;

    a {
        text-decoration: none;
        color: white
    }
}



#toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    font-size: larger;
    background: rgba(0, 0, 0, 0.4);
    color: rgb(255, 255, 255);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

.sidebar.active {
    transform: translateX(0);
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1002;
}

#closeSidebar {
    opacity: 1;
    pointer-events: all;
}

ul {
    list-style: none;

    li {
        margin: 15px 0;
    }
}

button {
    background-color: rgba(0, 0, 0, 0);
}

#closeSidebar {
    border: none;
    color: white;
    font-size: 25px;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    left: 200px;
}

.nav-btn {
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    text-align: start;
}

.nav-btn:hover {
    background: #ffffff;

    a {
        text-decoration: none;
        color: rgb(0, 0, 0)
    }

    transform: scale(1.15);
}

#logo {
    width: 40px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.head a {
    text-decoration: none;
    color: white;
    display: flex;

    justify-content: center;
    align-items: center;

}

.head {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: var(--space-md);



    display: flex;
    flex-direction: column;
    gap: var(--space-sm);



}

.head h2 {
    text-align: center;
    font-size: 35px;
}


header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    padding-bottom: 40px;

}

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: left;
}

.head img {
    width: 50px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    margin-top: 10px;

}

#head {
    width: 100%;
    text-align: center;
    color: white;

    h1 {
        font-size: 35px;
        font-weight: bold;
    }

    h3 {
        font-size: 20px;
        font-weight: normal;
    }
}