
body {
  font-family: Arial;
  margin: 0 auto; /* Center website */
}

/* Three column layout */
.side {
  float: left;
  width: 15%;
  margin-top:10px;
}

.middle {
  margin-top:10px;
  float: left;
  width: 70%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

.row{
      padding-right:2%;
}

/* The bar container */
.bar-container {
  width: 100%;
  background-color: #f1f1f1;
  text-align: center;
  left: 0%;
  position: absolute;
  margin-top: 8%;
  margin-bottom: 50px;
}

@media (max-width: 600px) {
  .bar-container{
      margin-top: 30%;
      width: 90%;
  }
}


/* autocomplete */

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9; 
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}

input {
  border: 1px solid transparent;
  background-color: transparent;
  padding: 10px;
  font-size: 16px;
}

input[type=text], select {
  width: 70%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  direction: rtl;
}

input[type=submit] {
  width: 70%;
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #45a049;
}

.button-selected{
    border-radius: 20px;
    background-color: transparent;
    border-width: 1px;
    border-color: cornflowerblue;
    height: 30px;
    min-width: 13%;
    margin: 2% 2% 2% 2%;
    position: relative;
    text-align:center;
}

#selected-list{
    padding-bottom: 10px;
    width: 70%;
    left: 15%;
    position: relative;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

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

#lname_crs {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: black;
}

.ui-autocomplete {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    max-height: 150px; /* Limit the height of the dropdown */
    overflow-y: auto; /* Add a scrollbar when needed */
    z-index: 1000; /* Adjust z-index to ensure it's displayed above other elements */
    direction: rtl;
}

.ui-menu-item {
    padding: 10px;
    cursor: pointer;
    direction: rtl;
}

.ui-menu-item:hover {
    background-color: #f0f0f0;
}
