* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}



:root {
    --p-bg-color-1: rgb(10, 20, 110);
    --p-bg-color-2: #0071EB;
    --white: white;
    --blue: blue;
    --black: black;
    --cornflowerblue: cornflowerblue;
    --warm-yellow: rgb(249, 202, 36);
    --vibrant-orange: rgb(240, 147, 43);

}

.saved {
    background-color: lightgreen;
    outline: 10px solid lightgreen
}

body {
    transition: filter 0.5s;
}

.grayscale-effect {
    filter: grayscale(100%);

}


/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    background-color: var(--white);
    z-index: 10;

}

header div {
    padding: 10px;
}

header #menu_bar {
    display: none;
}

.logo {
    background: linear-gradient(to bottom right, var(--p-bg-color-1), var(--p-bg-color-2));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 24px;
    font-weight: bold;
    font-family: cursive;
    margin-left: 40px;
    cursor: pointer;
}

.logo a {
    text-decoration: none;
    background: linear-gradient(to bottom right, var(--p-bg-color-1), var(--p-bg-color-2));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-size: 24px;
    font-weight: bold;
    font-family: cursive;

}

header .header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.header-actions div {
    cursor: pointer;
}

.header-actions .login-btn,
.save-button,
.update-content,
.validate-button,
.preview-button,
.tools button,
.add-subheading-content-button,
#eq-katex-tool button {
    border: 1px solid var(--p-bg-color-2);
    border-radius: 50px;
    color: var(--p-bg-color-2);
    cursor: pointer;
}


.header-actions .login-btn:hover,
.save-button:hover,
.update-content:hover,
.validate-button:hover,
.preview-button:hover,
.tools button:hover,
.add-subheading-content-button:hover,
#eq-katex-tool button:hover {
    border: 1px solid var(--p-bg-color-2);
    background-color: var(--p-bg-color-2);
    color: var(--white);

    border-radius: 50px;
}

#symbols-table {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

#symbols-table div {
    padding: 10px;
    border: 1px solid grey;
    width: 50px;
    height: 50px;
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    margin: 2px;
}


.btn {
    display: flex;
    justify-content: space-between;
}

.save-button,
.preview-button {
    display: none;
}

.save-button,
.tools button,
.preview-button,
.validate-button,
.update-content,
.add-subheading-content-button,
#eq-katex-tool button {
    padding: 10px;
    margin-top: 20px;
}

.add-subheading-content-button {
    width: fit-content;
    margin: auto;
    margin-top: 20px;
}

/* study-tags-search-section */

.study-tags-search-section {
    display: flex;
    flex-direction: column;
    margin: 40px;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(to bottom right, var(--p-bg-color-1), var(--p-bg-color-2));
    color: var(--white);


}
section {
    margin: 40px;
}

.study-text,
.search-appearance,
.tag-icons {
    margin-bottom: 20px;

}

.study-tags-search-section div.study-text {
    margin: 30px;

}

.search-bar {
    border-radius: 5px 5px 0px 0px;
    border-bottom: 1px solid rgb(228, 228, 228);
    background-color: white;
    width: 50%;
    margin: auto;
    color: var(--black);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 2px;
    /* padding-left: 15px; */



}

.search-bar i {
    margin-left: 15px;
}

.study-tags-search-section div .search-bar input {
    padding: 15px;
    border: none;
    width: 95%;
}

.study-tags-search-section div input {
    outline: none;
}

.input-search-loader {
    width: 50%;
    margin: auto;
    background-color: var(--white);
    border-radius: 0 0 5px 5px;
    display: none;
    padding: 2px;


}

.input-search-loader-topics-tools {
    display: flex;
    justify-content: space-around;
    align-items: center;


}

.input-search-loader-topics-tools div {
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
    color: var(--black);
    width: 45%;
    margin-top: 25px;
    padding: 5px;
    cursor: pointer;

}

.input-search-loader-topics-tools div:hover {
    background: linear-gradient(130deg, #2870EA 20%, #1B4AEF 77.5%);
    color: white;

}

.clicked-btn {
    background: linear-gradient(130deg, #2870EA 20%, #1B4AEF 77.5%);
    color: white !important;

}


.recent-search {
    color: var(--black);
    margin: 10px;
    padding: 10px;
    text-align: left;
}

.study-tags-search-section div.tag-icons ul {
    list-style: none;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    display: flex;
    margin: 0 auto;
    max-width: -webkit-fit-content;
    max-width: -moz-fit-content;
    max-width: fit-content;
    min-height: 104px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scrollbar-width: none;

}

.study-tags-search-section .tag-icons ul::-webkit-scrollbar {
    width: 0;
}

.study-tags-search-section div.tag-icons ul li {
    width: 100px;
    margin: 0px;
    margin: 10px;
}

.study-tags-search-section div.tag-icons ul li a {
    text-decoration: none;
}

.study-tags-search-section div.tag-icons ul li a span {
    display: block;
    width: 100px;
    color: var(--white);

}

.study-tags-search-section div.tag-icons ul li a i {
    border-radius: 50%;
    background-color: rgb(230, 230, 230);
    padding: 15px;
    margin-bottom: 10px;
    color: var(--black);
}

#symbols-code-display,
#equation-displayer-from-code {
    height: 100px;
    border: 1px solid #b7b7b7;
    margin-top: 30px;
    cursor: text;
    position: relative;

}

#symbols-code-display-input {
    height: calc(100% - 25px);
    resize: none;
    outline: none;
    width: 100%;
    border: none;
    padding: 5px;
}

#equation-displayer-from-code {
    padding: 5px;
}

#symbols-code-display i {
    cursor: pointer !important;
}

#symbols-code-display #eq-displayer-tag {
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -16px;
}

.symbols-code-display-action-container i {

    margin-left: 5px;
}

.symbols-code-display-action-container {
    display: flex;
    justify-content: flex-end;
    margin: auto;
    background-color: #f2f2f2;
    padding: 2px;
}

.active-tag-text {
    background: linear-gradient(45deg, var(--warm-yellow), var(--vibrant-orange));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    cursor: pointer;
}

.active-tag-i {
    background: linear-gradient(45deg, var(--warm-yellow), var(--vibrant-orange));
}

.study-tags-search-section div.tag-icons ul li:hover a i,
#symbols-table div:hover {
    background: linear-gradient(45deg, var(--warm-yellow), var(--vibrant-orange));
}

.study-tags-search-section div.tag-icons ul li:hover a span {
    background: linear-gradient(45deg, var(--warm-yellow), var(--vibrant-orange));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    cursor: pointer;
}


/* Category  or starts with section*/
.start-with-section,
.video-solution,
.user-input-section,
.tools-section {
    margin: 40px;
}

.start-with-list,
.tools-list {
    list-style: none;
    padding: 0;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
}

.start-with-list li,
.start-with-list li a,
.tools-section li,
.tools-section li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 120px;
    margin: 20px;
    cursor: pointer;
    padding: 5px;
    text-align: center;
    border-radius: 10px;
    color: var(--black);
    text-decoration: none;
    transition: all 0.3s;
}

.start-with-list li,
.tools-section li {
    background: linear-gradient(45deg, var(--warm-yellow), var(--vibrant-orange));
}

.start-with-list li a i,
.tools-section li a i {
    margin: 10px;
    font-size: 1.2em;
}

.start-with-list li:hover,
.tools-section li:hover {
    background: transparent;
    box-shadow: 0 0 0 2px var(--vibrant-orange);
    color: var(--warm-yellow);
    text-align: center;

}


.account-section {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px;
    text-align: center;
}

.account-section h2 {
    font-size: 24px;
}

/* .account-background-image {
    background-image: url('https://via.placeholder.com/400x300');
   
    background-size: cover;
    width: 90%;
    height: 300px;
    margin: 0 auto 10px;
    position: relative;

} */

.account-profile-image {
    background-image: url('https://via.placeholder.com/100');
    /* Replace with your profile image URL */
    background-size: cover;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid white;
    margin: 20px auto auto auto;
    /* position: absolute;
    bottom: 0; */
    /* left: 50%; */
    /* transform: translateX(-50%); */
    /* transform: translateY(50%); */
}

.account-name {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
}

.account-email {
    color: #555;
    font-style: italic;
}


/* content topic if present and the table of content*/
.topic-content,
.maths-animated-board,
.preview-topic-content,
.content-writing-guide,
.user-input-section,
.video-solution,
.writing-tools-section {
    margin: 40px;
    padding: 20px;
    border: 2px solid transparent;
    border-image: linear-gradient(to bottom right, var(--p-bg-color-1), var(--p-bg-color-2));
    border-image-slice: 1;
}

.discussion-forum {
    margin: 40px;
}

.discussion-forum textarea {
    padding: 10px;
}

/* video solutions control */
.video-solution .controls {
    display: flex;
    justify-content: space-between;
}

.content-writing-guide ul li {
    text-align: justify;
}

.table-cont {
    overflow-x: auto;
}


.content-writing-guide table {
    /* Style for the table */
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

/* Style for table header */
.content-writing-guide table thead th {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;

}

/* Style for table cells */
.content-writing-guide table tbody td {
    border: 1px solid #ccc;
    padding: 8px;
    user-select: all;

}

/* Alternate row background color */
.content-writing-guide table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.additional-info,
.preview-additional-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

.additional-info i,
.preview-additional-info i {
    margin-left: 5px;
    margin-right: 5px;
}

.additional-info .author,
.preview-additional-info .preview-author,
.additional-info .created-time,
.preview-additional-info .preview-created-time,
.preview-additional-info .preview-updated-time,
.additional-info .updated-time,
.additional-info .category,
.preview-additional-info .preview-category {
    margin: 5px 0;
}



.topic-content .topic-title,
.preview-topic-content .preview-topic-title,
.section-title {
    margin: 20px 0;
    background: linear-gradient(45deg, var(--warm-yellow), var(--vibrant-orange));
    padding: 10px;
}

.topic-title,
.preview-topic-title,
.input-container,
.subheading-input-container,
.content-entry,
.content-table-header,
.preview-content-table-header {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.input-container,
.subheading-input-container,
.content-entry {
    align-items: center;
}

.content-input {
    width: 80%;
    height: 200px;
    resize: vertical;
    /* flex-grow: 1;
    margin-left: 30px; */
}

/* .content-entry {
    flex-direction: column;
} */
.content-table-header,
.preview-content-table-header {
    align-items: center;
    margin-top: 0px;


}

.topic-title,
.preview-topic-title {
    align-items: center;
}

.input-container input,
.content-input,
.subheadings-container .subheading-entry input {
    border: none;
    border-bottom: 1px solid var(--p-bg-color-2);
    outline: none;
    padding: 5px;
    margin: 5px;
}

.content-input {
    border: 1px solid var(--p-bg-color-2);
}




.content-table,
.preview-content-table {
    border: 1px solid grey;
    border-radius: 5px;
    padding: 20px;
    position: sticky;
    z-index: 2;
    top: 60px;
    background: white;
}


.content-table-header i,
.preview-content-table-header i {
    border: 1px solid grey;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
}

.table-of-contents,
.preview-table-of-contents {
    display: none;

}

.table-of-contents ol li,
.preview-table-of-contents ol li {
    margin: 2px;
}

.table-of-contents ol li a,
.preview-table-of-contents ol li a {
    text-decoration: none;
    color: var(--black);
}

.table-of-contents ol li a:hover,
.preview-table-of-contents ol li a:hover {
    color: var(--cornflowerblue);
}

.topic-content .topic-description,
.preview-topic-content .preview-topic-description {
    margin: 30px 10px;

}

.topic-content .topic-subheading,
.topic-subheading-description,
.preview-topic-content .preview-topic-subheading,
.preview-topic-subheading-description {
    margin: 30px 10px;

}

.topic-content .table-of-contents,
.subheading-ul,
.content-writing-guide ul,
.preview-topic-content .preview-table-of-contents,
.preview-subheading-ul {
    margin: 30px;

}

/* tools  */
.tools {
    border: 1px solid #ccc;
    padding: 20px;
    margin: 40px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.tools h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.tools div {
    margin-bottom: 10px;
}

.tools label {
    /* display: inline-block; */
    width: 120px;
    font-weight: bold;
}

.tools input[type="number"] {
    width: 50px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
}



.solutions {
    margin-top: 20px;
}

.solutions h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.solutions p {
    font-size: 16px;
}

/* user rating */
.user-rating,
.preview-user-rating {
    font-size: 50px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.star {
    color: rgb(224, 224, 224);
    transition: color 0.3s;
    cursor: pointer;
}

#user-rating-stars,
#preview-user-rating-stars {
    font-size: 20px;
    text-align: center;
}

.star:hover,
.star:hover~.star {
    color: gold;
    background: linear-gradient(to bottom right, var(--vibrant-orange), var(--warm-yellow));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}



/* suprises slideshow section */

.feature-slideshow {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.feature-slide {
    flex: 0 0 300px;
    padding: 20px;
    margin: 20px;
    /* scroll-snap-align: start; */
    /* background-color: #f0f0f0; */
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.feature-slide h3 {
    margin-top: 0;
    text-align: center;
}

.feature-slide p {
    margin: 10px 0;
    text-align: justify;
}

.feature-slide img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}


/* Footer */
.footer {
    padding: 40px 0;

}

.footer h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    max-width: 200px;
    margin: 0 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 10px;
    cursor: pointer;
}

.footer ul li:hover {
    color: var(--blue);
    color: cornflowerblue;
}

.footer ul li a {
    text-decoration: none;
}

.footer-bottom {
    margin: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom div.translate select {
    padding: 10px;
}

.footer-social a {
    text-decoration: none;
    margin-left: 10px;
}

.footer-social a:first-child {
    margin-left: 0;
}

.footer-social a {
    font-size: 24px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .footer-links {
        justify-content: center;
    }

    .footer-column {
        margin: 20px 0;
        max-width: none;
    }
}


/* microphone */
.wave-effect {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #4285f4;
    animation: ripple 1s linear infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
