:root {
  --button: 130px;
}

@font-face {
  font-family: "rubik";
  src: url("/wp-includes/fonts/Rubik-VariableFont_wght.ttf");
}

body {
  font-family: "rubik", "arial";
}

.pro-content {
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 53, 72, 0.09);
  padding: 5px;
  border-radius: 10px;
}

#prosec {
  background: transparent;
  border: none;
  text-transform: uppercase;
  position: relative;
  transition: 0.5s ease;
  cursor: pointer;
  z-index: 1;
  display: inline-block;
  text-align: right;
}

#prosec:not(.is-pro):before {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  height: 3px;
  width: 0;
  background-color: #e5b485;
  transition: width 1.5s ease;
  z-index: 2;
}

#prosec.animate:not(.is-pro)::before {
  width: calc(100% - 1px);
  /* Expand the underline to the full width of the text */
}

#stock-info {
  text-align: center;
  width: 100%;
}

.tab-container {
  position: relative;
  width: 99%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  padding: 2px;
  /* background-color: #dadadb; */
  border-radius: 9px;
  justify-content: space-around;
  box-shadow: 0px 2px 4px 0px #00000040;
  border: 2px solid #00367c;
  /* top: 23px; */
  /* left: 73px; */
  border-radius: 10px;
  border-width: 2px;
  opacity: 1;
  color: #00367c;
  font-weight: 500;
}

.indicator {
  width: 114px;
  height: 28px;
  background: linear-gradient(92.65deg, #f5c250 2.16%, #ffcf62 99.39%);
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 9;
  border-radius: 6px;
  transition: all 0.2s ease-out;
  box-shadow: 0px 1px 5px 0px #00000040;
}

.tab {
  width: auto;
  height: 28px;
  position: absolute;
  z-index: 99;
  outline: none;
  opacity: 0;
}

.tab_label {
  width: auto;
  height: 28px;
  position: relative;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  font-size: 0.9rem;
  font-family: "Rubik", sans-serif;
  cursor: pointer;
  text-align: center;
  flex: 1 1 0;
  /* color: rgb(98, 98, 98); */
}

a {
  text-decoration: none;
  color: #3d7fb8;
}

h2 {
  color: #3d7fb8;
  font-family: "Rubik", sans-serif;
  margin-top: 0;
}

.grid {
  /* display: grid;
    grid-template-areas: "button1 trade"
                        "button2 trade"; */
  gap: 5px;
  min-width: 100%;
  grid-template-columns: 100px 1fr;
}

#sos-button {
  grid-area: button1;
}

#skira-button {
  grid-area: button2;
}

#trades {
  grid-area: trade;
  /* width: 1056px; */
}

.flexy {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

button {
  width: 100px;
  height: 60px;
  background-color: transparent;
  border-radius: 3px;
}

.button-container {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 10px;
}

#skiramodal {
  direction: ltr;
  width: 40%;
  top: 166px;
  left: 3px;
  height: 100%;
  position: absolute;
}

#skiramodal > iframe {
  background-color: antiquewhite;
  font-family: "rubik", arial;
}

.dropdown:hover .dropdown-button {
  display: block;
}

.dropdown-button {
  display: none;
  position: absolute;
  top: 100%;
  z-index: 2;
  cursor: pointer;
  border: none;
  width: 100%;
  height: 40px;
  /* background-color: #e7e7e7; */
  border: 2px solid #dadadb;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: white;
  color: #00367c;
}

.dropdown-button:hover {
  background-color: #dadadb;
}

#sos-label {
  cursor: default;
}

#prosec.is-pro a {
  background: #fff !important;
  color: transparent !important;
  background-image: url(/wp-content/uploads/pro-for-pro.png) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% !important;
  display: block;
  height: 37.35px;
  width: 100px;
}

#prosec.is-pro {
  margin-bottom: 10px;
  margin-top: 35px;
}

.tab_label.dropdown .dropdown-button {
  top: 111%;
  border: 2px solid #00367c;
  border-top: unset;
}

#tab-container:has(#sos-label:hover) {
  border-bottom-left-radius: 0px;
}

#tab-container .tab_label:hover:not(.active-pro-tab) {
  background-color: #f2f5ff;
  border-radius: 8px;
}

#tokens {
  left: -4px;
}

#indicator.no-transition {
  transition: none;
}

#arrow-to-left.hide-on-desktop {
  display: none;
}

#pro-soon-article-on-container {
  display: flex;
  flex-direction: column;
  height: 28px;
  position: relative;
}

#pro-soon-article-on-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 40px);
  z-index: 1;
}

#pro-soon-article-on-container:hover .dropdown-button:has(#stock-info) {
  display: flex;
  left: 0;
  width: 100%;
  align-items: center;
  justify-content: center;
  top: 111%;
  border: 2px solid #00367c;
  border-top: unset;
}

@media (max-width: 768px) {
  #indicator.no-transition {
    transition: none;
  }
  #tab-container {
    border: none;
  }

  /* #tab-container::before {
    position: absolute;
    content: "";
    background: linear-gradient(
      to right,
      rgba(255, 165, 39, 0.58),
      rgba(0, 54, 124, 0.28)
    );
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    border-radius: 10px;
  } */

  #tab-container-pro-section-wrapper {
    overflow-x: auto;
    position: relative;
    /* background-color: white; */
    border-radius: 10px;
    border-left: 2px solid rgba(255, 165, 39, 0.6);
    background-image:
      linear-gradient(white, white),
      linear-gradient(
        to right,
        rgba(255, 165, 39, 0.58),
        rgba(0, 54, 124, 0.28)
      );
    background-clip: content-box, border-box;
    /* border: 2px solid transparent; */
    background-origin: border-box;
    padding: 2px;
    border-radius: 10px;
    overflow-y: hidden;
  }

  #tab-container-pro-section-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* #tab-container-pro-section-wrapper::before {
    position: absolute;
    content: "";
    inset: 0;
    background: none;

    background: linear-gradient(
      to right,
      rgba(255, 165, 39, 0.58),
      rgba(0, 54, 124, 0.28)
    );
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    border-radius: 10px;
    width: 198%;
    z-index: 1;
    width: 200%;
  } */

  #tab-container-pro-section-wrapper:after {
    content: "";
    position: absolute;

    /* CRITICAL: Shrink the element by the desired border thickness (e.g., 3px) */
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 3px;

    /* The color of the content area */
    background: white;
    border-radius: 8px; /* Slightly smaller radius than the border */

    /* Place it above the gradient but below the actual content */
    z-index: 2;
    width: 200%;
  }

  /* .tab_label:not(.active-pro-tab) {
    background-color: white;
  } */

  #sos-label {
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  #tab-container .tab_label {
    color: black;
    white-space: nowrap;
    border-radius: 10px;
  }

  #indicator {
    background: #f5c250ad !important;
  }

  #tab-container {
    flex-wrap: nowrap;
    gap: 1.5em;
    box-shadow: none;
  }
  #prosec {
    background-color: rgba(227, 233, 241, 1);
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  #prosec::before {
    height: 0;
  }

  #prosec a {
    border: 3px solid rgba(0, 54, 124, 1);
    border-radius: 0.5em;
  }

  #prosec.is-pro a {
    background-size: 103% 117% !important;
  }

  #arrow-to-left {
    background-image: url("https://weinvest.co.il/wp-content/plugins/mobile/sidearrow.svg");
    width: 10px;
    background-position: center;
    background-repeat: no-repeat;
    padding-left: 10px;
  }

  #tab-container label[for="tab1"] {
    padding-right: 3px;
  }

  #pro-soon-article-on-container
    label[for="tab9"]
    ~ .dropdown-button.open-dropdown-on-mobile {
    display: flex;
  }

  #pro-soon-article-on-container
    label[for="tab9"]
    ~ .dropdown-button:not(.open-dropdown-on-mobile) {
    display: none;
    /* left: 0; */
    width: 100%;
    align-items: center;
    justify-content: center;
    /* top: 111%; */
    /* border: 2px solid #00367c; */
    /* border-top: unset; */
    position: fixed;
    background-image:
      linear-gradient(white, white),
      linear-gradient(
        to right,
        rgba(255, 165, 39, 0.58),
        rgba(0, 54, 124, 0.28)
      );
    background-clip: content-box, padding-box;
    background-origin: border-box;
    padding: 0 2px 2px 2px;
    border: 2px solid transparent !important;
    border-top: 0 !important;
  }
}

/* .tab_label:hover {
  background-color: #f2f5ff;
} */

/* #indicator.indicator:hover {
  background: linear-gradient(92.65deg, #f5c250 2.16%, #ffcf62 99.39%);
} */
