:root {
    --widthHeight: 60px;
    --buttonFontSize: 50px;
    --buttonWidth: var(--widthHeight);
    --buttonHeight: var(--widthHeight);
}

button {
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--buttonBG);
    border: var(--defaultBorder);
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    outline: none;
    padding: 5px;
    position: relative;
    z-index: 300;
}
div {
    -webkit-tap-highlight-color: transparent;
}
button:hover {
    transform: scale(1.1);
}
button:active {
    transform: scale(1);
}
button:focus{
    outline: none;
}

.material-symbols-outlined {
    color: var(--iconColor);
}

.button.active {
    background-color: var(--selectedBG);
    border: var(--buttonActiveBorder);
}


.submit {
    padding: 5px 10px;
    font-size: 25px;
    border-radius: 10px;
}



.wide_button, .submit {
    font-size: 15px;
    width: 100px;
    height: var(buttonHeight);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--buttonBG);
    padding: 5px;
    border: var(--defaultBorder);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    font: var(--normalFont);
}
.toggle_page_title_extra {
    width: 2rem;
    height: 2rem;
    border: none;
}
.title_toggle {
    font-size: 2rem;
    margin-top: 2px;
    color: var(--pageTitleColor);
}

.account_button {
    font-size: 15px;
    width: 150px;
    height: var(buttonHeight);
    padding: 5px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--buttonBG);
    border: var(--defaultBorder);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.are_you_sure {
    font-size: 15px;
    width: 150px;
    height: min-content;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--buttonBG);
    border: var(--defaultBorder);
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

#next_card {
    font-size: 15px;
    padding: 15px;
    width: 65px;
    height: 65px;
    font-weight: bolder;
}



.dashboard_button_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
}
.dashboard_button {
    width: 300px;
    height: 100px;
    background-color: var(--elementBG);
    color: var(--bodyTextColor);
    border: var(--defaultBorder);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
    /*padding: 10px;*/
    text-shadow: var(--textShadowDashboard);
    gap: 5px;
    border-radius: 5px;
}

#dashboard_button_flashcards {
    background-image: url("../images/dashboard_button_flashcards.png");
    background-position: center center;
    background-size: cover;
}
#dashboard_button_saved {
    background-image: url("../images/dashboard_button_saved.png");
    background-position: center center;
    background-size: cover;
}
#dashboard_button_stats {
    background-image: url("../images/dashboard_button_stats.png");
    background-position: center center;
    background-size: cover;
}
#dashboard_button_chengyu {
    background-image: url("../images/dashboard_button_chengyu.png");
    background-position: center center;
    background-size: cover;
}
.dashboard_button > * {
    font-family:
        "Microsoft YaHei",
        "PingFang SC",
        "Hiragino Sans GB",
        "STHeiti",
        sans-serif;
    /*font-weight: 600;*/
    text-align: center;
}
.dashboard_button_characters {
    font-size: 2rem;
    margin-top: 7px;
    z-index: 5;
}
.dashboard_button_pinyin, .dashboard_button_english {
    font-size: .9rem;
    z-index: 5;
}

#dashboard_button_saved .dashboard_button_characters {
}


/*.overlay*/

.overlay_element_vertical {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}












