html {
  height: 100%;
}

/*body {
  width: 100%;
  background: linear-gradient(to left top, rgb(37, 37, 61), rgb(34, 73, 58));
  color: white;
}
*/
/* For desktop: */
.colx-1 {
  width: 8.33%;
}

.colx-2 {
  width: 16.66%;
}

.colx-3 {
  width: 50%;
}

.colx-4 {
  width: 33.33%;
}

.colx-5 {
  width: 41.66%;
}

.colx-6 {
  width: 50%;
}

.colx-7 {
  width: 58.33%;
}

.colx-8 {
  width: 66.66%;
}

.colx-9 {
  width: 75%;
}

.colx-10 {
  width: 83.33%;
}

.colx-11 {
  width: 91.66%;
}

.colx-12 {
  width: 100%;
}

.divx {
  position: relative;
  top: 0px;
}

@media only screen and (max-width: 768px) {

  /* For mobile phones: */
  [class*="colx-"] {
    width: 100%;
  }

  [class*="divx"] {
    position: relative;
    top: 0px;
  }
}

@media only screen and (min-width: 1200px) {
  [class*="divx"] {
    position: relative;
    top: -50px;
  }
}

body {
  background: #ffffff;
  color: #ffffff;
}

#home-section {
  background: url(../img/home1-dark.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 1000px;
}

#home-section .dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 1000px;
  background: rgba(0, 0, 0, 0.7);
}

.navbar {
  border-bottom: #008ed6 3px solid;
  opacity: 1;
}

#home-section .dark-overlay-lighter {
  background: rgba(0, 0, 0, 0.4);
}

#home-section .home-inner {
  padding-top: 150px;
}

#home-section .card-form {
  opacity: 0.8;
}

#home-section .fas,
#create-section .fas {
  color: #008ed6;
  background: #fff;
  padding: 5px;
  border-radius: 5px;
}

#home-section-results {
  background: url(../img/home1-dark.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 700px;
}

#home-section-results .dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

#home-section-results .home-inner {
  padding-top: 100px;
  padding-bottom: 150px;
}

#home-section-results .card-form {
  opacity: 0.8;
}

#home-section .fas,
#create-section .fas {
  color: #008ed6;
  background: #fff;
  padding: 5px;
  border-radius: 5px;
}

#explore-section .fas,
#share-section .fas {
  background: #333;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
}

.special-card {
  /* create a custom class so you 
     do not run into specificity issues 
     against bootstraps styles
     which tends to work better than using !important 
     (future you will thank you later)*/
  background-color: rgba(245, 245, 245, 1);
  opacity: 0.4;
}

.card-new {
  background-color: rgba(10, 24, 29, 0.6) !important;
}

a,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: rgb(55, 173, 128);
  text-decoration: none;
  transition: all 0.3s;
}

.main-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: red;
  color: white;
  text-align: center;
  z-index: -5;
}

.comptextshadowtop {
  text-shadow: 0px 2px 2px #000000;
  width: 20%;
  background-color: #58595e;
  border-radius: 0px 5px 0px 0px;
}

.comptextshadowbot {
  width: 20%;
  color: #787a80;
  font-size: 12px;
  background-color: #787a80;
  border-radius: 0px 0px 0px 5px;
}

.comptextshadow {
  text-shadow: 0px 2px 2px #000000;
  width: 60%;
  background-color: #58595e;
}

.comptrline {
  line-height: 25px;
  border-top-style: solid;
  border-top-width: 1px;
  border-color: #272a33;
}

.comptextshadowalt {
  text-shadow: 0px 2px 2px #000000;
  width: 60%;
  background-color: #58595e;
}

.comptextshadowtopalt {
  width: 20%;
  color: #787a80;
  font-size: 12px;
  background-color: #787a80;
  border-radius: 5px 0px 0px 0px;
}

.comptd {
  width: 2%;
  text-align: center;
}

.comptextshadowbotalt {
  text-shadow: 0px 2px 2px #000000;
  width: 20%;
  background-color: #58595e;
  border-radius: 0px 0px 5px 0px;
}

.ifcont {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

hr.contact {
  border-top: 1px solid #016e51;
}

.empty-table {
  background-color: #58595e36;
  border-radius: 5px;
}

.formtext {
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 20px;
  color: rgb(32, 33, 36);
  margin-top: 12px;
}

.formshape {
  margin-top: 12px;
  background-color: #fff;
  border: 1px solid rgb(218, 220, 224);
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 24px;
  padding-top: 22px;
  position: relative;
}

.modal-backdrop.show {
  opacity: 0 !important;
}

/* Ensures the modal container itself has no default background */
.modal {
  background-color: transparent;
}

/* 1. Target the header cells (<th>) and add space on the left */
table.dataTable thead th {
  /* IMPORTANT: This moves the *entire* column header's content 
    (text AND absolutely positioned arrows) to the right.
    Adjust '30px' as needed for desired spacing.
    */
  padding-left: 30px !important;
  /* Remove/reduce right padding */
  padding-right: 10px !important;
  position: relative;
}

/* 2. Target BOTH sort arrow pseudo-elements (::after and ::before) 
      and position them on the far left. */
table.dataTable thead th.sorting::before,
table.dataTable thead th.sorting_asc::before,
table.dataTable thead th.sorting_desc::before,
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
  /* Set the position to the left of the cell's *inner* edge */
  left: 5px !important;
  right: auto !important;
}


/* Container Styling (Reduced Width and Padding) */
.color-key-container {
  width: 260px;
  /* Reduced from 300px */
  padding: 20px;
  /* Reduced padding from 15px */
  border: 1px solid #ccc;
  border-radius: 4px;
  /* Slightly smaller radius */
  background-color: #3333338c;
  font-family: Arial, sans-serif;

  /* CSS Grid Properties */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px 3px;
  color: white;
  /* Reduced gap */
}

/* Header Styling (Reduced Font Size) */
.color-key-container h2 {
  font-size: 0.9em;
  /* Reduced from 1.1em */
  margin-top: 0;
  margin-bottom: 8px;
  /* Reduced margin */
  /* Note: If you have h2 inside the grid flow, you may need grid-column: 1 / -1; */
}

/* Individual Key Item Layout (No major changes here) */
.key-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Color Box Styling (Reduced Size) */
.color-swatch {
  width: 18px;
  /* Reduced from 24px */
  height: 18px;
  /* Reduced from 24px */
  border-radius: 2px;
  margin: 0 0 3px 0;
  /* Reduced margin */
}

/* Description Text Styling (Reduced Font Size) */
.key-description {
  font-size: 0.6em;
  /* Significantly reduced from 0.75em to fit the smaller column */
  line-height: 1;
}

/* Positioning (Re-add your desired positioning) */
.right-aligned-wrapper {
  float: right;
  margin-left: 10px;
  /* Reduced margin */
}

/* --- 8 Specific Colors --- */
.color-a {
  background-color: #00ffea86;
}

/* Blue */
.color-b {
  background-color: #ff0073;
}

/* Green */
.color-c {
  background-color: #1e8fff83;
}

/* Yellow/Gold */
.color-d {
  background-color: #15ff0088;
}

/* Red */
.color-e {
  background-color: #e83dff86;
}

/* Purple */
.color-f {
  background-color: #b800b8a4;
}

/* Teal */
.color-g {
  background-color: #ffd90086;
}

/* Orange */
.color-h {
  background-color: #27461386;
}

/* Gray */

.right-aligned-wrapper {
  /* Use the float method */
  float: right;
  margin-right: 50px;
  /* or Fixed positioning (better if you want it static on the screen) */
  /* position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000; */
}