/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --background-color: #f2f2f2;
  --border-radius: 5px;
  --secondary-color: #808080;
}

* {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

body {
  display: flex;
  padding: 0.5rem;
}

#container {
  max-width: 450px;
  width: 100%;
  margin: auto;
}

.flex,
.flex-rotate {
  display: flex;
}

.flex input {
  flex-grow: 1;
}

.grow {
  flex-grow: 1;
}

.txt-btn {
  margin: auto;
  padding: 0 0.5rem;
}

.ml-1 {
  margin-left: 0.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
}

input[type='submit'],
button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: var(--border-radius);
  border: 1px solid rgb(118, 118, 118);
}

input[type='text'],
input[type='password'] {
  padding: 0.5rem;
  font-size: 16px;
  border-radius: var(--border-radius);
  border: 1px solid rgb(118, 118, 118);
}

input[type='text'] {
  width: 100%;
}

.danger {
  background-color: #ff4747;
}

.secondary {
  color: var(--secondary-color);
  font-size: 14px;
}

.pass-w-show {
  display: flex;
}

.pass-w-show input[type='password'] {
  flex-grow: 1;
}

.field {
  margin: 1rem 0;
}

.nav {
  margin: 1rem 0;
}

.nav a {
  margin: 0 0.5rem 0 0;
}

.pass {
  background-color: var(--background-color);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  width: 100%;
}

.pass-link {
  text-decoration: none;
  color: black;
}

.pass-username {
  margin: 0.5rem 0 0 0;
}

.pass-name {
  margin: 0;
  font-weight: 700;
  text-transform: capitalize;
}

.login {
  background-color: var(--background-color);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  width: 100%;
}

.login p {
  margin: 0;
}

.login-details p {
  margin: 0.5rem 0;
}

.notice {
  padding: 0.5rem;
  border: 1px solid green;
  border-radius: var(--border-radius);
  background-color: #c8ffc4;
  width: fit-content;
}

.alert {
  padding: 0.5rem;
  border: 1px solid red;
  border-radius: var(--border-radius);
  background-color: #ffc4c6;
  width: fit-content;
}

.password-input {
  display: flex;
}

.password-input input {
  flex-grow: 1;
}

.search {
  display: flex;
}

.search a {
  margin: auto;
  padding: 0 0.5rem;
}

.user {
  display: flex;
  max-width: 400px;
  background-color: var(--background-color);
  padding: 0.5rem;
  margin: 0.5rem 0;
  border-radius: var(--border-radius);
}

.user p {
  margin: 0;
}

.gen-pass {
  margin-left: 0.5rem;
}

@media only screen and (max-width: 768px) {
  .input-btn {
    width: inherit !important;
  }

  input[type='submit'],
  button {
    width: 100%;
    padding: 0.5rem;
  }

  .flex-rotate {
    flex-direction: column;
  }

  .gen-pass {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
