/* Google Fonts - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400;1,500;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #FFFFFF;
}

.nav {
  position: fixed;
  left: 0;
  width: 100%;
  padding: 15px 100px;
  background: #4b16ad;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.nav,
.nav .nav-links {
  display: flex;
  align-items: center;
}
.nav {
  justify-content: space-between;
}
a {
  color: #fff;
  text-decoration: none;
}
/* Remove float and add position relative */
.dropdown {
  position: relative;
}
.dropbtn {
  font-size: 16px;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  border: none;
  outline: none;
  font-family: inherit;
  margin: 0;
}

/* Add a white background color to navbar links on hover */
.nav a:hover, .dropdown:hover .dropbtn {
  background-color: white;
  color: black;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  top: 100%;
  left: 0;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a grey background color to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.title {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;  
    width: 4.5vw;
}
.nav img {
    height: 5vh;
}
.nav .logo {
  font-size: 22px;
  font-weight: 500;
  margin-right: -4vw;
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}
.nav .nav-links {
  column-gap: 20px;
  list-style: none;
}
.nav .nav-links a {
  transition: all 0.2s linear;
}
.nav.openSearch .nav-links a {
  opacity: 0;
  pointer-events: none;
}
.nav .search-icon {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.nav .search-box {
  position: absolute;
  right: 250px;
  height: 45px;
  max-width: 555px;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s linear;
}
.nav.openSearch .search-box {
  opacity: 1;
  pointer-events: auto;
}
.search-box .search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  color: #4a98f7;
  transform: translateY(-50%);
}
.search-box input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 6px;
  background-color: #fff;
  padding: 0 15px 0 45px;
}

.nav .navOpenBtn,
.nav .navCloseBtn {
  display: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#rows, #cols {
  width: 3vw;
  height: 4vh;
  margin-left: 0.5vw;
}

/* Responsive styling */
@media screen and (max-width: 1160px) {
  .nav {
    padding: 15px 100px;
  }
  .nav .search-box {
    right: 150px;
  }
  #rows, #cols {
    width: 4vw;
    height: 5vh;
  }
}
@media screen and (max-width: 950px) {
  .nav {
    padding: 15px 50px;
  }
  .nav .search-box {
    right: 100px;
    max-width: 400px;
  }
  #rows, #cols {
    width: 4vw;
    height: 5vh;
  }
}
@media screen and (max-width: 768px) {
  .nav .navOpenBtn,
  .nav .navCloseBtn {
    display: block;
  }
  .nav {
    padding: 15px 20px;
    z-index: 99;
  }
  .nav .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100%;
    max-width: 280px;
    width: 100%;
    padding-top: 100px;
    row-gap: 30px;
    flex-direction: column;
    background-color: #11101d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    z-index: 100;
  }
  .nav.openNav .nav-links {
    left: 0;
  }
  .nav .navOpenBtn {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .navCloseBtn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }
  .nav .search-box {
    top: calc(100% + 10px);
    max-width: calc(100% - 20px);
    right: 50%;
    transform: translateX(50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  #rows, #cols {
    width: 12vw;
    height: 5vh;
    margin-left: 2vw;
  }
}

.flex-table {
  display: flex;
  flex-direction: column;
  margin: 10px auto;
  border-collapse: collapse;
  width: fit-content;
  border: 1px solid #dee2e6;
  align-items: center;
}
.flex-table .table-row {
  display: flex;
}
.flex-table .table-cell, .flex-table .table-header {
  flex: 1 1 60px;
  min-width: 60px;
  max-width: 60px;
  padding: 8px;
  border: 1px solid #dee2e6;
  text-align: center;
  box-sizing: border-box;
}
.flex-table .table-header {
  font-weight: bold;
  background-color: #f8f9fa;
}
.flex-table input {
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.flex-table input[type="number"]::-webkit-outer-spin-button,
.flex-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.flex-table caption {
  caption-side: bottom;
  text-align: center;
  font-weight: bold;
}
.tcsect {
  margin-top: 5vh; 
}
.tcsect1 {
  margin-top: 5vh;
  margin-bottom: 3vh;
  font-size: 1.25em; 
  font-weight: bold; 
  background-color: #00b81f;
  color: #FFFFFF;
  padding: 0.75vw;
}
#cost-matrix {
  margin-left: 6vw;
}

/* vertical strike and horizontal strike */
.vStrike, .hStrike {
  text-align: center;
  position: relative;
}
.vStrike:before { 
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-right: 1px #000 solid;
}
.hStrike:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-bottom: 1px #000 solid;
}

.assignedCell { background: #1dd11d }

.itertitle b { 
  font-size: 1.25em; 
  font-weight: bold; 
  display: flex;
  flex-direction: column;
  margin: 10px auto;
  width: fit-content;
  align-items: center;
  margin-top: 8vh;
  margin-bottom: 5vh;
  background-color: #ff0000;
  color: #FFFFFF;
  padding: 0.75vw;
}