@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@300,400,500,700,800,900&display=swap" rel="stylesheet');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Figtree", sans-serif;
}

:root{
    /* ===== Colors ===== */
    --body-color: #ffffff;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}
.homepage{
    justify-content: center;
    align-items: center;
    padding: 70px;
    background-image: url(images/homebg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.825);
    background-blend-mode: lighten;
    height: 100vh;
}
.aboutpage{
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 60px;
    background-image: url(images/homebg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.825);
    background-blend-mode: lighten;
    background-attachment: fixed;
}
.content{
    position: fixed;
    margin-left: 270px;
    width: calc(100% - 270px);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.chat{
    width: calc(100% - 270px);
    height: 100%;
    margin-left: 270px;
}
.homepagetop .logo{
    height: 67px;
    margin-left: 3px;
}
.homepagetop .logolong{
    height: 40px;
    transform: translateY(-20px);
}
.homepagetop .homepagetitle{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
    margin-top: 20px;
    line-height: 75px;
    letter-spacing: -3px;
    font-size: 80px;
}
.homepagetop .homepagetitle b{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    font-size: 80px;
}
.homepagetop .homepagesubtitle{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
    margin-top: 20px;
    line-height: 65px;
    letter-spacing: -1px;
    font-size: 65px;
}
.homepagetop .homepagebody{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 500;
    margin-top: 20px;
    line-height: 37px;
    font-size: 37px;
}
.homepagetop .homepagebody b{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 700;
    margin-top: 20px;
    line-height: 37px;
    font-size: 37px;
}
.homepagetop .homebuttons{
    margin-top: 15px;
}
.homepagetop .homebuttons button{
    padding: 19px;
    font-size: 30px;
    margin-right: 5px;
    margin-top: 5px;
    border-radius: 19px;
    font-family: 'Cabinet Grotesk', sans-serif;
    border: none;
    font-weight: 500;
    color: #fff;
    transition: ease 0.2s;
}
.homepagetop .homebuttons i{
    transform: translateY(3px);
    margin-right: 2px;
}
.homepagetop .homebuttons button:hover{
    transform: scale(0.96);
    cursor: pointer;
}
.homepagetop .homebuttons .btn1{
    background: linear-gradient(#0d00ff, #65a8ff);
}
.homepagetop .homebuttons .btn2{
    background: linear-gradient(#c300ff, #ff00d4);
}
.flashcardnav{
    background: var(--primary);
    padding: 16px 25px 10px;
    width: 100%;
}
.flashcardnav .flashlogo{
    height: 35px;
}
.flashcardcreator{
    display: flex;
    height: 100vh;
}
.flashcardviewer{
    background-color: #ffffff;
    width: 60%;
    padding: 36px;
}
.emptyviewermessage .emptylabel{
    font-size: 20px;
    margin-top: 8px;
    color: #4d4d4d;
}
.emptyviewermessage{
    padding: 20px;
    margin-top: 90px;
    display: flex;
    text-align: center;
    flex-direction: column;
}
.emptyviewermessage i{
    font-size: 40px;
}
.model-answer-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
    font-size: 0.95em;
    color: #1e293b;
}

.answer-header, .scheme-header {
    padding: 8px 12px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.answer-header { background: #dcfce7; color: #166534; border-bottom: 1px solid #bbf7d0; }
.scheme-header { background: #f1f5f9; color: #475569; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }

.answer-body, .scheme-body {
    padding: 12px;
    line-height: 1.5;
}
.nav-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.nav-btn {
    background: #6c757d; /* A neutral grey to distinguish from topics */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    transition: ease 0.3s;
}

.nav-btn:hover {
    background: #495057;
}

.scheme-body { background: #ffffff; font-size: 0.9em; }
.sidebar{
    height: 100%;
    padding: 19px;
    width: 270px;
    position: fixed;
    background-color: #f3f3f3;
    animation: sidebarFade 0.35s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes sidebarFade {
    from {
        opacity: 0;
        transform: translateX(-30px) ;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes flashcardFade {
    from {
        opacity: 0;
        transform: scale(1.1) ;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.sidebar .logo{
    height: 50px;
    margin-bottom: 13px;
    cursor: pointer;
}
.sidebar .logomob{
    display: none;
}
.sidebar .sidebar-link{
    padding: 12px;
    background-color: #fff;
    font-weight: 500;
    margin-top: 8px;
    font-size: 19px;
    font-family: 'Cabinet Grotesk', sans-serif;
    outline: 1px solid #d8d8d8;
    border-radius: 13px;
    transition: 0.3s ease;
}
.sidebar .sidebar-link:hover{
    transform: scale(0.98);
    cursor: pointer;
    background-color: #efefef;
}
.sidebar-link i{
    color: #213bcb;
    transform: scale(1.2) translateY(1.5px);
    margin-right: 6px;
}
.sidebar .mysubjects{
    margin-top: 17px;
    padding: 14px;
    outline: 1px solid #d8d8d8;
    width: 230px;
    border-radius: 13px;
    background-color: #f8f8f8;
    height: calc(100% - 250px);
    overflow-y: auto;
}
.sidebar .myflashcards{
    margin-top: 17px;
    padding: 14px;
    outline: 1px solid #d8d8d8;
    width: 230px;
    border-radius: 13px;
    background-color: #f8f8f8;
    height: calc(100% - 200px);
    overflow-y: auto;
}
.mycoursecaption i{
    transform: scale(1.4) translateY(1px);
    margin-right: 10px;
    color: #0b1865;
    margin-left: 4px;
}
.subjects-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding: 10px 0;
}
.subject-card {
    background: rgb(255, 255, 255);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 10px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.subject-card:hover {
    background: rgb(234, 234, 234);
    transform: translateX(4px); /* Gentle slide effect */
}
.subject-name {
    font-weight: bold;
    font-size: 1rem;
}
.board-tag {
    opacity: 0.6;
    text-transform: uppercase;
}
.delete-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.5rem;
    opacity: 0; /* Hidden until hover */
    transition: opacity 0.2s;
}
.subject-card:hover .delete-btn {
    opacity: 1;
}
.topic-pill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.topic-pill {
    background-color: #ffffff;
    border: 1.5px solid #3b82f6; /* Modern Blue */
    color: #3b82f6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topic-pill:hover {
    background-color: #3b82f6;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.topic-pill:disabled {
    border-color: #cbd5e1;
    color: #64748b;
    cursor: default;
}
:root {
            --primary: #4f46e5;
            --bg: #f8fafc;
            --text: #1e293b;
            --white: #ffffff;
        }
#app {
            width: 100%;
            height: 100vh;
            background: var(--white);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        header {
            padding: 16px 25px 10px;
            background: var(--primary);
            color: white;
            text-align: left;
            font-weight: 800;
            font-family: 'Cabinet Grotesk', sans-serif;
            font-size: 1.3rem;
        }
        header .chatlogo{
            height: 27px;
        }
        .sessionbtn{
            color: #fff;
            position: absolute;
            transform: translateY(10px) translateX(-23px);
            background-color: #0d2296;
            right: 0;
            top: 0;
            border-radius: 14px;
            outline: 1px solid #ffffff32;
            z-index: 99;
        }
        .sessionbtn:hover{
            background-color: #132cbc;
        }
/* Fullscreen Blur Background */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px); /* The modern blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999999;
    transition: all 0.3s ease;
}

/* The Selection Card */
.modal-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    text-align: center;
}
.modal-card h2{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.input-group select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.save-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: ease 0.2s;
}

.save-btn:hover { background: #0056b3; }

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}
.review-card {
    background: #f8f9fa;
    border-left: 5px solid #4a90e2;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}
.review-card h3 { margin-top: 0; color: #333; }
.review-card ul { padding-left: 20px; }

        #chat-window {
            flex: 1;
            padding: 25px;
            overflow-y: auto;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .message {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 12px;
            font-size: 0.95rem;
            line-height: 1.6;
            animation: fadeInUp 0.35s ease-out forwards;
            will-change: transform, opacity;
        }
.message ul {
    margin: 10px 0;
    padding-left: 25px; /* Gives space for the bullets */
    list-style-type: disc;
}

.message li {
    margin-bottom: 5px;
}
/* Target the root of every MathJax equation */
mjx-container mjx-n, 
mjx-container mjx-i, 
mjx-container mjx-utext {
    font-family: MathJax_Main, "Times New Roman", serif !important;
    font-variant-numeric: tabular-nums !important;
    font-size: 1.6em;
    font-style: italic;
}

mjx-c::before {
    font-family: MathJax_Main, serif !important;
    font-weight: 500;
    font-style: italic;
    font-size: 1.6em;
}

mjx-container[jax="CHTML"]:not([display="true"]) {
    padding: 0 0.15em;
}
        
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.flow-btn {
    background: #ffffff;
    color: #4a90e2;
    border: 2px solid #4a90e2;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 3px;
    margin-bottom: 4px;
    transition: all 0.2s;
    text-align: center;
    width: fit-content;
}

.flow-btn:hover {
    background: #4a90e2;
    color: white;
}

.flow-btn:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: default;
}

        .bot { background: #f1f5f9; align-self: flex-start; border-bottom-left-radius: 2px; max-width: 85%; line-height: 1.5;}
        .user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }

        .btn-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-top: 10px;
        }

        button {
            padding: 10px;
            border: 1px solid var(--primary);
            background: transparent;
            color: var(--primary);
            border-radius: 8px;
            cursor: pointer;
            transition: 0.2s;
            font-weight: 500;
        }
        .reset-btn{
            margin-top: 15px;
        }

        button:hover { background: var(--primary); color: white; }

        footer {
            padding: 15px;
            border-top: 1px solid #e2e8f0;
            display: flex;
            gap: 10px;
        }
#user-input {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
    border-radius: 12px;
    outline: none;
    border: 1px solid #ddd;
    resize: none; /* Prevents user from manually dragging the box bigger */
    overflow-y: hidden; /* Hides scrollbar until needed */
    font-family: inherit;
    line-height: 1.5;
    min-height: 45px;
    transition: height 0.1s ease;
}
#user-input.large-active {
    min-height: 250px;
    border: 1.5px solid #007bff;
    background-color: #fff;
}
.sendbtn{
    padding: 10px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 17px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.sendbtn:hover{
    background: var(--primary);
    color: #fff;
    transform: scale(0.9);
}
/* Ensure the input area container remains flexible */
#input-area {
    transition: all 0.3s ease;
}

.expand-hint-btn {
    background: #e9ecef;
    border: none;
    color: #495057;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 5px;
    display: inline-block;
}

.expand-btn {
  cursor: pointer;
}

        .hidden { display: none; }
.homeheading{
    color: #fff;
    padding-top: 10px;
    transform: translateY(15px);
    margin-left: 25px;
    font-size: 35px;
    font-weight: 600;
}
.homesubheading{
    color: #fff;
    padding-top: 10px;
    transform: translateY(15px);
    margin-left: 25px;
    font-size: 20px;
    padding-right: 10px;
    font-weight: 300;
}
.homesubheading b{
    font-weight: 500;
}
.rightbuttons .uploadnav{
    font-size: 20px;
    background-color: transparent;
    font-weight: 500;
    padding: 2px 9px 3px 4px;
    border: none;
    transform: translateY(-2.5px);
    padding-bottom: 8px;
    color: #000000;
    border-radius: 10px;
    cursor: pointer;
    transition: ease 0.3s;
}
.rightbuttons .uploadnav:hover{
    background-color: #0026ff;
    color: #fff;
}
.rightbuttons .uploadnav i{
    font-size: 27px;
    transform: translateY(5px);
}
.rightbuttons .homebutton i{
    font-size: 27px;
    transform: translateY(2px);
}
.rightbuttons{
    float: right;
    margin-right: 71px;
    margin-top: 14px;
}
.pagetitle{
    color: #0019a4;
}
.subheading{
    font-weight: 400;
    font-size: 24px;
}
.resourceselector{
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 355px);
    gap: 18px;
}
.resourceselector .resource-subject{
    background-color: #f5f5f5;
    outline: 1px solid #dadada;
    text-align: center;
    padding: 15px;
    border-radius: 12px;
    color: #000;
    font-weight: 500;
    width: 100%;
    transition: ease 0.3s;
}
.resourceselector .resource-subject:hover{
    background-color: #0037ff;
    color: #fff;
    transform: scale(0.95);
    cursor: pointer;
}
.resourceselector .resource-subject .resource-title{
    font-size: 23px;
}
.resourceselector .resource-subject i{
    margin-right: 10px;
    transform: scale(1.6) translateY(-1px);
}
.footer{
    background-color: #383838;
    padding: 40px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.footer .footerlogo{
    height: 30px;
    margin-left: 12px;
    margin-bottom: 15px;
}
.footer .copyrighttext{
    font-size: 19px;
    letter-spacing: -0.3px;
    font-weight: 600;
    color: #fff;
    padding-left: 14px;
}
.socialfooter{
    margin-left: 15px;
    margin-top: 7px;
    padding-bottom: 20px;
}
.socialsub{
    margin-left: 15px;
    font-size: 27px;
    font-weight: 500;
    color: #fff;
}
.socialfooter i{
    text-decoration: none;
    color: #ffffff;
    font-size: 34px;
    cursor: pointer;
}
.tiles{
    display: grid;
    padding: 20px;
    grid-template-columns: 50% 50%;
}
.home-icon{
    position: relative;
    object-fit: cover;
    width: 100%;
    height: 220px;
    padding-right: 12px;
    padding-top: 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: ease 0.5s;
}
.home-icon .thumbnail{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(60%);
    outline: 1px solid #5b5b5b;
}
.home-icon:hover{
    transform: scale(1.02);
    filter: brightness(1.4);
}
.home-icon .article-title{
    font-weight: 500;
    font-size: 28px;
    line-height: 1.1;
    width: 75%;
    color: #ffffff;
    padding-right: 10px;
}
.home-icon .article-date{
    color: #fff;
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
}
.overlaytext{
    position: absolute;
    bottom: 18px;
    left: 17px;
}
.overlaytext hr{
   width: 80%;
   opacity: 60%;
   border-top: 1.2px solid #ffffff79;
   border-bottom: 1.5px solid #ffffff79;
   border-radius: 5px;
   transform: translateY(8px);
}
.submitoptions{
    display: flex;
    width: 100%;
}
.submitoptions a{
    width: 100%;
    margin-right: 10px;
}
#deckList{
    margin-top: 15px;
}

.deck-item {
            padding: 12px;
            background: #ffffff;
            margin-bottom: 8px;
            border-radius: 8px;
            cursor: pointer;
            outline: 1px solid #c7c7c7;
            display: flex;
            justify-content: space-between;
            transition: 0.2s;
        }
        .deck-item:hover { background: #dfdfdf; }

        .creator-box {
            background: rgb(239, 239, 239);
            padding: 25px;
            height: 100%;
            border-top-right-radius: 13px;
            border-bottom-right-radius: 13px;
            width: 40%;
            max-width: 600px;
            margin-bottom: 30px;
        }

        .flashinput {
            width: 100%;
            resize: none;
            padding: 11px;
            height: 100px;
            margin: 3px 0;
            border: 1px solid #e2e8f0;
            border-radius: 9px;
            outline: none;
            box-sizing: border-box;
            font-size: 1rem;
        }
        .btn-row {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        .btn-row i{
            transform: translateY(1.5px) scale(1.2);
            margin-right: 4px;
        }
        .btn-add {
            background: linear-gradient(#c61cec, #ca099a);
            color: white;
            border-radius: 13px;
            font-size: 1.1rem;
            padding: 15px;
            width: 50%;
            border: none;
        }
        .btn-add:hover{
            opacity: 80%;
            background: linear-gradient(#c61cec, #ca099a);
        }
        .btn-save {
            background: linear-gradient(#2b00ff, #581665);
            color: rgb(255, 255, 255);
            font-size: 1.1rem;
            width: 50%;
            padding: 15px;
            border-radius: 13px;
            border: none;
        }
        .btn-save:hover {
            background: linear-gradient(#2b00ff, #581665);
            opacity: 80%;
        }
        .delete-icon{
            transform: scale(1.2) translateY(1px);
            color: maroon;
            border-radius: 2px;
        }
        .delete-icon:hover{
            background-color: #b6b6b6;
        }
        .nav-controls{
            margin-top: 20px;
        }
        .manage-cards-section {
            width: 100%;
            bottom: 90px;
            right: 30px;
            position: fixed;
            outline: 1px solid #cdcdcd;
            z-index: 999;
            overflow-y: auto;
            max-width: 550px;
            max-height: 200px;
            background: white;
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            animation: fadeInUp 0.35s ease-out forwards;
            will-change: transform, opacity;
        }
        .manage-cards-section h4 { margin-top: 0; color: #64748b; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px;}
        
        .manage-card-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px;
            border-bottom: 1px solid #f1f5f9;
            font-size: 0.95rem;
        }
        .manage-card-item:last-child { border-bottom: none; }
        .manage-card-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 350px;
        }
        .btn-toggle-manage {
            bottom: 30px;
            right: 30px;
            width: calc(60% - 220px);
            position: fixed;
            outline: 1px solid #d7d7d7;
            background: #f1f1f1;
            color: #000000;
            border: none;
            font-size: 1rem;
            padding: 10px 20px;
            border-radius: 13px;
            animation: fadeInUp 0.35s ease-out forwards;
            will-change: transform, opacity;
        }
        .btn-toggle-manage:hover {
            background: #e0e0e0;
            color: #1e293b;
        }
        .manage-actions { display: flex; gap: 10px; }
        .btn-mini-edit { background: #f0fdf4; color: #16a34a; font-size: 0.8rem; padding: 6px 12px; border-radius: 6px;}
        .btn-mini-edit:hover { background: #dcfce7; }
        .btn-mini-del { background: #fef2f2; color: #dc2626; font-size: 0.8rem; padding: 6px 12px; border-radius: 6px;}
        .btn-mini-del:hover { background: #fee2e2; }

        /* Card Visuals */
        .card-view {
            height: 300px;
            width: 100%;
            display: flex;
            perspective: 1100px;
            cursor: pointer;
            align-items: center;
            animation: flashcardFade 0.35s ease-out forwards;
            will-change: transform, opacity;
        }
        .card-inner {
            width: 100%;
            height: 100%;
            position: relative;
            align-items: center;
            transform-style: preserve-3d;
            transition: transform 0.5s;
        }
        .modal-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.6);
            display: none; /* Hidden by default */
            justify-content: center;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(4px);
        }
        .empty-state {
            color: #64748b;
            font-size: 1rem;
            margin-top: 20px;
            line-height: 1.3;
        }
        .modal-savebox {
            background: white;
            padding: 30px;
            border-radius: 20px;
            width: 90%;
            max-width: 400px;
            text-align: center;
        }
        .modal-savebox h3{
            margin-bottom: 10px;
        }
        .modal-savebox p{
            margin-bottom: 10px;
        }
        .modal-savebox input{
            outline: none;
        }
        .card-inner.flipped { transform: rotateY(180deg); }

        .face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 30px;
            border-radius: 20px;
            font-size: 1.5rem;
            text-align: center;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            box-sizing: border-box;
        }

        .front { background: white; border: 3px solid var(--primary); }
        .back { background: var(--primary); color: white; transform: rotateY(180deg); }

        .nav { margin-top: 20px; display: flex; align-items: center; gap: 20px; }
        .del-deck { color: #f87171; cursor: pointer; font-size: 0.8rem; }
@media screen and (max-width: 550px) {
    .homepage{
        padding: 40px;
    }
    .content{
        width: 100%;
        position: absolute;
        margin-left: 0px;
        height: calc(100% - 70px);
        transform: translateY(70px);
    }
    .chat{
        position: fixed;
        margin-left: 0px;
        margin-top: 70px;
        width: 100%;
        height: 100%;
}
#app {
            height: calc(100% - 70px);
        }
header{
    display: none;
}
    .sidebar{
        height: 70px;
        width: 100%;
        z-index: 9;
        animation: none;
    }
    .sidebar .logo{
        display: none;
    }
    .sidebar .logomob{
        display: block;
        position: absolute;
        height: 26px;
        text-align: center;
    }
    .sidebar .sidebar-link{
        width: 100px;
        font-size: 17px;
        padding: 10px;
        margin-right: 5px;
        text-align: center;
    }
    #homenav{
        display: none;
    }
    .sidebar-link i{
        display: none;
    }
    .sidebarlinks{
        display: none;
    }
    .mysubjects{
        display: none;
    }
    .myflashcards{
        display: none;
    }
    .homepagetop .logo{
    height: 67px;
    margin-left: 3px;
}
.homepagetop .logolong{
    height: 35px;
}
.homepagetop .homepagetitle{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
    margin-top: 20px;
    line-height: 65px;
    letter-spacing: -3px;
    font-size: 70px;
}
.homepagetop .homepagesubtitle{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
    margin-top: 20px;
    line-height: 50px;
    letter-spacing: -1px;
    font-size: 50px;
}
.homepagetop .homepagetitle b{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 800;
    font-size: 70px;
}
.homepagetop .homepagebody{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 500;
    margin-top: 20px;
    line-height: 37px;
    font-size: 30px;
}
.homepagetop .homepagebody b{
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
    margin-top: 20px;
    line-height: 37px;
    font-size: 30px;
}
.flashcardnav{
    display: none;
}
.flashcardcreator{
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.flashcardviewer{
    background-color: #ffffff;
    width: 100%;
    padding: 15px;
}
.btn-toggle-manage {
    display: none;
}
.creator-box {
            background: rgb(239, 239, 239);
            padding: 25px;
            height: 100%;
            border-top-right-radius: 13px;
            border-bottom-right-radius: 13px;
            width: 100%;
            max-width: 600px;
            margin-bottom: 30px;
        }

}