@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;800&display=swap");
/* Spinner style */
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Widget.Button */
.button {
  width: 100%;
  min-height: 50px;
  max-height: 50px;
  padding: 13px 30px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  position: relative;
}
.button.disabled {
  background: #DCE0E8 !important;
}
.button .icon {
  background-repeat: no-repeat;
  display: inline-block;
  height: 100%;
}
.button.working {
  color: transparent !important;
}
.button.working::after {
  content: "";
  position: absolute;
  top: 12px;
  border: 2px solid white;
  border-top-color: transparent;
  border-left-color: transparent;
  box-sizing: border-box;
  width: 26;
  height: 26;
  border-radius: 50%;
  animation: spinner 0.6s infinite linear;
}

/* Widget.CircularProgress */
.circular-progress {
  width: 60px;
  height: 60px;
}
.circular-progress .progress-circle {
  stroke: #00C8FD;
  stroke-linecap: round;
}
.circular-progress .background-circle {
  stroke: #e6e6e6;
}
.circular-progress .progress-text {
  font-weight: bold;
  font-size: 14px;
}

/* Widget.LinearProgress */
.linear-progress {
  border-radius: 10px;
  height: 10px;
}
.linear-progress .background-line {
  stroke: rgba(100, 100, 100, 0.35);
}
.linear-progress .progress-line {
  stroke: #FFFFFF;
}

/* Widget.Input */
.input {
  border: 1px solid #C0C7D5;
  box-sizing: border-box;
  border-radius: 12px;
  text-align: left;
  padding: 10px;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 19px;
}

.input:focus {
  border-color: #00C8FD;
}

/* Widget.Form */
.form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.form .form-title {
  font-weight: 800;
  font-size: 24px;
  line-height: 33px;
  text-align: center;
  color: #002A37;
}
.form .fields {
  flex: 1;
}
.form .fields .form-field + .form-field {
  margin-top: 20px;
}
.form .fields .field-label {
  text-align: left;
  font-weight: 500;
  font-size: 14px;
  color: #0E1622;
  margin-bottom: 8px;
}
.form .message {
  text-align: center;
  margin-bottom: 20px;
}
.form .buttons {
  display: flex;
  flex-direction: column;
}
.form .buttons .button {
  color: #FFFFFF;
  background: #00C8FD;
}

/* Widget.Screen */
.screen {
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  display: flex;
}

/* Widget.FormScreen */
.form-screen > h1 {
  text-align: center;
}
.form-screen .form {
  flex: 1;
  color: #0E1622;
}
.form-screen .links {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  margin-bottom: 20px;
}
.form-screen .links > div {
  color: #0E1622;
  font-weight: 800;
  font-size: 14px;
  line-height: 19px;
}

/* Widget.PopupMenu */
.popup-menu {
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.popup-menu .menu {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 160px;
  padding: 30px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
}
.popup-menu .menu .link {
  font-weight: 800;
  font-size: 14px;
  color: #0E1622;
}
.popup-menu .menu .line {
  border: 1px solid #DCE0E8;
  width: 100%;
  margin: 20px 0;
}

/* Widget.MessagePanel */
.message-panel .message {
  background: #83CD00;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.message-panel .message .message-text {
  padding: 15px;
  font-size: 14px;
  color: #FFFFFF;
  flex: 1;
}
.message-panel .message .message-close-icon {
  width: 42px;
  height: 42px;
  background: transparent url("../images/icon/close.svg") center center no-repeat;
  background-size: 15px 15px;
}

/* Global variables */
/* Global styles */
html, body {
  margin: 0;
  padding: 0;
}

body.no-scroll {
  overflow: hidden;
}

.invisible {
  display: none !important;
}

.loading > * {
  visibility: hidden;
}

* {
  font-family: "Manrope", sans-serif;
  box-sizing: border-box;
  outline: none;
}

/* App.Main */
.app-main {
  height: 100%;
  padding: 20px;
}

/* App.Header */
.header {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin-bottom: 15px;
}
.header .home-button {
  width: 24px;
  height: 24px;
  background-image: url("../images/app-logo.svg");
}
.header > span {
  font-weight: 600;
  font-size: 18px;
  color: #0E1622;
  flex: 1;
  margin-left: 10px;
}

/* Courses.List */
.courses-list .courses-list-item {
  padding: 20px;
  margin-bottom: 10px;
  border-radius: 12px;
  background-color: #00C8FD;
  background-image: url("../images/course-box-image.svg");
  background-repeat: no-repeat;
  background-position: left;
  color: #FFFFFF;
}
.courses-list .courses-list-item > h1 {
  font-size: 24px;
  margin: 0 0;
}
.courses-list .courses-list-item > .words-count {
  margin-top: 10px;
  font-weight: 500;
  font-size: 16px;
  opacity: 0.8;
}
.courses-list .courses-list-item .linear-progress {
  width: 100%;
  height: 5px;
  margin-top: 56px;
}

/* Course.Screen */
.course-screen {
  justify-content: space-between;
}
.course-screen .course-congratulation {
  flex: 1;
}
.course-screen .course-buttons {
  padding-bottom: 34px;
  min-height: 200px;
}
.course-screen .course-buttons .button {
  font-size: 18px;
  line-height: 25px;
}

/* Course.Header */
.courses-header {
  display: flex;
  align-items: center;
  height: 50px;
}
.courses-header .arrow-icon {
  background-image: url("../images/icon/arrow-left.svg");
  width: 24px;
  height: 24px;
}
.courses-header > .course-title {
  flex: 1;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  color: #0E1622;
  padding-left: 26px;
}
.courses-header > .circular-progress {
  width: 50px;
  height: 50px;
}

/* Course.Word */
.course-word {
  color: #0E1622;
  text-align: center;
}
.course-word .course-word-base {
  font-weight: 800;
  font-size: 28px;
  line-height: 38px;
}
.course-word .course-word-phonetic {
  font-size: 16px;
  line-height: 22px;
  color: #62708B;
  margin-top: 8px;
}
.course-word .course-word-translation {
  font-size: 22px;
  line-height: 30px;
  margin-top: 24px;
}

/* Course.Buttons */
.course-buttons {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.course-buttons .show-translation {
  color: #FFFFFF;
  background: #00C8FD;
}
.course-buttons .button-known {
  color: #77BB00;
  background: #EDFFE1;
  margin: 0 0 16px;
}
.course-buttons .button-dont-know {
  color: #0E1622;
  background: white;
  border: 1px solid #DCE0E8;
}
.course-buttons .button-home .icon, .course-buttons .button-repeat .icon {
  width: 25px;
  margin-right: 8px;
}
.course-buttons .button-home {
  background: #00C8FD;
  color: #FFFFFF;
  margin: 0 0 16px;
}
.course-buttons .button-home .icon {
  background-image: url("../images/icon/home.svg");
}
.course-buttons .button-repeat {
  background: white;
  border: 1px solid #DCE0E8;
  color: #0E1622;
}
.course-buttons .button-repeat .icon {
  background-image: url("../images/icon/repeat.svg");
}

/* Course.Congratulation */
.course-congratulation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.course-congratulation .title {
  color: #0E1622;
  font-weight: 800;
  font-size: 42px;
  line-height: 57px;
}
.course-congratulation .sub-title {
  font-size: 22px;
  line-height: 30px;
  text-align: center;
  color: #62708B;
}

/** Account.InvitationSignupBox */
.invitation-signup-box {
  background: #F2F3F6;
  margin-bottom: 20px;
  padding: 24px 16px 16px;
  border-radius: 12px;
}
.invitation-signup-box .title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
}
.invitation-signup-box .signup-button {
  background: #FFFFFF;
  color: #0E1622;
}

/* Account.SignupCompletionScreen */
.signup-completion-screen {
  justify-content: space-between;
}
.signup-completion-screen .message {
  color: #002A37;
  text-align: center;
}
.signup-completion-screen .message .icon {
  width: 116px;
  height: 116px;
  margin: 0 auto;
}
.signup-completion-screen .message .icon.failure-icon {
  background-image: url("../images/icon/signup-failure.svg");
}
.signup-completion-screen .message .icon.success-icon {
  background-image: url("../images/icon/signup-success.svg");
}
.signup-completion-screen .message .title {
  margin-top: 20px;
  font-weight: 800;
  font-size: 24px;
  line-height: 33px;
}
.signup-completion-screen .button {
  color: #FFFFFF;
  background: #00C8FD;
}

/* Account.EmailSentScreen */
.email-sent-screen {
  text-align: center;
  justify-content: space-between;
}
.email-sent-screen .title {
  font-weight: 800;
  font-size: 24px;
  line-height: 33px;
  color: #002A37;
  margin-bottom: 20px;
}
.email-sent-screen .check-spam {
  font-size: 16px;
  line-height: 22px;
  color: #62708B;
}
.email-sent-screen .send-email-again {
  background: white;
}
.email-sent-screen .send-email-again.working::after {
  border: 2px solid black;
  border-top-color: transparent;
  border-left-color: transparent;
  box-sizing: border-box;
  width: 26;
  height: 26;
  border-radius: 50%;
  animation: spinner 0.6s infinite linear;
}
.email-sent-screen .message-panel {
  height: 20%;
}

/* Account.Icon */
.account-icon {
  width: 32px;
  height: 32px;
  background-image: url("../images/icon/user-logged-out.svg");
}
.account-icon.logged-in {
  background-image: url("../images/icon/user-logged-in.svg");
}
