/*
 * 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-decent-blue() {
  $stdStyle: standard-style-definitions();

  /* Color palette generated by Material Palette - materialpalette.com/teal/orange */
  $primary_color: #607D8B;
  $light_primary_color: #90A4AE;
  $dark_primary_color: #455A64;

  $accent_color: map-get($stdStyle, "md_green_accent");

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

  @return (
    /* Landing page */
    "background-color": $primary_color,
    "bg-nav-row": $dark_primary_color,
    "bg-container": $primary_color,
    "bg-footer": $dark_primary_color,
    "fg_titel": $primary_text_color,
    /* Quiz name input */
    "input-background-color": $light_primary_color,
    "placeholder-color": $primary_color,
    "input-foreground-color": $primary_text_color,
    "disabled-button-background": $light_primary_color,
    /* 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_orange_300"),
    "fg-connection-quality-header_connection-failed": map-get($stdStyle, "md_red_500"),
    "fg-connection-quality-header_connection-error": map-get($stdStyle, "md_red_500"),
    /* Semantic colors */
    "success": $accent_color,
    "success-text-color": white,
    "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": map-get($stdStyle, "md_green_300"),
    "fg-footer-info-bar-active-hovered": map-get($stdStyle, "md_green_500"),
    "fg-footer-element-deactivated": map-get($stdStyle, "md_red_500"),
    "fg-footer-element-deactivated-hovered": map-get($stdStyle, "md_red_300"),
    /* Quizzes stored in browser */
    "bg-js-my-hash-validQuestion": map-get($stdStyle, "success"),
    "bg-js-my-hash-validQuestion-hovered": lighten(map-get($stdStyle, "success"), 10),
    "fg-js-my-hash-validQuestion": map-get($stdStyle, "success-text-color"),
    "bg-js-my-hash-invalidQuestion": $dark_primary_color,
    "bg-js-my-hash-invalidQuestion-hovered": lighten($dark_primary_color, 20),
    "fg-js-my-hash-invalidQuestion": white,
    /* Splash screen */
    "splash-screen-header-color": white,
    "splash-screen-body-color": white,
    "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": white,
    "fg-splashscreen-question-and-answer_answer-content-odd-row": white,
    "bg-splashscreen-question-and-answer_answer-content-even-row": $light_primary_color,
    "border-splashscreen-question-and-answer_answer-content-even-row": white,
    "fg-splashscreen-question-and-answer_answer-content-even-row": white,
    "bg-modal-available-quizzes": map-get($stdStyle, "splashscreen-background-color"),
    "splashscreen-sound-config-background-color": map-get($stdStyle, "splashscreen-background-color"),
    "splashscreen-sound-config-button-background-color": map-get($stdStyle, "success"),
    "splashscreen-sound-config-select-foreground-color": $primary_text_color,
    "splashscreen-delete-background-color": $light_primary_color,
    "splash-screen-error-message-background-color": $light_primary_color,
    "splash-screen-error-message-foreground-color": white,
    "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_primary_color,
    /* Sound configuration */
    "bg-soundConfig_soundTab_navPills": white,
    "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_green_500"),
    /* Language select buttons */
    "grey-button-background": $dark_primary_color,
    "grey-button-color": white,
    /* Loading indicator */
    "border-loader_wrapper-outer_spin": white,
    "border-loader_wrapper-middle_spin": $accent_color,
    "border-loader_wrapper-inner_spin": $dark_primary_color,
    /* Quiz Manager */
    "fg-quiz_manager-sortable_placeholder": black,
    "bg-quiz_manager-sortable_placeholder": white,
    "fg-quiz_manager-ul-li": white,
    "fg-quiz-summary-P": white,
    "border-quiz_manager-available_questions_wrapper": $dark_primary_color,
    "bg-quiz_manager-available_questions_wrapper-hovered": $accent_color,
    "border-quiz_manager-available_questions_wrapper-valid": lighten($accent_color, 20),
    "border-quiz_manager-available_questions_wrapper-invalid": map-get($stdStyle, "md_red_500"),
    "fg-quiz_manager_details-btn_group-button": $primary_text_color,
    "bg-quiz_manager_details-btn_group-button": $dark_primary_color,
    "bg-quiz_manager_details-btn_group-button-hovered": lighten($dark_primary_color, 20),
    "border-quiz_manager_details-btn_group-button": $dark_primary_color !important,
    /* Question type selection */
    "border-question_type_view-wrapper": $accent_color,
    "fg-question_type_view-wrapper-hovered": white,
    "bg-question_type_view-wrapper-hovered": $accent_color,
    "border-question_type_view-activeQuestionType-wrapper": white,
    /* Edit answer options and smartphone preview */
    "bg-edit_answeroption_text-element_wrapper": $light_primary_color,
    "border-preview_answeroption_content_wrapper-image": white,
    "fg-preview_answeroption_content_wrapper": white,
    /* QR code */
    "fg-qr-code-button": white,
    "fg-qr-code-button-hovered": darken(map-get($stdStyle, "fg-qr-code-button"), 10),
    "border-qr-code-container": white,
    "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": white,
    "bg-nickname_categories-nick_style": white,
    "bg-nickname_categories-nick_style-hovered": map-get($stdStyle, "md_grey_500"),
    "bg-nickname_categories-nick_style-active": map-get($stdStyle, "md_grey_500"),
    "bg-nickname_categories-nick_style-selected_category": $accent_color,
    "bg-nickname_categories-nick_chosen_nick": $accent_color,
    "bg-nickname_categories-nick_chosen_nick-hovered": map-get($stdStyle, "md_grey_300"),
    "bg-nickname_categories-nick_chosen_nick-active": map-get($stdStyle, "md_grey_500"),
    "bg-nickname_categories-nick_chosen_nick-selected": map-get($stdStyle, "md_grey_500"),
    "fg-nickname_categories-options": white,
    "fg-nick_limited-h3": white,
    "bg-nick_limited-selectable_nick": white,
    "bg-nick_limited-selectable_nick-hovered": $accent_color,
    "bg-nick_limited-selectable_nick-active": $accent_color,
    /* Highlighting one's own nickname */
    "bg-colorChangingOwnNick0": $dark_primary_color,
    "fg-colorChangingOwnNick0": white,
    "bg-colorChangingOwnNick25": $accent_color,
    "fg-colorChangingOwnNick25": white,
    "bg-colorChangingOwnNick50": $accent_color,
    "fg-colorChangingOwnNick50": white,
    "bg-colorChangingOwnNick75": $accent_color,
    "fg-colorChangingOwnNick75": white,
    "bg-colorChangingOwnNick100": $dark_primary_color,
    "fg-colorChangingOwnNick100": white,
    /*Countdown running view */
    "fg-question-title": white,
    /* 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": $primary_color,
    "fg-button-result-percentage": white,
    /* 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": white,
    "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": white,
    /* Quiz management */
    "fg-hashtag_management-hashtag_name": map-get($stdStyle, "default-text-color"),
    "border-hashtag_management-HR": map-get($stdStyle, "default-text-color"),
    /* Slider for estimation answer */
    "bg-rangedSlider-invalid": map-get($stdStyle, "md_red_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,
    "border-btn_info": $primary_color !important,
    "fg-btn_info-hovered": $text_icon_color !important,
    "bg-btn_info-hovered": $dark_primary_color,
    "border-btn_info-hovered": $primary_color,
    "fg-btn_info-focused": $primary_text_color !important,
    "bg-btn_info-focused": $accent_color,
    "border-btn_info-focused": $accent_color,
    "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": $accent_color,
    "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
  );
}
