@font-face {
    font-family: Comic Sans;
    src: url(/fonts/ComicSansMS3.ttf) format('truetype');
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{
    margin-top: revert-layer;
    margin-bottom: revert-layer;
    font-size: revert-layer;
}
.custom_font{
    font-family: "Comic Sans";
    font-weight: bold;
}

.margin_bottom_10{
    margin-bottom: 10px;
}

.mp_0{
    margin: 0;
    padding: 0;
}

.black_color{
    color: black !important;
}

.pos_relative{
    position: relative;
}

.text_center{
    text-align: center;
}

.display_none{
    display: none;
}

.mt5{
    margin-top: 5px;
}

.mb10{
    margin-bottom: 10px;
}

.pt7{
    padding-top: 7px;
}

.visibility_hidden{
    visibility: hidden;
}

.invisible{
    position: static;
    visibility: collapse;
    width: 0;
    display: inline-block;
}

.uppercase{
    text-transform: uppercase;
}
.lowercase{
    text-transform: lowercase;
}

.back_green{
    background: #bbff99;
}

.back_red{
    background: #ffcdd5;
}

#toast_container{
    min-width: 150px;
    max-width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    padding: 15px;
}

html > body{
    margin: 0;
    padding: 0;
    user-select: none;
}

footer{
    margin-top: 10px;
    background: #ccc;
    padding: 10px;
    text-align: center;
    font-size: 10px;
    width: 100%;
}

#user_portrait_screen, #user_horizontal_screen{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    z-index: 1001;
    background: grey;
    overflow: hidden;
    display: none;
}

.rotate_phone{
    width: 30%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,  -50%);
    color: black;
    text-align: center;
}

.game_header_title{
    padding-top: 20px;
}

.right_top_navigation{
    position: absolute;
    right: 10px;
}

.refresh_icon{
    display: none;
    pointer-events: none;
}

#background_music{
    display: none;
}

.canvas_container{
    position: relative;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

/*custom*/
.kindle_proverb_learner_audio{
    display: none;
}
    .kindle_proverb_learner_voice_clip {
        width: 25px;
        display: block;
        margin: auto;
        margin-bottom: 5px;
        cursor: pointer;
    }
    .play_voice_clip{
        cursor: pointer;
    }
.marquee {
  width: 300px; /* or 100%, depending on layout */
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  box-sizing: border-box;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}


@media only screen and (min-width: 400px) and (orientation:landscape) {
    .canvas_container{
        height: 100vh;
        aspect-ratio: 1/1.3;
    }
}

@media only screen and (max-width: 400px) and (orientation:landscape) {
    .canvas_container{
        width: 100%;
        height: 100vh;
    }
}

@media only screen and (orientation:portrait){
    .canvas_container{
        width: 100%;
        height: 100vh;
    }
}

.canvas_content{
    width: 100%;
    min-height: calc(100% - 40px);
    position: relative;
}

.canvas_background{
    position: absolute;
    width: 100%;
    height: calc(100% + 10px);
    z-index: -1;
    object-fit: cover;
}

.start_button_container{
    
    position: absolute;
    top: calc(35% + 160px);
    left: 50%;
    transform: translate(-50%, -35%);
}

.home_logo{
    width: 100px;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -35%);
}

.start_button{
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    filter: brightness(1.1);
}

.button_text{
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    font-family: "Comic Sans";
    color: #f2d33e;
    font-weight: bold;
    filter: brightness(1.1);
}

.custom_text{
    width: 90%;
    color: black;
}

@media only screen and (min-width: 500px){
    .custom_text{
        font-size: 0.95rem;
    }
   
}

button:hover, .setting_icon:hover, .refresh_icon:hover, .back_icon:hover, .back_icon_level:hover,
.back_icon_mode:hover,
.menu_board_cross:hover, .pause_play_audio:hover,
.game_tips:hover,
.fullscreen_icon:hover{
    scale: 1.05;
}

.name_board{
    filter: brightness(1.1);
    width: 220px;
}


.setting_icon, .refresh_icon, .back_icon, .back_icon_level,
.back_icon_mode,
.pause_play_audio, .game_tips, .fullscreen_icon{
    filter: brightness(1.3);
    width: 52.73px;
    cursor: pointer;
}

@media only screen and (max-width: 300px){
    .name_board{
        width: 65vw;
    }

    .setting_icon, .refresh_icon, .back_icon, .back_icon_level,
    .back_icon_mode,
    .pause_play_audio, .game_tips,
    .fullscreen_icon{
        width: 17vw;
    }
}

.navigation_top_container{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 10px 0 10px;
}

.clock_icon_container{
    padding-left: 10px;
    display: flex;
    align-items: center ;
}

.clock_icon{
    width: 30px;
}

.menu_option_container{
    width: 100%;
    text-align: center;
}

.menu_option_button{
    width: 50%;
}

@media only screen and (max-width: 400px){
    .menu_option_button{
        width: 70%;
    }
}

.menu_option{
    width: 100%;
}

.button_container{
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    filter: brightness(1.1);
    position: relative;
}

.menu_button_container{
    margin: 15px 0;
}

.menu_button_container_container, .game_level_container{
    overflow-y: auto;
    height: 55vh;
}

/* Hiding scrollbar for Chrome, Safari and Opera */
.menu_button_container_container::-webkit-scrollbar,  .game_level_container::-webkit-scrollbar, .canvas_container::-webkit-scrollbar{
    display: none;
}

/* Hiding scrollbar for IE, Edge and Firefox */
.menu_button_container_container {
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  display: flex;    
  flex-direction: column;
  justify-content: space-evenly;
}


/*popup menu*/

#popup_modal, #popup_modal_mode, #popup_modal_tips{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

#popup_modal::before, #popup_modal_mode:before, #popup_modal_tips:before {
  content: ""; /* Create a pseudo-element */
  position: absolute; /* Position the pseudo-element absolutely */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.8; /* Apply opacity to the pseudo-element */
}

#popup_modal_content, #popup_modal_mode #popup_modal_content, #popup_modal_tips #popup_modal_content2{
    width: 100%;
    border-radius: 5px;
    position: relative;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 1000;
    color: black;
    overflow-y: auto; 
    margin-bottom: 10px;
    max-height: 80vh;
}

#popup_modal_padding, #popup_modal_mode #popup_modal_padding, #popup_modal_tips #popup_modal_padding{
    position: absolute;
    max-width: 90%;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    border-radius: 10px;
}

/*popup menu*/

.menu_board{
    width: 300px;
    vertical-align: unset;
}

@media only screen and (max-width: 400px){
    .menu_board{
        width: 80vw;
    }
}

.menu_board_title{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
    .board_content {
        position: absolute;
        top: 20%;
        left: 10%;
        right: 10%;
        height: 64%;
        overflow: scroll;
    }

.menu_board_cross{
    position: absolute;
    width: 40px;
    right: 1%;
    top: 1%;
}

.menu_board_cross{
    cursor: pointer;
    filter: brightness(1.3);
}

@media only screen and (max-width: 300px){
    .menu_board_cross{
        width: 30px;
    }
}

.menu_board_button_container{
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -55%);
}

.login_board_button_container{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%);
}

.menu_board_button{
    width: 140px;
}

.login_blur_screen{
    position: absolute;
    width: 100%;
    height: 120%;
    top: 0;
    left: 0;
    opacity: 0.8;
    background: white;
}

.login_panel{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login_input_image, .login_board_button{
    width: 200px;
}
.login_input_button{
    width: 140px;
}

.login_panel .login_board_button_container{
    width: 200px;
}

.login_button_container{
    display: flex;
    justify-content: space-evenly;
}

@media only screen and (max-width: 360px){
    .menu_board_button{
        width: 110px;
    }
    .login_input_image, .login_board_button{
        width: 170px;
    }

    .login_panel .login_board_button_container{
        width: 170px;
    }
    .login_input_button{
        width: 120px;
    }
}

@media only screen and (max-width: 300px){
    .menu_board_button{
        width: 90px;
    }
    .login_input_image, .login_board_button{
        width: 140px;
    }

    .login_panel .login_board_button_container{
        width: 140px;
    }
    .login_input_button{
        width: 110px;
    }
}

@media only screen and (max-width: 280px){
    .menu_board_button_container{
        top:60%;
    }
    .login_input_image, .login_board_button{
        width: 120px;
    }

    .login_panel .login_board_button_container{
        width: 120px;
    }
    .login_input_button{
        width: 100px;
    }
}

@media only screen and (max-width: 250px){
    .menu_board_button_container{
        top:60%;
    }

    .menu_board_button{
        width: 80px;
    }
   
    .login_input_image, .login_board_button{
        width: 110px;
    }

    .login_panel .login_board_button_container{
        width: 110px;
    }
    .login_input_button{
        width: 90px;
    }
}

.login_input{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 75%;
    border: none;
    background: transparent;
    color: #fff;
}

.login_input:focus-visible{
    outline: unset;
}

.username_showcase{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 80%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.lock_icon{
    width: 25px;
    position: absolute;
    top: -20px;
    right: -10px;
    transform: rotate(30deg);
}

.button_lock{
    pointer-events: none;
}

    
.game_level_container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.game_level_button, .game_lesson_button, .game_lesson_button_mode, .game_lesson_button_mode_game{
    width: 50%;
    margin-bottom: 15px;
    position: relative;
}

.level_button, .lock_text{
    width: 60%;
}
.img_button {
    width: 60%;
}
@media only screen and (max-width: 400px){
    .level_button, .lock_text{
        width: 70%;
    }

}

@media only screen and (max-width: 350px){
    .level_button, .lock_text{
        width: 80%;
    }

}

@media only screen and (max-width: 280px){
    .level_button, .lock_text{
        width: 90%;
    }

}


/* Kindle Word Leaner */

.kindle_word_learner_game_start_panel, .kindle_speed_memory_game_start_panel, .kindle_idiom_learner_game_start_panel, .kindle_idiom_speed_memory_game_start_panel, .kindle_proverb_learner_game_start_panel, .kindle_proverb_speed_memory_game_start_panel{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
}

.kindle_word_learner_game_start_panel::before, .kindle_speed_memory_game_start_panel::before, .kindle_idiom_learner_game_start_panel::before, .kindle_idiom_speed_memory_game_start_panel::before, .kindle_proverb_learner_game_start_panel::before, .kindle_proverb_speed_memory_game_start_panel::before{
    content: ""; /* Create a pseudo-element */
    position: absolute; /* Position the pseudo-element absolutely */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.8; /* Apply opacity to the pseudo-element */
}


.kindle_word_learner_game_start_btn, .kindle_speed_memory_game_start_btn, .kindle_idiom_learner_game_start_btn, .kindle_idiom_speed_memory_game_start_btn, .kindle_proverb_learner_game_start_btn, .kindle_proverb_speed_memory_game_start_btn{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.kindle_word_learner_question_container{
    padding: 0 10px;
    display: none;
}

.kindle_word_learner_question_container.active{
    display: block !important;
    /*  issue ans overflow  */
    /*        height: 110vh;*/ 
}

.kindle_word_learner_image_frame{
    width: 100%;
    margin: 10px 0;
    position: relative;
}

.kindle_word_learner_ques_image{
    height: 40vh;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

@media only screen and (max-width: 400px){
    .kindle_word_learner_ques_image{
        width: 90vw;
        height: auto;
    }

}

.kindle_word_learner_answer_container{
    background-image: url("../images/selection_panel2.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
        background-size: cover;
    padding: 10px;
    border-radius: 10px;
    aspect-ratio: 1/0.1;
    text-align: center;
}

.kindle_word_learner_letter_box{
    margin: 2px;
    filter: brightness(1.2);
}

.kindle_word_learner_letter{
    position: absolute;
    top: 40%;
    left: 54%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    color: yellow;
}

.kindle_word_learner_selection_panel{
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    border-radius: 10px;
    justify-content: center;
    margin-top: 10px;

}

.kindle_word_learner_letter_box_container{
    cursor: pointer;
    width: 11%;
    margin: 5px !important;
}

.lvl1_3.kindle_word_learner_selection_panel{
    gap: 25px 45px;
    margin-bottom: 15px;
}
.lvl5_6.kindle_word_learner_selection_panel{
    gap: 10px 16px;
}
    .lvl1_3 .kindle_word_learner_letter_box_container,
    .lvl5_6 .kindle_word_learner_letter_box_container{
        background-image: url(../images/letter_box3.png);
        background-size: 200% 100%;
        width: max-content;
        background-repeat: no-repeat;
        background-position: center;
/*        filter: brightness(1.2);*/
        padding: 3%;
        height: 100%;
    }
    .lvl6.lvl5_6 .kindle_word_learner_letter_box_container{
        padding: 7%;
    }
    .lvl1_3 .kindle_word_learner_letter_box_container{
        padding: 3px;
    }
    .lvl1_3 .kindle_word_learner_letter_box_container::before,.lvl1_3 .kindle_word_learner_letter_box_container::after,
    .lvl5_6 .kindle_word_learner_letter_box_container::before,.lvl5_6 .kindle_word_learner_letter_box_container::after{
        content: '';
        background-image: url(../images/letter_box3.png);
        width: 5%;
        height: 100%;
        display: block;
        position: absolute;
        background-position: 0%;
        background-size: cover;
    }
    .lvl5.lvl5_6 .kindle_word_learner_letter_box_container::before,.lvl5.lvl5_6 .kindle_word_learner_letter_box_container::after{
        width: 15%;
    }
    .lvl1_3 .kindle_word_learner_letter_box_container::before,.lvl1_3 .kindle_word_learner_letter_box_container::after{
        width: 13px;
    }
    .lvl1_3 .kindle_word_learner_letter_box_container::before,
    .lvl5_6 .kindle_word_learner_letter_box_container::before{
        left: -4%;
        top: 0;
    }
    .lvl1_3 .kindle_word_learner_letter_box_container::after,
    .lvl5_6 .kindle_word_learner_letter_box_container::after{
        background-position: 100%;
        right: -4%;
        top: 0;
    }
    .lvl1_3 .kindle_word_learner_letter_box_container::before{
        left: -9px;
    }
    .lvl1_3 .kindle_word_learner_letter_box_container::after{
        
        right: -9px;
    }
        .lvl1_3 .kindle_word_learner_letter,
        .lvl5_6 .kindle_word_learner_letter{
            position: relative;
            z-index: 9;
/*            padding: 0 10px;*/
            line-height: 1.8rem;
                top: -2%;
                left: 0;
        }
        .lvl1_3 .kindle_word_learner_letter{
            padding: 25px 10px;
            line-height: 2.8rem;
        }
.lvl1_3.kindle_word_learner_question_answer_text,
.lvl5_6.kindle_word_learner_question_answer_text{
    font-size: 1.5em;
    white-space: pre-wrap;
}
.ans_filling{
    position: relative;
}
    .ans_filling .lvl5_6.kindle_word_learner_question_answer_text{
        position: absolute;
        right: 50%;
        transform: translate(50%, 15%);
        top: 0;
        font-weight: normal;
        font-size: 1.2rem;
    }
    
.kindle_word_learner_selection_panel > .pos_relative > .kindle_word_learner_letter_box{
   width: 100%;
}

.kindle_word_learner_selection_panel_hidden > .kindle_word_learner_letter_box_container{
     margin: 0px !important;
}

.lvl1_3{
    display: grid;
    grid-template-columns: auto auto;
    margin-bottom: 10px;
        justify-content: space-evenly;
}
.kindle_word_learner_selection_panel.lvl1_6.junior_lvl{
    display: flex;
}
    .lvl1_3.junior_lvl .kindle_word_learner_letter, 
    .lvl5_6.junior_lvl .kindle_word_learner_letter{
            font-size: 1.8em;
    }
    .kindle_word_learner_selection_panel.lvl5_6.junior_lvl .choose_box{
        display: flex;
            width: 100%;
    justify-content: center;
    }
        .lvl1_3.junior_lvl .choose_box .choose_box_a,
        .lvl5_6.junior_lvl .choose_box .choose_box_a{
            padding: 0 10px;
            line-height: 2.8rem;
            font-size: 1.8rem;
            display: flex;
            align-items: center;
        }
.lvl1_4_img .kindle_word_learner_ques_image{
    width: 75%;
}
.lvl1_4_img .kindle_word_learner_image_frame > div{
    background: #fff;
}
button.button_container.kindle_word_learner_next_previous_button:disabled{
    opacity: 0.5;
    scale: .9;
}
@media only screen and (max-width: 700px){
    .kindle_word_learner_letter_box_container, .kindle_word_learner_letter_box_container{
        width: 14%;
    }
}

@media only screen and (max-width: 500px){
    .kindle_word_learner_letter_box_container, .kindle_word_learner_letter_box_container{
        width: 17%;
    }
}

@media only screen and (max-width: 300px){
    .kindle_word_learner_letter{
        font-size: 1.2rem;
    }
}

.kindle_word_learner_question_answer_text{
    text-align: center;
    color: yellow;
    background: transparent;
    border: 0;
    font-size: 2.5rem;
    pointer-events: none;
}

.kindle_word_learner_question_answer{
    width: 100%;
    text-align: center;
    background: transparent;
    display: none;
    border: 0;
    pointer-events: none;
}

.kindle_word_learner_next_previous_button{
    width: 50px;
    margin: 5px;
}

.kindle_word_learner_next_previous_button > img{
    width: 50px;
    height: 50px;
}

.kindle_word_learner_next_previous_button_container{
    text-align: center;
}


@media only screen and (max-width: 720px){
    .kindle_word_learner_question_answer_text{
        font-size: 2.5rem;
    }

}

@media only screen and (max-width: 600px){
    .kindle_word_learner_question_answer_text{
        font-size: 1.85rem;
    }

}

@media only screen and (max-width: 350px){
    .kindle_word_learner_question_answer_text{
        font-size: 1.5rem;
    }

}

@media only screen and (max-width: 330px){
    .kindle_word_learner_question_answer_text{
        font-size: 1.3rem;
    }

}

@media only screen and (max-width: 270px){
    .kindle_word_learner_question_answer_text{
        font-size: 1.05rem;
    }

}

.kindle_word_learner_result_container{
    padding: 40px 10px;
}

.kindle_word_learner_result_text_container{
    background: ghostwhite;
    padding: 5px 0;
    border-radius: 15px;
}

.kindle_word_learner_result_details_container{
    margin-bottom: 20px;
/*    background: ghostwhite;*/
    padding: 5px 5px 8px 5px;
    border-radius: 15px;
}

.kindle_word_learner_result_details_container .kindle_word_learner_ques_image{
    border: none;
}

.kindle_word_learner_result_correct_green{
    color: green;
}

.kindle_word_learner_result_wrong_red{
    color: red;
}

.kindle_word_learner_result_answer_box{
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
}

.kindle_word_learner_result_answer_box img{
    width: 26.4px;
    position: absolute;
    padding-left: 2px;
}

.kindle_word_learner_result_text_container a{
    pointer-events: none;
}


.kindle_word_learner_trash_icon{
    width: 50px;
}

/* Kindle Word Leaner */


/* Kindle Speed Memory */

.speed_memory_game_container{
    margin: 5px 10px 10px 10px;
    position: relative;
    display: none;
}

.speed_memory_game_container.active{
    display: block !important;
}

.speed_memory_game_container.animation_right_to_left{
    position: relative;
    animation: right_to_left_animation 0.5s;
}

.speed_memory_game_container.animation_left_to_right{
    position: relative;
    animation: left_to_right_animation 0.5s;
}

@keyframes right_to_left_animation{
    0% { left: 100% }
    100% { left: 0% }
}

@keyframes left_to_right_animation{
    0% { left: -100% }
    100% { left: 0% }
}

.speed_memory_game_container{
    --zindex: -1;
}

.speed_memory_game_container::before{
    content: '';
    background: whitesmoke;
    position: absolute;
    width: 100%;
    border-radius: 10px;
    opacity: 0.8;
    z-index: var(--zindex);
    height: 100%;
}

.speed_memory_answer_panel{
    padding: 10px;
    display: flex;
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.speed_memory_answer_panel .speed_memory_answer_room{
    width: 100%;
   /* border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;*/
    border-radius: 5px;
    background: antiquewhite;
    position: relative;
/*    aspect-ratio: 92 / 129;*/
    aspect-ratio: 192/270;
}

.speed_memory_question_panel{
    display: flex; 
    flex-wrap: wrap;
    width: 80%;
    justify-content: space-between;
}

.speed_memory_question_panel .speed_memory_question_room{
    width: calc(10% - 7px);
   
    /*border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;*/
    border-radius: 5px;
    background: antiquewhite;
    position: relative;
   
}

.speed_memory_room_image{
    width: 100%;
    aspect-ratio: 901/1264;
    aspect-ratio: 92 / 129;
    border-radius: 5px;
}

.kindle_speed_memory_card_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 5px;
    position: relative;
}

.kindle_speed_memory_card_container_absolute{
    z-index: 100;
}

.speed_memory_answer_room > .custom_font{
    padding-bottom:5px;
}

.kindle_speed_memory_card_container > .custom_font.position_absolute, .kindle_speed_memory_result_image_word_question > .custom_font.position_absolute, .kindle_speed_memory_result_image_word_answer > .custom_font.position_absolute{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.speed_memory_action_btn{
    width: 35px;
    margin: 0 2px 2px 0;
    cursor: pointer;
}

.speed_memory_action_btn_container{
    padding-top: 5px;
    width: 90%;
    text-align: center;
    margin: auto;
    position: relative;
}

.speed_memory_action_btn:hover{
    scale: 1.1;
}

.kindle_speed_memory_result_panel{
    padding: 5px;
    margin: 10px 10px 20px 10px;
    background: white;
    border-radius: 10px;
}

.kindle_speed_memory_result_question_panel, .kindle_speed_memory_result_answer_panel{
    display: flex;
    margin-bottom: 20px;
}

.kindle_speed_memory_result_image_word_answer.ml5{
    margin-left: 5px;
}

.kindle_speed_memory_result_image_word_question, .kindle_speed_memory_result_image_word_answer{
    border-radius: 5px;
    text-align: center;
    position: relative;
}


.center_top_navigation{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.center_top_navigation .navigation_logo{
    width: 50px;
}

@media only screen and (min-width: 969px){
   .speed_memory_question_panel .speed_memory_question_room{
         width: calc(20% - 7px);
   }
   .speed_memory_question_panel{
        width: 50%;
   }
   .speed_memory_action_btn{
        width: 55px;
    }
}

@media only screen and (min-width: 400px){
    .center_top_navigation .navigation_logo{
        width: 35px;
    }
}

@media only screen and (max-width: 1000px){
    .kindle_speed_memory_card_container > .custom_font, .kindle_speed_memory_result_image_word_question > .custom_font, .kindle_speed_memory_result_image_word_answer > .custom_font{
        font-size: 11px;
    }
}

@media only screen and (max-width: 950px){
    .kindle_speed_memory_card_container > .custom_font, .kindle_speed_memory_result_image_word_question > .custom_font, .kindle_speed_memory_result_image_word_answer > .custom_font{
        font-size: 10px;
    }
}

@media only screen and (max-width: 800px){
    .kindle_speed_memory_card_container > .custom_font, .kindle_speed_memory_result_image_word_question > .custom_font, .kindle_speed_memory_result_image_word_answer > .custom_font{
        font-size: 8px;
    }
}

@media only screen and (max-width: 700px){
    .kindle_speed_memory_card_container > .custom_font, .kindle_speed_memory_result_image_word_question > .custom_font, .kindle_speed_memory_result_image_word_answer > .custom_font{
        font-size: 6px;
    }
    .top_speed_name_box{
        max-width: 220px;
        width: 40%;
    }
        .top_speed_name_box .name_board{
            max-width: 220px;
            width: 100%;
        }
}
/* Kindle Speed Memory */

 
/* Kindle Idiom Speed Memory */

.idiom_speed_memory_game_container{
    margin: 5px 10px 10px 10px;
    position: relative;
    display: none;
}

.idiom_speed_memory_game_container.active{
    display: block !important;
}

.idiom_speed_memory_game_container.animation_right_to_left{
    position: relative;
    animation: right_to_left_animation 0.5s;
}

.idiom_speed_memory_game_container.animation_left_to_right{
    position: relative;
    animation: left_to_right_animation 0.5s;
}

.idiom_speed_memory_game_container{
    --zindex: -1;
}

.idiom_speed_memory_game_container::before{
    content: '';
    background: whitesmoke;
    position: absolute;
    width: 100%;
    border-radius: 10px;
    opacity: 0.8;
    z-index: var(--zindex);
    height: 100%;
}

.idiom_speed_memory_answer_panel{
    padding: 5px 10px 10px 10px;
    display: flex;
    width: 90%;
    margin: auto;
/*    justify-content: center;*/
    overflow-x: auto;
    overflow-y: hidden;
}

.idiom_speed_memory_answer_panel .idiom_speed_memory_answer_room{
    width: calc(12.5% - 6px);
   /* border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;*/
    border-radius: 5px;
    background: antiquewhite;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.idiom_speed_memory_question_panel{
    display: flex; 
    flex-wrap: wrap;
    width: 90%;
/*    justify-content: center;*/
    overflow-x: auto;
    overflow-y: hidden;
}

.idiom_speed_memory_question_panel .idiom_speed_memory_question_room{
    width: calc(12.5% - 7px);
   
    /*border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;*/
    border-radius: 5px;
    background: antiquewhite;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
   
}

.idiom_speed_memory_room_image{
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 5px;
}

.kindle_idiom_speed_memory_card_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 5px;
    position: relative;
}

.kindle_idiom_speed_memory_card_container_absolute{
    z-index: 100;
}

.idiom_speed_memory_answer_room > .custom_font{
    padding-bottom:5px;
}

.kindle_idiom_speed_memory_card_container > .custom_font.position_absolute, .kindle_idiom_speed_memory_result_image_word_question > .custom_font.position_absolute, .kindle_idiom_speed_memory_result_image_word_answer > .custom_font.position_absolute{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.idiom_speed_memory_action_btn{
    width: 35px;
    margin: 0 2px 2px 0;
    cursor: pointer;
}

.idiom_speed_memory_action_btn_container{
    padding-top: 5px;
    width: 90%;
    text-align: center;
    margin: auto;
    position: relative;
}

.idiom_speed_memory_action_btn:hover{
    scale: 1.1;
}

.kindle_idiom_speed_memory_result_panel{
    padding: 5px;
    margin: 10px 10px 20px 10px;
    background: white;
    border-radius: 10px;
}

.kindle_idiom_speed_memory_result_question_panel, .kindle_idiom_speed_memory_result_answer_panel{
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

.kindle_idiom_speed_memory_result_image_word_answer.ml5{
    margin-left: 5px;
}

.kindle_idiom_speed_memory_result_image_word_question, .kindle_idiom_speed_memory_result_image_word_answer{
    border-radius: 5px;
    text-align: center;
    position: relative;
    padding: 5px;
    flex-shrink: 0;
    width: calc(10% - 15px);
}


@media only screen and (min-width: 969px){
   .idiom_speed_memory_question_panel .idiom_speed_memory_question_room{
         width: calc(12.5% - 7px);
   }
   /*.idiom_speed_memory_question_panel{
        width: 70%;
   }*/
   .idiom_speed_memory_action_btn{
        width: 55px;
    }
}

@media only screen and (min-width: 400px){
    .center_top_navigation .navigation_logo{
        width: 35px;
    }
}

@media only screen and (max-width: 1000px){
    .kindle_idiom_speed_memory_card_container > .custom_font, .kindle_idiom_speed_memory_result_image_word_question > .custom_font, .kindle_idiom_speed_memory_result_image_word_answer > .custom_font{
        font-size: 11px;
    }
}

@media only screen and (max-width: 950px){
    .kindle_idiom_speed_memory_card_container > .custom_font, .kindle_idiom_speed_memory_result_image_word_question > .custom_font, .kindle_idiom_speed_memory_result_image_word_answer > .custom_font{
        font-size: 10px;
    }
}

@media only screen and (max-width: 800px){
    .kindle_idiom_speed_memory_card_container > .custom_font, .kindle_idiom_speed_memory_result_image_word_question > .custom_font, .kindle_idiom_speed_memory_result_image_word_answer > .custom_font{
        font-size: 8px;
    }
}

@media only screen and (max-width: 700px){
    .kindle_idiom_speed_memory_card_container > .custom_font, .kindle_idiom_speed_memory_result_image_word_question > .custom_font, .kindle_idiom_speed_memory_result_image_word_answer > .custom_font{
        font-size: 6px;
    }
}

.idiom_speed_memory_answer_room_num_card{
    text-align: center;
    width: 100%;
    position: absolute;
    text-align: center;
    padding: 3px 0;
    top: -24px;
    font-size: 0.8rem;
}

/* Kindle Idiom Speed Memory */


/* Kindle Proverb Speed Memory */

.proverb_speed_memory_game_container{
    margin: 5px 10px 10px 10px;
    position: relative;
    display: none;
}

.proverb_speed_memory_game_container.active{
    display: block !important;
}

.proverb_speed_memory_game_container.animation_right_to_left{
    position: relative;
    animation: right_to_left_animation 0.5s;
}

.proverb_speed_memory_game_container.animation_left_to_right{
    position: relative;
    animation: left_to_right_animation 0.5s;
}

.proverb_speed_memory_game_container{
    --zindex: -1;
}

.proverb_speed_memory_game_container::before{
    content: '';
    background: whitesmoke;
    position: absolute;
    width: 100%;
    border-radius: 10px;
    opacity: 0.8;
    z-index: var(--zindex);
    height: 100%;
}

.proverb_speed_memory_answer_panel{
    padding: 5px 10px 10px 10px;
    display: flex;
    width: 90%;
    margin: auto;
/*    justify-content: center;*/
    overflow-x: auto;
    overflow-y: hidden;
}

.proverb_speed_memory_answer_panel .proverb_speed_memory_answer_room{
    width: calc(12.5% - 6px);
   /* border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;*/
    border-radius: 5px;
    background: antiquewhite;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.proverb_speed_memory_question_panel{
    display: flex; 
    flex-wrap: wrap;
    width: 90%;
/*    justify-content: center;*/
    overflow-x: auto;
    overflow-y: hidden;
}

.proverb_speed_memory_question_panel .proverb_speed_memory_question_room{
    width: calc(12.5% - 7px);
   
    /*border-top: 1px solid black;
    border-left: 1px solid black;
    border-bottom: 1px solid black;*/
    border-radius: 5px;
    background: antiquewhite;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
   
}

.proverb_speed_memory_room_image{
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 5px;
}

.kindle_proverb_speed_memory_card_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 5px;
    position: relative;
}

.kindle_proverb_speed_memory_card_container_absolute{
    z-index: 100;
}

.proverb_speed_memory_answer_room > .custom_font{
    padding-bottom:5px;
}

.kindle_proverb_speed_memory_card_container > .custom_font.position_absolute, .kindle_proverb_speed_memory_result_image_word_question > .custom_font.position_absolute, .kindle_proverb_speed_memory_result_image_word_answer > .custom_font.position_absolute{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.proverb_speed_memory_action_btn{
    width: 35px;
    margin: 0 2px 2px 0;
    cursor: pointer;
}

.proverb_speed_memory_action_btn_container{
    padding-top: 5px;
    width: 90%;
    text-align: center;
    margin: auto;
    position: relative;
}

.proverb_speed_memory_action_btn:hover{
    scale: 1.1;
}

.kindle_proverb_speed_memory_result_panel{
    padding: 5px;
    margin: 10px 10px 20px 10px;
    background: white;
    border-radius: 10px;
}

.kindle_proverb_speed_memory_result_question_panel, .kindle_proverb_speed_memory_result_answer_panel{
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
}

.kindle_proverb_speed_memory_result_image_word_answer.ml5{
    margin-left: 5px;
}

.kindle_proverb_speed_memory_result_image_word_question, .kindle_proverb_speed_memory_result_image_word_answer{
    border-radius: 5px;
    text-align: center;
    position: relative;
    padding: 5px;
    flex-shrink: 0;
    width: calc(10% - 15px);
}


@media only screen and (min-width: 969px){
   .proverb_speed_memory_question_panel .proverb_speed_memory_question_room{
         width: calc(12.5% - 7px);
   }
   /*.proverb_speed_memory_question_panel{
        width: 70%;
   }*/
   .proverb_speed_memory_action_btn{
        width: 55px;
    }
}

@media only screen and (min-width: 400px){
    .center_top_navigation .navigation_logo{
        width: 35px;
    }
}

@media only screen and (max-width: 1000px){
    .kindle_proverb_speed_memory_card_container > .custom_font, .kindle_proverb_speed_memory_result_image_word_question > .custom_font, .kindle_proverb_speed_memory_result_image_word_answer > .custom_font{
        font-size: 11px;
    }
}

@media only screen and (max-width: 950px){
    .kindle_proverb_speed_memory_card_container > .custom_font, .kindle_proverb_speed_memory_result_image_word_question > .custom_font, .kindle_proverb_speed_memory_result_image_word_answer > .custom_font{
        font-size: 10px;
    }
}

@media only screen and (max-width: 800px){
    .kindle_proverb_speed_memory_card_container > .custom_font, .kindle_proverb_speed_memory_result_image_word_question > .custom_font, .kindle_proverb_speed_memory_result_image_word_answer > .custom_font{
        font-size: 8px;
    }
}

@media only screen and (max-width: 700px){
    .kindle_proverb_speed_memory_card_container > .custom_font, .kindle_proverb_speed_memory_result_image_word_question > .custom_font, .kindle_proverb_speed_memory_result_image_word_answer > .custom_font{
        font-size: 6px;
    }
}

.proverb_speed_memory_answer_room_num_card{
    text-align: center;
    width: 100%;
    position: absolute;
    text-align: center;
    padding: 3px 0;
    top: -24px;
    font-size: 0.8rem;
}

/* Kindle Proverb Speed Memory */