@charset "utf-8";

@media (prefers-color-scheme: light) {
  :root {
    --error: #dc3545;
    --success: #198754;
    --primary: #7952b3;
    --secondary: #61428f;
    --border-color: #61428f;
    --button-text: #fff;
    --button-focus: 0 0 0 3px rgb(121, 82, 179, 0.25);
    /* link color */
    --link-color: #7952b3;
    /* text */
    --text-main: #363636;
    --text-bright: #000;
    /* background */
    --background-body: #f9fafb;
    --main-bg: #fff;
    --main-border: transparent;

    /* input */
    --input-text-color: #000;
    --input-placeholder-color: #c2c2c2;
    --input-border-color: #ccc;
    --input-background-color: #fff;
    --input-disabled: #f5f5f5;
    --input-focus: 0 0 0 3px rgb(121, 82, 179, 0.25);
    --box-shadow: rgb(50 50 93 / 25%) 0px 2px 5px -1px,
      rgb(0 0 0 / 30%) 0px 1px 3px -1px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    /* error & success */
    --error: #dc3545;
    --success: #198754;
    /* button */
    --primary: #444c56;
    --secondary: #212529;
    --border-color: #1c1f23;
    --button-text: #fff;
    --button-focus: 0 0 0 0.25rem rgb(66 70 73 / 50%);

    /* link color */
    --link-color: #0d6efd;

    /* text */
    --text-main: #adbac7;
    --text-bright: #adbac7;

    /* background */
    --background-body: #22272e;
    --main-bg: #22272e;
    --main-border: 1px solid #444c56;

    /* input */
    --input-text-color: #adbac7;
    --input-placeholder-color: #4c545e;
    --input-background-color: #22272e;
    --input-border-color: #373e47;
    --input-disabled: #373e47;
    --input-focus: 0 0 0 2pt rgb(49, 132, 253, 0.5);
    --box-shadow: none;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  padding: 0 1rem;
  word-wrap: break-word;
  color: var(--text-main);
  background: var(--background-body);
  text-rendering: optimizeLegibility;

  /* center by default */
  display: flex;
  flex-direction: column;
  /*align-items: center;*/
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

main {
  background-color: var(--main-bg);
  border: var(--main-border);
  border-radius: 5px;
  box-shadow: var(--box-shadow);
     max-width:730px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}

header {
  text-align: center;
}

/*  Links
---------------------------------------*/
a {
  text-decoration: none;
  color: var(--link-color);
}

a:hover {
  text-decoration: underline;
}
a:focus {
  box-shadow: var(--button-focus);
  border-radius: 3px;
  outline: none;
}

form {
  max-width: 700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

orm h1 {
  padding: 5px 0;
  font-size: 1.4rem;
  font-weight: normal;
  text-align: center;
  color: var(--text-bright);
}

form i {
  margin-left: -30px;
  cursor: pointer;
}

form p {
  margin-bottom: 0.5rem;
}

/*
	if the form has one button that span across 
	wrap it in a div
*/
/*form > div > button {
  width: 100%;
}   */

/*form > div {
  margin-bottom: 0.75rem;
  } */
  
  /* show an error message that follows an input and label  */
input + small,
textarea + small,
label + small {
  color: var(--error);
}

/* show a label on the form */
label {
  display: inline-block;
  margin-bottom: 5px;
  vertical-align: top;
  width: 100%;
}

/* input, textarea */
input,
textarea,
select {
  background-color: var(--input-background-color);
  color: var(--input-text-color);
  border: 1px solid var(--input-border-color);
  border-radius: 3px;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  /*width: 100%;  */
  font-family: inherit;
  font-size: 1rem;
}

input::placeholder {
  color: var(--input-placeholder-color);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: var(--input-focus);
}

input[disabled],
textarea[disabled] {
  background-color: var(--input-disabled);
  border: solid 1px var(--input-border-color);
  box-shadow: none;
  color: #7a7a7a;
  cursor: not-allowed;
}

/* input error & success */
input.error,
textarea.error,
select.error {
  border-color: var(--error);
}

input.error:focus,
textarea.error:focus,
select.error:focus {
  box-shadow: 0 0 0 0.25rem rgb(220 53 69 / 25%);
}

input.success,
textarea.success,
select.success {
  border-color: var(--success);
}

input.success:focus,
textarea.success:focus {
  box-shadow: 0 0 0 0.25rem rgb(25 135 84 / 25%);
}


/* buttons DO NOT USE input with type submit or button */
button {
  background: var(--primary);
  color: var(--button-text);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid var(--primary);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin-top: 7px;
  text-align: center;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  /*/width: 200px; */
  float: right;
}

button:hover {
  background: var(--secondary);
  border-color: var(--border-color);
  cursor: pointer;
}

button:focus {
  outline: none;
  color: var(--button-text);
  background-color: var(--secondary);
  border-color: var(--border-color);
  box-shadow: var(--button-focus);
}

/*form > button {
  display: block;
  width: 100%;
}   */


/* alerts */
.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}
.alert-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
.alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}
.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}
.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* Utility classes*/
.half {
  width: 50%;
}
.quarter {
  width: 25%;
}

.full {
  width: 100%;
}

.error {
  color: var(--error);
}

.hidden {
  display: none;
}

.user-cannot-see {
  display: none;
}

/*-----------------------------------------------------------------*/

* {
  box-sizing: border-box;
}

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
  max-width:700px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.col-25 {
  float: left;
  width: 25%;
  margin-top: 6px;
}

.col-75 {
  float: left;
  width: 75%;
  margin-top: 6px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .col-25, .col-75, input[type=submit], button {
    width: 100%;
    margin-top: 0;
  }
}

p {
        margin: 0;
        color: red;
      }
