:root {
  --underline-color: green;
  --divider-color: #F4F9F9;
  --notification-color: black;
  --notification-background-color: #99D8FF;
  --menuButtonBorderColor: #EF5B0C;
  /*
  #F5EDDC (beige)
  #FBF7F0
  #4D77FF (dark blue / violet)
  */
}

* {
  font-family: 'Montserrat', sans-serif;
}

.w100 {
  font-weight: 100;
}

.w200 {
  font-weight: 200;
}

.w300 {
  font-weight: 300;
}

.w400 {
  font-weight: 400;
}

.bold {
  font-weight: 700;
}

/* bodies */

#logo {
  width: 60%;
  margin: 20px 0px 15px 0px;
}

#body-passgen {
  --transparent: 0.6;
  --transparent2: 1;
  background: -moz-linear-gradient(0deg, rgba(59,154,225,var(--transparent)) 0%, rgba(165,215,232,var(--transparent2)) 100%);
  background: -webkit-linear-gradient(0deg, rgba(59,154,225,var(--transparent)) 0%, rgba(165,215,232,var(--transparent2)) 100%);
  background: linear-gradient(0deg, rgba(59,154,225,var(--transparent)) 0%, rgba(165,215,232,var(--transparent2)) 100%);
}

/* glassboxes effect */
.glass-box {
  background: rgba( 255, 255, 255, 0.45 );
  /* box-shadow: 0 2px 8px 0 rgba( 31, 38, 135, 0.37 ); */
  backdrop-filter: blur( 5.5px );
  -webkit-backdrop-filter: blur( 5.5px );
  border-radius: 10px;
}

.title {
  font-family: 'Fira Code', monospace;
  padding-top: 15px;
  font-size: 3rem;
}

.subtitle {
  width: 60%;
}

.section_divider {
  width: 60%;
  height: 1px;
  border: 1px solid var(--divider-color);
  border-radius: 7px 7px 7px 7px;
  background-color: var(--divider-color);
}

.section-container {
  width: 60%;
}
.section-container p.section-content {
  text-align: left;
}

.section-header {
  text-align: left;
}

.section-row {
  display: flex;
  width: 100%;
  margin: 10px 0px 10px 0px;
}
.section-row > .left {
  flex: 1 1 0;
  text-align: right;
}
.section-row > .mid {
  flex: 1 1 0;
  text-align: center;
}
.section-row > .right {
  flex: 1 1 0;
  text-align: left;
}

.icon-container {
  text-align: center;
  padding-top: 15px;
}
.icon-container > span {
  background: none;
  font-size: 6rem;
}
.icon-container > span > span {
  font-size: 6rem;
}

.flex-item {
    display:inline-flex;
}

.pad {
  padding-top: 20px;
  padding-right: 10px;
  padding-bottom: 20px;
  padding-left: 10px;
  margin: 0px;
}

.padVert {
  padding-top: 10px;
  padding-bottom: 10px;
}

.aLeft {
  text-align: left;
}
.aRight {
  text-align: right;
}

.footer {
  width: 60%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  color: grey;
  margin-bottom: 10px;
}
.white {
  color: white;
}

.footer-left {
  width: 50%;
  text-align: left;
}

.footer-right {
  width: 50%;
  text-align: right;  
}

.spacer {
  width: 60%;
  height: 10px;
}

div.styledBorder {
  border: 6px solid lightgrey;
  border-radius: 5px;
}

.card-container {
  width: 60%;
}

.card-size-var {
  width: 10rem;
}

.padCard {
  padding-top: 20px;
  padding-right: 10px;
  padding-bottom: 20px;
  padding-left: 10px;
  margin: 0px;
}

.custom-styled {
  color: var(--notification-color);
  background-color: var(--notification-background-color);
}

.hover-underline-animation {
  /* display: inline-block; */
  position: relative;
  color: var(--underline-color);
  text-decoration: none!important;
}
.hover-underline-animation:hover {
  color: var(--underline-color);
} 
.hover-underline-animation:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--underline-color);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.hover-underline-animation:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.borderless span {
  border: none;
}

.link {
  cursor: pointer;
  color: red;
}

/* 404 button css 
from: https://getcssscan.com/css-buttons-examples */

.button-19 {
  appearance: button;
  background-color: #1899D6;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 10px 0px 10px 0px;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 14rem;
}

.button-19:after {
  background-clip: padding-box;
  background-color: #1CB0F6;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.button-19:main,
.button-19:focus {
  user-select: auto;
}

.button-19:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.button-19:disabled {
  cursor: auto;
}

/*
-------------------------
PASSGEN SPECIFIC SETTINGS
-------------------------
*/

.progressbar {
  height: 15px;
  background-color: #ECF2FF;
  border-radius: 10px;
  max-width: 350px;
}
.progressbar .inner {
  float: left;
  transition: all .3s linear;
  max-width: 350px;
}

#pass-check-rating-string {
  font-size: 1.5rem;
}

/* password gen button */

.button-20 {
  appearance: button;
  background-color: #224B0C;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 10px 0px 25px 0px;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 10rem;
}

.button-20:after {
  background-clip: padding-box;
  background-color: #42855B;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.button-20:main,
.button-20:focus {
  user-select: auto;
}

.button-20:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.button-20:disabled {
  cursor: auto;
}

/* password settings randomize button */

.btn-rand {
  appearance: button;
  background-color: #AAAAAA;
  border: solid transparent;
  border-radius: 14px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 10px 0px 5px 0px;
  outline: none;
  overflow: visible;
  padding: 5px 5px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 10rem;
}

.btn-rand:after {
  background-clip: padding-box;
  background-color: #BBBBBB;
  border: solid transparent;
  border-radius: 14px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.btn-rand:main,
.btn-rand:focus {
  user-select: auto;
}

.btn-rand:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.btn-rand:disabled {
  cursor: auto;
}

/* password settings reset button */

.button-reset {
  appearance: button;
  background-color: dimgrey;
  border: solid transparent;
  border-radius: 14px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 15px 0px 5px 0px;
  outline: none;
  overflow: visible;
  padding: 5px 5px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 6rem;
}

.button-reset:after {
  background-clip: padding-box;
  background-color: grey;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.button-reset:main,
.button-reset:focus {
  user-select: auto;
}

.button-reset:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.button-reset:disabled {
  cursor: auto;
}

/* button copy */

.button-copy {
  appearance: button;
  background-color: #EFD345;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: black;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 10px 0px 25px 0px;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 6rem;
}

.button-copy:after {
  background-clip: padding-box;
  background-color: #FFEF82;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.button-copy:main,
.button-copy:focus {
  user-select: auto;
}

.button-copy:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.button-copy:disabled {
  cursor: auto;
}

/* button github */

.button-21 {
  appearance: button;
  background-color: black;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: black;
  cursor: pointer;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 10px 0px 25px 0px;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  /* text-transform: uppercase; */
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 10rem;
}

.button-21:after {
  background-clip: padding-box;
  background-color: white;
  border: solid transparent;
  border-radius: 16px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.button-21:main,
.button-21:focus {
  user-select: auto;
}

.button-21:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}

.button-21:disabled {
  cursor: auto;
}

/* align button logo with text */

.align-btn-cont {
  display: inline-block;
  vertical-align: middle;
}

/* checkboxes passgen slider 
taken from: https://codepen.io/AllThingsSmitty/pen/MmxxOz/ */

.switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.switch input {
  display:none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .1s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

input:disabled + .slider {
  background-color: #DA7F8F;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* passgen range slider */

.slidecontainer {
  width: 100%; /* Width of the outside container */
  padding: 0rem 1rem 0rem 1rem;
}

/* slider value output */
.sliderValue {
  font-size: 3rem;
}

/* The slider itself */
.range-slider {
  -webkit-appearance: none;  /* Override default CSS styles */
  appearance: none;
  width: 100%; /* Full-width */
  max-width: 30rem;
  height: 15px; /* Specified height */
  border-radius: 10px;
  background: none; /* no background */
  outline: none; /* Remove outline */
  border: 2px solid lightgrey; /* border */
  opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
  -webkit-transition: .2s; /* 0.2 seconds transition on hover */
  transition: opacity .2s;
}

/* Mouse-over effects */
.range-slider:hover {
  opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; /* Override default look */
  appearance: none;
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  border-radius: 50%;
  background: #04AA6D; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

.range-slider::-moz-range-thumb {
  width: 25px; /* Set a specific slider handle width */
  height: 25px; /* Slider handle height */
  border-radius: 50%;
  background: #04AA6D; /* Green background */
  cursor: pointer; /* Cursor on hover */
}

/* input/output field */
.input-field {
  width: 100%;
  border: 2px solid #D1D1D1;
  background-color: #EFEFEF;
  border-radius: 5px;
  padding: 2px 5px 2px 5px;
}
.input-field:focus {
  outline: none;
}

/* popper */

#tooltip {
  background: #F4A442;
  color: black;
  font-weight: bold;
  padding: 4px 8px;
  margin-right: 1rem;
  font-size: 1rem;
  border-radius: 6px;
  width: fit-content;
  display: none; /* make invisible before btnCopy is clicked */
}

#tooltip[data-show] {
  display: block;
}

#arrow,
#arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}

#arrow {
  visibility: hidden;
}

#arrow::before {
  visibility: visible;
  content: '';
  transform: rotate(45deg);
}

#tooltip[data-popper-placement^='top'] > #arrow {
  bottom: -4px;
}

#tooltip[data-popper-placement^='bottom'] > #arrow {
  top: -4px;
}

#tooltip[data-popper-placement^='left'] > #arrow {
  right: -4px;
}

#tooltip[data-popper-placement^='right'] > #arrow {
  left: -4px;
}


/* 

mobile layout settigs 

*/

@media (max-width: 914px) {
  /* TABLETS */
  /* scale index cards to fit in one row */
  .card-size-var {
    flex: 1 1 0;
    width: 10rem;
  }

  .card-container {
    width: 100%;
  }
}

@media (max-width: 772px) {
  /* remove tab-names if screen smaller than this */
  .tab-name {
    display: none;
  }
}

@media (max-width: 576px) {
  /* PORTRAIT PHONES */

  #logo {
    width: 90%;
  }

  /* scale index cards to fit in one row */
  .card-size-var {
    flex: 1 1 0;
    width: 7.5rem;
  }

  .padCard {
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
  }

  .section_divider {
    width: 90%;
  }

  .section-container {
    width: 90%;
  }

  .footer {
    width: 90%;
    font-size: 1rem;
  }

  div.styledBorder {
    border: 5px solid lightgrey;
  }

  .subtitle {
    font-size: 1rem;
    width: 90%;
  }

  .icon-container > span {
    font-size: 4rem;
  }
  .icon-container > span > span {
    font-size: 4rem;
  }

  .section-row > .left {
    flex: 2 1 0;
  }

  /* remove text break on mobile devices and replace with space */
  br.non-mobile-break {
    display: none;
  }
  br.non-mobile-break:after {
    content: ' ';
  }

  #mail {
    font-size: 1.5rem;
  }

  #timestamp_index {
    margin-top: 1rem;
  }

  /* search */
  #input-search {
    width: 100%;
  }
}

@media (max-width: 361px) {
  /* TIGHT PORTRAIT PHONES */

  .card-size-var {
    flex: 1 1 0;
    width: 7.3rem;
  }
}

/* passgen tabs */

/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid white;
  border-radius: 10px 10px 0px 0px;
  background-color: #f1f1f1;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  width: 33.33%;
  display: inline-block;
  margin: 0 auto;
  font-size: 1.2rem;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #E1E5EA;
}

/* Change background color of buttons on hover */
.tab button:focus {
  outline: none;
  border: none;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #ddd;  /* #ccc */
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid white;
  border-radius: 0px 0px 10px 10px;
  border-top: none;
  animation: fadeEffect .5s; /* Fading effect takes 1 second */
  /* glassmorphism effect */
  background: rgba( 255, 255, 255, 0.45 );
  backdrop-filter: blur( 5.5px );
  -webkit-backdrop-filter: blur( 5.5px );
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* btn go to openpassword */

.btn-passgen {
  appearance: button;
  background-color: rgb(253,187,45);
  border: solid transparent;
  border-radius: 10px;
  border-width: 0 0 4px;
  box-sizing: border-box;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .8px;
  line-height: 20px;
  margin: 20px 0px 10px 0px;
  outline: none;
  overflow: visible;
  padding: 13px 16px;
  text-align: center;
  text-transform: uppercase;
  touch-action: manipulation;
  transform: translateZ(0);
  transition: filter .2s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
  white-space: nowrap;
  width: 16rem;
}
.btn-passgen:after {
  background-clip: padding-box;
  background-color: rgb(34,193,195);
  border: solid transparent;
  border-radius: 10px;
  border-width: 0 0 4px;
  bottom: -4px;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}
.btn-passgen:main,
.btn-passgen:focus {
  user-select: auto;
}
.btn-passgen:hover:not(:disabled) {
  filter: brightness(1.1);
  -webkit-filter: brightness(1.1);
}
.btn-passgen:disabled {
  cursor: auto;
}