/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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
   ========================================================================== */

/*CSS is HELL*/
html {
  color: #222;
  background-color: #b3d4fc;
  font-size: 1em;
  line-height: 1.4;
  box-sizing: border-box;
}
a, a:visited {
  color:#FFFFFF;
}
li a, li a:visited {
  color:#EBF7FF;
}
nav {
  background-color: #132A13;
  color: #EFEFEF; }
  nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center; }
    nav .container object {
      width: 4.5em;
      padding: 1.2em 0.5em; }
    nav .container .temp-button,
    nav .container .menu-button {
      text-transform: uppercase;
      letter-spacing: 0.1em;
      padding: 1em 1.25em;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      cursor: pointer; }

.nav-menu {
  background-color: #31572C;
  color: #EFEFEF;
  display: flex;
  justify-content: center; }
  .nav-menu .container {
    padding: 1.5em;
    display: flex; }
    .nav-menu .container ul {
      list-style: none; }
      .nav-menu .container ul li {
        padding: 0.25em 2em; }
        .nav-menu .container ul li:first-child {
          text-transform: uppercase;
          color: #b3d4fc;
          letter-spacing: 0.05em; }

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

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

::selection {
  background: #b3d4fc;
  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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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;
}
/*segmenting the content*/
div.column {
  box-sizing: border-box;
  float: left;
  width: 50%;
}
div.column3 {
  box-sizing: border-box;
  float: left;
  width: 33.3%;
}
div.column4 {
  box-sizing: border-box;
  float: left;
  width: 25%;
}

/* Clear floats after the columns */
div.section:after {
  content: "";
  display: table;
  clear: both;
}
/*Table formatting*/
table {
    border: 3px black double;
    margin: 10px;
    border-collapse: collapse;
}
table td{
    border: 1px black solid;
  	padding: 5px;
}
table th{
    font-size: 1.2em;
    border: 1px black solid;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: Helvetica, sans-serif;
    width: 100vw;
    height: 100vh;
}

a {
    text-decoration: none;
}

select {
    background-color: #3E9C35;
}

.background {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 0%, rgba(0,212,255,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.loginForm{
    background-color: white;
    border-radius: 10px;
    width: 75%;
}

.LoginTitle {
    font-size: 50px;
}

.loginForm {
    display: flex;
    align-items: center;
    height: 90vh;
    width: 50vw;
    justify-content: space-around;
    font-size: 20px;
    flex-direction: column;
    background-color: white;
}

#loginIcon{
    border-radius: 50%;
}

.formText {
    font-size: 35px;
}

.formBox {
    height: 60px;
    border-radius: 5px;
    background-color: #f7f7f7;
    font-size: 20px;
    width: 100%;
}

.submitButton {
    font-size: 20px;
    width: 30%;
    border-radius: 10px;
    height: 60px;
    background-color: lightskyblue;
}

#createAccountButton{
    display: flex;
    text-decoration: none;
    font-size: 20px;
    width: 30%;
    border-radius: 10px;
    height: 60px;
    background-color: lightskyblue;
    padding: 5px;
    align-items: center;
    justify-content: center;
}

.error {
    color: red;
    font-size: 25px;
}


.animatedBackground {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
   /* background-image: url("background.gif"); */
    background-image: url("rain.gif"); 
    background-color: black;
    background-repeat: no-repeat;
    background-size: cover;
    
}


.mainPage{
    background-color: white;
    width: 90vw;
    height: 90vh;
    opacity: 0.7;
    background-color: #00FEFE;
    border-radius: 5px;
}

#userStocks {
    font-size: 25px;
    height: 75%;
    width: 75%;
    color: white;
}

#allStonks{
    font-size: 25px;
    height: 75%;
    width: 75%;
    color: white;
}

#banner {
    display: flex;
    justify-content: space-between;
}

#displayBalance{
    display: flex;
    margin-right: 100px;
}

#displayUsername{
    display: flex;
    margin-left: 100px;

}

#stonksContainer{
    display: flex;
    width: 100%;
    height: 83%;
    text-align: center;
    position: relative;
}

#leftSide {
    width: 50%;
    height: 75%;
}

#rightSide {
    width: 50%;
    height: 75%;
}

#stonksman {
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 1;
    max-height: 50%;
    object-fit: scale-down;
    border-top-right-radius: 65%;
}

#sellUserStonks {
    box-shadow: 0px 0px 5px #008F11;
    transform: scale(2);
    /* margin-left: 70px; */
    position: absolute;
  left: 530px;
}

#buySelectedStonks {
    box-shadow: 0px 0px 5px #008F11;
    transform: scale(2);
    margin-left: 350px;
}

#refresh{
    box-shadow: 0px 0px 5px #008F11;
    transform: scale(2);
    margin-left: 375px;
    margin-top: 50px;
}

#logout{
    box-shadow: 0px 0px 5px #008F11;
    transform: scale(2);
    margin-left: 505px;
    margin-top: 125px;
}

#allStonksText {
    margin-left: 40px;
}

#logoutDialog {
   text-align: center;
}

.logoutButton{
    margin-left: 20px;
    margin-right: 20px;
    transform: scale(1.25);
}

#leftAlignLabel {
    text-align: left;
    margin-left: 5px;
}

#sellUserStonksDialog {
 text-align: center; 
}

#buyStonksDialog {
    text-align: center;
}
/* ==========================================================================
   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 {
    color: #EBF7FF;
    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;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

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

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

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

