@import url('https://fonts.googleapis.com/css2?family=Livvic&display=swap');

body {
  background:#222;
    background: linear-gradient(to right, #ff7e5f, #feb47b); /* Red-orange gradient background */
background-attachment: fixed;
  background-size:cover;
  background-position: top;
  box-sizing:border-box;
  font-family: Arial;
  overflow:overlay;
}

h1, h2, h3, h4, h5, h6 {
  margin:0px 0px 10px 0px;
}

::-webkit-scrollbar {
  background:rgba(0,0,0,0.6);
  height:10px;
  width:10px;
}

::-webkit-scrollbar-track {
  background:none;
  border-radius:5px;
}

::-webkit-scrollbar-thumb {
  background:rgba(255,255,255,0.6);
  border:3px solid transparent;
  background-clip:content-box;
  border-radius:5px;
}

::-webkit-scrollbar-thumb:hover {
  background:rgba(255,255,255,0.75);
  border:3px solid transparent;
  background-clip:content-box;
}

.mainbox { 
  background:rgba(20,20,20,0.7);
  border:1px solid rgba(255,255,255,0.5);
  border-radius: 10px;
  box-sizing:border-box;
  box-shadow:0px 0px 10px 0px rgba(0,0,0,0.5);
  margin:50px auto;
  overflow:hidden;
  width:80%;
}

/* CSS for horizontally scrollable tabs */
.buttonarray {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Livvic', sans-serif;
    font-size: 0.8em;
    padding: 5px;
}

/* Styles for active tab */
.arraybutton.active {
    background: rgba(0, 0, 0, 0.1); /* Darker background for active tab */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5); /* Inner shadow for depth */
    margin-top: 2px; /* Adjust position to match the 'pressed' effect */
}

/* Resetting the margin for all tabs */
.arraybutton {
    margin-top: 0; /* Ensures consistent alignment */
    flex: 0 0 auto; /* Ensures buttons don't shrink and are spaced evenly */
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 15px;
    text-align: center;
    transition: background .15s;
    margin-right: 10px; /* Space between buttons */
    cursor: pointer;
    border-radius: 10px;
}

.arraybutton:hover {
  background:rgba(0,0,0,0.40);
  cursor:pointer;
}

.buttonarray .titlebutton {
  color:#4ce0ed;
}

.dotarray {
  display:grid;
  grid-template-columns:4px 4px 4px;
  grid-column-gap:4px;
  height:4px;
  margin:6px auto;
  overflow:hidden;
  width:25px;
}

.arraydot {
  background:#fff;
  border-radius:4px;
  height:4px;
  width:4px;
}

.contentwrap {
  /*background:rgba(0,0,0,0.40);*/
  box-sizing:border-box;
  color:#ccc;
  font-size:0.75em;
  padding:10px;
  width:100%;
}

.grid2 {
  display:grid;
  grid-template-columns:175px auto;
  grid-column-gap:10px;
}



/* Styling for the vertical menu with ID #subcategoryList */
#subcategoryList {
    background: rgba(0, 0, 0, 0.50);
    border-radius: 4px;
    height: 300px;
    overflow-y: overlay;
    width: 100%;
    padding: 0; /* Remove default padding */
}

/* Styling for list items within #subcategoryList */
#subcategoryList ul {
    list-style-type: none !important; /* Remove bullet points */
    margin: 0;
    padding: 0;
    display: flex; /* Use flexbox for centering and layout */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
}

#subcategoryList ul li {
    background: transparent !important; /* Starting background */
    color: #fff;
    padding: 10px 20px; /* Adequate padding for clickability */
    margin: 5px 0; /* Space between items */
    cursor: pointer;
    transition: background .3s, transform .3s; /* Smooth transitions for hover effects */
    width: 70%; /* Set width of list items */
    text-align: center; /* Center text */
    border-radius: 20px; /* Rounded corners for modern look */
}

#subcategoryList ul li:hover {
    background: rgba(255, 255, 255, 0.1)!important; /* Subtle hover effect */
    transform: scale(1.05); /* Slight increase in size */
}

/* Custom scrollbar styles for #subcategoryList */
#subcategoryList::-webkit-scrollbar {
    background: none;
    height: 10px;
    width: 10px;
}

#subcategoryList::-webkit-scrollbar-track {
    background: none;
    border-radius: 5px;
}

#subcategoryList::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.4);
    border-radius: 5px;
}

#subcategoryList:hover::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.6);
}

#subcategoryList::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Other styles remain the same */


*/
.box {
  background:rgba(0,0,0,0.25);
  border-radius:4px;
  box-sizing:border-box;
  height:2;
  padding:5px;
  width:100%;
}
.arraybutton.active, .vertmenu ul li.active {
    background: rgba(100, 100, 100, 0.5); /* Example active state style */
}

/* Styles for individual word pair boxes within #wordBox */
#wordBox div {
    text-align: left;
    cursor: pointer; /* Change cursor to indicate clickability */
    background: rgba(255, 255, 255, 0.1); /* Subtle background for each word pair */
    border-radius: 15px; /* Rounded corners */
    padding: 5px 10px; /* Padding inside each word pair box */
    margin: 5px; /* Margin between each word pair box */
    display: inline-flex; /* Inline flex container for the word pairs */
    /*align-items: center;  Align the items vertically */
    gap: 10px; /* Space between Spanish and English words */
}
#wordBox div span {
    cursor: pointer; /* Change cursor to indicate clickability */
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition for hover effect */
}

#wordBox div:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Subtle background color on hover */
    transform: translateY(-2px); /* Slight upward shift to indicate selection */
}

/* Bold the first word of each pair */
#wordBox div span:first-child {
    font-weight: bold;
}

#wordBox {
    position: relative; /* Ensure the child button can be absolutely positioned relative to this box */
    /* ... other styles ... */
}
#wordSearch {
    width: 50%;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 20px;
    text-align: center;
}

.subcategory-label {
    font-weight: bold;
    margin-top: 10px;
}
#popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 100; /* Make sure it's above other elements */
}
