/*------------------------------------*/
/*  GENERAL STYLES                   */
/*------------------------------------*/
body {
  font-family: "poppins", "Roboto", Arial, sans-serif;
  background-color: #eeeeee;
  color: #393e46;
  margin: 0;
  padding: 0;
  direction: ltr;
  overflow-y: scroll;
  padding-top: 85px; /* מפצה על גובה ה-header */
}

/* Header */
header {
  position: fixed; /* במקום sticky */
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background-color: #151515;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* מעל כל שאר האלמנטים */
}

.logo img {
  border-radius: 4px;
  margin: 30px;
  width: 220px;
  
}

.searchBox{
  /* border: 1px solid #393e46; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
/* Role Selection */
#roleSelect{
  background-color: #393e46;
  color: white;
  border: none;
  padding: 5px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  width: 200px;
  font-family: 'poppins', sans-serif;
  direction: rtl;
}

#roleSelect:hover {
  background-color: #e5ff00; /* Darker shade on hover */
  color: black;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Tablet and Mobile Responsive Navigation */
@media (max-width: 320px) {
  .logo img {
    display: block;
    border-radius: 4px;
    margin: 30px;
    width: 0.85rem;
  }

  header {
    position: sticky;
    display: flex;
    justify-content: space-between;
    z-index: 11;
    /* flex-direction: column; */
    padding: 20px;
    background-color: #2c2f36; /* dark background */
    color: white;
    font-family: 'Poppins', sans-serif;
  }
}

/* Additional media query for tablets */
@media (min-width: 769px) and (max-width: 992px) {
  .logo img {
    display: block;
    border-radius: 4px;
    margin: 30px;
    width: 190px;
  }
}
/*------------------------------------*\
  CONTENT WRAPPER
/* Google Fonts: Material UI look */
/* @import url('https://fonts.googleapis.com/css2?family=poppins:wght@400;500;700&display=swap'); */

.newsletter-form  {
  height: 100px;
  max-height: 100px;
  background: linear-gradient(90deg, #ff005d 0%, #ff6b3d 50%, #e5ff00 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'poppins', sans-serif;
  padding: 0 20px;
  box-sizing: border-box;
  color: white;
  gap: 10px;
}

.newsletter-form  input[type="email"] {
  height: 40px;
  padding: 0 10px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'poppins', sans-serif;
  width: 350px;
  outline: none;
}


form.newsletter-form input[type="submit"] {
  background-color: black;
  color: white;
  border: none;
  font-weight: 500;
  font-family: 'poppins', sans-serif;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  padding: 12px 20px;
}

form.newsletter-form input[type="submit"]:hover {
  background-color: #ff6b3d;
}

.container {
  max-width: 960px;
  margin: 10px auto 0px;
  background-color: #ffffff;
  border-radius: 4px;
  box-sizing: border-box;
}

 h3 {
  text-align: center;
  font-size: 0.8rem;
  color: #2c2c2c;
}

.visitButton{
  background-color: #151515; /* From your palette */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  width: 160px;
}

.visitButton:hover {
  background-color: #eaff00; /* Darker shade on hover */
  color: black;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/*------------------------------------*\
  CATEGORY CAROUSEL
\*------------------------------------*/
.category-carousel {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 18px;
  background: linear-gradient(90deg, #373737 0%);
  max-width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  direction: rtl;
  position: sticky;
  top: 80px; /* Set to the exact height of your header */
  z-index: 9; /* Must be less than the header’s z-index */
  max-height: calc(100vh - 80px);
  background-color: #9e9e9e;
}

.category-carousel::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}
.category-button {
  flex: 0 0 auto;
  padding: 10px 16px;
  background-color: #000000; /* From your palette */
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
  border: 1px solid #393e46; /* Border color */
}

.category-button.active {
  background-color: #e5ff00; /* Highlight color */
  font-weight: bold;
  color: #2C2C2C;
}

.category-button:hover {
  background-color: #e5ff00; /* Darker shade on hover */
  color: white;
  font-weight: bold;
  color: #2C2C2C;
}

.explanation p {
  line-height: 1.6;
  color: #333;
}

.explanation a {
  color: #ffd369;
}








/*------------------------------------*\
  TABLE STYLING
\*------------------------------------*/
/* Default table styling for desktop */
table {
  width: 960px;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  direction: rtl; /* Supports RTL languages */
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease-in-out; /* Smooth transition */
}

thead {
  background-color: #e5ff00;
  color: black;
  text-align: center;
}

th, td {
  padding: 10px 15px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 0.9rem;
  line-height: 1.4;
}

tbody tr:hover {
  background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  table {
    border: none;
    box-shadow: none;
  }

  thead {
    display: none; /* Hide table headers */
  }

  tbody {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Equal spacing between cards */
  }

  

  tbody tr {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 0 10px;
    direction: rtl; /* Supports RTL languages */
    transition: all 0.3s ease-in-out; /* Smooth transition */
  }

  tbody td::before {
    content: attr(data-label); /* Use data-label for column headers */
    font-weight: bold;
    color: #151515;
    margin-left: 10px;
    display: block;
    font-size: 0.8rem;
  }

  /* Button inside a cell */
  tbody td a.button {
    margin-top: 10px;
    display: inline-block;
    background-color: #151515;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
  }

  tbody td a.button:hover {
    background-color: #e5ff00;
    color: #151515;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}


.category-header {
  font-weight: bold;
  color: #212121;
  text-align: center;
display: none;
}

 /* .video-container {
  position: fixed;
  top: 55px;
  left: 0;
  height: 100%;
  overflow-y: scroll;
  margin-right: 0px;
  padding: 0px;
  display: block;
}   */

.closebutton{
  position: relative;
  right: 7px;
  background-color: #393e46;
  color: white;
  border: none;
  padding: 5px;
  border-radius:12px;
  cursor: pointer;
  font-size: 10px;
  width: 20px;
}

.closebutton :hover {
  background-color: red;
}
@media (max-width: 768px) {

  
  .logo img {
    width: 190px;
    display: block;
    margin: 20px;
  }

  .visitButton{
    width: 100px;
  }

  .video-container {
    position: fixed;
    top: 0;
    height: auto;
    overflow-y: visible;
    margin: 0;
    /* margin-bottom: 50px; */
    /* padding: 10px; */
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    background-color: rgba(57, 62, 70, 0.2); /* 50% transparency */
    z-index: 1000; /* Ensure it stays above other elements */
  } 
  .videoElement {
    width: 100%;
    height: auto;
    margin-top: 200px;
    position: relative;
    margin-top: 60px; /* Adjust this value to match the height of your header */
    top: 180px;
    z-index: 1000; /*Ensure it stays above other elements 
    /* position: relative; */ 
  }
}

a {
  color: #393e46;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.titleBox {
  display: none;
  text-align: center;
  margin: 10px auto;
}

.titleBox > h1 {
  text-align: center;
  margin: 10px auto;
  font-size: 16px;
  
}


/*------------------------------------*\
  FOOTER
\*------------------------------------*/
footer {
  background-color: #151515;
  color: #eeeeee;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
}

footer a:hover {
  text-decoration: underline;
}

.additional_space{
  padding-top: 50px;
  width: 100%;
  height: 100px; 
  /* border:1px solid red; */
}

footer p {
  margin: 0;
}

footer a {
  color: #eeeeee;
}

/*------------------------------------*\
  RESPONSIVE
\*------------------------------------*/


@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: auto;
  }

  table {
    border: none;
  }

  thead {
    display: none;
  }


  tbody tr {
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin: 10px 10px;
    direction: rtl; /* תומך בעברית */
    box-shadow: #151515;
  }

  tbody td {
    
    background-color: #ffffff;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 18px 12px;
    border: 0.5px solid #ddd;
    font-size: 0.9rem;
    text-align: right;
    flex-direction: row;
    flex-wrap: wrap;
  }


  tbody td::before {
 
    content: attr(data-label);
    font-weight: bold;
    color: #151515;
    margin-left: 10px;
  }

  /* כפתור בתוך תא */
  tbody td a.button {
    margin-top: 10px;
    display: inline-block;
    background-color: #151515;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
  }
}

.visitButton{
  font-size: 12px;
}


  footer {
    font-size: 12px;
  }

