.flashcard-introduction-page .flashcard-intro-page-content-card {
    background-color: white;
    width: 80vw;
    margin-left: 7.5vw;
    height: fit-content;
    min-height: 10vw;
    margin-top: 7.5vw;
    border-radius: 2vw;
    padding-top: 2.5vw;
    padding-bottom: 2.5vw;
    padding-left: 2vw;
    padding-right: 2vw;
}

.flashcard-intro-page-card-title-container {
    height: fit-content;
    width: 75vw;
    font-size: 3vw;
    color: var(--c2);
    padding-bottom: 0.5vw;
    border-bottom: 2px solid var(--c2);
}

.flashcard-intro-page-card-main-content-container {
    width: 75vw;
    margin-top: 2vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flashcard-intro-page-card-main-content-container h1 {
    font-size: 2vw;
    color: var(--c2);
}

.flashcard-intro-page-card-main-content-container input {
    width: 12.5vw;
    height: 3vw;
    border-radius: 1.5vw;
    border: 2px solid var(--c4);
    padding-left: 1vw;
    padding-right: 1vw;
    font-size: 1.5vw;
    outline: none;
}

.flashcard-intro-page-study-button-container {
    width: 75vw;
    height: fit-content;
    margin-top: 2vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flashcard-intro-page-study-button-1,
.flashcard-intro-page-study-button-2 {
    width: 12.5vw;
    height: 3vw;
    border: 2px solid var(--c1);
    background-color: var(--c2);
    color: white;
    font-size: 1.5vw;
    border-radius: 1.5vw;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.flashcard-intro-page-study-button-1:hover,
.flashcard-intro-page-study-button-2:hover {
    background-color: white;
    color: var(--c2);
    border: 2px solid var(--c2);
}

.create-flashcard-page .flashcard {
    background-color: #625c68;
    display: none;
    width: 65vw;
    height: 65vw !important;
    border-radius: 2.5vw;
    margin: auto;
    margin-top: 2.08vw;
}

.create-flashcard-page .flashcard .question-container {
    height: 30vw;
    align-items: center;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.create-flashcard-page .flashcard .question-container textarea {
    width: 85%;
    height: 80%;
    min-height: 80%;
    max-height: 80%;
    min-width: 85%;
    max-width: 85%;
    margin-left: 7.5%;
    margin-top: 4%;
    border: none;
    outline: none;
    background-color: var(--c1);
    color: white;
    font-size: 200%;
    border-radius: 1vw;
    padding-left: 2.5%;
    padding-top: 1.5%;
    transition: background-color 0.2s, border 0.2s;
}

.create-flashcard-page .flashcard .question-container textarea:focus {
    background-color: #464548;
    border: 2px solid var(--c4);
}

.create-flashcard-page .flashcard .divider-container {
    height: 5%;
}

.create-flashcard-page .flashcard .divider-container .divider {
    height: 2.5%;
    width: 80%;
    margin: auto;
    margin-top: 2.25%;
    background-color: white;
}

.create-flashcard-page .flashcard .answer-container {
    height: 30vw;
}

.create-flashcard-page .flashcard .answer-container textarea {
    width: 85%;
    height: 85%;
    min-height: 85%;
    max-height: 85%;
    min-width: 85%;
    max-width: 85%;
    margin-left: 7.5%;
    margin-top: 0%;
    border: none;
    outline: none;
    background-color: var(--c1);
    color: white;
    font-size: 200%;
    border-radius: 1vw;
    padding-left: 2.5%;
    padding-top: 1.5%;
    transition: background-color 0.2s, border 0.2s;
}

.create-flashcard-page .flashcard .answer-container textarea:focus {
    background-color: #464548;
    border: 2px solid var(--c4);
}

.options-container {
    margin-left: 15%;
    margin-top: -2.5;
    width: 70%;
    height: 20%;
    padding: 0;
    position: absolute;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.new-flashcard-btn {
    background-color: white;
    width: 30%;
    height: 40%;
    border-radius: 5vw;
    padding-top: 0%;
    text-align: center;
    font-size: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s;
    color: var(--c4)
}

.new-flashcard-btn strong {
    font-size: 125%;
}

.new-flashcard-btn:focus {
    background-color: #e8e8e8;
    color: var(--c4);
}

.new-flashcard-btn:hover {
    background-color: #f5f5f5;
    cursor: pointer;
    color: var(--c4)
}

.new-flashcard-btn:active {
    background-color: #e8e8e8;
    color: var(--c4);
}

.previous-flashcard-btn {
    background-color: white;
    width: 30%;
    height: 40%;
    border-radius: 5vw;
    padding-top: 0%;
    text-align: center;
    font-size: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background-color 0.3s;
    color: var(--c4);
}

.previous-flashcard-btn strong {
    font-size: 125%;
}

.previous-flashcard-btn:hover {
    background-color: #f5f5f5;
    cursor: pointer;
    color: var(--c4)
}

.previous-flashcard-btn:active {
    background-color: #e8e8e8;
    color: var(--c4);
}

.study-flashcard-page .flashcard {
    background-color: var(--c2);
    width: 65vw;
    height: 37vw;
    border-radius: 2.5vw;
    margin: auto;
    margin-top: 2.08vw;
    padding-top: 1.04vw;
}

.study-flashcard-page .flashcard .question-container {
    width: 60vw;
    margin-left: 2.5vw;
    height: 17vw;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.study-flashcard-page .flashcard .question-container::-webkit-scrollbar {
    width: 8px;
    display: block;
}

.study-flashcard-page .flashcard .question-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.study-flashcard-page .flashcard .question-container::-webkit-scrollbar-track {
    background: transparent;
}

.study-flashcard-page .flashcard .question-container span {
    font-size: 2vw;
    order: 2;
}

.study-flashcard-page .flashcard .question-container img {
    width: 20vw;
    margin: 0 auto;
    margin-bottom: 1vw;
    display: none;
    order: 1;
}

.study-flashcard-page .flashcard .divider-container {
    height: 1vw;
}

.study-flashcard-page .flashcard .divider-container .divider {
    height: 5%;
    width: 80%;
    margin: auto;
    margin-top: 2.25%;
    background-color: white;
}

.study-flashcard-page .flashcard .answer-container {
    height: 16vw;
    width: 60vw;
    margin-left: 2.5vw;
    text-align: center;
    color: white;
    display: none;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.study-flashcard-page .flashcard .answer-container::-webkit-scrollbar {
    width: 8px;
    display: block;
}

.study-flashcard-page .flashcard .answer-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.study-flashcard-page .flashcard .answer-container::-webkit-scrollbar-track {
    background: transparent;
}

.study-flashcard-page .flashcard .answer-container span {
    font-size: 2vw;
}

.study-flashcard-page .flashcard .answer-container img {
    width: 20vw;
    display: none;
}

.study-flashcard-page .options-container {
    width: 40vw;
    margin-left: 30vw;
    margin-top: 1.04vw;
    height: 10.4vw;
}

.study-flashcard-page .options-container .bad-btn {
    background-color: rgb(222, 82, 62, 0.5);
    width: 32%;
    height: 100%;
    border-radius: 1vw;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 2.5%;
    color: var(--badc1);
    text-align: center;
    border: 3px solid var(--badc1)
}

.study-flashcard-page .options-container .bad-btn img {
    margin-left: 0;
    width: 70%;
}

.study-flashcard-page .options-container .bad-btn h1 {
    margin-top: -0.75vw;
    font-size: 2vw;
}

.study-flashcard-page .options-container .neutral-btn {
    background-color: rgba(224, 173, 60, 0.5);
    width: 32%;
    height: 100%;
    border-radius: 1vw;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 2.5%;
    color: rgb(224, 173, 60);
    text-align: center;
    border: 3px solid rgb(224, 173, 60);
}

.study-flashcard-page .options-container .neutral-btn img {
    margin-left: 0;
    width: 70%;
}

.study-flashcard-page .options-container .neutral-btn h1 {
    margin-top: -0.75vw;
    font-size: 2vw;
}

.study-flashcard-page .options-container .good-btn {
    background-color: rgb(83, 175, 112, 0.5);
    width: 32%;
    height: 100%;
    border-radius: 1vw;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 2.5%;
    color: rgb(83, 175, 112);
    text-align: center;
    border: 3px solid rgb(83, 175, 112);
}

.study-flashcard-page .options-container .good-btn img {
    margin-left: 0;
    width: 70%;
}

.study-flashcard-page .options-container .good-btn h1 {
    margin-top: -0.75vw;
    font-size: 2vw;
}

.flashcard-result-page-card {
    background-color: white;
    width: 80vw;
    margin-left: 7.5vw;
    height: fit-content;
    margin-top: 5vw;
    border-radius: 2vw;
    padding: 2vw;
    display: flex;           /* Add flex display */
    justify-content: space-between;  /* Space items apart */
    align-items: center;     /* Center items vertically */
}

.flashcard-result-page-card span {
    font-size: 2vw;
    color: var(--c2);
}

.flashcard-result-page-card-btn {
    background-color: var(--c2);
    width: 10vw;
    height: 3vw;
    border-radius: 1.5vw;
    color: white;
    font-size: 1.5vw;
    border: 2px solid var(--c2);
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
    font-size: 1.75vw;
}

.flashcard-result-page-card-btn:hover {
    background-color: white;
    border: 3px solid var(--c2);
    color: var(--c2);
}

/* Media Query for Smartphones (less than 500px) */
@media screen and (max-width: 500px) {
    /* Introduction page */
    .flashcard-introduction-page .flashcard-intro-page-content-card {
        width: 90vw;
        margin-left: 5vw;
        margin-top: 15vw;
        border-radius: 4vw;
        padding: 5vw 4vw;
    }
    
    .flashcard-intro-page-card-title-container {
        width: 82vw;
        font-size: 6vw;
        padding-bottom: 2vw;
    }
    
    .flashcard-intro-page-card-main-content-container {
        width: 82vw;
        margin-top: 4vw;
        flex-direction: column;
        align-items: flex-start;
        gap: 4vw;
    }
    
    .flashcard-intro-page-card-main-content-container h1 {
        font-size: 4.5vw;
    }
    
    .flashcard-intro-page-card-main-content-container input {
        width: 100%;
        height: 10vw;
        border-radius: 3vw;
        padding: 0 3vw;
        font-size: 4vw;
    }
    
    .flashcard-intro-page-study-button-container {
        width: 82vw;
        margin-top: 6vw;
        flex-direction: column;
        gap: 3vw;
    }
    
    .flashcard-intro-page-study-button-1,
    .flashcard-intro-page-study-button-2 {
        width: 100%;
        height: 10vw;
        font-size: 4vw;
        border-radius: 3vw;
    }
    
    /* Create flashcard page */
    .create-flashcard-page .flashcard {
        width: 90vw;
        height: 120vw;
        border-radius: 4vw;
        margin-top: 10vw;
    }
    
    .create-flashcard-page .flashcard .question-container {
        height: 50%;
    }
    
    .create-flashcard-page .flashcard .question-container textarea,
    .create-flashcard-page .flashcard .answer-container textarea {
        font-size: 5vw;
        border-radius: 3vw;
        padding: 3vw;
    }
    
    .options-container {
        margin-left: 5%;
        width: 90%;
        height: 15vw;
        margin-top: 5vw;
    }
    
    .new-flashcard-btn,
    .previous-flashcard-btn {
        width: 45%;
        height: 100%;
        border-radius: 3vw;
        font-size: 4vw;
    }
    
    /* Study flashcard page */
    .study-flashcard-page .flashcard {
        width: 90vw;
        height: 100vw;
        border-radius: 4vw;
        margin-top: 20vw;
        overflow: hidden;
    }
    
    .study-flashcard-page .flashcard .question-container {
        width: 82vw;
        height: 45vw;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 3vw;
        box-sizing: border-box;
    }
    
    .study-flashcard-page .flashcard .question-container span {
        font-size: 6vw;
    }
    
    .study-flashcard-page .flashcard .divider-container {
        height: 5vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .study-flashcard-page .flashcard .divider-container .divider {
        height: 0.5vw;
        width: 80%;
        background-color: white;
    }
    
    .study-flashcard-page .flashcard .answer-container {
        height: 45vw;
        width: 82vw;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 3vw;
        box-sizing: border-box;
    }
    
    .study-flashcard-page .flashcard .answer-container span {
        font-size: 5vw;
    }
    
    .study-flashcard-page .options-container {
        width: 90vw;
        margin-left: 5vw;
        margin-top: 5vw;
        height: 20vw;
        flex-direction: row;
        gap: 2vw;
        justify-content: space-between;
    }
    
    .study-flashcard-page .options-container .bad-btn,
    .study-flashcard-page .options-container .neutral-btn,
    .study-flashcard-page .options-container .good-btn {
        width: 28vw;
        height: 20vw;
        border-radius: 3vw;
        padding: 2vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .study-flashcard-page .options-container .bad-btn img,
    .study-flashcard-page .options-container .neutral-btn img,
    .study-flashcard-page .options-container .good-btn img {
        width: 8vw;
        height: 8vw;
        margin-bottom: 1vw;
    }
    
    .study-flashcard-page .options-container .bad-btn h1,
    .study-flashcard-page .options-container .neutral-btn h1,
    .study-flashcard-page .options-container .good-btn h1 {
        font-size: 4vw;
        margin-top: 1vw;
    }
    
    /* Result page */
    .flashcard-result-page-card {
        width: 90vw;
        margin-left: 5vw;
        margin-top: 15vw;
        border-radius: 4vw;
        padding: 5vw;
        flex-direction: column;
        gap: 5vw;
    }
    
    .flashcard-result-page-card span {
        font-size: 5vw;
        text-align: center;
    }
    
    .flashcard-result-page-card-btn {
        width: 80%;
        height: 12vw;
        border-radius: 3vw;
        font-size: 4.5vw;
    }
    
    .study-flashcard-page .flashcard .answer-container {
        height: 40vw;
        overflow-y: auto;
    }
    
    .study-flashcard-page .flashcard .question-container img,
    .study-flashcard-page .flashcard .answer-container img {
        width: 80vw;
    }
}