/*! HTML5 Boilerplate v9.0.1 | 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
   ========================================================================== */

@property --light-blue {
  syntax: "<color>";
  inherits: false;
  initial-value: #006aec;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  background: #FFFFFF;
  background: linear-gradient(182deg, rgb(255, 255, 255) 0%, rgba(166, 166, 166, 1) 50%, rgba(56, 56, 56, 1) 100%);
  cursor: default;
}

body {
  min-height: 100vh;
}

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

::-moz-selection {
  background: #006aec;
  color: white;
  text-shadow: none;
}

::selection {
  background: #006aec;
  color: white;
  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;
}

h1 {
  font-family: "Bungee Inline", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.privacy_header {
    font-family: "Bungee Inline", sans-serif;
    font-weight: 100;
    font-style: normal;
}

/*
 * 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
   ========================================================================== */

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
}

.form_section {
  padding-bottom: 20px;
}

#message_section {
  display: none;
  background: white;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
  color: black;
  padding-top: 20px;
  padding-bottom: 20px;
}

.intro, .how_it_works {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why_us_text_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 3px solid black;
  border-bottom: 3px solid black;
  width: 100%;
}

.why_us_text_box.privacy {
  text-align: justify;
}

#privacy_container {
  max-width: 800px;
}

.home-text {
  font-size: 0.8em;
}

.contact_icon {
  color: var(--light-blue);
}

.idle {
  border: 2px solid #3e3e3e;
  -webkit-appearance: none;
  background-color: #FDF035;
  border-radius: 4px;
  color: rgba(34, 34, 34, 0.6);
  height: 60px;
  max-width: 350px;
  font-size: 50px;
  font-weight: 600;
  margin: 0;
  outline: none;
  padding: 0 16px;
  text-align: center;
  width: 100%;
  font-family: Arial, serif;
}

.idle :focus {
  color: black;
}

.form_submit {
  width:380px;
  padding: 15px;
  font-size: 1.2em;
  max-width: 400px;
  margin-left: 6px;
}

.form_submit:hover {
  cursor: pointer;
}

.topnav {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 20%;
  padding-right: 20%;
  align-items: center;
}

#topnav_icon_link {
  margin: 0;
  padding: 0;
  height: 140px;
}

#topnav_icon_link_small {
  display: none;
}

.topnav .pulled-right {
  height: 80px;
  line-height: 45px;
}

.topnav img {
  height: 140px;
  overflow-y: visible;
  display: inline-block;
  margin-left: 10px;
}

/* Style the links inside the navigation bar */
.topnav a {
  height: 80px;
  float: left;
  display: inline-block;
  color: var(--light-blue);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  text-transform: uppercase;
}

/* Change the color of links on hover */
.topnav a:hover {
  color: black;
}

/* Add an active class to highlight the current page */
.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

.dropdown_button {
  height: 80px;
  width: 60px;
  display: none;
}

.dropdown_button:hover {
  cursor: pointer;
}

#mobile_nav {
  display: none;
  flex-direction: column;
  align-items: center;
}

.mobile_link {
  padding: 5px;
  font-size: 1.2em;
  font-weight: bold;
  width: 100%;
  text-align: center;
}

.mobile_link:hover {
  color: var(--light-blue);
}

.icon-right {
  float: right;
 }

#first_form_submit {
  text-align: center;
}

#details_form {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 40%;

  .idle {
    margin-bottom: 20px;
  }
}

.info_block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info_block_icon {
  width: 30%;
}

.regHomeHolder {
  text-align: center;
  max-width: 400px;
}

.registration-ui {
  background: linear-gradient(to bottom, #f8d038 0%,#f5ca2e 100%);
  padding: .25em 1em .25em 1.75em;
  font-weight: 600;
  font-size: 2em;
  border-radius: 5px;
  border: 1px solid #000;
  box-shadow: 1px 1px 1px #ddd;
  position: relative;
  font-family: helvetica, ariel, sans-serif;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

.unit:after {
  content: '';
  display: block;
  position: absolute;
  top: 7px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 30px;
  border: 1px dashed #f8d038;
}

.input-box { position: relative; }

.unit {
  content: 'GB';
  font-family: helvetica, ariel, sans-serif;
  font-weight: bold;
  display: block;
  width: 35px;
  height: 100%;
  font-size:1em;
  background: #063298;
  position: absolute;
  top: 0;
  border-radius: 5px 0 0 5px;
  color: #f8d038;
  line-height: 85px;
  padding-left: 2px;
}

.how_it_works_box {
  background-color: #383838;
}

.intro_text {
  max-width: 50%;
  text-align: justify;
}

.intro_text.home {
  text-align: center;
}

/* ==========================================================================
   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 only screen and (max-width: 1080px) {
  .topnav {
    padding-left: 0;
    padding-right: 0;
  }

  .dropdown_button {
    display: flex;
  }

  #mobile_nav {
    display: none;
  }

  .pulled-right {
    display: none;
  }

  #topnav_icon_link {
    display: none;
  }

  #topnav_icon_link_small {
    display: block;
    height: 100px;
  }

  #small_icon {
    height: 80px;
  }

  .form_submit {
    width: 90%;
  }

  .info_block_icon {
    width: 100px;
  }

  #details_form {
    max-width: 80%;
  }

  .intro_text {
    max-width: 80%;
    text-align: justify;
  }

  .intro_text.home {
    text-align: center;
  }

  #privacy_container {
    max-width: 80%;
  }
}

@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;
  }
}

