* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    margin: auto;
    max-width: 1200px;
}
.ct h1{
    color: white;
    margin-top: 15px;
}

/* this is the sub part */

.contain {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}
h1 {
    font-size: 24px;
    color: #1a3c5e;
    margin-bottom: 20px;
}
#search {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#buttons-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.area-button {
    background-color: #fff;
    border: 1px solid #1a3c5e;
    border-radius: 4px;
    padding: 15px;
    font-size: 16px;
    color: #1a3c5e;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}
.area-button:hover {
    background-color: #e6f0ff;
}
.cube {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #1a3c5e;
    margin-right: 10px;
}

.ct{
    display: flex;
    justify-content: space-between;
}

header {
    background: #2D336B;
    color: #fff;
    padding: 0rem 0;
    padding-top: 15px;
}

header h1 {
    text-align: center;
    padding-bottom: 30px;
}

nav ul {
    list-style: none;
    text-align: center;
    padding-top: 20px;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #dcd1da;
    font-size: large;
}

.hero {
    background: #A9B5DF;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero h2 {
    font-size: 1.8rem;
    padding-bottom: 20px;
    font-weight: 600;
}

.hero p {
    font-size: 1rem;
    padding-bottom: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.hero-photo {
    width: 465px;
    height: 303px;
    margin-right: 20px;
    border-radius: 19px;
}

.hero-text {
    max-width: 600px; /* Adjust for a balanced layout */
}

.hero .btn {
    background: #2D336B;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    padding: 10px;
}

.hero .btn:hover {
    background: #7886C7;
    font-weight: 600;
    color: #ffffff;
    border: solid 2px white;
}



footer {
    background: #2D336B;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    /* margin-top: 20px; */
}

footer p {
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #f0f0f0;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #333;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
    color: #555;
}

#visualization {
    margin-top: 30px;
    text-align: center;
}

#stackContainer {
    margin: 20px auto;
    width: 200px;
    min-height: 100px;
    background-color: #e5e5e5;
    border: 2px solid #333;
    padding: 10px;
    position: relative;
}

.stack-element {
    background-color: #f0a500;
    color: #fff;
    padding: 10px;
    margin: 5px 0;
    text-align: center;
    border-radius: 5px;
    transition: 0.3s;
}

.stack-element:hover {
    background-color: #333;
}

#visualization {
    margin-top: 30px;
    text-align: center;
}

#queueContainer {
    margin: 20px auto;
    width: 200px;
    min-height: 100px;
    background-color: #e5e5e5;
    border: 2px solid #333;
    padding: 10px;
    position: relative;
}

.queue-element {
    background-color: #2D336B;
    color: #fff;
    padding: 10px;
    margin: 5px 0;
    text-align: center;
    border-radius: 5px;
    transition: 0.3s;
}

.queue-element:hover {
    background-color: #333;
}


#editor {
    width: 100%;
    height: 400px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

#output, #feedback {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #333;
    background-color: #f5f5f5;
}

button {
    background-color: #2D336B;
    color: white;
    padding: 10px 15px;
    margin-right: 10px;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #2D336B;
}

/* ngfghhvjhvhj */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.chbot {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f7fa;
    margin: 0;
}

.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    display: none;
    z-index: 1000;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #2D336B;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.chat-header {
    background-color: #2D336B;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
}

.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    max-width: 70%;
}

.bot {
    background-color: #e9ecef;
    margin-left: 20px;
}

.user {
    background-color: #2D336B;
    color: #fff;
    margin-right: 20px;
    align-self: flex-end;
}

.chat-footer {
    padding: 10px;
    background-color: #fff;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-footer button {
    padding: 8px 15px;
    background-color: #2D336B;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.chat-footer button:hover {
    background-color: #2D336B;
}
