@font-face {
  font-family: "rubik";
  src: url("/wp-includes/fonts/Rubik-VariableFont_wght.ttf");
}

body {
  font-family: "rubik", arial;
  margin: 0;
  font-size: 14px;
}
.conteiner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 60px;
}

.table {
  width: 387px;
  border-radius: 5px;
  overflow: hidden;
}

h2 {
  text-align: center;
  margin-top: 0;
}

td {
  padding: 6.3px 0;
  width: 20%;
  border-top: 1px solid #ccc; /* new change*/
}

tr {
  cursor: pointer;
}

td:not(:first-child) {
  text-align: center;
}

tbody tr:hover {
  background-color: #e9e9e9;
}

tbody > tr > td:not(:first-child) {
  direction: ltr;
}

.green {
  color: #008000; /*seagreen*/
}
.red {
  color: #ff0000; /*tomato*/
}

.stars {
  direction: ltr;
  color: orange;
}

.stock-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 71px;
}

.stock-name > a {
  padding-right: 5px;
}

.stock-name:hover {
  color: #0000ee;
}

.table-title {
  font-weight: normal;
  font-size: 19.5px;
  color: #333333;
  margin-bottom: 5px;
}

#table-title-up {
  color: #008000; /*seagreen*/
  margin-bottom: 10px;
}

#table-title-down {
  color: #ff0000; /*tomato*/
  margin-bottom: 10px;
}

.top-btn-container {
  margin: auto;
  padding: 10px;
  width: 50px;
  display: flex;
  justify-content: center;
}

.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%;
}

.yield-table-heading-midnight-blue {
}

@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);
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .table {
    width: 360px;
  }
}

@media screen and (max-width: 600px) {
  body {
    box-sizing: border-box;
  }

  .conteiner {
    flex-direction: column;
  }

  .table-title {
    font-size: 16px;
    font-weight: bold;
  }

  table,
  .table {
    width: 100%;
    max-width: 600px;
    margin: auto;
  }
  #topButtonStatic.button.button-pressed,
  #downButtonStatic.button.button-pressed {
    box-shadow: 0px 3px 3px 4px rgba(0, 0, 0, 0.25) inset !important;
  }
  #topButtonStatic.button,
  #downButtonStatic.button {
    box-shadow: 0px 0px 0px #00000040 !important;
  }
}

.stocks-table {
  /* border-collapse: collapse;
  border: 2px solid #d9d9d9; */

  /* new change*/
  border-collapse: separate; 
  border-spacing: 0;          
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;

}

.stocks-table tr {
  height: 34px;
  border-bottom: 1px solid #d9d9d9;
  text-align: center;
}

.link-field {
  text-decoration: none !important;
  color: #000;
}

#topButtonStatic,
#downButtonStatic {
  border-radius: 10px;
  width: 70px;
  height: 25px;
  border: none;
  cursor: default;
  color: #ffffff;
  font-size: 15px;
  font-family: "rubik";
  font-weight: 500;
}

#topButtonStatic {
  background: linear-gradient(180deg, #5cfa95 0%, #03b50c 100%) !important;
  box-shadow: 0px 3px 3px 4px rgba(0, 0, 0, 0.25) inset !important;
}

#downButtonStatic {
  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 {
    gap: 0;
    position: relative;
  }

  .table {
    position: absolute;
    top: 90%;
  }
  #topButtonStatic {
    background: #03b50c !important;
  }
  #downButtonStatic {
    background: #ef4d50 !important;
  }
  .link-field {
    color: #006bb7;
  }
}
