html {
  height: 100%;
}

body {
  background: #fafafa;
  min-height: 100vh;
}

.content-section {
  background: #ffffff;
  padding: 20px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.quiz-question-text {
  font-size: 1.5rem;
}

.quiz-answer-text {
  font-size: 1.2rem;
}

.navbar {
  background-color: #E6E6FA;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bg-level-1 {
    background-color: green !important;
    color: white;
}

.bg-level-2 {
    background-color: yellow !important;
    color: black;
}

.bg-level-3 {
    background-color: orange !important;
    color: white;
}

.bg-level-4 {
    background-color: red !important;
    color: white;
}
.bg-secondary {
    background-color: #6c757d !important;
    color: white;
}
.badge {
    font-size: 1.2rem;
}
.banner {
    background-color: lightgreen;
    padding: 1rem;
    text-align: center;
}

.footer {
    background-color: #E6E6FA;
    padding: 1rem;
    text-align: center;
}

.tutor-footer {
    background-color: green;
    padding: 1rem;
    text-align: center;
    color: white;
}

.tutor-navbar {
    background-color: green !important;
}

.tutor-navbar .navbar-brand,
.tutor-navbar .nav-link {
    color: white !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hidden {
    display: none !important;
}

.floating-ad {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 80px;
    align-self: flex-start; /* Crucial for sticky positioning within a flex container */
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .table-responsive table thead {
        display: none;
    }

    .table-responsive table,
    .table-responsive table tbody,
    .table-responsive table tr,
    .table-responsive table td {
        display: block;
        width: 100%;
    }

    .table-responsive table tr {
        margin-bottom: 1rem;
        border-bottom: 2px solid #dee2e6;
    }

    .table-responsive table td {
        text-align: left;
        padding-left: 50%;
        position: relative;
    }

    .table-responsive table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 1rem;
        font-weight: bold;
        text-align: left;
    }
}
.nav-tabs .nav-link.active {
    background-color: #E6E6FA !important;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
}

.positioned-badge {
    cursor: pointer;
    position: absolute;
    /* In LTR it means 'left: 10px;', in RTL it means 'right: 10px;' */
    inset-inline-end: 0px;
    top: 0;
    width: 100px; 
    height: 100px;
}

.positioned-tool {
    /* In LTR it means 'left: 10px;', in RTL it means 'right: 10px;' */
    float: inline-end;
    top: 12px;
    right: 10px;
    z-index: 10;
}

#sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    background-color: #f1f1f1;
    padding: 10px 0;
    transition: width 0.3s;
    overflow: hidden;
    white-space: nowrap;
    z-index: 1000;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#sidebar a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: black;
}

#sidebar a:hover {
    background-color: #E6E6FA;
    color: black;
}

@media (max-width: 768px) {
    #sidebar {
        display: none;
    }
}


.corner-ribbon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background-color: #ffff00;
    color: black;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 15px 20px 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.3);
}

.rounded-frame {
    width: 100%;
    height: 200px;
    border: 3px solid #C7BFE4;
    /*background-color: #E6E6F8;*/
    background-color: darkgreen;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px auto;
}

.rounded-frame p {
    margin: 0;
    text-align: center;
    font-family: sans-serif;
    font-size: 32px;
    /*color: #333;*/
    color: white;
}

.rounded-frame p a {
    color: white;
}

.rounded-frame p small{
    margin: 0;
    text-align: center;
    font-family: sans-serif;
    font-size: 12px;
    /*color: #333;*/
    color: white;
}

.red-dot {
    height: 8px;
    width: 8px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
    position: absolute;
}

.category-list a{
    color: black;
}

.category-list a:hover  {
    color: blue;
}