@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    --background: #012169;
    --darker-background: #001034;
    --lighter-background: #19409b;
    --primary-accent: #6D0CFF;
    --contrast-color: #fff;
    
    background-color: var(--background);
    color: var(--contrast-color);
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
}


body a {
    color: var(--contrast-color);
    text-decoration: underline;
}

@media (hover: hover) {
    body a:hover {
        color: var(--contrast-color);
        text-decoration: none;
    }
}


.light-mode {
    --background: #d8dcf3;
    --darker-background: #fff;
    --lighter-background: #98b6fa;
    --primary-accent: #6D0CFF;
    --contrast-color: #000;
}

.textwhite {
    color: #fff!important;
}

.textblack {
    color: #000!important;
}


.container {
    width: 960px;
    max-width: 100%;
    margin: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}


.invert {
    filter: invert(100%)
}

.center {
    text-align: center;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.selected {
    opacity: 0.5;
}

.unselectable {
    user-select: none;
}


::placeholder {
    color: #bbb;
}

.question {
    width: 20px;
    vertical-align: text-bottom;
    cursor: pointer;
    transition: all 0.25s ease;
}

.question:hover {
    opacity: 0.7;
}

.padding {
    margin-bottom: 30px;
}


.button {
    border-radius: 40px;
    text-decoration: none;
    border: none;
    padding: 10px 25px;
    text-align: center;
    display: inline-block;
    margin: 10px 0 0 0;
    background-color: var(--lighter-background);
    color: var(--contrast-color);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

@media (hover: hover) {
    .button:hover {
        background-color: var(--primary-accent);
    }
}

.button_mini {
    font-size: 16px;
    padding: 6px 16px;
}

.error_reporting .button_mini {
    margin-top: 15px;
    margin-right: 5px;
}

.game_buttons_down .error_reporting .button_mini {
    margin-top: 15px;
    margin-right: 5px;
}

.button_disabled, .button_disabled:hover {
    background-color: #4d5a77;
    cursor: default;
    pointer-events: none;
}

.button_more_mini {
    border-radius: 5px;
    width: 177px;
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 0;
}


.previous_question {
    min-width: 193px;
}

.button_active {
    background-color: var(--darker-background)!important;
    cursor: default!important;
}


/*
///// HEADER CSS /////
*/

.header {
    background-color: var(--darker-background);
    margin: 0;
    padding: 15px 15px;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 8px solid #005bbc;
    box-shadow: 0px 6px 0px 0px #ffd600 */
    position: relative;
}

.header div {
    /* display: inline-block; */
}

.header .logo {
    width: 200px;
    padding: 10px 10px 0px 10px;
}

.header .menu {
    margin: 0 auto;
    text-align: left;
}

.header .menu a {
    color: var(--contrast-color);
    font-weight: 500;
    text-decoration: none;
    margin: 0px 12px;
    padding: 7px 14px;
    border-radius: 30px;
    transition: background-color 0.25s ease;
}

@media (hover: hover) {
    .header .menu a:hover {
        background-color: var(--primary-accent);
    }
}

.header .menu .active {
    box-shadow:inset 0px 0px 0px 3px var(--primary-accent);
}

.header .menu-icons .icon {
    width: 20px;
    margin-right: 20px;
    vertical-align: text-bottom;
    cursor: pointer;
}

.header .menu-icons .icon.loggedin {
    width: 16px;
}

.header .menu-icons .icon:last-child {
    margin-right: 10px;
}

.header .menu-icons .icon.navbar-icon {
    display: none;
}

.language_selector {
    display: none;
    position: absolute;
    right: 0;
    top: 74px;
    width: 200px;
    height: 500px;
    padding: 20px 20px 10px 20px;
    background-color: #001034c9;
    backdrop-filter: blur(5px);
    gap: 10px;
    z-index: 2;
    border-radius: 5px;
  }

  .language_selector span {
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s;
  }  
  
  .language_selector span:hover {
    opacity: 0.75;
  }

  .language_icon {
    width: 28px;
    height: 18px;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 3px;
    margin-right: 5px;
    outline: 1px solid var(--darker-background);
  }

  .language_icon_active {
    outline: 2px solid white;
  }

  .language_selector_close {
    display: none;
    position: absolute;
    right: -2px;
    top: 7px;
    z-index: 3;
    height: 18px;
    cursor: pointer;
  }

  .languageSwitch_active {
    font-weight: 700;
  }


/*
///// FOOTER /////
*/


.footer {
    background-color: var(--darker-background);
    color: var(--contrast-color);
    font-size: 14px;
    margin-top: auto;
    padding: 15px 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.language_selector_footer {
    margin-bottom: 15px;
    width: 100%;
    border-bottom: 1px solid #636d83;
    padding-bottom: 15px;
}

.languageSwitch_footer {
    cursor: pointer;
    display: inline-block;
    text-decoration: underline;
    transition: all 0.2s;
    margin: 5px 5px 0px 0;
    white-space: nowrap;
}

.languageSwitch_footer:hover {
    opacity: 0.75;
    text-decoration: none;
}


/*
///// REGISTER / LOG IN /////
*/

.auth {
    max-width: 400px;
    background-color: var(--lighter-background);
    margin: 0 auto;
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    color: var(--contrast-color);
}

.auth input {
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    font-size: 24px;
    margin: 10px 0 20px 0;
    box-sizing: border-box;
}

.auth button {
    width: 100%;
    border-radius: 5px;
    border: none;
    height: 40px;
    margin: 10px 0 0 0;
    background-color: var(--darker-background);
    color: var(--contrast-color);
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.auth button:hover {
    background-color: var(--primary-accent);
}

.auth_alert {
    padding: 10px 10px;
    border-radius: 5px;
    margin-bottom: 24px;
    border: 2px solid var(--contrast-color);
}

.auth_alert img {
    height: 22px;
    vertical-align: text-bottom;
}

/*
///// MAIN PAGE /////
*/

h1 {
    font-size: 28px;
    font-weight: 300;
    text-align: left;
    margin-bottom: 0;
    margin-top: 40px;
    margin-left: 15px;
}


.about_english_dot_me {
    position: relative;
    margin: 0 auto;
    margin: 13px 0 0 0;
    /* margin: 45px auto 30px; */
    /* max-width: 800px; */
    background-color: var(--darker-background);
    /* border: 2px solid #fff; */
    border-radius: 10px 0 10px 10px;
    padding: 20px 25px;
}

.welcome_title {
    font-size: 28px;
    font-weight: 300;
    text-align: left;
    margin-bottom: 0;
    margin-top: 40px;
    margin-left: 15px;
}

.welcome_text {
    line-height: 1.7em;
}

.welcome_icon {
    width: 18px;
    vertical-align: sub;
    margin-right: 2px;
    margin-bottom: 2px;
}

.statistics_icon {
    filter: invert();
    cursor: pointer;
}

.welcome_logo {
    height: 17px;
    margin: 0 2px;
    vertical-align: middle;
}

/* .language_switcher input[type="radio"] {
    display: none;
}

.language_switcher {
    width: max-content;
    position: absolute;
    top: -22px;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.language_switcher_button {
    display: inline-block;
    text-align: center;
    padding: 2px 10px;
    font-size: 13px;
    background-color: var(--lighter-background);
    cursor: pointer;
}

.language_switcher_button:first-of-type {
    border-radius: 10px 0 0 0;
}

.language_switcher_button:last-of-type {
    border-radius: 0 10px 0 0;
}

.language_switcher input[type="radio"]:checked + .language_switcher_button  {
    background-color: var(--primary-accent);
} */

.games {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* 2px solid #fff */
    border-radius: 10px;
    margin-bottom: 10px;
}

.game {
    width: 300px;
    height: 160px;
    background-color: var(--darker-background);
    color: var(--contrast-color);
    border-radius: 10px;
    margin: 13px 0;
    /* padding: 5%; */
    background-size: cover;
    position: relative;
}

/* @media (hover: hover) {
    .game:hover {
        background-color: var(--primary-accent);
    }
} */

.game_logo {
    position: absolute;
    top: 22px;
    left: 24px;
}

.game_logo img {
    max-width: 140px;
    max-height: 33px;
    vertical-align: middle;
}


.game_details {
    position: absolute;
    width: 255px;
    left: 24px;
    top: 78px;
    font-size: 13px;
    font-weight: 500;
    /* line-height: 2; */
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    white-space: nowrap;
}

.game_details .pain {
    color: #ff7eb3;
}

.score_container .pain {
    background-color: #ff63a3;
}


.game_details .fun {
    color: #ffcf05;
}

.score_container .fun {
    background-color: #ffcf05;
}


.game_details .learning {
    color: #bade00;
}

.score_container .learning {
    background-color: #bade00;
}

.game_details span {
    display: inline-block;
    width: 82px;
    height: 24px;
}

.game_details img {
    max-width: 18px;
    max-height: 18px;
    vertical-align: sub;
    margin-right: 2px;
}

.game_details .score_container {
    margin-top: 4px;
    border-radius: 20px;
    width: 95%;
    height: 5px;
    background-color: #324e91;
}

.game_details .score {
    border-radius: 20px;
    width: 20%;
    height: 100%;
}

.game_short_description {
    text-align: left;
    position: absolute;
    font-size: 13px;
    width: 100%;
    height: 31px;
    background-color: #1959ed7d;
    bottom: 0px;
    left: 0;
    border-radius: 0 0 10px 10px;
    padding: 7px 0 0 24px;
    font-style: italic;
    font-weight: 500;
}

.game_play_button {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 78px;
    height: 30px;
    padding: 5px 0 0 0;
    text-align: center;
    border-radius: 15px 0 10px 15px;
    font-size: 14px;
    font-weight: 600;
    background-color: #3173ff70;
    text-decoration: none;
    transition: background-color 0.25s;
}

.game_play_button:hover {
    background-color: #3172ff;
}


.page-title {
    margin: 0 0 20px;
}

.page-description {
    margin: 0 0 30px;
}



.mainpage_tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* 2px solid #fff */
    border-radius: 10px;
}



.mainpage_progress {
    background: var(--darker-background);
    width: 100%;
    height: 300px;
    /* border: 2px solid #fff; */
    text-align: center;
    border-radius: 10px;
    padding: 20px 30px 30px;
    margin: 13px 0 75px 0;
    position: relative;
}

.mainpage_progress h1 {
    margin-bottom: 30px;
}

.mainpage_progress img {
    position: absolute;
    right: 30px;
    top: -40px;
    height: 400px;
}


.mainpage_progress div {
    text-align: left;
    position: absolute;
    display: block;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    max-width: 420px;
}

.progress_headline {
    margin: 0 0 10px;
    padding: 0 10px;
    font-size: 24px;
}

.progress_and_statistics {
    scroll-margin-top: 30px;
    font-size: 28px;
    font-weight: 300;
    text-align: left;
    margin-bottom: 0;
    margin-top: 40px;
    margin-left: 15px;
}

.vocabulary_title {
    font-size: 28px;
    font-weight: 300;
    text-align: left;
    margin-bottom: 0;
    margin-top: 40px;
    margin-left: 15px;
}

.vocabulary_description h1 {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.mainpage_vocabulary {
    background: var(--darker-background);
    width: 100%;
    height: 300px;
    /* border: 2px solid #fff; */
    text-align: center;
    border-radius: 10px;
    padding: 20px 30px 30px;
    margin: 13px 0 113px 0;
    position: relative;
}

.mainpage_vocabulary h1 {
    margin-bottom: 30px;
}

.mainpage_vocabulary img {
    position: absolute;
    right: 30px;
    top: -40px;
    height: 400px;
}


.mainpage_vocabulary div {
    text-align: left;
    position: absolute;
    display: block;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    max-width: 420px;
}



.mainpage_know {
    margin: 0 0 60px 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.mainpage_know_top {
    grid-column: 1 / -1;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 10px;
}

.mainpage_know_top a {
    display: flex;
    align-items: center;
    font-size: 16px;
}
  
  
  .mainpage_know h2 {
    font-weight: 400;
    font-size: 16px;
  }
  
  .mainpage_know h4 {
    margin: 10px 0 10px 0;
    font-weight: 600;
    font-size: 15px;
  }
  
  .mainpage_know p {
    margin: 0;
    font-size: 14px;
  }
  
  .mainpage_know_icon {
    height: 18px;
    filter: invert(1);
    margin: 0 5px 0 0px;
  }

  .mainpage_know_section_name {
    display: flex;
    align-items: center;
    font-size: 15px;
    margin-bottom: 17px;
  }
  
  .mainpage_know_post {
    text-decoration: none;
    border-radius: 10px;
    padding: 20px;
    background-color: var(--darker-background);
  }

  .mainpage_know_post a {
    text-decoration: none;
    font-weight: 600;
  }

  .mainpage_know_post a:hover {
    text-decoration: underline;
  }
  
  .mainpage_know_single_pic {
    width: 100%;
    border-radius: 3px;
    margin-bottom: 8px;
  }

  .mainpage_know_recent_time {
    font-size: 12px;
    color: #d5d5d5;
  }

.an_article {
    /* width: 100%; */
    background: var(--lighter-background);
    padding: 20px 20px 5px 20px;
    text-decoration: none;
    margin: 25px 0;
    border-radius: 5px;
    transition: all 0.25s ease;
}

@media (hover: hover) {
    .an_article:hover {
        background: var(--darker-background);
    }
}
 
.an_article_img {
    display: inline-block;
    height: 64px;
    margin: 0 0 10px 10px;
    float: right;
}

.an_article_img img {
    height: 100%;
}

.an_article_text {
    vertical-align: top;
}

.an_article_text span {
    text-align: left;
    font-size: 16px;
    font-weight: 600;
}

.an_article_text p {
    font-size: 14px;
    margin-top: 5px;
}


/*
///// ARTICLES CSS /////
*/

.articles {
    
}





/*
///// PROGRESS CSS /////
*/

.progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    gap: 15px;
}

.progress_words_statistics {
    /* padding: 10px; */
}

.progress_statistics {
    padding: 5px 15px 0 15px;
}

.progress_words_date {
    font-size: 13px;
}

.progress_words_definition {
    font-size: 14px;
    margin: 3px 0 20px 0;
}

.progress_words_definition b {
    font-weight: 300;
}

.chart {
    padding: 15px 15px 0 15px;
}

.chart_buttons {
    margin: -25px 0 20px 0;
}

.chart_button {
    border-radius: 3px;
    text-decoration: none;
    border: none;
    padding: 2px 25px;
    text-align: center;
    display: inline-block;
    margin: 10px 0 0 0;
    background-color: var(--lighter-background);
    color: var(--contrast-color);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

@media (hover: hover) {
    .chart_button:hover {
        background-color: var(--primary-accent);
    }
}

.box_title {
    background-color: #0e65bb;
    font-size: 18px;
    padding: 4px 0 4px 15px;
    margin: 0 0 15px 0;
}

.box_container {
    position: relative;
    border: 2px solid #0e65bb;
    padding: 0 0 10px 0;
    border-radius: 5px;
}

.box_loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.box_loading img {
    transition: all 0.5s ease;
    width: 64px;
    height: 64px;
}

.progress_games {
    margin-top: 10px;
}

.a_progress_game {
    width: 100%;
    display: flex;
    font-size: 15px;
}

.a_progress_games_word {
    flex-basis: 50%;
}

.a_progress_games_play_count {
    flex-basis: 50%;
}

.progress_games div {
    border-top: 1px solid #0e65bb;
    padding: 10px 0;
}

.progress_words, .progress_rare_words {
    margin: 15px 15px 0 15px;
}

.refreshing_explanation, .rare_words_explanation {
    font-weight: 400;
    padding: 16px;
    font-size: 15px;
    background-color: var(--lighter-background);
    display: none;
    margin-bottom: 10px;
    margin-top: -15px;
}

.a_rare_word {
    padding: 4px 8px;
    border-radius: 20px;
    background-color: var(--lighter-background);
    display: inline-block;
    margin: 7px 0;
}

.a_rare_word span {
    font-weight: 200;
    font-size: 14px;
}


.progress_history {
    margin: 0px 15px 0 15px;
}

.progress_history div {
    border-bottom: 1px solid #0e65bb;
    padding: 10px 0;
}

.progress_history div:last-of-type {
    border: 0;
}

.progress_history div:first-of-type {
    padding-top: 5px;
}

.a_history_word {
    display: flex;
    font-size: 15px;
}

.a_history_word_word {
    flex-basis: 42%;
}

.a_history_word_game_and_time {
    flex-basis: 58%;
}

.pagination_button {
    transition: all 0.45s;
}

/* .a_history_word_filler {
    background: var(--lighter-background);
    border-radius: 50px;
    width: 100%;
    height: 22px;
    margin: 20px 0;
}

.a_history_pagination_filler {
    background: var(--darker-background);
    border-radius: 50px;
    width: 100%;
    height: 22px;
    margin: 20px 0;
} */

.progress_icon {
    vertical-align: middle;
    height: 20px;
}


/*
///// PAGE /////
*/

.page {
    padding: 0 20px;
}

.page ul.unstyled {
    padding: 0;
}

.page ul li {
    margin: 0 0 10px;
}

.page ul.unstyled li {
    list-style: none;
}

.page ul li a {
    text-decoration: none;
}

.page ul.link-colored li a {
    color: #99a3ff;
}

.page ul li input {
    background: none;
    border: none;
    color: #99a3ff;
    font-size: 16px;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.page ul li a:hover {
    text-decoration: underline;
}

.page ul li input:hover {
    text-decoration: none;
}

body.light-mode .page ul li input {
    color: var(--contrast-color);
}

.page .content {
    margin: 0 0 30px;
}

.page .content form label {
    display: block;
    margin: 0 0 16px;
}

.page .content form label span {
    display: block;
    margin: 0 0 7px;
}

.page .content form input,
.page .content form select {
    outline: none;
}

.page .content form label input {
    width: 100%;
    max-width: 240px;
    height: 40px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
}

.page .content form select {
    width: 100%;
    max-width: 240px;
    height: 40px;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    box-sizing: border-box;
    cursor: pointer;
}

.page .content form input[type="submit"] {
    width: 100%;
    max-width: 240px;
    border-radius: 5px;
    border: none;
    height: 40px;
    background-color: var(--darker-background);
    color: var(--contrast-color);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}


/*
///// SETTINGS /////
*/

.settings_form {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.settings_form div {
    width: 230px;
    margin-bottom: 60px;
}

.settings_form_alert {
    display: none;
    opacity: 0;
    background: var(--darker-background);
    padding: 17px;
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: all 0.3s ease;
}

.settings_form_alert img {
    width: 36px;
}

.settings_form span {
    font-size: 18px;
    display: block;
    margin-bottom: 20px;
}


.settings_form input[type="radio"] {
    display: none;
}

.settings_form input[type="radio"] + label {
    background-color: #fff;
    display: block;
    color: #000;
    font-weight: 600;
    border-bottom: 0;
    padding: 3px 11px 4px 14px;
    cursor: pointer;
    border-radius: 25px;
    width: fit-content;
}

.settings_form input[type="radio"]:checked + label {
    background-color: var(--primary-accent);
    color: #fff;
    font-weight: 600;
    border-bottom: 0;
    padding: 3px 11px 4px 14px;
}

.settings_form input[type="radio"]:checked + label::before {
    content: url(/assets/images/icons/checkmark.svg);
    display: inline-block;
    vertical-align: sub;
    width: 18px;
    height: 18px;
    margin-right: 5px;
}




/*
///// STATISTICS /////
*/

.game_statistics {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    font-size: 15px;
    /* margin-bottom: 55px; */
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    background: var(--darker-background);
}

.game_statistics_header {
    font-weight: 600;
    padding: 5px;
    border-radius: 5px 5px 0 0;
    background-color: #274587;
    /* border-bottom: 2px solid #6d0cff; */
    margin: -10px -10px 7px -10px;
}

.game_statistics hr {
    transition: all 0.5s ease;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(252, 252, 252, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}


.game_statistics .numbers {
    width: 60px;
    font-weight: 700;
    border-radius: 2px;
    margin: 5px 0;
    display: inline-block;
    background-color: var(--primary-accent);
    transition: all 0.5s ease;
}

.learn_more {
    font-size: 14px;
    font-weight: 300;
}


/*
///// GAME BUTTONS /////
*/

.game_buttons {
    width: 96%;
    max-width: 400px;
    margin: 0 auto 20px;
    text-align: center;
    overflow: hidden;
    z-index: 2;
}

.game_buttons > .button {
    width: 48%;
    min-width: initial;
    font-size: 15px;
    float: left;
    margin: 0 1%;
    padding: 8px 0;
}

.game_buttons > .button img {
    width: 20px;
    vertical-align: middle;
}

.game_buttons_down .button {
    float: none;
    margin: 0 auto;
}

.game_buttons > span {
    display: none;
}

.game_buttons_down {
    margin-top: 17px;
    margin-bottom: 0;
}

.takesies_backsies {
    position: absolute;
    top: 48%;
    left: 50%;
    text-align: center;
    font-weight: 700;
    z-index: 9999;
    transform: translate(-50%, -50%);
    padding: 18px;
    background-color: var(--darker-background);
    border-radius: 8px;
    border: 3px solid white;
    display: none;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.takesies_backsies_icon {
    margin-top: 10px;
    width: 64px;
    vertical-align: bottom;
    transition: all 0.5s ease-in-out;
}

.error_reporting {
    margin-top: 20px;
    display: none;
    text-align: left;
}

.error_reporting legend {
    padding: 3px 26px;
    background-color: var(--primary-accent);
    font-weight: 600;
}

.error_reporting fieldset {
    border: none;
    padding: 10px 20px 0 20px;
    background-color: var(--darker-background);
}

.error_reporting input {
    margin: 0.6rem 0.2rem;
}

.error_reporting input[type="radio"]:checked+label {
    font-weight: bold;
    border-bottom: 2px solid white;
}

.error_reporting input[type="text"] {
    display: none;
    padding: 5px 10px;
    width: 100%;
}

.error_reporting input[type="text"]::placeholder {
    color: black;
}

.error_reporting .report-result {
    margin: 20px 0 15px;
    line-height: 1.5em;
}




/*
///// GAME TEXTS /////
*/

.game_text {
    max-width: 360px;
    margin: 0 auto;
    margin-top: 30px;
    margin-bottom: 50px;
}

.game_text img {
    max-width: 100%;
    margin: 10px 0;
    border-radius: 5px;
}

.game_text h1 {
    text-align: center;
    font-size: 20px;
    margin: 20px 0;
    font-weight: bold;
}



/*
///// GAME SHARING BUTTONS /////
*/

.sharing {
    margin: 0 auto;
    margin-bottom: 50px;
    width: 100%;
    max-width: 400px;
}

.sharing h3 {
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
}

.sharing div {
    display: flex;
    justify-content: space-around;
}

.sharing img {
    height: 18px;
    vertical-align: middle;
}

.sharing .button {
    font-size: 13px;
}


/*
///// SIGN IN ALERT /////
*/
.popup_alert {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 20px;
    padding: 7px 14px;
    background: var(--darker-background);
    border-radius: 10px;
    position: relative;
    width: fit-content;
}

.popup_alert p {
    padding: 0 30px 0 8px;
}

.popup_alert_close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.popup_alert_close:hover {
    opacity: 0.75;
}

.popup_alert_close img {
    width: 12px;
    vertical-align: middle;
}

.error-page-content {
    margin: 48px 0 0;
    text-align: center;
}
.error-page-content .title {
    font-size: 76px;
    font-weight: bold;
    margin: 0 0 10px;
}
.error-page-content .subtitle {
    font-size: 24px;
    margin: 0 0 20px;
}
.error-page-content .note {
    font-size: 16px;
    margin: 0 auto 20px;
    max-width: 320px;
    line-height: 1.6em;
}
.error-page-content .go-home a {
    font-size: 16px;
}

/*
///// DEFINITION POPUP /////
*/
.popup-definitions {
    background: var(--darker-background);
    border-radius: 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    padding: 13px 7px 13px 17px;
    max-width: 300px;
    width: 100%;
    height: 240px;
    overflow: hidden;
    z-index: 9999;
    
}
.popup-definitions-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: bold;
}
.popup-definitions-wrapper {
    height: calc(100% - 33px);
    padding-right: 7px;
    overflow-y: auto;
}
.popup-definition {
    margin: 0 0 10px;
}
.popup-definitions-close {
    position: absolute;
    top: 9px;
    right: 7px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/*
///// SCROLLBAR STYLE /////
*/
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #001034;
}

::-webkit-scrollbar-thumb {
    background: #002d97;
    
}

::-webkit-scrollbar-thumb:hover {
    background: #0031a3;
}

body.light-mode ::-webkit-scrollbar-track {
    background: #dedede;
}

body.light-mode ::-webkit-scrollbar-thumb {
    background: #6a6a6a;
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #939393;
}


/*
///// RESPONSIVE DESIGN /////
*/

.responsive_width {
    width: 50%;
}

@media (max-width: 959px) {
    .header .menu {
        display: none;
    }
    .header .menu-icons .icon.navbar-icon {
        display: inline-block;
    }
    .header .menu {
        position: absolute;
        top: 72px;
        right: 0;
        background: var(--darker-background);
        padding: 10px;
        z-index: 1;
    }
    .header .menu a {
        display: block;
        margin: 16px 10px;
    }
    .about_english_dot_me {
        margin: 15px;
    }

    .language_selector {
        top: 68px;
    }

    /* .language_switcher {
        display: none;
    } */

    h1 {
        margin: 15px 15px 0 15px;
    }

    .games {
        margin-bottom: 25px;
    }

    .games .game {
        margin: 15px;
    }
    
    .game {
        width: 100%;
    }

    .game_details {
        width: 90%;
    }

    .mainpage_progress {
        width: 94%;
        height: fit-content;
        margin: 15px auto 40px;
    }
    .mainpage_progress img {
        position: initial;
        width: 80%;
        height: auto;
        margin-top: 15px;
        margin-left: -17%;
        margin-bottom: 15px;
    }
    .mainpage_progress div {
        position: initial;
        transform: none;
    }
    .mainpage_vocabulary {
        width: 94%;
        height: fit-content;
        margin: 15px auto 90px;
    }
    .mainpage_vocabulary img {
        position: initial;
        width: 80%;
        height: auto;
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .mainpage_vocabulary div {
        position: initial;
        transform: none;
    }
    .mainpage_know {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 94%;
        margin: 0 auto;
        margin-bottom: 35px;
        font-size: 15px;
    }

    .mainpage_articles h1 {
        margin: 0 0 15px;
    }
    .mainpage_articles .an_article_column {
        flex-basis: 98%;
        margin: 0 auto;
    }
    .mainpage_articles .an_article_column .an_article {
        margin: 10px;
    }
    .footer {
        flex-wrap: wrap;
    }
    .footer div:not(:first-child) {
        margin: 7px 3px;
    }
    .footer div:first-child {
        margin: 7px 3px 15px 3px;
    }
    .progress {
        /* flex-wrap: wrap-reverse; */
        flex-wrap: wrap;
    }
    .responsive_width {
        width: 100%;
    }

    .games, .mainpage_tools {
        justify-content: space-evenly;
    }

}

@media (max-width: 479px) {
    .header .logo {
        width: 143px;
    }
    .header .menu-icons .icon {
        margin-left: 14px;
    }
    .game_buttons .button {
        font-size: 14px;
    }
    .game_statistics {
        width: 94%;
    }
}