/* v1.0 */

@font-face {
  font-family: 'OpenSans-Regular';
  src: url('font/OpenSans-Regular.eot?#iefix') format('embedded-opentype'), url('font/OpenSans-Regular.woff') format('woff'), url('font/OpenSans-Regular.ttf') format('truetype'), url('font/OpenSans-Regular.svg#OpenSans-Regular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto-Regular';
  src: url('font/Roboto-Regular.eot?#iefix') format('embedded-opentype'), url('font/Roboto-Regular.woff') format('woff'), url('font/Roboto-Regular.ttf') format('truetype'), url('font/Roboto-Regular.svg#Roboto-Regular') format('svg');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto-Medium';
  src: url('font/Roboto-Medium.eot?#iefix') format('embedded-opentype'), url('font/Roboto-Medium.woff') format('woff'), url('font/Roboto-Medium.ttf') format('truetype'), url('font/Roboto-Medium.svg#Roboto-Medium') format('svg');
  font-weight: normal;
  font-style: normal;
}

*::before,
*::after,
* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  display: flex;
  margin: 0;
  width: 100%;
  height: 80vh;
  min-height: 80vh;
  background-color: #0f0d15;
  background-image: url('KeyGuard.png');
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: 50% 98%;
  background-attachment: fixed;
  font-family: 'OpenSans-Regular', sans-serif;
  color: #dfcffc;
  text-align: center;
}

.noSelect {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.plainCursor {
  cursor: default;
}

.bottomButton {
  position: fixed;
  min-height: 32px;
  width: auto;
  max-width: 40vw;
  bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #bf9ff933;
  border-radius: 1rem;
  background-color: #0f0226cc;
  color: #dfcffc66;
  font-size: 1rem;
  word-wrap: break-word;
  transition: all 300ms;
}

.bottomButton:hover {
  border: 1px solid #bf9ff9;
  color: #c5a9f9;
}

#versionNumber {
  right: 1rem;
}

#privacyButton {
  left: 1rem;
  width: 71px;
  cursor: pointer;
  overflow: hidden;
}

.wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 90%;
  max-width: 700px;
  min-height: 400px;
  padding: 0.5rem;
  margin: auto;
  margin-top: 8vh;
  background-color: #0f022680;
  border: 0.05rem solid #efe7fd66;
  border-radius: 1rem;
  transition: all 300ms;
}

.wrapper:hover {
  box-shadow: 0 0 3rem #efe7fd0f;
}

.topper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 90%;
  margin: 0;
}

.header {
  width: 80%;
  min-width: 70vw;
  border: 1px solid #dfcffc;
  background-color: #13033080;
  padding: 0.25rem;
  padding-top: 0.5rem;
  font-family: 'Roboto-Medium', sans-serif;
  text-shadow: 0 3px 5px #000;
}

#branding {
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  background: -moz-linear-gradient(top, rgba(47, 8, 120, 0.3) 0%, rgba(47, 8, 120, 0.15) 100%);
  background: -webkit-linear-gradient(top, rgba(47, 8, 120, 0.3) 0%, rgba(47, 8, 120, 0.15) 100%);
  background: linear-gradient(to bottom, rgba(47, 8, 120, 0.3) 0%, rgba(47, 8, 120, 0.15) 100%);
  font-size: 2rem;
}

#tagline {
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  padding: 0.5rem 0.25rem;
  margin-bottom: 2rem;
  margin-top: -21px;
  background: -moz-linear-gradient(top, rgba(47, 8, 120, 0.14) 0%, rgba(0, 0, 0, 0) 100%);
  background: -webkit-linear-gradient(top, rgba(47, 8, 120, 0.14) 0%, rgba(0, 0, 0, 0) 100%);
  background: linear-gradient(to bottom, rgba(47, 8, 120, 0.14) 0%, rgba(0, 0, 0, 0) 100%);
  font-size: 90%;
  font-weight: normal;
}

.strengthMeter {
  display: none;
  position: relative;
  height: 3rem;
  width: 90%;
  border: 0.1rem solid #7431f2;
  border-radius: 2rem;
  background-color: #1c054880;
  margin: 0 auto;
  overflow: hidden;
}

.strengthMeter,
.strengthMeter::before,
.strengthMeter::after {
  transition: width 500ms;
}

.strengthMeter::before {
  content: '';
  position: absolute;
  height: 100%;
  width: calc(1% * var(--strength, 0));
  left: 0;
  background-color: #9561f5;
}

.inputWrapper {
  position: relative;
  width: 90%;
  height: 40px;
  margin-bottom: 2rem;
}

.passwordInput {
  width: 100%;
  height: 38px;
  margin-top: 2rem;
  padding: 0.25rem 0.75rem;
  background-color: #260660;
  color: white;
  border: 1px solid #7431f2;
  border-radius: 0.3rem;
  outline: none;
  text-align: center;
  font-size: 1.5rem;
}

.passwordInput:focus {
  border-color: #bf9ff9;
  background-color: #2f0878;
  box-shadow: 0 4px 10px #bf9ff933;
}

#copyIcon {
  display: none;
  opacity: 0.5;
  position: absolute;
  height: 24px;
  right: 1rem;
  top: 2.4rem;
  z-index: 2;
  transition: all 300ms;
}

#copyIcon:hover {
  opacity: 1;
}

.recommendations>* {
  margin-top: 0.75rem;
  color: #c5a9f9;
  transition: all 0.3s;
}

.highRisk {
  color: #ff7070;
}

.lowRisk {
  color: #ece84d;
}

.excellentPassword {
  color: #00ff00cc;
  font-weight: bold;
}

.buttonWrapper {
  position: absolute;
  bottom: 0;
  height: 20%;
  width: 100%;
}

.resetButton {
  display: none;
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #dfcffc;
  border-radius: 1rem;
  background-color: #260660;
  color: #dfcffc;
  font-size: 95%;
  font-family: 'Roboto-Regular', sans-serif;
  outline: none;
  transition: all 400ms;
}

.resetButtonHover {
  border: 1px solid #130330;
  background-color: #bf9ff9;
  color: #130330;
}

.tfsStar {
  position: absolute;
  top: 1rem;
  right: 50vw;
  z-index: -1;
}

#tfsStar {
  width: 10rem;
  opacity: 0.05;
  filter: drop-shadow(0 2px 6px rgb(0, 0, 0, 0.5));
}
