@font-face {
  font-family: "rubik";
  src: url("/wp-includes/fonts/Rubik-VariableFont_wght.ttf");
}

body {
  margin: 0;
  font-family: "rubik", arial;
  font-size: 14px;
}

.conteiner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: stretch;
}

.table {
  /* margin: 20px; */
  max-width: 47%;
}

.title {
  font-weight: normal;
  font-size: 19.5px;
  color: #333333;
}

table {
  text-align: center;
}

h2 {
  text-align: center;
}

td {
  padding: 5px;
}

tr {
  cursor: default;
}

tbody tr td:first-child,
thead tr td:first-child {
  /* max-width: 140px; */
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

tbody tr td,
thead tr td {
  width: 90px;
}

thead tr {
  background-color: #e3f0ff80;
  color: #01549d;
}

tbody tr {
  /* background-color: #ffebcd80; */
  background-color: #ffffff;
}

tr:hover {
  background-color: #bbcccc;
}

tbody > tr > td:not(:first-child) {
  direction: ltr;
}

.green {
  color: #008000;
  /*seagreen*/
}

.red {
  color: #ff0000;
  /*tomato*/
}

.stars {
  direction: ltr;
  color: orange;
}

/* .stock-name {
  text-decoration: underline;
} */

.stock-name:hover {
  color: #0000ee;
}

.stock-name > a {
  color: black;
  text-decoration: none;
}

@media only screen and (max-width: 600px) {
  .conteiner {
    flex-direction: column;
    align-items: center;
  }

  .table {
    max-width: none;
  }

  tbody tr td:first-child {
    max-width: 70px;
  }
}

.toparrow {
  position: relative;
  display: inline-block;
  font-size: 16px;
  text-align: center;
  width: 40px;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  text-transform: uppercase;
  cursor: pointer;
  transition: width 0.5s ease-in-out, margin 0.5s ease-in-out, border-radius 0.25s ease-in-out, color 0.25s ease-in-out;
}

.toparrow.green {
  color: #399918;
  border: 2px solid #399918;
  border-radius: 5px;
}

.toparrow.red {
  color: #fd5e53;
  border: 2px solid #fd5e53;
  border-radius: 5px;
}

.toparrow.red.toparrow-active {
  font-weight: bold;
  box-shadow: 0 0 0 1px #fd5e53;
}

.toparrow.green.toparrow-active {
  font-weight: bold;
  box-shadow: 0 0 0 1px #399918;
}

.top-btn-container:hover .toparrow,
.toparrow:hover {
  width: 20px;
  border-radius: 40px;
  color: rgba(179, 195, 58, 0);
  transition: width 0.5s ease-in-out, margin 0.5s ease-in-out, border-radius 1s 0.25 ease-in-out, color 0.25s ease-in-out 0.25s;
}

.top-btn-container:hover .toparrow:before,
.toparrow:hover:before {
  animation: lineUp 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}

.top-btn-container:has(.toparrow.red):hover .toparrow.red:before,
.toparrow.red:hover:before {
  animation: lineUp 1s cubic-bezier(0, 0.6, 1, 0.4) infinite reverse 0.5s;
}

.top-btn-container:hover .toparrow:after,
.toparrow:hover:after {
  animation: tipUp 1s cubic-bezier(0, 0.6, 1, 0.4) infinite 0.5s;
}

.top-btn-container:has(.toparrow.red):hover .toparrow.red:after,
.toparrow.red:hover:after {
  animation: tipUpRed 1s cubic-bezier(0, 0.6, 1, 0.4) infinite reverse 0.5s;
}

.toparrow:before {
  position: absolute;
  display: inline-block;
  content: "";
  width: 3px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -8px;
  margin-left: -2px;
  transform: translateY(50px);
}

.toparrow.green:before {
  background: #399918;
}

.toparrow.green:after {
  color: #399918;
}

.toparrow.red:before {
  background: #fd5e53;
}

.toparrow.red:after {
  color: #fd5e53;
}

.toparrow:after {
  position: absolute;
  display: inline-block;
  content: "";
  width: 10px;
  height: 10px;
  border-top: 3px solid;
  border-left: 3px solid;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -7px;
  transform: translateY(50px) rotateZ(45deg);
}

.toparrow.red:after {
  transform: translateY(50px) rotateZ(-135deg);
  top: 90%;
}

@keyframes tipUp {
  0% {
    transform: translateY(50px) rotateZ(45deg);
  }

  100% {
    transform: translateY(-70px) rotateZ(45deg);
  }
}

@keyframes tipUpRed {
  0% {
    transform: translateY(50px) rotateZ(-135deg);
  }

  100% {
    transform: translateY(-70px) rotateZ(-135deg);
  }
}

@keyframes lineUp {
  0% {
    transform: translateY(50px);
  }

  100% {
    transform: translateY(-70px);
  }
}

.top-btn-container {
  margin: auto;
  padding: 10px 10px 0 10px;
  width: 50px;
  display: flex;
  justify-content: center;
}

#top-green-arrow,
#top-red-arrow {
  position: relative;
  cursor: auto;
  margin-bottom: 12.43px;
}

.newsticker {
  height: 250px;
  display: flex;
  justify-content: center;
  font-size: 14px;
  direction: rtl;
}

.newsticker > li {
  margin: 15px 0px;
}

.ul-newsticker {
  text-align: center;
  padding: 0 5px;
  list-style-type: none;
}

#container-top-top-bursting-messages {
  /* display: flex;
  flex-direction: row; */
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 25px;
}

#container-top-top-bursting-messages > div {
  width: 50%;
}

#top-rated-bonds-table,
#down-rated-bonds-table {
  border-collapse: collapse;
  border: 2px solid #d9d9d9;
}

#top-green-table-body tr,
#top-red-table-body tr {
  border-bottom: 1px solid #d9d9d9;
  height: 34px;
}

#top-green-table-body tr td:nth-child(1),
#top-red-table-body tr td:nth-child(1) {
  width: 20%;
}

#top-green-table-body tr:hover,
#top-red-table-body tr:hover {
  /* #heading-top-green-table:hover, */
  /* #heading-top-red-table:hover { */
  /* background-color: #e3f0ff80; */
  background-color: #e9e9e9;
}

#bursting-messages-title {
  color: white;
  background-color: #3d7fb8;
  text-align: center;
  margin: 0;
}

#heading-top-green-table,
#heading-top-red-table {
  background-color: #ffffff;
  border-bottom: 2px solid #d9d9d9;
  height: 38px;
  color: #000000;
}

#topButtonBondStatic,
#downButtonBondStatic {
  cursor: default;
  border-radius: 10px;
  width: 70px;
}

#topButtonBondStatic {
  background: linear-gradient(180deg, #5cfa95 0%, #03b50c 100%) !important;
  box-shadow: 0px 3px 3px 4px rgba(0, 0, 0, 0.25) inset !important;
}

#downButtonBondStatic {
  background: linear-gradient(180deg, #f36b41 0%, #ef4d50 100%) !important;
  box-shadow: 0px 3px 3px 5px rgba(0, 0, 0, 0.25) inset !important;
}

@media (max-width: 768px) {
  .conteiner {
    position: relative;
  }
  .table {
    position: absolute;
    top: 50px;
  }
  #container-top-top-bursting-messages > div {
    width: 100%;
  }
  .top-btns-wraper {
    display: flex;
  }
  .top-btns-wraper {
    display: flex;
    justify-content: space-between;
  }
  #topButtonBondStatic.button.button-pressed,
  #downButtonBondStatic.button.button-pressed {
    box-shadow: 0px 3px 3px 4px rgba(0, 0, 0, 0.25) inset !important;
  }
  #topButtonBondStatic.button,
  #downButtonBondStatic.button {
    /* box-shadow: 4px 4px 0px #00000040 !important; */
    box-shadow: unset !important;
  }
  #topButtonBondStatic.button {
    background: #03b50c !important;
  }
  #downButtonBondStatic.button {
    background: #ef4d50 !important;
  }
}
