body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.navbar {
    position: fixed;
    height: 50px;
    width: 100%;
    background-color: rgb(50, 64, 93);
    display: flex;
    flex-direction: row-reverse;
    gap: 15px;
    z-index: 1000;
}

.router a {
    text-decoration: none;
}

.container {
    padding-top: 50px;
}

.router {
    display: flex;
    gap: 15px;
    align-items: center;
}

.router a {
    color: white;
}

.sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    width: 200px;
    height: 100%;
}

.sidebar ul {
    position: relative;
    top: 30%;
    width: 150px;
    padding-left: 50px;
    background-color: transparent;
    overflow: hidden;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.content {
    margin-left: 200px;
    padding: 50px 100px;
}

.formulaContainer {
    display: flex;
    justify-content: center;
}

.formulaContainer .formula {
    font-family: 'Courier New', Courier, monospace;
    background-color: #ecf0f1;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    text-align: left;
}

.question-statement {
    padding: 10px 20px;
    background-color: #ecf0f1;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: calc(1.5em * 4 + 1rem);
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.acquired {
    background-color: gray; /* Gray background */
    color: white; /* White text color */
    cursor: not-allowed; /* Disable pointer events */
    opacity: 0.7; /* Reduce opacity to indicate disabled state */
}

button.acquired:hover {
    background-color: gray; /* Gray background */
}

.submit-attempt-div {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.results-section {
    display: flex;
    width: 100%;
    height: 200px;
    margin: 20px 0;
}

.hidden {
    display: none;
}

.chat-ans{
    flex-grow: 1;
    width: 100%;
    height: 100%; /* Fixed height */
    overflow: auto; /* Enable scrolling */
    border: 1px solid #ddd; /* Optional: border for visual reference */
    padding: 10px; /* Optional: padding for inner content spacing */
    background-color: #f9f9f9; /* Optional: background color */
    box-sizing: border-box;
}

.statistics-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 200px;
    height: 100%;
    box-sizing: border-box;
}

.score {
    flex: 1;
    text-align: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #f1f3f5;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.score-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.score-value {
    font-size: 18px;
    color: #007bff;
}

/* modal for badges in "quiz.html" */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    height: 80%;
    position: relative;

    border: 1px solid #ccc;
    display: flex;
    flex-direction: row;
    position: absolute;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}


/* Page (badge) */
#badge-page-Container {
    /* width: 50%;
    height: 500px;
    position: absolute;
    left: 25%; */
    /* overflow: hidden; */
    max-height: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    flex-direction: row;
    position: absolute;
}

#badge-container {
    padding: 5% 10%;
    /* display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative; */
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create 3 equal columns */
    gap: 3%; /* Space between grid items */
    flex: 1 1 75%;
    overflow: scroll;
}
.badge {
    flex: 1 1 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2%;
    margin: 1%;
    background-color: #e9e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.2s;
}
.badge:hover {
    transform: scale(1.05);
}
.badge img {
    max-width: 100px;
    font-size: 2em;
}
.badge p {
    margin-top: 10px;
}
.badge button {
    margin: 10px 0;
}

.points-Container {
    position: sticky;
    position: -webkit-sticky;
    top: 40%;
    left: 1%;
    flex: 1 1 25%;
    display: flex;
    flex-direction: column;
    height: max-content;
    align-items: center;
    background-color: #e9e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 2%;
    transition: transform 0.2s;
    /* align-items: flex-start; */
}

.points-Container:hover {
    transform: scale(1.05);
}

#name {
    margin: 0;
    font-size: 1.5em;
    color: #333333;
}

#points {
    margin: 5px 0 0 0;
    font-size: 1em;
    color: #777777;
}