html{
    scroll-behavior: smooth;
}

a{
    transition: all .3s ease-in-out;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #faf8ef;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

.logo {
    position: fixed; /* Fix it to the top-left */
    top: 20px;
    left: 20px; /* Adjust left spacing if needed */
    z-index: 10;
}

.logo a{
    color:  #203354;
    font-size: 2rem;
    text-decoration: none;
    font-weight: bold;
}
.logo a:hover{
    color: #fff;
    background: #203354;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background 0.4s, color 0.3s;
}
/* Navbar */
.nav-list {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    font-weight: 600;
    color: #203354;
    padding: 10px 20px;
    background-color: #fefbea;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #fefbea;
    background-color: #203354;
    padding: 20px 20px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.nav-list li {
    margin: 0 5px;
}

.nav-list a:hover {
    background-color: #203354;
    color: #faf8ef;
    border: 5px solid #faf8ef;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #203354;
    padding: 0;
    margin: 0;
    list-style-type: none;
    min-width: 120px;
    border-radius: 10px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    padding: 0;
}

.dropdown-content li a {
    display: block;
    padding: 8px 12px;
    color: #203354;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
    background-color: #203354;
}

.main-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: calc(100% - 30px);
    background-color: #fefbea;
    border: 5px solid #203354;
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto;
    margin-top: 90px;
}

.mainword{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: transparent;
    -webkit-text-stroke: 3px  #203354;
    text-transform: uppercase;
    
    
}
.main-do{
    position: relative;
    font-size: 13.5rem;
    font-weight: 900;
    right: 330px;
    top: 200px;
}
.main-you{
    font-size: 13.5rem;
    font-weight: 900;
    color: #203354;
    position: relative;
    bottom: 50px;
    left: 60px;
}
.main-understand{
    position: relative;
    font-size: 7rem;
    font-weight: 900;
    top: -100px;
    right: 100px;
    
}

.main-Physics{
    position: relative;
    font-size: 14rem;
    font-weight: 900;
    color: transparent;
    background-image: url('Equatioins.png');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    bottom: 150px;

}
.main-Physics{
    color: #203354;
}
.scroll-indicator{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7rem;
    color: #203354;
    animation: bounce 2s infinite;
    cursor: pointer;
}
.scroll-indicator:hover{
    opacity: 1;
}

@keyframes bounce {
    0%,100%{
        transform: translate(-50%,0);
    }
    50%{
        transform: translate(-50%,15px);
    }
    
}
.second-container{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: calc(100% - 30px);
    background-color: #203354;
    border: 5px solid #fefbea;
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto;
    margin-top: 30px;
    overflow: hidden;
}

.secondword{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    color: transparent;
    -webkit-text-stroke: 3px #fefbea;
    text-transform: uppercase;
}

.idontword{
    font-size: 15rem;
    font-weight: 900;
    color: #fefbea;
    position: relative;
    right: 0px;
    top: 0px;

}

.made{
    position: relative;
    font-size: 8rem;
    font-weight: 900;
    color:#203354;
    background-image: url('Equatioins_2.jpeg');
    background-size: cover;
    background-position: center;
    -webkit-background-clip: text; /* Clips the background to the text */
    background-clip: text; 
    
}

.third-container{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: calc(100% - 30px);
    background-color: #203354;
    border: 5px solid #fefbea;
    border-radius: 15px;
    padding: 15px;
    margin: 0 auto;
    margin-top: 30px;
    overflow: hidden;
    
}
.scroll-indicator1{
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7rem;
    color: #fefbea;
    animation: bounce 2s infinite;
    cursor: pointer;
}

#chat-container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(32, 51, 84, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 3px solid #fefbea;
}
#messages {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    
}

#messages::-webkit-scrollbar {
    width: 8px;
}

#messages::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

#messages::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

#messages div {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

#messages .user {
    background-color: #007bff;
    color: white;
    text-align: right;
    padding: 15px;
    margin: 10px 0;
    border-radius: 15px 15px 0 15px;
    max-width: 60%;
    align-self: flex-end;
}

#messages .ai {
    background-color: rgba(0, 0, 0, 0.7);   
    color: #fff;
    text-align: left;
    margin: 10px 0;
    border-radius: 15px 15px 15px 0;
    max-width: 60%;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.8;
}

.ai-response {
    padding: 10px;
    border-radius: 10px;
    color: white;
    line-height: 1.8;
}


.ai-response .step-header {
    font-size: 1.3em;
    font-weight: bold;
    color: #203354;
    margin-top: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.summary-header {
    font-size: 1.3em;
    font-weight: bold;
    color: #007bff;
    margin-top: 15px;
    text-align: center;
    text-decoration: underline;
}

.equation {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007bff;
    padding: 8px;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    color: #333;
}

.ai-response .summary-header {
    font-size: 1.4em;
    font-weight: bold;
    color: #007bff;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: center;
    text-decoration: underline;
}


.ai-response ul {
    margin: 10px 0 10px 20px;
    padding-left: 20px;
    list-style-type: disc;
    font-size: 1em;
    line-height: 1.5;
}


.ai-response .equation {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007bff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    overflow-x: auto;
}


.ai-response p {
    margin: 10px 0;
}


.ai-response .question {
    font-style: italic;
    color: #555;
    margin-top: 20px;
}


#chat-form {
    display: flex;
    margin-top: 10px;
}
#user-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

#user-input:focus {
    border-color: #007bff;
}

#chat-form button {
    padding: 12px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

#chat-form button:hover {
    background-color: #0056b3;
}

.typing-indicator {
    display: flex;
    justify-content: left;
    align-items: center;
    margin: 10px 0;
    color: #888;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #888;
    border-radius: 50%;
    animation: typing 1.5s infinite ease-in-out;
}


.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}


@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    #chat-container {
        width: 95%;
    }

    #user-input {
        font-size: 14px;
    }

    #chat-form button {
        font-size: 14px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .idontword {
        font-size: 7rem;
    }

    .made {
        font-size: 5rem;
    }

    .main-you {
        font-size: 6rem;
        top: -10px;
        left: 0px;
    }

    .main-do{
        position: relative;
        font-size: 6rem;
        font-weight: 900;
        right: 180px;
        top: 100px;
    }

    .main-understand{
        position: relative;
        font-size: 4.5rem;
        font-weight: 900;
        top: -25px;
        right: 0px;
    }

    .main-Physics{
        position: relative;
        font-size: 7rem;
        font-weight: 900;
        color: transparent;
        background-image: url('Equatioins.png');
        background-size: cover;
        background-position: center;
        -webkit-background-clip: text; /* Clips the background to the text */
        background-clip: text; 
        -webkit-text-fill-color: transparent;
        bottom: 50px;

    }

}
    