.dropdown {
        position: relative;
        display: inline-block;
    }

    .submenu {
        display: none;
        position: absolute;
        list-style-type: none;
        margin: -3px;
        left: -35px;
        width: 150px;
        padding: 0;
        z-index: 1;
        border-radius: 4px; /* Optional: Add rounded corners */
    }

    .dropdown:hover .submenu {
        display: block;
    }

    .submenu li {
        padding: 8px 16px;
    }

    .submenu li a {
        color: white; /* White text color */
        text-decoration: none;
        display: block;
    }

    .submenu li a:hover {
        background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent hover effect */
    }

    .submenu li a:focus,
    .submenu li a:active {
        outline: none; /* Remove default browser focus outline */
    }


/*######## WAVING HAND ############### */
.wave {
  animation-name: wave-animation;  /* Refers to the name of your @keyframes element below */
  animation-duration: 2.5s;        /* Change to speed up or slow down */
  animation-iteration-count: infinite;  /* Never stop waving :) */
  transform-origin: 70% 70%;       /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
    0% { transform: rotate( 0.0deg) }
   10% { transform: rotate(14.0deg) }  /* The following five values can be played with to make the waving more or less extreme */
   20% { transform: rotate(-8.0deg) }
   30% { transform: rotate(14.0deg) }
   40% { transform: rotate(-4.0deg) }
   50% { transform: rotate(10.0deg) }
   60% { transform: rotate( 0.0deg) }  /* Reset for the last half to pause */
  100% { transform: rotate( 0.0deg) }
}


/* For demonstration purposes only: */
body { font-size: 3.5em }
h1 { font-size: 0.5em }





:root {
  --primary-color: #0056b3;
  --secondary-color: #f8f9fa;
  --text-color: #333;
  --background-color: #ffffff;
  --accent-color: #17a2b8;
  --border-color: #dee2e6;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: Arial, sans-serif;
  font-size: clamp(1%, 1vw, 100%);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10;
}

.header-content {
    display: inline-grid;
    align-items: center;
    width: 100%;
}

.logo {
  margin-left: 25px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  width: 100%;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}


    
nav ul li {
  margin-left: 20px;
  display: inline-flex;
  align-items: baseline;
  width: 100%;
  justify-content: space-evenly;
  padding: 0px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

nav ul li a:hover {
  opacity: 0.8;
}

#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1000;
  background-size: cover;
  object-fit: cover;
}

.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  padding: 40px;
  max-width: 300px;
  width: 90%;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--background-color);
  box-shadow: var(--box-shadow);
}

/* shadow on the background after login */
.shadow-layer {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent grey */
    z-index: 1; /* Make sure it is behind the table */
}

input {
  display: block;
  padding: 6px;
  margin: 10px 0;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: border 0.3s;
}

input:hover {
  border-color: var(--primary-color);
}

button {
  padding: 10px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  align-self: center;
}

button:hover {
  background-color: #003d80;
}

/* Main Table Setup */
#content {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    padding: 20px;
}

.table-container {
  display: none;
  font-stretch: expanded;
  width: 90%;
  max-width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  background-color: var(--background-color);
  z-index: 1;
}

table {
  width: 100%;
  border-collapse: initial;
  word-break: break-word;
}

th {
  background-color: var(--primary-color);
  color: #fff;
  position: sticky; /* Make header row sticky */
  top: 0; /* Stick to the top */
  z-index: 2; /* Ensure it stays above table content */
}

tr:nth-child(1) {
  background-color: var(--secondary-color);
}

tr:hover {
  background-color: var(--accent-color);
}

th, td {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Menu area button layout */
.resize-buttons {
    display: flex;
    gap: 5px;
    font-size: unset;
}

.resize-buttons button {
    background-color: #007BFF;
    width: max-content;
}

.resize-buttons button:hover {
    background-color: #0056b4;
}

/* Search Styles */
.search-container {
    display: none;
    align-items: center;
    margin-right: 5px;
}

#search-input {
    width: 200px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.search-buttons {
    display: flex;
    margin-bottom: -10px;
}

.search-button {
    padding: 10px;
    margin-right: 5px;
    background-color: #007BFF;
    width: max-content;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #0056b4;
}

.menu-area {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 10%;
    background-color: #d4ebf2;
    color: #544326;
    padding: 5px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding-bottom: 50px;
}

.menu-logo {
    margin-bottom: 20px;
}

.menu-title {
    margin-bottom: 20px;
}

.resize-title {
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}

.highlighted-row {
    background-color: orange !important;
}

.popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

th span {
    margin-right: 5px;
}

#users-btn:hover {
    background-color: #0056b4;
}

/* YouTube Button */
#introvideo-btn {
    background-color: #FF0000;
}

#introvideo-btn:hover {
    background-color: #D80000;
}

/***** YouTube Modal ********/
#introvideo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

#introvideo-modal .modal-content {
    position: absolute;
    width: 80%;
    max-width: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(23 75 251 / 83%);
    padding: 15px;
    box-shadow: 0px 0px 12px 22px rgb(23 75 251 / 83%);
}

#introvideo-modal .introvideo-close-modal {
    position: absolute;
    right: -10px;
    top: -20px;
    color: aliceblue;
    cursor: pointer;
    font-size: 35px;
}

#introvideo-modal iframe#introvideo-iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
}

/***** END YouTube Modal ********/

/***** Options Modal ********/
/* Initial hide modal */
#optionsModal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 70%;
    max-width: 1500px;
    max-height: 660px;
    min-width: 300px;
    min-height: 400px;
    color: black;
    background: aliceblue;
    text-shadow: 2px 2px 4px rgb(0 0 0 / 20%);
    padding: 2px;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,1.1);
    overflow: auto;
}

/* When modal is active, show it */
#optionsModal.active,
#optionsModal.show {
    display: block;
}

/* General styling for the modal content area */
#optionsModal .modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/***** Style the tab in options ******/
.tab {
    display: flex;
    background-color: #8599db;
    justify-content: space-evenly;
    border-bottom: 1px solid #ccc;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 16px;
    transition: background-color 0.3s;
    font-size: 16px;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Active tab button style */
.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent iframe {
    width: 100%;
    height: 80vh !important;
    border: 0;
    box-shadow: 5px 5px 56px 0px rgba(0,0,0,0.25);
}

/* Style the close button */
.close {
    color: #aaa;
    position: absolute;
    right: 3px;
    top: -3px;
    font-size: 35px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/***** END Style the tab in options ******/

/***** User Configuration Table *****/
/* Styles for the Users table */
.Users-table {
    margin-top: 20px;
    background-color: floralwhite;
    overflow-x: auto;
    width: 100%;
    height: 100%;
    max-height: 600px;
    overflow-y: scroll;
    position: relative;
}

.userscontent {
    background-color: floralwhite;
}

#usersTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

/* Style the table cells */
#usersTable th, 
#usersTable td {
    padding: 8px;
    border: 1px solid #ccc;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

/* Style the resizing handle */
#usersTable th::after,
#usersTable td::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #ccc;
    cursor: nwse-resize;
    z-index: 2;
}

/* Hide resizing handle when not resizing */
#usersTable th.resizing::after,
#usersTable td.resizing::after {
    display: none;
}

#usersTable th {
    background-color: floralwhite;
    width: 90%;
    color: black;
    position: sticky;
    top: 0;
}

#usersTable tbody tr:nth-child(even) {
    background-color: #f2f2f2;
    color: black;
}

#usersTable tbody tr:hover {
    background-color: brown;
    color: black;
}

/* Additional Media Query for Responsiveness */
/* Media Queries for Responsive Design */

@media (max-width: 600px) {
    .header {
        padding: 0px;
    }
    .logo {
        display: none; /* Hide logo */
    }
    nav ul {
        flex-direction: column; /* Stack navigation links vertically */
        align-items: flex-start;
        padding: 0;
    }
    nav ul li {
        margin-left: 0;
        padding: 0px;
        width: 100%;
    }
    nav ul li a {
        padding: 5px;
        font-size: 0.8rem; /* Smaller font size for navigation links */
    }
    .resize-title {
        font-size: 0.6rem; /* Smaller font size for header title */
    }
    .resize-buttons {
        flex-direction: row; /* Align buttons in one horizontal line */
        flex-wrap: wrap; /* Allow wrapping to next line if needed */
        justify-content: center; /* Center buttons horizontally */
        width: 100%;
    }
    .resize-buttons button {
        font-size: 8px; /* Very small font size for buttons */
        padding: 2px; /* Very small padding for buttons */
        margin: 2px; /* Small margin between buttons */
    }
    .search-buttons {
        flex-direction: row; /* Align buttons in one horizontal line */
        flex-wrap: wrap; /* Allow wrapping to next line if needed */
        justify-content: center; /* Center buttons horizontally */
        width: 100%;
    }
    .search-buttons button {
        font-size: 8px; /* Very small font size for buttons */
        padding: 2px; /* Very small padding for buttons */
        margin: 2px; /* Small margin between buttons */
    }
    .table-container {
        max-height: 60vh;
    }
    .login-container {
        width: 100%;
    }
    /* Hide specific buttons on small screens */
    #users-btn, #introvideo-btn, #optionsBtn {
        display: none;
    }
    button {
        font-size: 10px;
        padding: 5px;
    }
}

/* HORIZONTAL MOBILE OR TABLET  */

@media (max-width: 900px) {
    .header {
        padding: 0px;
    }
    .logo {
        display: none; /* Hide logo */
    }
    
    .menu-logo {
        height: 24px; /* Smaller height for the logo */
        width: 90px; /* Smaller width for the logo */
        margin: 0 2px 0 0; /* Add a 2px gap between logo and the rest */
    }
    
    nav ul {
        flex-direction: row; /* Stack navigation links vertically */
        align-items: flex-start;
        padding: 0;
    }
    nav ul li {
        display: contents;
        margin-left: 0;
        padding: 0px;
        width: 100%;
    }
    nav ul li a {
        padding: 5px;
        font-size: 0.8rem; /* Smaller font size for navigation links */
    }
    .resize-title {
        font-size: 0.6rem; /* Smaller font size for header title */
        margin-top: 5px;
    }
    .resize-buttons {
        display: none; /* Hide resize buttons */
        flex-direction: row; /* Align buttons in one horizontal line */
        flex-wrap: wrap; /* Allow wrapping to next line if needed */
        justify-content: center; /* Center buttons horizontally */
        width: 100%;
    }
    .resize-buttons button {
        font-size: 8px; /* Very small font size for buttons */
        padding: 2px; /* Very small padding for buttons */
        margin: 2px; /* Small margin between buttons */
    }
    .search-buttons {
        flex-direction: row; /* Align buttons in one horizontal line */
        flex-wrap: wrap; /* Allow wrapping to next line if needed */
        justify-content: center; /* Center buttons horizontally */
        width: 100%;
    }
    .search-buttons button {
        font-size: 8px; /* Very small font size for buttons */
        padding: 2px; /* Very small padding for buttons */
        margin: 2px; /* Small margin between buttons */
    }
    
    .search-container {
        display: flex; /* Show search container */
        align-items: center;
        width: 100%;
        margin-left: 20px;
        margin-top: -6px;
    }
    
    #search-input {
        width: 80%; /* Smaller width for search input */
        font-size: 10px; /* Smaller font size for search input */
        padding: 5px; /* Smaller padding for search input */
    }
    
    .table-container {
        max-height: 60vh;
    }
    .login-container {
        width: 100%;
    }
    button {
        font-size: 10px;
        padding: 5px;
    }
    /* Hide specific buttons on small screens */
    #users-btn, #introvideo-btn, #optionsBtn {
        display: none;
    }
}
