html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

body {
    background: #0d0f16;

    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;

    display: flex;
    flex-direction: column;
    max-height: 100%;
    background: linear-gradient(270deg, #0d0f16, #15182a, #0d0f16);
    background-size: 600% 600%;
    animation: gradientMove 15s ease infinite;
}

@keyframes sway {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes FadeInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes FadeInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes FadeInBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes FadeInTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* navbar */

.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 7vh;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;

    background: #131520;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    z-index: 9999;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.navbar-buttons {
    display: flex;
    align-items: center;
    gap: 50px;
}

.navbar-dashboard,
.navbar-create,
.navbar-ai {
    width: 5vh;
    height: 5vh;
    border-radius: 20px;
    font-size: 30px;
    font-weight: 800;
    color: white;

    background: rgba(162, 155, 254, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-create {
    transform: translateY(-30px);
    width: 7.5vh;
    height: 7.5vh;
    border-radius: 30px;
    font-size: 40px;
    border: none;
}

/* topbar */

.topbar-content {
    background: #131520;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 15px;
    height: 6vh;
    align-items: center;
}

.topbar-heading {
    padding-left: 15px;
    font-size: 30px;
    font-weight: 700;
    color: #a29bfe;
    animation: sway 3s ease-in-out infinite;
}

/* Title */

.Title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: 60vh;
}

.Heading {
    color: white;
    margin-bottom: 10px;
    font-size: 45px;
}

.subheading {
    font-weight: 600;
    color: white;
    margin-top: 0;
    font-size: 20px;
}

/* search bar */

.search-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
}

.search-bar.active {
    position: fixed;
    left: 50%;
    bottom: 1px;
}

@keyframes dropDown {
    from {
        transform: translate(-50%, -80px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.Ask-nova {
    padding: 12px;
    text-align: center;
    display: block;
    background-color: transparent;
    border: #a29bfe 1px solid;
    font-size: 20px;
    font-weight: 800;
    color: white;
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 12px;
}

.Ask-nova::placeholder {
    color: white;
    font-size: 20px;
}

.search-suggest {
    margin-top: 15px;
    width: 80%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
}

.search-bar.active .search-suggest {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}


.study-what,
.quiz,
.explain {
    background-color: transparent;
    color: white;
    border: none;
    text-decoration-line: underline;
    padding: 3px;
    font-weight: 700;
    border-radius: 7px;
}

.input-wrapper {
    display: flex;
    flex-direction: row;
    position: relative;
    width: 90%;
    max-width: 500px;
}

.input-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 7px;

    background: rgba(162, 155, 254, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* answer box */

.answer-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.answer-box {
    width: 75%;

    height: 45vh;
    min-height: 150px;

    background: rgba(19, 21, 32, 0.9);

    border: 1px solid rgba(162, 155, 254, 0.35);
    border-radius: 20px;

    padding: 25px;

    backdrop-filter: blur(12px);

    overflow-y: auto;
    overflow-x: hidden;

    display: none;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.answer-box.active {
    display: block;
}

.answer {
    color: #f5f5f5;

    font-size: 20px;
    font-weight: 500;

    line-height: 1.8;

    margin: 0;

    white-space: pre-wrap;
    word-wrap: break-word;
}

.answer-box::-webkit-scrollbar {
    width: 6px;
}

.answer-box::-webkit-scrollbar-thumb {
    background: #a29bfe;
    border-radius: 10px;
}

.msg {
    width: 100%;
    margin: 8px 0;
    padding: 10px 14px;
    border-radius: 12px;
}

.msg.user {
    align-self: flex-end;
    background: rgba(162, 155, 254, 0.2);
    max-width: 90%;
}

.msg.ai {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    max-width: 90%;
}

.your-chats {
    display: flex;
    margin-left: auto;
    margin-right: 10px;
    border-radius: 10px;
    background: rgba(162, 155, 254, 0.15);
    color: white;
}

.your-chats option {
    background: #131520;
    color: white;
}

.new-chat {
    background: rgba(162, 155, 254, 0.15);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    margin-left: 15px;
}

/* animations */

.Heading {
    animation: FadeInTop 0.5s ease;
}

.subheading {
    animation: FadeInTop 0.5s ease 0.2s backwards;
}

.Ask-nova {
    animation: FadeInTop 0.5s ease 0.4s backwards;
}

.input-wrapper i {
    animation: FadeInTop 0.5s ease 0.4s backwards;
}

.study-what {
    animation: FadeInLeft 0.5s ease 0.4s backwards;
}

.quiz {
    animation: FadeInLeft 0.5s ease 0.6s backwards;
}

.explain {
    animation: FadeInLeft 0.5s ease 0.8s backwards;
}

@media (min-width: 540px) and (max-width: 1115px) {
    .navbar-dashboard,
    .navbar-create,
    .navbar-ai {
        font-size: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* iPhone SE */
@media (max-width: 375px) {
        .Heading {
            font-size: 30px;
        }
    
        .subheading {
            font-size: 16px;
        }
    
        .Ask-nova {
            font-size: 16px;
        }
    
        .Ask-nova::placeholder {
            font-size: 16px;
        }
    
        .input-wrapper i {
            font-size: 20px;
        }
    
        .study-what,
        .quiz,
        .explain {
            font-size: 14px;
        }

        .new-chat{
            width: 30%;
            height:3vh;
            display:flex;
            justify-content:center;
            align-items:center;
        }

        .navbar-dashboard,
        .navbar-create,
        .navbar-ai {
            font-size: 25px;
            display:flex;
            justify-content:center;
            align-items:center;
        }
}

/* TABLET ELEMETNS */



/* TABLET VIEW*/

@media (min-width: 769px) and (max-width: 1024px) {

    .your-chats{
        width: 20%;
        height:3vh;
        font-size: 18px;
    }

    .input-wrapper {
        width: 85%;
        max-width: none;
    }

    .input-wrapper i {
        font-size: 30px;
    }

    .Ask-nova {
        width: 100%;
        font-size: 30px;
    }

    .Ask-nova::placeholder {
        font-size: 30px;
    }

    .Heading {
        font-size: 50px;
    }

    .subheading {
        font-size: 22px;
    }

    .study-what,
    .quiz,
    .explain {
        font-size: 18px;
    }

    .new-chat{
        width: 20%;
        height:3vh;
        font-size: 18px;
    }
}

.search-bar {
    width: 100%;
}

.search-bar.active {
    position: fixed;
    bottom: 1px;
    transform: translateX(-50%);
    width: 100%;
}


/* pc/ laptop elements */

.laptop-sidebar {
    display: none;
}


/* pc/laptop view */
@media (min-width: 1367px)  {
    .laptop-sidebar {
        display: flex;
        width: 15%;
        height: 95vh;
        position: fixed;
        left: 0;
        bottom: 0;
        background-color: #131520;
    }

    .sidebar-buttons {
        width: 100%;
        padding-top: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .task-bar,
    .dashboard-bar,
    .Ai-bar,
    .quick-add-task {
        width: 55%;
        height: 3vh;
        background-color: #a29bfe;
        border-radius: 10px;
        color: white;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 5px;
        transition: 0.5s ease;
    }

    .task-bar:hover,
    .dashboard-bar:hover,
    .Ai-bar:hover,
    .quick-add-task:hover {
        filter: brightness(1.2);
        transform: translateY(-2px);
    }

    .ask-nova-input {
        width: 60%;
        height: 3vh;
        background-color: transparent;
        border: solid grey 1px;
        border-radius: 10px;
        margin-bottom: 20px;
        display: flex;
    }

    .ask-nova-input::placeholder {
        color: white;
        font-size: 20px;
        font-weight: 700;
        text-align: center;
    }

    .navbar {
        display: none;
    }

    .Heading {
        font-size: 70px;
    }

    .subheading {
        font-size: 30px;
    }

    .input-wrapper {
        width: 85%;
        max-width: none;
    }

    .app {
        margin-left: 15%;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar.active {
        position: fixed;

        left: calc(50% + 7.5%);
        transform: translateX(-50%);
        width: 80%;
    }

    .answer-box {
        height: 45vh;
    }

    .Ask-nova {
        height: 3vh;
        font-size: 40px;
    }

    .Ask-nova::placeholder {
        font-size: 40px;
    }

    .input-wrapper i {
        font-size: 30px;
    }
}