.main-content::-webkit-scrollbar {
    display: none;
}

.header {
    background: linear-gradient(to right, rgba(var(--color-v-purple), 0.4) 5%, #0c071770 50%, #0c071770 50%, rgba(var(--color-v-cyan-h), 0.5));
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0px;
    left: 0px;
    height: 4.5rem;
    display: flex;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    padding: 0.5rem .8rem;
    z-index: 100;
}

.header::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(to left, #0c071770, rgba(var(--color-v-purple), 0.7), rgba(var(--color-v-cyan-h), 0.7), #0c071770);
}


.rise {
    text-shadow: -0.01em -0.01em 0.01em #000;
    animation: rise 2s ease-in-out 0.5s forwards;
    text-shadow: 0em 0.01em var(--color-1), 0em 0.02em var(--color-1), 0em 0.02em 0.03em var(--color-1),
        -0.01em 0.01em #333, -0.02em 0.02em #333, -0.03em 0.03em #333,
        -0.04em 0.04em #333, -0.01em -0.01em 0.03em #000, -0.02em -0.02em 0.03em #000,
        -0.03em -0.03em 0.03em #000;
    transition: all 150ms ease-in-out;
    color: var(--color-2) !important;
}

.header .rise:hover {
    color: var(--color-1) !important;
}


/* The sidepanel links */
.side-header a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.5rem;
    color: #ffffff;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

#header-mobile {
    display: none;
    position: absolute;
    top: -1000px;

    @media (max-width: 800px) {
        display: flex;
        position: fixed;
        top: 0px;
    }
}

#header-desktop {
    display: flex;

    @media (max-width: 800px) {
        display: none;
        position: absolute;
        top: -1000px;
    }
}

.mobile-left {
    flex: auto;
    justify-content: flex-start;
    display: flex;
    align-items: center;
}

.mobile-right {
    flex: auto;
    justify-content: flex-end;
    display: flex;
    align-items: center;
}

.header-left {
    flex: 1;
    justify-content: flex-start;
    display: flex;
    align-items: center;
}

.header-right {
    flex: 1;
    justify-content: flex-end;
    display: flex;
    align-items: center;
}

.header-center {
    flex: 1;
    justify-content: center;
    display: flex;
    align-items: center;
}

.header-center a {
    height: 4rem;
}

.header-center img {
    height: 120%;
    width: auto;
    object-fit: contain;
}

.header a {
    float: left;
    color: white;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    line-height: 25px;
    border-radius: 4px;
}

.return-button * {
    font-weight: bold;
    color: white !important;
    transition: all 100ms ease-in-out;
}

.return-button :hover * {
    color: var(--color-cyan) !important;
}

.return-button :hover {
    color: #ffffff80;
}

/* The sidepanel menu */
.side-header {
    height: 100%;
    width: 25%;
    position: fixed;
    display: none;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #1e3a6d;
    overflow-x: hidden;
    padding-top: 60px;
    transition: 0.5s;
    z-index: 10000;
    vertical-align: middle;
}

/* Position and style the close button (top right corner) */
.side-header .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* The sidepanel links */
.side-header a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #ffffff;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    margin: auto;
}


.toggle-password {
    position: absolute;
    bottom: 1px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #888;
    padding: .25rem .5rem;
    margin: .45rem .45rem;
    border-radius: 50%;
}

.toggle-password:hover {
    background-color: #ffffff10;
}

.toggle-password i {
    display: none;
}

/* show the eye icon initially */
.toggle-password .bi-eye {
    display: inline-block;
}

.welcome-screens {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 500px;
    width: 90%;
}

.welcome-screens .welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-align: center;
}

.welcome-screens #welcome p {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.welcome-screens #subscription button {
    background-color: #0B1426;
    border: 2px solid rgb(232 234 246 / 20%);
    border-radius: 1rem;
    padding: .7rem 1.2rem;
    outline: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    gap: .5rem;
    text-align: left;
}

.welcome-screens #subscription h2 {
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1;
}

.welcome-screens #subscription h2 small {
    display: block;
    font-size: .7em;
}

.welcome-screens #subscription h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-cyan);
}

.welcome-screens #subscription p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-accent);
    max-width: 36ch;
    margin-top: .5rem;
}

.welcome-screens #subscription button:not(:disabled):hover {
    background-color: #1c315c;
}

/* home page */

.tabs {
    padding: 0 2rem;
    margin: 0 auto;
    margin-top: 6rem;
    margin-bottom: 2rem;
    width: 90%;
    max-width: 1100px;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
}

.tab {
    padding: .5rem 1rem;
    border: 2px solid var(--color-purple);
    border-radius: 5rem;
    background-color: transparent;
    color: var(--color-purple);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 150ms ease-in-out;
}

.tab:hover {
    background-color: rgba(var(--color-v-purple), .5);
    color: white;
}

.tab.selected {
    background-color: var(--color-purple);
    color: white;
    border-color: var(--color-purple-h);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.tabs-content {
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tabs-content h2 {
    margin: 0 auto;
}

.cards-group {
    padding: 0 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
    align-items: center;
    margin: auto;
}

.card {
    border-radius: 1rem;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    background-color: var(--color-cyan);
    color: white;
    text-decoration: none;
    transition: all 100ms ease-in-out;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    margin: auto;
    overflow: hidden;
    outline: 0px solid var(--color-cyan);
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: linear-gradient(to bottom, rgba(var(--color-v-purple), 0.4) 10%, rgba(var(--color-v-cyan-h), 0.4) calc(100% - 4px), var(--color-cyan-h));
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: var(--color-cyan-h);
    outline: 3px solid var(--color-cyan);
}

.card progress {
    position: absolute;
    width: 100%;
    height: .35rem;
    border-radius: 1rem;
    bottom: 0px;
    left: 0;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    z-index: 10;
}

.card progress::-webkit-progress-bar {
    background-color: #00000050;
}

/* Red of default */
.card progress::-webkit-progress-value {
    background-color: var(--color-red);
}

.card progress::-moz-progress-bar {
    background-color: var(--color-red);
}

/* Yellow */
.card progress.yellow::-webkit-progress-value {
    background-color: var(--color-yellow);
}

.card progress.yellow::-moz-progress-bar {
    background-color: var(--color-yellow);
}

/* Blue */
.card progress.blue::-webkit-progress-value {
    background-color: var(--color-blue);
}

.card progress.blue::-moz-progress-bar {
    background-color: var(--color-blue);
}

/* Green */
.card progress.green::-webkit-progress-value {
    background-color: var(--color-lime);
}

.card progress.green::-moz-progress-bar {
    background-color: var(--color-lime);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 10rem;
    background-color: #00000080;
    border-radius: .5rem;
    overflow: hidden;
}

.cardimg {
    border: none;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card h3 {
    margin: 0;
    padding: .3rem 0;
    font-size: 1.25rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    color: white;
}


@media (max-width: 1240px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
        width: 900px;
    }

    #admin_dashboard {
        width: 900px;
    }
}

@media (max-width: 940px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        width: 600px;
    }

    #admin_dashboard {
        width: 600px;
    }
}

@media (max-width: 640px) {
    .cards {
        grid-template-columns: 1fr;
        width: 300px;
    }

    #admin_dashboard {
        width: 300px;
    }
}

.totalProficiency {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .05rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--color-cyan);
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #333;

}

.totalProficiency p {
    color: #111;
    font-size: .75rem;
    font-weight: 300;
}



/* feedback */
.feedback-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    margin: 0.75rem .25rem;
    max-height: calc(100% - 10rem);
    width: min(17rem, 22vw);
    border-radius: .5rem;
    background: linear-gradient(to bottom, rgba(var(--color-v-purple), 0.6) 10%, rgba(var(--color-v-cyan-h), 0.8) calc(100% - 4px), var(--color-cyan-h));
    color: #fff;
    z-index: 1000;
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.feedback-container.disabled {
    opacity: 0 !important;
    pointer-events: none !important;
}


.feedback-container.closed {
    position: fixed;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    border-radius: 4rem;
}

.feedback-container.closed #feedback-container {
    opacity: 0;
}

.feedback-container:not(.closed) .feedback-open {
    display: none;
}

.feedback-open {
    position: absolute;
    right: 0rem;
    top: 0rem;
    border-radius: 4rem;
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    display: grid;
    place-content: center;
    border: none;
    outline: none;
    background-color: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}


.feedback-container.closed .feedback-close {
    display: none;
}

.feedback-close {
    position: absolute;
    right: 0rem;
    top: 0rem;
    border-radius: 4rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 1.2rem;
    display: grid;
    place-content: center;
    z-index: 1;
    border: none;
    outline: none;
    background-color: transparent;
    color: #ffffff60;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-open:hover,
.feedback-close:hover {
    background-color: #ffffff30;
    color: #ffffff;
}

#feedback-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: fit-content;
}


#feedback-container>div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.75rem;
    border-radius: 0.5rem;
    position: relative;
    padding-top: 1rem;
}

#feedback-container>div h4 {
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    text-align: left;
    color: var(--color-cyan);
    text-transform: uppercase;
}

#feedback-container>div p {
    line-height: 1.5;
    font-size: 1rem;
    font-weight: 700;
}

#feedback-container>div a {
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: var(--color-cyan);
    text-decoration: none;
    white-space: nowrap;
}

#feedback-container>div a:hover {
    text-decoration: underline;
}

@media (max-width: 1240px) {

    #feedback-container>div p {
        font-size: .85rem;
    }
}

@media (max-width: 640px) {
    .feedback-container {
        width: calc(100% - 2.5rem);
    }

    .feedback-container.closed {
        width: 3rem;
        height: 3rem;
    }

    .feedback-open {
        font-size: 1.4rem;
    }

    .feedback-close {
        width: 2rem;
        height: 2rem;
        font-size: 1.4rem;
    }

    #feedback-container>div h4 {
        font-size: .95rem;
    }

    #feedback-container>div p {
        font-size: 1.1rem;
    }
}