/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

:root {
  --bg-color: #16181c;
  --bg-extra-color: #131418;
  --input-color: #292d34;
  --input-boder-color: #4b515f;
  --input-highlight-color: #33383f;
  --link-color: #637aa9;
  --link-highlight-color: #8ea5d3;
  --button-color: #637aa9;
  --button-highlight-color: #8ea5d3;

  --header-color: #fff;
  --text-color: #eee;

  --bg-color: #eee;
  --bg-extra-color: #131418;
  --input-color: #ccc;
  --input-boder-color: #aaa;
  --input-highlight-color: #ddd;
  --link-color: #124258;
  --link-highlight-color: #111;
  --button-color: #222;
  --button-highlight-color: #111;


  --header-color: #444;
  --text-color: #444;
}

html {
  color: var(--text-color);
  font-size: 1em;
  line-height: 1.4;
  background-color: var(--bg-color);
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #8ea5d3;
  text-shadow: none;
}

::selection {
  background: #8ea5d3;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}




h1 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 2.4rem;
}

p {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-color);
}

body,
html {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  padding: 1.2rem 0;
  background-color: var(--bg-extra-color);
  color: var(--header-color);
}

header h2 {
  font-size: 2.2rem;
  list-style: 1;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: 0;
  font-family: "Barlow Semi Condensed", sans-serif;
  color: #eee;
}

header h2 span {
  font-weight: 200;
}

header p {
  color: #eee;
  font-weight: 400;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 1.2rem 0;
  background-color: var(--bg-color);
}
a {
  text-decoration: none;
  color: var(--link-color);
}
a:hover {
  color: var(--link-highlight-color); 
}
footer a {
  color: #eee;
  color: var(--link-color);
  font-weight: 400;
  font-size: 0.8rem;
}

footer a:hover {
  color: var(--link-highlight-color);
}

section {
  display: flex;
  flex-grow: 0.6;
  justify-content: center;
  align-items: center;
}
main{
  margin-top:4rem;
  text-align: center;
}

.b_base {
  width: 380px;
}

.r_base {
  display: flex;
  margin-top: 1.6rem;
}

.r_base p:last-child {
  margin-left: auto;
  color: var(--link-color);
  cursor: pointer;
}

.r_base p:last-child:hover {
  color: var(--link-highlight-color);
}

input {
  background: var(--input-color);
  border: solid 1px var(--input-boder-color);
  padding: 14px;
  color: white;
  border-radius: 5px;
  width: 100%;
  font-size: 0.85rem;
  font-family: "Roboto", sans-serif;
  color:#444;
  font-weight: 600;
}

input:hover {
  background-color: var(--input-highlight-color);
}

@media screen and (max-width: 450px) {
  .b_base {
    width: 90%;
    margin: 0 5%;
  }
}

button {
  margin-top: 2rem;
  width: 100%;
  padding: 12px;
  background: var(--button-color);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background: var(--button-highlight-color);
}

#alert_message {
  height: 2rem;
  margin-top: 2rem;
  color: #000;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}