* {
    padding: 0;
    margin: 0;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--txt-clr);
}

html,
body {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

:root {
    --nav-bg-clr: #181d27;
    --nav-hover-clr: #212835;
    --content-bg-clr: #12161f;
    --content-bg-clr2: #1e2430;
    --txt-clr: white;
    --main-clr: #2096a2;
    --main-clr-2: #294970;
    --main-hover-clr: #1b7f8a;
    --font-family: 'Inter', sans-serif;
}

h1,
h2,
h3 {
    font-weight: 600;
}

p {
    font-weight: 400;
}

.lottie-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    margin: auto;
    margin-bottom: 2rem;
}

section {
    width: 100%;
    height: calc(var(--vh) * 100);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--nav-bg-clr);
}

.nav-container {
    width: 26%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--nav-bg-clr);
    position: relative;
    transition: 0.5s ease;
    z-index: 1000;
}

.nav-container ::-webkit-scrollbar {
    display: none;
}

.nav-container span {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--nav-bg-clr);
    transition: 0.5s ease;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.nav-container span div {
    width: 80%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8rem;
    gap: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.5s ease;
}

.transition {
    transition: 0.5s ease;
}

.nav-container div {
    width: 80%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.8rem;
    gap: 0.8rem;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.5s ease;
}

.nav-container span div:hover {
    background-color: var(--nav-hover-clr);
}

.nav-container .nav-head:nth-child(1) {
    pointer-events: none;
    gap: 0.2rem;
    margin: 0.8rem 0 2rem 0;
}

.nav-container .nav-head:nth-child(1) img {
    width: 4rem;
    margin-left: -0.6rem;
}

.nav-container .nav-head:nth-child(1) p {
    font-size: 1.2em;
    font-weight: bold;
}

.nav-container div i {
    font-size: 1.2em;
}

.nav-container .nav-user {
    margin-bottom: 0.8rem;
    white-space: wrap;
    position: relative;
}

.nav-container .nav-user img {
    background-color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid var(--txt-clr);
    pointer-events: none;
}

.nav-user-details {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 3.8rem;
    left: 0;
    width: 100%;
    height: auto;
    background-color: var(--nav-hover-clr);
    z-index: 4;
    padding: 0.2rem;
    overflow: hidden;
}

.nav-user-details p {
    align-self: flex-start;
}

.nav-container .bx-chevrons-left {
    font-size: 1.8em;
    transform: rotate(0);
    position: absolute;
    bottom: 4rem;
    right: 0.4rem;
    cursor: pointer;
    padding: 0.2rem;
    transition: 0.5s ease;
    z-index: 2;
}

/* Toggle class to collapse nav */
.nav-container.collapsed {
    width: 3.2rem;
    overflow: hidden;
}

.nav-container.collapsed div {
    padding: 0.8rem;
}

.nav-container.collapsed div i {
    margin-left: 0.6rem;
}

.nav-container.collapsed div p {
    pointer-events: none;
    opacity: 0;
}

.nav-container.collapsed .nav-user img {
    margin-left: 0.2rem;
    min-width: 2rem;
    height: 2rem;
}

.nav-container.collapsed .nav-user #user-name {
    display: none;
}

.nav-container .bx-chevrons-left {
    transition: transform 0.3s ease;
}

.nav-container.collapsed .bx-chevrons-left {
    transform: rotate(180deg);
}

.nav-container>div {
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.files-preview-container {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--content-bg-clr);
    z-index: 1000;
}

.files-preview-container .file-preview-options {
    position: absolute;
    top: 0;
    right: 14px;
    padding: 0.8rem 0.4rem;
    background-color: var(--main-clr);
    font-size: 1.8em;
    border-radius: 6px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    cursor: pointer;
    transition: 0.5s ease;
    display: flex;
    flex-direction: column;
}

.file-preview-options i {
    transition: 0.5s ease;
}

.file-preview-options i:nth-child(2) {
    transform: rotate(180deg);
}

.file-preview-options i:hover {
    opacity: 0.8;
}

.files-preview-container iframe {
    width: 100%;
    height: 100%;
}

.file-preview-info {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 8px;
    right: 4rem;
    font-size: 0.8em;
    gap: 2px;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.file-preview-info.fade-out {
    opacity: 0;
}

.file-preview-info span {
    background-color: var(--main-clr-2);
    padding: 0.4rem;
}

.file-preview-info span:nth-child(2),
.file-preview-info span:nth-child(4) {
    transform: rotateZ(45deg);
    width: 0;
    right: -4px;
    position: absolute;
    background-color: var(--main-clr-2);
}

.file-preview-info span:nth-child(1) {
    margin-top: 10px;
}

.file-preview-info span:nth-child(3) {
    margin-top: 3.4px;
}

.file-preview-info span:nth-child(2) {
    top: 18px;
    z-index: -1;
}

.file-preview-info span:nth-child(4) {
    margin-top: 3.2rem;
}

.content {
    width: 100%;
    height: 96%;
    background-color: var(--content-bg-clr);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    position: relative;
}

.login-alert{
    display: none;
    justify-content: center;
    align-items: center;
    background-color: var(--main-clr);
    width: fit-content;
    border-radius: 8px;
    padding: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.login-alert  a{
    padding: 0.4rem;
    text-decoration: underline;
    font-weight: bold;
}
.login-alert i{
    padding: 0 0 0 0.4rem;
    cursor: pointer;
    font-weight: bold;
    transition: 0.5s ease;
}
.login-alert i:hover{
    opacity: 0.8;
}


.dashboard-container,
.upload-container,
.stared-container,
.manage-files-container {
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 1rem;
    overflow-x: hidden;
}

.available-content-main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.search-container {
    width: 60%;
    height: 4rem;
    margin-top: 0.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 4;
}

.search-container input {
    width: 100%;
    height: 2rem;
    outline: none;
    border: none;
    color: black;
    background-color: white;
    border-radius: 20px;
    padding-left: 0.8rem;
    font-weight: bold;
    font-family: var(--font-family);
}

.search-container button {
    position: absolute;
    color: black;
    right: 0.8rem;
    cursor: pointer;
    transition: 0.5s ease;
    outline: none;
    background-color: transparent;
    border: none;
}

.search-container button i {
    font-size: 1.2em;
}

.search-container button:hover {
    opacity: 0.8;
}

.search-container i:nth-child(3) {
    position: absolute;
    left: -2rem;
    color: var(--txt-clr);
    background-color: var(--main-clr);
    width: fit-content;
    font-size: 1.4em;
    padding: 0.2rem;
    border-radius: 6px;
    cursor: pointer;
}

.search-result {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    height: fit-content;
    overflow-y: auto;
}

.search-result div {
    cursor: pointer;
}

@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0px 0px var(--main-color);
    }

    50% {
        box-shadow: 0 0 10px 3px var(--main-color);
    }

    100% {
        box-shadow: 0 0 0px 0px var(--main-color);
    }
}

.searching {
    animation: searchPulse 1s ease-in-out infinite;
}

.search-loader {
    border: 4px solid #eee;
    border-top: 4px solid var(--main-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.available-content {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    border-radius: 6px;
    padding: 1rem;
    gap: 0.4rem;
}

.available-content div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    width: 8rem;
    height: 4rem;
    background-color: #8897ac;
    border-radius: 6px;
    gap: 0.2rem;
    cursor: pointer;
    transition: 0.5s ease;
}

.available-content div:hover {
    background-color: #93a3b9;
}

.latest-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    width: fit-content;
    height: fit-content;
}

.available-content-container {
    width: 100%;
    height: fit-content;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    overflow-y: auto;
    z-index: 2;
}

.available-subjects {
    width: 80%;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    margin-top: 4rem;
}

.available-subjects div {
    width: 14rem;
    height: 8rem;
    background-color: #8897ac;
    border-radius: 8px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
}

.available-subjects div img {
    width: 5.8rem;
    pointer-events: none;
}

.available-subjects-result {
    width: 100%;
    max-height: calc(100% - 3.2rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    margin: 2.8rem 0;
    overflow-y: auto;
    padding-bottom: 0.4rem;
}

.available-content-container .bx-arrow-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--txt-clr);
    background-color: var(--main-clr);
    width: fit-content;
    font-size: 1.4em;
    padding: 0.2rem;
    border-radius: 6px;
    transition: 0.5s ease;
    cursor: pointer;
    z-index: 3;
}

.available-content-container .bx-arrow-back:hover {
    opacity: 0.8;
}

#load-more-btn {
    z-index: 4;
    bottom: 0;
    position: absolute;
    background-color: var(--content-bg-clr);
    width: 100%;
    padding: 0.4rem 0;
}

.files-wrapper {
    width: fit-content;
    height: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    overflow: auto;
    margin-bottom: 2rem;
}

.failed-to-load-subject-files {
    padding: 0.4rem;
}

/* Default File */
.file-container {
    width: 14rem;
    min-height: 10rem;
    background-color: var(--main-clr-2);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    position: relative;
    padding: 0.2rem;
    margin: 0.2rem;
}

.file-container-front {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.file-container-front .file-preview {
    cursor: pointer;
    transition: 0.5s ease;
    overflow: hidden;
    height: 8rem;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.file-container-front .file-preview:hover {
    filter: blur(2px);
    opacity: 0.8;
}

.file-container-front iframe {
    width: 200%;
    height: 20rem;
    display: flex;
    justify-content: center;
    margin-top: 0;
    border: none;
    overflow: hidden;
    scrollbar-width: none;
    border-radius: 4px;
    pointer-events: none;
    margin-left: -50%;
    z-index: -1;
}

.file-container-front iframe::-webkit-scrollbar {
    display: none;
}

.file-details-basic {
    padding: 0.2rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.file-details-basic p {
    color: var(--txt-clr);
    margin-left: 0.4rem;
    font-weight: 600;
    font-size: 0.8em;
    width: 10rem;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.file-details-basic span {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s ease;
    border-radius: 4px;
    background-color: var(--main-clr);
    padding: 0;
    position: absolute;
    right: 0.4rem;
    cursor: pointer;
    font-size: 0.8em;
}

.file-details-basic span:hover {
    opacity: 0.8;
}

.file-details-basic span p {
    width: auto;
}

.file-details-basic i {
    font-size: 1.2em;
    transform: rotateZ(0);
    transition: 0.5s ease;
}

.details-more {
    width: calc(100% - 0.8rem);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.4rem;
    font-size: 0.8em;
    background-color: #223d5e;
    border-radius: 8px;
    transition: all 0.3s ease;
    pointer-events: none;
    /* disable interaction when hidden */
}

.details-more.show {
    opacity: 1;
    max-height: 500px;
    /* adjust depending on content height */
    pointer-events: auto;
}

.details-more div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.2rem;
}

.details-more div img {
    width: 1.8rem;
    border-radius: 50%;
    pointer-events: none;
}

.details-more span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.2rem 0;
}

.file-options {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 1.2em;
    gap: 0.1rem;
    cursor: pointer;
    width: 100%;
}

.file-options i {
    color: var(--txt-clr);
    transition: 0.5s ease;
    padding: 0.2rem calc(100% / 9);
    border-radius: 4px;
    background-color: var(--main-clr);
}

.file-options i:hover {
    background-color: var(--main-clr-2);
}

.file-options span i,
.file-options span i:hover {
    background-color: transparent;
}

.share-popup {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f1f2e;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    visibility: hidden;
    opacity: 0;
    bottom: -4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    z-index: 9999;
    overflow: hidden;
    border: 1px solid var(--nav-hover-clr);
}

.share-popup p {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 300px;
}

.share-popup button {
    margin-top: 5px;
    padding: 4px 10px;
    background-color: var(--main-clr);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.star-burst {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    animation: starExplode 1s ease-out forwards;
    transform-origin: center;
}

.file-container {
    opacity: 1;
    transition: opacity 0.5s ease;
}

@keyframes starExplode {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 1;
    }

    100% {
        transform: var(--transform-move) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes burstDelete {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
        filter: brightness(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.3) rotate(10deg);
        filter: brightness(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(0.3) rotate(-45deg) translateY(-50px);
        filter: brightness(0.5);
    }
}

.burst-animation {
    animation: burstDelete 500ms ease-out forwards;
}

.file-type {
    text-transform: uppercase;
}

.share-file-container {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 2rem;
    background-color: #212835;
    overflow: hidden;
    display: none;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--main-hover-clr);
}

.share-file-container p {
    width: 100%;
    height: 4rem;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    overflow-x: auto;
    padding: 0 0.4rem;
}

.share-file-container p::-webkit-scrollbar {
    display: none;
}

.share-file-container div {
    width: fit-content;
    height: 100%;
    padding: 0.4rem;
    background-color: var(--main-clr);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.upload-form {
    max-width: 80%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.upload-form h2 {
    position: absolute;
    top: 2rem;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
    width: 100%;
    height: 2rem;
    margin-top: 0.4rem;
    border-radius: 4px;
    outline: none;
    border: none;
    resize: none;
    font-family: var(--font-family);
    padding-left: 0.4rem;
}

.upload-form span {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding: 0.4rem;
}

.upload-file-label {
    width: 8rem;
    height: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--main-clr-2);
    border-radius: 8px;
    cursor: pointer;
    margin-top: 4rem;
}

.upload-file-label .bx-file {
    font-size: 4em;
}

.upload-form textarea {
    height: 4rem;
    padding-top: 0.4rem;
}

.upload-file-submit {
    border: none;
    outline: none;
    background-color: var(--main-clr);
    color: var(--txt-clr);
    padding: 0.4rem;
    font-family: var(--font-family);
    font-size: 1.2em;
    border-radius: 8px;
    margin-top: 2rem;
    transition: 0.5s ease;
    cursor: pointer;
}

.upload-file-submit:hover {
    background-color: var(--main-hover-clr);
}

.upload-progress {
    width: 100%;
    background-color: #f3f3f3;
    height: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.upload-progress-bar {
    width: 0;
    height: 100%;
    background-color: #4caf50;
    text-align: center;
    color: white;
    line-height: 10px;
    border-radius: 5px;
    transition: 0.2s ease-in-out;
}

.upload-file-submit.disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

.contact-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 0.8rem;
    right: 2rem;
    padding: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    gap: 0.2rem;
    z-index: 10;
    width: fit-content;
    background-color: var(--main-clr);
    transition: 0.5s ease;
}

.contact-button:hover {
    opacity: 0.8;
}

.stared-container-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 4rem;
    width: 100%;
    height: fit-content;
    overflow-y: auto;
}

.stared-container h2 {
    margin-top: 2rem;
}

.manage-uploaded-files {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 4rem;
}

.show-managable-uploaded-files {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 0.8rem;
    overflow: auto;
    width: 100%;
    max-height: 40rem;
}

.manage-account-button {
    width: fit-content;
    padding: 0.4rem;
    border: 1px dashed var(--main-clr);
    border-radius: 8px;
    margin-top: 4rem;
    cursor: pointer;
    transition: 0.5s ease;
}

.manage-account-button:hover {
    background-color: var(--main-clr);
}

.manage-account-container {
    width: 80%;
    height: 40%;
    position: absolute;
    background-color: var(--content-bg-clr2);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 20%;
    border: 1px solid var(--content-bg-clr2);
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 0 8px var(--main-clr);
    overflow-y: auto;
}

.edit-user-name {
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
}

.edit-user-name input {
    padding: 0.4rem;
    border-radius: 8px;
    outline: none;
    border: none;
}

.manage-account-container span {
    padding: 0.5px;
    width: 80%;
    background-color: var(--main-clr);
    margin: 0.4rem;
}

.profile-input {
    display: flex;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.manage-account-container label {
    padding: 2rem;
    border: 1px dashed var(--main-clr);
    color: var(--main-clr);
    cursor: pointer;
}

.choosen-profile {
    width: 5rem;
    height: 5rem;
    position: relative;
}

.choosen-profile i {
    cursor: pointer;
    position: absolute;
    right: 0;
    transition: 0.5s ease;
}

.choosen-profile i:hover {
    opacity: 0.8;
}

.choosen-profile img {
    width: 5rem;
    height: 5rem;
    border-radius: 4px;
}

.manage-account-container button {
    padding: 0.4rem;
    border: none;
    outline: none;
    background-color: var(--main-clr-2);
    color: var(--txt-clr);
    border-radius: 8px;
    cursor: pointer;
}

.logout,
.blog {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0.8rem;
    right: 2rem;
    background-color: rgb(236, 130, 130);
    padding: 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    gap: 0.2rem;
    z-index: 10;
}

.logout i {
    transform: rotate(180deg);
}

.blog {
    top: 0.8rem;
    left: 2rem;
    width: fit-content;
    background-color: var(--main-clr);
}

.blog i {
    transform: rotate(-90deg);
}

.alert-message-container {
    width: fit-content;
    height: fit-content;
    position: absolute;
    display: none;
    justify-content: center;
    align-items: center;
    top: 0.4rem;
    align-self: center;
    z-index: 1000;
    padding: 0.8rem;
    background-color: rgb(87, 87, 87);
    border-radius: 8px;
    border: 1px solid rgb(68, 108, 121);
}

.alert-message-success {
    color: rgb(115, 219, 55);
    font-weight: bold;
}

.alert-message-fail {
    color: rgb(243, 121, 121);
    font-weight: bold;
}

.switch-sem{
    min-width: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    color: var(--main-clr);
    font-weight: 800;
}
.switch-sem i{
    padding: 0.2rem;
    font-size: 1.4em;
    cursor: pointer;
}
.switch-sem i:hover{
    color: var(--main-hover-clr);
}

@keyframes user-name-opacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 100%;
    }
}

@keyframes alert {
    0% {
        top: -10rem;
    }

    10% {
        top: 0.4rem;
    }

    90% {
        top: 0.4rem;
    }

    100% {
        top: -10rem;
    }
}


@media(max-width: 860px) {}

@media(max-width: 820px) {
    .nav-container:not(.collapsed) {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1000;
        width: 60%;
    }

    .nav-user #user-name {
        display: none;
    }

    .nav-container:not(.collapsed) .nav-user #user-name {
        display: flex;
        align-self: center;
        overflow-x: auto;
        animation: user-name-opacity 1s ease;
    }
}

@media(max-width: 350px) {}
