/*
 * This file is part of ARSnova Click.
 * Copyright (C) 2016 The ARSnova Team
 *
 * ARSnova Click is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * ARSnova Click is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with ARSnova Click.  If not, see <http://www.gnu.org/licenses/>.*/
@import "standard-style-definitions";

@function theme-Material-hope() {
  $stdStyle: standard-style-definitions();

  $primary_color: #8BC34A;
  $light_primary_color: #AED581;
  $dark_primary_color: #689F38;

  $accent_color: #FFC400;

  $light_black: #333;

  $primary_text_color: #212121;
  $secondary_text_color: #757575;
  $text_icon_color: #333;
  /* $devider_color: #BDBDBD; (not used) */

  @return (
    /* Landing page */
    "background-color": $primary_color,
    "bg-nav-row": $primary_color,
    "bg-container": $primary_color,
    "bg-footer": $dark_primary_color,
    "fg_titel": $light_black,
    /* Quiz name input */
    "input-background-color": $accent_color,
    "placeholder-color": $light_black,
    "input-foreground-color": $light_black,
    "disabled-button-background": map-get($stdStyle, "md_grey_300"),
    /* Connection status */
    "fg-connection-quality-header_connection-pending": map-get($stdStyle, "md_blue_grey_700"),
    "fg-connection-quality-header_connection-offline": map-get($stdStyle, "md_red_500"),
    "fg-connection-quality-header_connection-ok": map-get($stdStyle, "md_green_700"),
    "fg-connection-quality-header_connection-warning": map-get($stdStyle, "md_amber_500"),
    "fg-connection-quality-header_connection-failed": map-get($stdStyle, "md_red_500"),
    "fg-connection-quality-header_connection-error": map-get($stdStyle, "md_red_500"),
    /* Logo colors */
    "bg-arsnova_logo_image": transparent,
    "fg-arsnova_logo_image-ars": white,
    "fg-arsnova_logo_image-nova": $accent_color,
    "fg-arsnova_logo_image-click": white,
    /* Semantic colors */
    "success": $accent_color,
    "success-text-color": $light_black,
    "fg-success": lighten(map-get($stdStyle, "success"), 20),
    "fg-warning": $dark_primary_color,
    "info": $accent_color,
    "info-text-color": $primary_text_color,
    "default": $primary_text_color,
    "default-text-color": $text_icon_color,
    /* Footer Icons */
    "fg-footer-info-bar": white,
    "fg-footer-info-bar-hovered": $accent_color,
    "fg-footer-info-bar-active": $accent_color,
    "fg-footer-info-bar-active-hovered": darken($accent_color, 10),
    "fg-footer-element-deactivated": map-get($stdStyle, "md_grey_300"),
    "fg-footer-element-deactivated-hovered": map-get($stdStyle, "md_grey_500"),
    /* Quizzes stored in browser */
    "bg-js-my-hash-validQuestion": darken(map-get($stdStyle, "success"), 5),
    "bg-js-my-hash-validQuestion-hovered": lighten(map-get($stdStyle, "success"), 2),
    "fg-js-my-hash-validQuestion": map-get($stdStyle, "success-text-color"),
    "bg-js-my-hash-invalidQuestion": map-get($stdStyle, "md_red_700"),
    "bg-js-my-hash-invalidQuestion-hovered": lighten(map-get($stdStyle, "bg-js-my-hash-invalidQuestion"), 20),
    "fg-js-my-hash-invalidQuestion": map-get($stdStyle, "warning-text-color"),
    /* Splash screen */
    "splash-screen-header-color": $light_black,
    "splash-screen-body-color": $light_black,
    "splashscreen-background-color": $primary_color,
    "splashscreen-foreground-color": $primary_text_color,
    "bg-splashscreen-question-and-answer": $light_primary_color,
    "splashscreen-question-preview-background-color": $light_primary_color,
    "bg-splashscreen-question-and-answer_question-content": $light_primary_color,
    "bg-splashscreen-question-and-answer_answer-content-header": $light_primary_color,
    "bg-splashscreen-question-and-answer_answer-content-odd-row": $light_primary_color,
    "border-splashscreen-question-and-answer_answer-content-odd-row": $primary_color,
    "fg-splashscreen-question-and-answer_answer-content-odd-row": $primary_color,
    "bg-splashscreen-question-and-answer_answer-content-even-row": $light_primary_color,
    "border-splashscreen-question-and-answer_answer-content-even-row": $primary_color,
    "fg-splashscreen-question-and-answer_answer-content-even-row": $primary_color,
    "splashscreen-reading-confirmed-background-color": $light_primary_color,
    "bg-modal-available-quizzes": $primary_color,
    "splashscreen-sound-config-background-color": $primary_color,
    "splashscreen-sound-config-button-background-color": map-get($stdStyle, "success"),
    "splashscreen-sound-config-select-foreground-color": $primary_text_color,
    "splashscreen-delete-background-color": map-get($stdStyle, "md_red_300"),
    "splash-screen-error-message-background-color": map-get($stdStyle, "md_red_300"),
    "splash-screen-error-message-foreground-color": $light_black,
    "splash-screen-error-message-button-background-color": $light_primary_color,
    "splash-screen-error-message-button-foreground-color": $primary_text_color !important,
    /* Product Tour */
    "bg-introjs-helper_layer": $light_black,
    /* Sound configuration */
    "bg-soundConfig_soundTab_navPills": $light_black,
    "bg-disabled-slider": map-get($stdStyle, "md_grey_500"),
    /* Miscellaneous */
    "fg-text-light": $text_icon_color,
    "fg_text-dark": $primary_text_color,
    "fg_a": $text_icon_color,
    "button-shadow": map-get($stdStyle, "md_grey_700"),
    "box-shadow-markdown": map-get($stdStyle, "md_grey_700"),
    "bg-btn-file-input": $accent_color,
    "slider-color": $dark_primary_color,
    /* Theme switcher */
    "border-theme-preview-img": white,
    "border-theme-preview-img-selected": map-get($stdStyle, "md_orange_500"),
    /* Language select buttons */
    "grey-button-background": $dark_primary_color,
    "grey-button-color": $light_black,
    /* Loading indicator */
    "border-loader_wrapper-outer_spin": white,
    "border-loader_wrapper-middle_spin": $accent_color,
    "border-loader_wrapper-inner_spin": map-get($stdStyle, "md_amber_700"),
    /* Quiz Manager */
    "fg-quiz_manager-sortable_placeholder": black,
    "bg-quiz_manager-sortable_placeholder": $light_black,
    "fg-quiz_manager-ul-li": $light_black,
    "border-quiz_manager-available_questions_wrapper": map-get($stdStyle, "md_light_green_700"),
    "bg-quiz_manager-available_questions_wrapper-hovered": $accent_color,
    "border-quiz_manager-available_questions_wrapper-valid": map-get($stdStyle, "md_green_500"),
    "border-quiz_manager-available_questions_wrapper-invalid": map-get($stdStyle, "md_red_700"),
    "fg-quiz_manager_details-btn_group-button": $primary_text_color,
    "bg-quiz_manager_details-btn_group-button": $accent_color,
    "bg-quiz_manager_details-btn_group-button-hovered": map-get($stdStyle, "md_orange_700"),
    "border-quiz_manager_details-btn_group-button": map-get($stdStyle, "md_green_700") !important,
    /* Question type selection */
    "border-question_type_view-wrapper": $accent_color,
    "fg-question_type_view-wrapper-hovered": $light_black,
    "bg-question_type_view-wrapper-hovered": $accent_color,
    "border-question_type_view-activeQuestionType-wrapper": $light_black,
    /* Edit answer options and smartphone preview */
    "border-previewQuestionContentWrapper-image": black,
    "fg-previewQuestionContentWrapper": $light_black,
    "bg-edit_answeroption_text-element_wrapper": white,
    "border-preview_answeroption_content_wrapper-image": black,
    "fg-preview_answeroption_content_wrapper": $light_black,
    /* QR code */
    "fg-qr-code-button": $light_black,
    "fg-qr-code-button-hovered": darken(map-get($stdStyle, "fg-qr-code-button"), 10),
    "border-qr-code-container": $light_black,
    "bg-qr-code-container": white,
    "fg-qr-code-container-close": $accent_color,
    "fg-qr-code-container-close-hovered": lighten(map-get($stdStyle, "fg-qr-code-container-close"), 20),
    "border-qr-code-container-close-icon": $accent_color,
    "background-qr-code-container-close-icon": white,
    "fg-qr-code-label": $primary_text_color,
    /* Nickname limitation */
    "fg-nickname_categories-h3": $light_black,
    "bg-nickname_categories-nick_style": white,
    "bg-nickname_categories-nick_style-hovered": $accent_color,
    "bg-nickname_categories-nick_style-active": $accent_color,
    "bg-nickname_categories-nick_style-selected_category": $accent_color,
    "bg-nickname_categories-nick_chosen_nick": white,
    "bg-nickname_categories-nick_chosen_nick-hovered": map-get($stdStyle, "md_grey_300"),
    "bg-nickname_categories-nick_chosen_nick-active": $accent_color,
    "bg-nickname_categories-nick_chosen_nick-selected": $accent_color,
    "fg-nickname_categories-options": $light_black,
    "fg-nick_limited-h3": $light_black,
    "bg-nick_limited-selectable_nick": white,
    "bg-nick_limited-selectable_nick-hovered": $accent_color,
    "bg-nick_limited-selectable_nick-active": $accent_color,
    /* Highlighting ones own nickname */
    "bg-colorChangingOwnNick0": $dark_primary_color,
    "fg-colorChangingOwnNick0": $light_black,
    "bg-colorChangingOwnNick25": $accent_color,
    "fg-colorChangingOwnNick25": $light_black,
    "bg-colorChangingOwnNick50": $accent_color,
    "fg-colorChangingOwnNick50": $light_black,
    "bg-colorChangingOwnNick75": $accent_color,
    "fg-colorChangingOwnNick75": $light_black,
    "bg-colorChangingOwnNick100": $dark_primary_color,
    "fg-colorChangingOwnNick100": $light_black,
    /*Countdown running view */
    "fg-question-title": $light_black,
    /* Voting results */
    "bg-button_result": $primary_color,
    "progress-bar-success-color": map-get($stdStyle, "md_green_500"),
    "progress-bar-danger-color": map-get($stdStyle, "md_red_500"),
    "progress-bar-default-color": map-get($stdStyle, "md_blue_grey_700"), /* partially correct */
    "bg-button-result-progress": $dark_primary_color,
    "fg-button-result-percentage": $light_black,
    /* Winning player on ranking list */
    "bg-button-leader": map-get($stdStyle, "input-background-color"),
    "fg-button-leader": map-get($stdStyle, "input-foreground-color"),
    /* Voting buttons */
    "bg-answer_row-answer_selected": $accent_color,
    "fg-answer_row-answer_selected": $light_black,
    "bg-answer_row-button_purple_transition": $dark_primary_color,
    "fg-answer_row-button_purple_transition": white,
    /* Quiz lobby */
    "fg_lobby-waiting-for-players-notifier": $light_primary_color,
    "bg-btn-more-learners": $dark_primary_color,
    "fg-btn-more-learners": $light_black,
    /* Quiz management */
    "fg-hashtag_management-hashtag_name": $light_black,
    "border-hashtag_management-HR": $light_black,
    /* Slider for estimation answer */
    "bg-rangedSlider-invalid": map-get($stdStyle, "md_green_500"),
    "bg-rangedSlider-valid": $dark_primary_color,
    "bg-rangedSlider-handle": $accent_color,
    /* Bootstrap button styles */
    "fg-btn_info": $primary_text_color !important,
    "bg-btn_info": $accent_color !important,
    "border-btn_info": $accent_color !important,
    "fg-btn_info-hovered": $text_icon_color !important,
    "bg-btn_info-hovered": $dark_primary_color !important,
    "border-btn_info-hovered": $dark_primary_color !important,
    "fg-btn_info-focused": $primary_text_color !important,
    "bg-btn_info-focused": $accent_color !important,
    "border-btn_info-focused": $primary_color !important,
    "fg-btn_warning": $primary_text_color !important,
    "bg-btn_warning": map-get($stdStyle, "md_red_500"),
    "border-btn_warning": map-get($stdStyle, "md_red_500"),
    "fg-btn_warning-hovered": $primary_text_color !important,
    "bg-btn_warning-hovered": map-get($stdStyle, "md_red_500"),
    "border-btn_warning-hovered": map-get($stdStyle, "md_red_500"),
    "fg-btn_warning-focused": $primary_text_color !important,
    "bg-btn_warning-focused": map-get($stdStyle, "md_red_500"),
    "border-btn_warning-focused": map-get($stdStyle, "md_red_500"),
    "fg-btn_success": $primary_text_color !important,
    "bg-btn_success": map-get($stdStyle, "md_green_500"),
    "border-btn_success": map-get($stdStyle, "md_green_500"),
    "fg-btn_success-hovered": $primary_text_color !important,
    "bg-btn_success-hovered": map-get($stdStyle, "md_green_500"),
    "border-btn_success-hovered": map-get($stdStyle, "md_green_500"),
    "fg-btn_success-focused": $primary_text_color !important,
    "bg-btn_success-focused": map-get($stdStyle, "md_green_500"),
    "border-btn_success-focused": map-get($stdStyle, "md_green_500"),
    "fg-btn_default": $primary_text_color !important,
    "bg-btn_default": $light_primary_color,
    "border-btn_default": $primary_color,
    "fg-btn_default-hovered": $text_icon_color !important,
    "bg-btn_default-hovered": $dark_primary_color,
    "border-btn_default-hovered": $primary_color,
    "fg-btn_default-focused": $primary_text_color !important,
    "bg-btn_default-focused": $light_primary_color,
    "border-btn_default-focused": $primary_color
  );
}
