* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  background-color: #ebeef0;
}

body{
  font: 15px/1.5 "Roboto", Söhne,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
}

/* Header style*/
.header_cls {
  background: #35424a;
  color: #ffffff;
  padding-top: 20px;
  padding-bottom: 10px;
  border-bottom: #6ba2dd 3px solid;
}

.header_container {
  width: 80%;
  margin: auto;
  overflow: hidden;
}

.header_cls  a{
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
}

.header_cls  li{
  float: left;
  display: inline;
  padding: 0 5px 0 5px; /*top right bottom left*/
}

.header_cls .currency-selector {
  cursor: pointer;
  color: #ffffff;
  font-size: 16px;
}

.header_cls  .currency-selector:hover{
  color: #cccccc;
}

.header_cls .branding-center img{
  height: auto;
  max-width: 100%;
}

.header_cls .branding{
  float: left;
  max-width:400px;
}

.header_cls .branding img{
  height: auto;
  max-width: 100%;
}

.header_cls  nav{
  float: right;
  margin-top: 28px;
}

.flag-img{
  max-width: 40px;
}

.inactive-flag{
  -webkit-filter: grayscale(100%);
}

.header_cls  .highlight, .header_cls  .current {
  color: #557fe0;
  font-weight: bold;
}

.header_cls  .user{
  font-style: italic;
  color: #f1f1f1;
  font-size: 13px;
  text-transform: lowercase;
}

/*when mouse is over an "a" element it will shows it*/
.header_cls  a:hover{
  color: #cccccc;
}

.highlight .current a{
  color: #6ba2dd;
  font-weight: bold;
}

/* Main Container*/

.container {
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  width: 95%;
  max-height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row: auto auto auto;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.container .boxes {
  background-color: #333;
  margin: auto;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 10fr;
}

.container .boxes .title {
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container .box {
  min-height: 350px;
  max-height: 350px;
  padding: 10px;
  border-radius: 10px;
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: small;
  font-family: sans-serif;
}

/*wealth div classes*/
.main-graph-div {
  box-sizing: border-box;
  border: 1px solid #3f3939;
  border-radius: 5px;
  font-size: 16px;
  width: 80%;
  min-height: 40vh;
  max-height: 40vh;
  margin: auto;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-row: auto auto;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.main-graph-div .box {
  background-color: #333;
  margin: 5px;
  max-height: 38vh;
  padding: 10px;
  border-radius: 10px;
  color: rgb(0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: small;
  font-family: sans-serif;
}

/*login container*/
.login-div {
  height: 100vh;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-branding {
  width: 30%;
}

.branding-center{
  background: #35424a;
  color: #ffffff;
  padding-top: 2px;
  padding-bottom: 1px;
  border-bottom: #6ba2dd 4px solid;
  border-top-left-radius: 8px 8px;
  border-top-right-radius: 8px 8px;
  margin: auto;
}

.branding-center img{
  width: 100%;
}

.login-container {
  width: 100%;
  margin: auto;
  background-color: #fff;
  padding: 10px 30px;
  border-bottom-left-radius: 8px 8px;
  border-bottom-right-radius: 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.signup_div {
  width: 100%;
  padding-top: 10px;
  text-align: center;
  margin: auto
}

.div-form-left {
  width: 60%;
  float: left;
}
.div-form-right {
  width: 40%;
  float: left;
}

.div-form-left a {
  text-decoration: none;
  cursor: pointer;
  color:rgb(0, 0, 0)
}

.version_div {
  padding-top: 10px;
  font-size: small;
  color: #77858f;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin: auto;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  margin: auto;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Floating right menu (sidebar) */
.sidebar-cls {
    min-width: 70%;
    margin: auto;
    overflow: hidden;
}
ul{
    padding: 0;
    margin: 0;
}

.menu_text{
    text-transform: uppercase;
    color: white;
    font-weight: bold;
}

.menu {
    position: absolute;
    top: 2px;
    left: 0;
    background: #35424a;
    width: 300px;
    margin-left: 15px;
    display: block;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.nav_menu {
    display: block;
    transition: all .3s ease;
    position: fixed;
    left: -270px;
    width: 300px;
    text-align: left;
    z-index: 10; /*??*/
}

.nav_menu_open{
    left: -20px;
}

.ul_menu{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 20px;
}

.div_icon{
    float: right;
    width: 44px;
    text-align: center;
}

.abs_icon{
    float: right;
    margin: 4px 0 0 208px; /*Those are manually adjusted*/
}

.div_separator{
    border-bottom: #77858f 3px solid;
    margin-bottom: 10px;
}

/* Sidebar */

aside#sidebar{
    float: left;
    width: 20%;
}

aside#sidebar a{
    /*float: left;*/
    text-decoration: none;
    color: #ffffff;
    text-transform: capitalize;
    font-size: 16px;
}

aside#sidebar a:hover{
    color: #cccccc;
}

aside#sidebar h3{
    font-weight: bold;
    color: #fffffe;
    padding-left: 15px;
    font-size: 25px;
}

aside#sidebar ul{
    line-height: 2;
    display: inline;
    text-align: left;
    list-style-type: disc;
    list-style: none;
}

aside#sidebar li{
    padding-left: 20px;
}

/* Buttons */
.mybtn {
    font-family: Arial, Helvetica;
    background-color: #557fe0;
    border-radius: 4px;
    border: none;
    color: white;
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 10px;
    font-size: 16px;
    cursor: pointer;
    line-height: 24px;
  }

  .mybtn-light {
    font-family: Arial, Helvetica;
    background-color: #7999e5;
    border-radius: 4px;
    border: none;
    color: white;
    padding-top: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    font-size: 12px;
    cursor: pointer;
    line-height: 16px;
    min-width: 40%;
  }
  
  .div_btn_light {
      text-align: center;
      margin-top: 13px;
  }
  
  .btn_light {
      border: none;
      color: #6ba2dd;
      cursor: pointer;
      background: transparent;
      
  }
  
  /* Darker background on mouse-over */
  .mybtn:hover{
    background-color: #35424a;
  }
  .mybtn-light:hover {
    background-color: #4b4e50;
  }
  
  .btn_light:hover{
    color: #305570;
  }

  /* Styling for the table */
  table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
  }

  caption {
    text-align: left;
    text-decoration: solid;
    font-weight: bold;
  }

  th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
  }

  th {
    background-color: #f1f8ff;
  }

  .table-header-grid {
    display: grid;
    grid-template-columns: 95% 5%;
  }

  .sorter img {
    text-align: right;
    align-items: end;
    max-width: 20px;
    cursor: pointer;
    filter: invert(46%) sepia(96%) saturate(1162%) hue-rotate(201deg) brightness(89%) contrast(96%);
  }

  /* Styling for the modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    text-align: center;
    max-height: 99vh;
    overflow-y: auto;
  }

  /* Style the form inside the modal */
  form {
    display: flex;
    flex-direction: column;
  }

  label {
    text-align: left;
    margin-bottom: 5px;
  }

  .div-input {
    margin-bottom: 15px;
  }

  .div-input-border {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
  }

  input[type="text"],
  input[type="email"],
  input[type="date"],
  [list="currency_list"],
  [list="sector_list"],
  [list="broker_list"],
  [list="ticker_list"],
  [list="country_list"],
  [list="exchange_list"],
  [list="opt_type_list"],
  [list="opt_order_list"],
  [list="op_type"],
  [list="taxlist"],
  [list="yearlist"]{
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
  }

  input[type="button"] {
    padding: 10px 15px; /* Adjusted padding for a smaller button */
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  input[type="button"]:hover {
    background-color: #35424a;
  }

  h2 {
    color: #333;
  }

  .signup-btn {
    margin: auto;
    padding: 8px 12px; /* Adjusted padding for a smaller button */
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .signup-btn:hover {
    background-color: #35424a;
  }
  /* Close button style */
  .close-btn {
    display: flex;
    margin-top: -20px;
    margin-left: auto;
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #557fe0;
  }

  /* Open modal button style */
  .button-div {
      width: 80%;
      margin: auto;
  }

  .modal-button {    
    align-self: flex-start;
    margin-top: 20px; /* Added margin to the top */
    padding: 15px 20px;
    background-color: #557fe0;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .empty-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: larger;
    cursor: pointer;
    outline: inherit;
  }

  .modal-button:hover {
    background-color: #35424a;
  }

  .div-sorry {
    position: absolute;
    left: 25%;
    font-size: x-large;
    margin-top: 10vh;
  }

/* Dashboard top-bar styles*/
.top-bar {
  background-color: #333;
  display: grid;
  grid-template-columns: 5fr 5fr 5fr 5fr;
  grid-row: auto auto auto auto;
  grid-column-gap: 0px;
  width: 95%;
  margin: auto;
  margin-top: 0;
}
.top-bar .top-bar-element {
  color: #ccc;
  text-align: center;
  border-left: 1px #ccc solid;
  border-right: 1px #ccc solid;
}
/* Filter bar styles */
.filter-div {
  color: #3f3939;
  box-sizing: border-box;
  border: 1px solid #3f3939;
  border-radius: 5px;
  font-size: 16px;
  display: grid;
  grid-template-columns: 3fr 15fr 1fr;
  grid-row: auto auto auto;
  grid-column-gap: 2px;
  width: 80%;
  margin: auto;
  margin-top: 20px;
}

.filter-div .filter-input-div {
  margin-top: 2px;
  margin-bottom: 2px;
  align-self: center;
}

.filter-div .filter-input-div .filter-input-font {
  font-family: monospace;
}

.filter-div .filter-extra-div {
  margin: auto;
  font-weight: bold;
}

.market_state_closed {
  text-shadow: 0 0 10px #860505;
}

.market_state_open {
  text-shadow: 0 0 10px #05861d;
}

.price_change {
  font-weight: bold;
}

.price_up {
  color: #05861d;
}

.price_down {
  color: #860505;
}

.price_change .tooltip_oldprice {
  visibility: hidden;
  width: 120px;
  background-color: rgb(46, 45, 45);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 100;
}

.price_change:hover .tooltip_oldprice {
  visibility: visible;
}

/* Media Queries */
@media(max-width: 768px){
  aside#sidebar{
    float:none;
    text-align:center;
    width:100%;
  }
  .container {
    grid-template-columns: 96%;
    grid-row: auto;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }
  .main-graph-div{
    grid-template-columns: 96%;
    max-height: 100vh;
    grid-row: auto;
  }
  .header_container,
  .header_cls {
    float: none;
    text-align:center;
    align-content: center;
  }
  .header_cls  nav {
    margin-top: 0;
    align-content: center;
  }
  .login-branding {
    width: 60%;
  }
}

.positive { color: #048773; }
.negative { color: #a2001a; }