@import url('https://fonts.googleapis.com/css2?family=Gotu&display=swap');

* {
    font-family: "Gotu", serif;
}

.heading {
    background-color: #bcfaaa;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.content {
    margin: 0 2rem;
}

h2 {
    background-color: #f8c4fb;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    text-decoration: underline;
}

h3 {
    text-decoration: underline;
    color: #6600ff;
}

code {
    color: #0008ff;
    background-color: #fcf9e3;
    border-radius: 5px;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

span {
    color: red;
    font-weight: bold;
}

b {
    color: #008698;
}

.backToTop {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    width: 35px;
    height: 35px;
    font-weight: bold;
    border-radius: 50%;
    box-shadow: 1px 1px 10px #ff00a6;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    border: none;
    outline: none;
}

.backToTop {
    color: white;
    text-decoration: none;
    scroll-behavior: smooth;
}

.backToTop:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Code for dark mode */
#darkModeBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 35px;
    height: 35px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 1px 1px 10px #888;
    z-index: 1000;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    /* center horizontally */
    font-size: 18px;
    outline: none;
}

#darkModeBtn:hover {
    background-color: #333333;
    transform: scale(1.1);
}

body.dark-mode #darkModeBtn {
    background-color: #f1f1f1;
    color: #000000;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .heading {
    background-color: #00611b;
}

body.dark-mode h2 {
    background-color: #570091;
    color: #ffffff;
}

body.dark-mode h3 {
    color: #d8a405;
}

body.dark-mode code {
    background-color: #1e1e1e;
    color: #00bccd;
}

body.dark-mode span {
    color: #ff6b6b;
}

body.dark-mode b {
    color: #31c001;
}

body.dark-mode .backToTop {
    background-color: #dd01e8;
    box-shadow: 1px 1px 10px #00ffff;
    transition: background-color 0.3s ease;
}

body.dark-mode .backToTop:hover {
    background-color: #71017d;
}

.comparison-table {
    width: 90%;
    margin: 0.5rem auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.5rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #ddd;
}

.comparison-table th {
    background-color: #bcfaaa;
    font-size: 1.1rem;
    text-align: center;
    color: #333;
}

/* Add bullet before every td content */
.comparison-table td::before {
    content: "🔸";
    color: #007bff;
    /* bullet color */
    font-weight: bold;
    display: inline-block;
    margin-right: 8px;
}

body.dark-mode .comparison-table {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

body.dark-mode .comparison-table th {
    background-color: #004aba;
    color: #f0f0f0;
}

body.dark-mode .comparison-table td {
    color: #f0f0f0;
}

.btn {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    /* Indigo to Blue */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}