bodyGradient {

    background: linear-gradient(to right, white, lightgreen);

    font-family: Arial, sans-serif;

    margin: 0;

    padding: 0;

}



body {

    background: url('/static/images/background.jpg') no-repeat center center fixed;

    background-size: cover; /* Ensures the image covers the entire screen */

    position: relative;

    font-family: Arial, sans-serif;

    margin: 0;

    padding: 0;

}



.container {

    position: relative; /* Ensures content is above the occlusion */

    z-index: 1; /* Content is above the occlusion */

}



.navbar {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    background: linear-gradient(to bottom, rgba(160, 100, 55, 0.815), rgba(238, 219, 190, 0.815)); /* Light yellow to white gradient */

    color: black;

    display: flex;

    justify-content: space-around;

    align-items: center;

    padding: 10px 0;

    z-index: 1000;

    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);

    gap: 20px;

}



.navbar img {

    width: 50px;

    height: 50px;

    border-radius: 50%;

}



.navbar a {

    color: rgb(5, 30, 5);

    text-decoration: none;

    font-weight: bold;

    margin: 0 15px;

    padding: 10px;

    border-radius: 5px;

    transition: background-color 0.5s ease;

    font-size: 22px

}



.navbar a:hover {

    background-color: rgba(255, 255, 255, 0.3);

}





.dropdown {

    position: relative;

    display: flex;

}



.dropdown-content {

    display: flex;

    position: absolute;

    background-color: rgba(160, 100, 55, 1);

    min-width: 10px;

    z-index: 1;

    flex-direction: column;

    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.333);

    top: 100%; /* Position directly below the navbar item */

    margin-top: 0px; /* Adds space between the navbar and the dropdown */

    margin-left: 15px;

    opacity: 0;

    transform: translateY(-10px);

    visibility: hidden;

    transition: opacity 0.3s ease, transform 0.3s ease;

    pointer-events: none;

    border-radius: 8px; 

    overflow: hidden;

}



.dropdown-content a {

    padding: 12px 16px;

    color: rgb(40, 15, 0);

    text-decoration: none;

    display: block;

    text-align: left;

    border-bottom: 1px solid black;

    border-radius: 0;

}



.dropdown-content a:hover {

    background-color: rgba(255, 255, 255, 0.3);

}



.dropdown:hover .dropdown-content {

    opacity: 1;

    transform: translateY(0);

    visibility: visible;

    pointer-events: auto;

}



.dropdown-content a:last-child {

    border-bottom: none;

}



.MainHeader {

    margin: 0 auto;

    width: 100%;

    text-align: center;

    padding: 125px 0 75px 0;

    font-size: 4rem;

    color: #003504;

    font-weight: bold;

}



.header {

    margin: 0 auto;

    width: 100%;

    text-align: center;

    padding: 105px 0;

    font-size: 3rem;

    color: #003504;

}



.subheader {

    margin: 0 auto;

    width: 100%;

    text-align: center;

    padding: 25px 0;

    font-size: 2.5rem;

    color: #003504;

}



.text {

    text-align: center;

    font-size: 1.8rem;

    color: #003504;

    line-height: 2;

    padding: 0 5%; /* 0 for top and bottom, 20px for left and right */

}



.list {

    text-align: center;

    font-size: 1.5rem;

    color: #003504;

    line-height: 1.3;

}



.occlusion {

    position: fixed; /* Fixed ensures it stays above the background */

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    pointer-events: none; /* Allows interactions with content above it */

    background: linear-gradient(to top, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)); /* Gradient from solid white to 33% transparent white */

    z-index: 0; /* Ensure it only affects the background */

}





/* Center the form and its elements */

.form-container {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    margin: 0 auto;

    width: 80%;

    max-width: 600px;

    padding: 20px;

    border: 2px solid #003504;

    border-radius: 10px;

    background-color: #f8f9fa;

}



/* Style question labels */

.label {

    text-align: center;

    font-size: 1.8rem;

    color: #003504;

    font-weight: bold;

    line-height: 2;

}



/* Style answer options */

.options {

    text-align: left;

    margin-left: 10px; /* Add slight indentation for radio options */

}



.option-label {

    font-size: 1.2rem;

    color: #333;

    margin-left: 5px;

}



/* Ensure radio buttons are left-aligned with options */

input[type="radio"] {

    margin-right: 10px;

}



/* Textarea and submit button styles */

textarea, button {

    margin: 10px 0;

    width: 90%;

}



.text-content {

    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;

    overflow: hidden;

    max-height: 0;

    opacity: 0;

    visibility: hidden; /* Default to hidden */

    padding: 0;

}



.text-content.hidden {

    max-height: 0;

    opacity: 0;

    visibility: hidden; /* Ensure it's hidden from focus and hover */

    padding: 0; /* Remove padding when hidden */

}



.text-content.visible {

    max-height: none;

    opacity: 1;

    visibility: visible; /* Make it focusable and hoverable */

    padding: 1rem; /* Adjust for your layout */

}



#icon-tipy:hover {

    cursor: pointer;

  }



.tooltip {

    position: relative;

    display: inline-block;

    cursor: help;

}



.tooltip .tooltiptext {

    visibility: hidden;

    width: 500px;

    background-color: #003504;

    color: #fff;

    text-align: center;

    border-radius: 5px;

    padding: 5px;

    position: absolute;

    z-index: 1000;

    bottom: 100%;

    left: 50%;

    transform: translateX(-50%);

    margin-bottom: 10px;

    opacity: 0;

    transition: opacity 0.2s ease;

}



.tooltip:hover .tooltiptext {

    visibility: visible;

    opacity: 1;

}



.button {

    display: inline-block;

    padding: 10px 28px;

    font-size: 1.1rem;

    color: #fff;

    background-color: rgba(160, 100, 55, 0.9);

    border-radius: 6px;

    text-decoration: none;

    border: 1px solid #492600;

    cursor: pointer;

    transition: background-color 0.3s ease, transform 0.2s ease;

    margin: 4px 0;

}



.button.button-spaced {

    margin-bottom: 12px;

}



.button:hover,

.button:focus {

    background-color: rgba(160, 100, 55, 1);

    transform: translateY(-2px);

}



.task-link {

    font-size: 2.5rem;

    margin: 4px 0;

}



.button-link {

    margin: 4px 0;

}



.page-heading {
    position: relative;
    margin: 140px 0 30px;
    text-align: center;
}

.page-heading__back {
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    transform: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 8px 16px;
    min-width: 48px;
    text-align: center;
}

.page-heading__back:hover,
.page-heading__back:focus {
    transform: none;
}

.page-heading .header {
    margin: 0;
    padding: 0;
    width: auto;
    line-height: 1;
}


.page-body {

    min-height: 100vh;

}



.media-stack {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

    margin: 0 auto;

    padding: 20px 0;

    max-width: 100%;

    flex-wrap: wrap;

}



.media-stack--narrow {

    max-width: 25%;

}



.media-stack--gallery {

    max-width: 90%;

}



.media-stack__link {

    display: inline-block;

}



.media-stack__image {

    flex: 0 1 auto;

    max-width: 100%;

    height: auto;

    object-fit: contain;

}



.link-stack {

    display: flex;

    flex-direction: column;

    gap: 30px;

    align-items: center;

    margin-top: 20px;

}



.link-stack--grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

    gap: 70px;

    align-items: stretch;

    justify-items: stretch;

    width: min(900px, 100%);

    margin: 20px auto 0;

}



.link-stack--grid .button {

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    width: 100%;

    margin: 0;

}



.form {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 20px;

}



.form-fields {

    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;

    gap: 10px;

}



.form-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    width: 100%;

    max-width: 900px;

    gap: 20px;

}



.form-row__label,

.form-row__input,

.form-row__message {

    width: 33%;

    text-align: center;

}



.form-row__label {

    text-align: right;

}



.form-row__message {

    text-align: left;

}



.form-input {

    font-size: 20px;

    text-align: center;

    width: 180px;

}



.form-input--narrow {

    width: 150px;

}



.form-input--medium {

    width: 150px;

}



.form-input--wide {

    width: 180px;

}



.form-mark {

    margin-left: 10px;

    font-size: 20px;

}



.form-actions {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

}



.form-actions--center {

    justify-content: center;

}



.form-label {

    font-size: 20px;

}



.form-input--password {

    font-size: 20px;

    margin: 10px 0;

    width: 220px;

}



.form--log {

    gap: 10px;

}



.form--teacher {

    gap: 30px;

}



.upload-wrapper {

    display: flex;

    justify-content: center;

}



.upload-form {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

}



.upload-form__input {

    display: block;

    margin: 0 auto;

}

.log-links {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    margin-top: 20px;

}



.teacher-settings-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 16px;

    width: 100%;

    max-width: 700px;

}



.teacher-settings-grid label {

    display: flex;

    flex-direction: column;

    gap: 6px;

    font-size: 18px;

    color: #003504;

}



.teacher-settings-grid input {

    padding: 8px 10px;

    font-size: 1rem;

    border-radius: 6px;

    border: 1px solid rgba(0, 53, 4, 0.3);

}



.teacher-settings-grid select {

    padding: 8px 10px;

    font-size: 1rem;

    border-radius: 6px;

    border: 1px solid rgba(0, 53, 4, 0.3);

}



.form-checkbox-group {

    display: flex;

    flex-direction: column;

    gap: 10px;

    align-items: flex-start;

}



.form-checkbox-group legend {

    font-size: 20px;

    font-weight: bold;

    color: #003504;

}



.form-checkbox {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 18px;

}



.form-checkbox input[type="checkbox"] {

    width: 20px;

    height: 20px;

}



.text--error {

    color: #8b0000;

    font-weight: bold;

}



.teacher-link {

    position: fixed;

    bottom: 12px;

    left: 12px;

    width: 5px;

    height: 5px;

    display: block;

    text-decoration: none;

    z-index: 1100;

}



.teacher-link::after {

    content: "";

    position: absolute;

    top: 50%;

    left: 50%;

    width: 6px;

    height: 6px;

    background-color: rgba(59, 148, 36, 0.0);

    border: 1px solid #492600;

    border-radius: 2px;

    transform: translate(-50%, -50%);

    transition: transform 0.2s ease, background-color 0.2s ease;

}



.teacher-link:hover::after,

.teacher-link:focus::after {

    background-color: rgba(59, 148, 36, 0);

    transform: translate(-50%, -50%) scale(1.8);

}



.teacher-link:focus-visible {

    outline: 2px solid #fff;

    outline-offset: 2px;

}



/* ==============================

   Simple Windows-like file manager

   ============================== */

.file-manager {

    width: min(1000px, 100%);

    margin: 16px auto 32px;

    background: rgba(248, 249, 250, 0.95);

    border: 1px solid rgba(0,0,0,0.15);

    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

    padding: 12px 14px;

}



.fm-breadcrumbs {

    font-size: 14px;

    margin-bottom: 8px;

    color: #334;

}

.fm-breadcrumbs .sep { margin: 0 6px; color: #667; }

.fm-breadcrumbs a { color: #0645ad; text-decoration: none; }

.fm-breadcrumbs a:hover { text-decoration: underline; }



.fm-toolbar {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 0 12px 0;

    border-bottom: 1px solid rgba(0,0,0,0.1);

    margin-bottom: 10px;

}

.fm-upload { display: flex; align-items: center; gap: 8px; }



.fm-table {

    width: 100%;

    border-collapse: separate;

    border-spacing: 0;

    table-layout: fixed;

}

.fm-table thead th {

    text-align: left;

    padding: 10px 12px;

    background: linear-gradient(to bottom, #f3f4f6, #e6e8eb);

    border-top: 1px solid #c9ccd1;

    border-bottom: 1px solid #c9ccd1;

    font-weight: bold;

}

.fm-table tbody td {

    padding: 10px 12px;

    border-bottom: 1px solid rgba(0,0,0,0.08);

    color: #222;

}

.fm-table tbody tr:hover { background: rgba(0,0,0,0.04); }

.fm-table .fm-name { display: flex; align-items: center; gap: 8px; overflow: hidden; }

.fm-table .fm-name a { color: #0b3d0b; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fm-table .fm-size, .fm-table .fm-mtime { color: #444; font-size: 14px; }
.fm-table .fm-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.fm-table .fm-actions a { color: #0645ad; text-decoration: none; }

.fm-table .fm-actions a:hover { text-decoration: underline; }

.fm-table .linklike { background: none; border: none; padding: 0; color: #b00020; cursor: pointer; }

.fm-table .linklike:hover { text-decoration: underline; }
.fm-pre { max-width: 950px; background: #fff; border: 1px solid #c9ccd1; padding: 12px; white-space: pre-wrap; border-radius: 4px; }
.fm-textarea { width: 100%; max-width: 950px; font-family: Consolas, monospace; }

.stat-project__assignment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stat-project__assignment label {
    font-weight: 600;
}

.stat-project__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.stat-project__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    overflow: hidden;
}

.stat-project__table th,
.stat-project__table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    vertical-align: top;
}

.stat-project__table th {
    text-align: left;
    width: 30%;
    font-weight: 600;
}

.stat-project__table td:last-child {
    width: 25%;
}

.stat-project__table tr:last-child th,
.stat-project__table tr:last-child td {
    border-bottom: none;
}

.stat-project__table .form-input {
    width: 100%;
}

.stat-project__table .form-row__message {
    font-size: 0.85rem;
}

.form--stat-project {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.leaderboard {
    width: min(1100px, 95%);
    margin: 140px auto 60px;
    padding: 26px 26px 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 53, 4, 0.18);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(3px);
}

.leaderboard__header {
    text-align: center;
    color: #003504;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.leaderboard__title {
    margin: 0;
    font-size: 2.6rem;
}

.leaderboard__intro {
    margin: 0;
    font-size: 1.05rem;
    color: #2b2b2b;
}

.leaderboard__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 12px 0 10px;
}

.leaderboard__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.leaderboard__pill {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(73, 38, 0, 0.35);
    background: linear-gradient(to bottom, rgba(255, 245, 233, 0.95), rgba(241, 219, 196, 0.95));
    color: #2f1d00;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.leaderboard__pill:hover,
.leaderboard__pill:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.leaderboard__pill.is-active {
    background: rgba(160, 100, 55, 0.96);
    color: #fff;
    border-color: rgba(73, 38, 0, 0.5);
    box-shadow: 0 6px 18px rgba(73, 38, 0, 0.18);
}

.leaderboard__filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.leaderboard__filter-label {
    font-weight: 700;
    color: #003504;
}

.leaderboard select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 53, 4, 0.3);
    background: rgba(255, 255, 255, 0.95);
    color: #1f2b1f;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.leaderboard__table-wrapper {
    margin-top: 12px;
    overflow-x: auto;
}

.leaderboard__table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    overflow: hidden;
}

.leaderboard__table th {
    text-align: left;
    padding: 12px 14px;
    background: linear-gradient(to bottom, rgba(160, 100, 55, 0.16), rgba(160, 100, 55, 0.05));
    color: #2d1b00;
    border-bottom: 2px solid rgba(0, 53, 4, 0.2);
}

.leaderboard__table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #1f1f1f;
    background: rgba(255, 255, 255, 0.92);
}

.leaderboard__table tr:nth-child(even) td {
    background: rgba(246, 239, 229, 0.85);
}

.leaderboard__table tr:last-child td {
    border-bottom: none;
}

.leaderboard__score {
    font-weight: 700;
    color: #8a3a00;
}

.leaderboard__empty {
    text-align: center;
    font-weight: 600;
    color: #003504;
}

.leaderboard__note {
    margin: 14px 0 0;
    font-size: 0.95rem;
    color: #2f2f2f;
    text-align: center;
}
