

@import url('https://fonts.googleapis.com/css2?family=Co+Headline:wght@400;700&display=swap');


.maincontainer {
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    align-items: center;
    background-image: url('../images/homepagebackground.png');
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center; 
    justify-content: center;
  }

  .contentcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin-top: 4rem;
    margin-right: 2rem;
    transition: opacity 1s ease-in-out;
  }
 
  .topbar {
    width: 100%;
    height: 3rem;
    background-color: #CBCACE;
    text-align: center;
    color: #756F9E;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 1000; 
    border-bottom: 2px solid black; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.saibamais{
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100vh; 
    background-image: linear-gradient(  #3B3176 , rgb(115, 115, 177));
    display: flex;
    align-items: center;
    justify-content: center;
}
.userchoicecontainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-right: 3rem;
  margin-bottom: 5rem;
}

.userchoicecontainer button, .userchoicecontainer label {
  background: none;
  border: none;
  color: white;
  font-family: 'Co Headline', sans-serif;
  font-size: 1.3rem;
  cursor: pointer;
  margin: 0;
  transition: color 0.3s ease;
}

.userchoicecontainer button:hover, .userchoicecontainer label:hover {
  color: #ccc;
}

.userchoicecontainer button:not(:last-child)::after, 
.userchoicecontainer label:not(:last-child)::after {
  content: " | ";
  color: white;
  margin-left: 0.1rem;
}

.userchoicecontainer input[type="file"] {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

.userchoicecontainer input[type="file"]::-webkit-file-upload-button {
  visibility: hidden; 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgb(48, 48, 116), rgb(115, 115, 177), rgb(163, 163, 219));
    font-family: 'Co Headline', sans-serif;
  }
  
h2 {
    color:  #CBCACE;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}

#logo {
    width: 50%;
    height: 55%;
    margin-right: 3rem;
    margin-bottom: 1rem;
}

#logotopbar {
  margin-left: 1rem;
  width: 7rem;
  height: 80%;
  margin-bottom: 0.4rem;
  border: none;
  background-color: transparent;
  align-items: center;
  justify-content: center;
}

#logotopbar:hover {
  cursor: pointer;
}

#logotopbar img {
  width: 100%;
  height: 100%;
  display: block;
}

.tab_container {
  height: 1.5rem;
  width: 90.1%;
  display: none;
  margin-top: 2em;
  align-items: end;
  justify-content: flex-start;
  overflow-x: auto;
}

.tab_container > div {
  width: 9%;
  height: 60%;
  border-width: 5px;
  display: none;
  padding: 1.2rem;
  z-index: 10;
  cursor: pointer;
  text-align: center;
  justify-content: center;
  background-color: #e0463a;
  color: white;
  font-size: x-large;
  align-items: center;
  flex-shrink: 0;
  padding-top: 1rem;
}

.tab_container > #consult,
.tab_container > #results {
  align-items: flex-end;
  text-align: end;
  height: 90%;
}

.tab_container > #results {
  background-color: rgba(87, 48, 129, 0.8);
  margin-left: 0.2rem;
}


.content-fading-out {
  opacity: 0;
}

.content-fading-in {
  opacity: 1 !important;
}

.maincontentborder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 47.5rem;
  position: relative;
}

.consultcontainer {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: white;
  border-color: white;
  overflow-wrap: break-word;
  box-sizing: border-box;
  align-items: center;
  justify-content: flex-start;
}

.keyboard {
  height: 4rem;
  width: 100%;
  display: flex;
  justify-content: flex-start; 
  align-items: center; 
  background-color: transparent; 
  margin-bottom: 0.1rem;
 
}

.keyboard button {
  height: 80%; 
  width: 5%; 
  background-color: transparent; 
  font-size:  xx-large;
  cursor: pointer;
  border: none; 
  color: #2d025b;
  border-right: 0.1rem solid grey; 
  font-weight: 500;
  position: relative;
  font-family: 'Co Headline', sans-serif;
}

.keyboard button:last-child {
  border-right: none;
}

.keyboard button:hover {
  background-color: rgba(203, 202, 206, 0.5); 
}

.consult_environment {
 display: none;
 flex-direction: column;
 width: 70%;
 margin-right: 2%;
 height: 95%;
 margin-top: 1%;
 align-items: center;
 justify-content: center;
}

#consult_form {
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}


#consult_form > div:last-child {
  margin-top: 1%;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0;
  margin-right: 0;
}

.consult_interface {
  height: 90%;
  width: 100%;
  border: 0.1rem solid grey;
  font-family: Arial;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

#bd {
  width: 30%;
  display: none;
  resize: horizontal;
  align-items: flex-start;
  max-width: 50%;
  height: 95%;
  overflow: auto;
  direction: ltr;
  margin: 1%;
  margin-top: 1.7rem;
  flex-direction: column;
  padding-left: 2rem;
}

.resultcontainer {
  display: none;
  height: 100%;
  width: 100%;
  background-color: transparent;
  border-width: 3px;
  border-radius: 10px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.table_container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-top: 3%;
  width: 25rem;
  overflow-x: auto;
  height: 35%;
  border-width: 1px;
  border-radius: 15px;
  border-color: black;
  background-color: rgba(203, 202, 206, 0.1);
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 5px;
  padding-top: 0px;
  max-width: 25rem;
  max-height: 35%;
  min-height: 35%;
  box-sizing: border-box;
}


#historic {
 display: flex;
 height: 85%;
 width: 30%;
 display: flex;
 flex-direction: column;
 align-items: center;
 margin-top: 0.1rem;
 overflow: auto;
}

#resultarea {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  margin-top: 1%;
  margin-bottom: 1%;
  overflow: auto;
}

.division {
  display: flex;
  margin-top: 1%;
  height: 1px;
  border-width: 1%;
  border-style: dotted;
  border-color: black;
  border-left: none;
  border-right: none;
  border-bottom: none;
  width: 60%;
}


.titlecontainer {
  border: solid;
  border-top: none;
  border-right: none;
  border-left: none;
  display: flex;
  width: 90%;
  height: 30px;
  align-items: center;
  justify-content: space-between;
  font-size: x-large;
  color: #2d025b;
  padding-bottom: 0.3rem;
  border-bottom: 0.1rem solid #2d025b;
  font-weight: bolder;
}

.relation_label {
  display: flex;
  width: 25rem;
  margin-top: 1.9rem;
  height: fit-content;
  font-size: x-large;
  color: #2d025b;
  padding-bottom: 0.3rem;
  border-bottom: 0.1rem solid #2d025b;
  align-items: center;
  justify-content: space-between;
  font-weight: bolder;
}

#result {
  display: flex;
  width: 70%;
  height: 85%;
  margin-right: 2%;
  align-items: center;
  flex-direction: column;
  overflow: auto;
}

#result h1 {
  display: flex;
  color: rgb(183, 181, 191);
  font-weight: 600;
  align-self: center;
}

.result_label {
  width: 100%;
  height: fit-content;
  text-align: center;
  justify-content: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: x-large;
  display: flex;
  margin-top: 5%;
}

.result_tuple {
  display: flex;
  width: 100%;
  height: fit-content;
  text-align: center;
  justify-content: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: large;
  margin-top: 1%;
}

.container::-webkit-scrollbar {
  width: 5%; 
  height: 5px;
  transition: background-color 0.3s;
}

.table_name {
  display: flex;
  font-size: x-large;
  color: black;
  font-weight: bolder;
  width: 100%;
  height: fit-content;
  text-align: start;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: rgba(87, 48, 129, 1);
}

.table_atributes {
  display: flex;
  flex-direction: row;
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.atribute_container {
  display: flex;
  height: fit-content;
  width: max-content;
  font-size: medium;
  border: solid;
  border-width: 1px;
  border-color: black;
  text-align: start;
  padding: 3px;
  color: black;
}

.atribute_container:not(:first-child) {
  border-left: none;
}

.tuple_container {
  display: flex;
  height: fit-content;
  font-size: medium;
  border: solid;
  border-top: none;
  border-width: 1px;
  border-color: black;
  text-align: start;
  color: black;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tuple_container:not(:first-child):not(:nth-of-type(1)) {
  border-left: none;
}

.table_extension_container {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-items: flex-end;
  justify-content: flex-end;
  justify-self: start;
  margin-top: 0.5rem;
}

.table_extension_button {
  width: 1.60rem;
  height: 1.60rem;
  margin-right: 0.2rem;
  color: orange;
  background-color: rgba(87, 48, 129, 1);
  text-align: center;
  border-radius: 0.3rem;
  border: 1px solid rgba(203, 202, 206, 0.1);
  transition: background-color 0.3s ease;
  font-size: medium;
  font-weight: 500;
  align-items: center;
  justify-content: center;
}

.consult_observation {
  font-size: 0.8rem;
  color: black; /* Leve contraste com o fundo */
  text-align: left; /* Texto à esquerda */
  width: 60%; /* Ajusta a largura para não ocupar todo o espaço */
  padding-left: 0.2rem;
  padding-bottom: 0.1rem;
  font-family: 'Co Headline', sans-serif; /* Mesma fonte do h1 */
}

.topbarextension {
  width: 100%;
  height: fit-content;
  background-color: transparent;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 5px;
  box-sizing: border-box;
}

.table_extension_button:hover {
  cursor: pointer;
  background-color: rgba(87, 48, 129, 0.8);
}

.complete_table {
  display: flex;
  flex-direction: column;
  width: 70rem;
  height: 31.5rem;
  position: absolute;
  left: 24rem;
  top: 11.5rem;
  background-color: white;
  overflow: auto;
  border: 0.1rem solid grey;
  box-sizing: border-box;
}


.close_button {
  display: flex;
  width: fit-content;
  padding: 5px 8px;
  text-align: center;
  justify-content: center;
  background-color: transparent;
  color: #6e6e6e; 
  font-size: large;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; 
  border: 1px solid transparent; 
  margin-right: 1rem;
  margin-top: 0.5rem;
}

.close_button:hover {
  background-color: rgba(255, 0, 0, 0.7); 
  color: white;
  border: 1px solid rgba(255, 0, 0, 0.7); 
}

#menubutton {
  margin-right: 0.5%;
  width: 3rem; 
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  padding: 0;
}

.menuelement {
  width: 2rem; 
  height: 0.25rem; 
  background-color: #333; 
  opacity: 0.6; 
  transition: opacity 0.3s ease, background-color 0.3s ease;
  margin: 0.25rem 0; 
  border-radius: 0.125rem; 
}

#menubutton:hover {
  opacity: 1; /* Aumenta a opacidade ao passar o mouse */
  background-color: transparent;
  border-radius: 50%; /* Mantém o fundo circular */
  cursor: pointer;
  box-shadow: 0 0 0.5rem rgba(117, 111, 158, 0.5); /* Leve sombreado */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}


.operator-container {
  display: flex;
  align-items: center;
  width: min-content;
  min-width: fit-content;
  height: fit-content;
  transition: background-color 0.3s ease;
  background-color: transparent;
}

.operator-symbol {
  font-size: 3rem;
  display: flex;
  width: fit-content;
  height: 100%;
  align-items: center;
  justify-content: center;
  width: 3rem; 
  height: 3rem; 
}

.input-atributes {
  display: flex;
  box-sizing: border-box;
  border-radius: 2px;
  border: none;
  outline: none;
  width: 6rem;
  margin-bottom: 2%;
}

.attribute-value-container {
  display: flex;
  align-self: flex-end;
  border: none;
  padding-left: 0.2rem;
  margin: 0;
  box-sizing: border-box;
  width: fit-content;
  height: fit-content;
}

.relationArea {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
  min-width: fit-content;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
}

.simple_relation {
  display: flex;
  outline: none;
  border: none;
  font-size: 2rem;
  text-align: center;
  width: 5rem; 
  min-width: 5rem;
  padding: 0 5px; 
  box-sizing: content-box; 
  height: 100%;
  transition: width 0.2s ease; 
}

.simple_relation:focus::placeholder {
  color: #2d025e;
  font-weight: 400;
}

.relationArea > span:first-child {
  display: flex;
  font-size: 2rem;
  height: 100%;
  min-height: 100%;
  align-items: center;
  box-sizing: border-box;
}

.relationArea > span:last-child {
  display: flex;
  font-size: 2rem;
  height: 100%;
  min-height: 100%;
  align-items: center;
  box-sizing: border-box;
}

.complex_relation {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: fit-content;
}

.containerfade_createtable {
  height: 31.695rem;
  display: flex;
  width: 2rem;
  background-color: #431c6d;
  box-shadow: 
    inset -3px 0px 5px rgba(0, 0, 0, 0.2),  
    inset 0px 3px 5px rgba(0, 0, 0, 0.2),  
    inset 0px -3px 5px rgba(0, 0, 0, 0.2); 
}

.containerfade_maininterface {
  height: 47.8rem;
  display: flex;
  width: 2rem;
  background-color: #431c6d;
  box-shadow: 
    inset -3px 0px 5px rgba(0, 0, 0, 0.2),  
    inset 0px 3px 5px rgba(0, 0, 0, 0.2),  
    inset 0px -3px 5px rgba(0, 0, 0, 0.2); 
}

#create_table_container {
  justify-content: flex-start;
  display: none;
  width: 70rem;
  margin: 0 auto;
  border: 1px solid #ddd;
  background-color: white;
  height: 31.5rem;
  flex-direction: column;
  overflow: auto;
  z-index: 2000;
  
}

#create_table_container::-webkit-scrollbar-track {
  background: white; 
}

.attribute-input {
      display: flex;
      height: 3rem;
      align-items: center;
      margin-top: 1rem;
      overflow: hidden; 
      width: max-content;
      padding-left: 2.8rem;
      flex-shrink: 0;
}

.create_atribute_name
{           
            display: flex;
            height: 3rem;
            overflow: auto;
            background-color: #e1dbe5;
            width: 9.4rem;
            padding-left: 1rem;
            padding-right: 1rem;
            box-sizing: border-box;
            outline: none;
            border: none;
            color: #2d025e;
            font-weight: bold;
        }

.create_atribute_name::placeholder {
  color: #2d025e;
  font-weight: bold;
  text-align: start;
  justify-content: start;
  align-items: start;
}

.attribute_type {
          display: flex;
          width: 4.8rem;
          border: none;
          height: 3rem;
          text-align: center;
          align-items: center;
          justify-content: center;
          padding-right: 5px;
          color: #2d025e;
          font-weight: bold;
          background-color: #e1dbe5;
          margin-left: 0.3rem;
          outline: none;
}

.add-button {
        display: flex;
        color: #2d025e;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: large;
        transition: ease 0.5s;
        background-color: transparent;
        box-sizing: border-box;
        width: 1rem;
        margin-bottom: 0.3rem;
        height: 1rem;
      }

      .attribute-input_buttons{
        display: flex;
        width: 1rem;
        height: 3rem;
        margin-left: 0.9rem;
        margin-right: 0.9rem !important;
        background-color: transparent;
        box-sizing: border-box;
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .remove-button {
        display: flex;
        color: #2d025e;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: large;
        transition: ease 0.5s;
        background-color: transparent;
        box-sizing: border-box;
        width: 1rem;
        height: 1rem;
      }


.tuple_input {
  display: flex;
  height: 3rem;
  align-items: center;
  margin-top: 1%;
  overflow: hidden; 
  width: max-content;
  flex-shrink: 0;
}

.tuple_input>button {
  margin-right: 1%;
  background-color: transparent;
  flex-shrink: 0;
}

.tuple_input>button:hover {
  background-color: rgba(59, 49, 118, 0.7);
}

.create_tuple_element {
            display: flex;
            width: 14.5rem;
            height: 3rem;
            overflow: auto;
            background-color: #e1dbe5;
            box-sizing: border-box;
            padding-left: 1rem;
            padding-right: 1rem;
            outline: none;
            border: none;
            flex-shrink: 0;
            color: #2d025e;
            font-weight: bold;
}


.create_tuple_element::placeholder {
  color: #2d025e;
  font-weight: bold;
}

.create-table-name {
  width: 91.5%;
  height: fit-content;
  border: none;
  font-size: xx-large;
  padding-top: 1rem;
  padding-left: 0; 
  background-color: transparent;
  font-weight: bold;
  outline: none;
  top: 0;
  z-index: 100;
  background-color: white;
  border-bottom: 0.1rem solid grey;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
   color: #2d025e;
}

.create-table-name::placeholder {
  color: #2d025e;
  font-size: xx-large;
  text-indent: 0;
}

.create-db-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent;
  color: #2d025e;
  padding: 1rem 2rem;
  font-weight: bolder;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
  position: relative;
  height: 1rem;
  margin-bottom: 0.5rem;
}


.consultform_buttons_container > button:last-of-type {
  width: 9rem;
  height: fit-content;
  border-color: transparent;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: white;
  margin-bottom: 0.5rem;
}

.consultform_buttons_container > button:nth-of-type(2) {
  background-color: forestgreen !important;
}

.consultform_buttons_container > button:nth-of-type(2):hover {
  background-color: #2E9A2E !important;
}

.consultform_buttons_container > button:first-of-type {
  margin-right: 0.5rem;
  width: 20rem;
}

.create-db-button::after {
  content: '';
  position: absolute;
  bottom: 0; 
  left: 50%;
  width: 0;
  height: 0.125rem;
  background-color: #2d025e;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.create-db-button:hover::after {
  width: 75%; 
}
.create-db-button .icon-arrow {
  color: forestgreen;
  margin-right: 1rem;
  font-weight: bolder;
  font-size: 1rem;
}

.buttons_container_for_table_container {
  position: sticky;
  bottom: 0;
  left: 0;
  min-width: 100%;
  background-color: white;
  display: flex;
  justify-content: flex-end;
  height: 2.45rem;
  z-index: 100;
}

.create_table_delete_button {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent;
  color: #2d025e;
  padding: 1rem 2rem;
  font-weight: bolder;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: fit-content;
  position: relative;
  height: 1rem;
  margin-bottom: 0.2rem;
}

.create_table_delete_button .icon-trash {
  color: red; 
  margin-right: 10px; 
  font-weight: bolder;
  font-size: medium;
}

.create_table_delete_button::after {
  content: '';
  position: absolute;
  bottom: 0; 
  left: 50%;
  width: 0;
  height: 0.125rem;
  background-color: #2d025e;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.create_table_delete_button:hover::after {
  width: 70%; 
}

#close-create-table {
  display: flex;
  width: fit-content;
  padding: 5px 8px;
  text-align: center;
  justify-content: center;
  background-color: transparent;
  color: #6e6e6e; 
  font-size: large;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease; 
  border: 1px solid transparent; 
  margin-bottom: 7rem;
  margin-right: 1rem;
}

.close-create-table-container {
  width: 100%;
  display: flex;
  top: 0; 
  left: 0;
  justify-content: flex-end;
  background-color: white;
  align-items: center;
  padding-top: 4rem;
  position: sticky;
  flex-direction: row;
  height: 4rem;
}

#close-create-table:hover {
  background-color: rgba(255, 0, 0, 0.7); 
  color: white;
  border: 1px solid rgba(255, 0, 0, 0.7); 
}

#db-config-container {
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}



#tab_display {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: visible; 
  width: auto; 
  min-width: 100%; 
  padding-bottom: 2rem;
}

.loader_circle {
  display: flex;
  position: absolute;
  top: 47%;
  left: 45%;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 0.3rem solid rgba(203, 202, 206, 1);
  border-top-color:  transparent;
  animation: loader-circle 1s linear;
}

@keyframes loader-circle {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.create_db_loadercircle {
  display: flex;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  align-items: center;
  border-radius: 50%;
  border: 0.3rem solid rgba(203, 202, 206, 1);
  border-top-color:  transparent;
  animation: loader-circle 1s linear;
}

@keyframes create_db_loadercircle {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

.remove_tuple_action_container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  width: 100%;
  min-width: 100%;
  height: min-content;
  box-sizing: border-box;
  padding-right: 2%;
  padding-bottom: 2%;
}

.delete_tuple_checkbox {
  align-items: center;
  justify-items: center;
  border:  1px solid #ccc;
  width: 30%;
  height: 30%;
  margin-right: 2%;
  box-sizing: border-box;
  background-color: #1e7a1e;
}

table {
  width: fit-content;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 0.8rem;
  height: 40%;
}

th, td {
  padding: 3px 5px; 
  text-align: left;
  line-height: 1.5; 
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

tr {
  box-sizing: border-box;
}

th {
  background-color: #343a40;
  color: white;
  border: 1px solid #ddd;
}

td {
  border: 1px solid #ddd;
  background-color: white;
}

.text_query {
  display: flex;
  align-items: center; 
  width: fit-content; 
  white-space: nowrap; 
  text-overflow: ellipsis;
}

.text_query_operator {
  font-size: 2rem;
  display: flex; /* Flex allows better control over alignment */
  align-items: center; /* Center operator symbol vertically */
  justify-content: center;
  margin-right: 5px; /* Space between operator and attributes */
  margin-bottom: 0.3rem;
}

.text_query_attributes {
  font-size: 1rem;
  display: flex; /* Change to flex to keep alignment consistent */
  align-items: center; /* Vertical alignment for attributes */
  margin-right: 5px;
  margin-top: 0.3rem;
}

.text_query_relation {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  
}

.text_query_parentheses {
  font-size: 1.5rem;
  display: flex;
  align-items: center; 
 
}

.text_query_operator,
.text_query_attributes,
.text_query_relation,
.text_query_parentheses {
  line-height: 1;
}


.consultform_buttons_container {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: flex-end;
  margin-top: 0.5rem;
}

.variable {
  min-width: 10rem;
  width: 10rem;
  align-items: center;
  justify-content: center;
  font-size: larger;
}

.text_query_historic_container {
  margin-top: 1rem;
  height: fit-content;
  max-height: 35%;
  overflow: auto;
  margin-bottom : 1rem;
  width : 90%;
  flex-direction: column;
  white-space: nowrap; 
  display: flex;
  text-overflow: ellipsis;
  border-radius: 1rem;
  background-color: rgba(203, 202, 206, 0.1);
}


.historic_buttons {
  width: 1.8rem;
  height: 1.8rem;
  background-color: transparent;
  border: none;
  margin-right: 1rem;
  border-radius: 0.2rem;
}

.historic_buttons i {
  color: rgb(105, 105, 105);
}

.historic_buttons:nth-child(1):hover {
   color: white;
   background-color: forestgreen;
}

.historic_buttons:nth-child(2):hover {
   color: white;
   background-color: rgb(165, 0, 0);
}

.historic_buttons:hover i {
  color: white;
}

.historic_buttons:hover {
  cursor: pointer;
}

.line_button {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  color: rgb(105, 105, 105);
  margin-right: 1rem;
  margin-left: 1rem;
  border-radius: 0.2rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-size: large;
  background-color: rgba(220, 220, 220, 1);
}

.line_button:hover {
  color: white;
  background-color: rgb(105, 105, 105) !important;
  cursor: pointer;
}

.line_button_container {
  display: flex;
  width: fit-content;
  max-width: 50%;
  height: 100%;
  align-items: center;
  justify-content: flex-start;
  margin-right: 1rem;
}

.historic_buttons_container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: sticky; 
  bottom: 0; 
  z-index: 10; 
  padding: 0.5rem 0;
  width: 100%;
}

.historic_container_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; 
  top: 0;
  z-index: 10; 
  padding: 0.5rem 0;
  width: 100%;
}

.query_number {
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: larger;
  width: fit-content;
  height: fit-content;
  margin-left: 1rem;
  color: black;
}

.query_date {
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: medium;
  width: fit-content;
  height: fit-content;
  margin-right: 1rem;
}

.container_case_overflow {
  display: flex;
  width: 100%;
  height: fit-content;
  align-items: center;
  justify-content: flex-start;
  margin-left: 2rem;
  margin-top: 1rem;
  padding-left: 0.1rem;
  padding-right: 0.1rem;
}

.container_case_overflow .text_query {
  overflow: visible;
}

.horizontalelipses {
  display: flex;
  height: 100%;
  width: fit-content;
  text-align: end;
  font-size: large;
  align-items: center;
  margin-left: 0.2rem;
}

.vertical_elipses {
  display: flex;
  height: 1rem;
  width: fit-content;
  align-items: center;
  text-align: center;
  margin-left: 4.5rem;
  margin-top: 0.4rem;
}

.change_db {
  display: inline-block;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.change_db i {
  width: fit-content;
  height: fit-content;
  margin-right: 0.5rem;
  font-size: large;
  font-weight: 600;
  color: #2d025b;
}

.change_db input[type="file"], .change_db button {
  display: none; 
}

.tooltip {
  position: absolute;
  background-color: rgba(59, 49, 118, 1); 
  color: #fff; 
  padding: 0.5rem;
  border-radius: 0.3125rem; 
  font-size: 0.9rem;
  font-family: 'Co Headline', sans-serif;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2); 
  white-space: normal; 
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease 0.5s, visibility 0.3s ease 0.8s; 
  width: fit-content;
  max-width: 40rem; 
  height: auto; 
}

.tooltip::before {
  content: '';
  position: absolute;
  top: -0.6rem;
  left: 2rem;
  border-width: 0 0.625rem 0.625rem 0;
  border-style: solid;
  border-color: transparent transparent rgba(59, 49, 118, 0.9) transparent;
}

.operator-symbol:hover {
  cursor: pointer;
}

.variable {
  font-size: 2rem;
  align-items: center;
  justify-content: center;
}

.variable::placeholder {
  font-size: 1.3rem;
  text-align: center;
  align-items: center;
  margin-bottom: 0.5rem;
  justify-content: center;
}

@keyframes pulse {
  0% {
      transform: scale(1);
      background-color:  rgba(220, 220, 220, 1);
  }
  50% {
      transform: scale(1.1);
      background-color: rgb(105, 105, 105); 
      color: white;
  }
  100% {
      transform: scale(1);
      background-color: rgba(220, 220, 220, 1); 
  }
}

.pulse {
  animation: pulse 0.5s ease-in-out infinite;
}

.db-entry-prompt {
  font-family: 'Co Headline', sans-serif; 
  font-size: 1.5rem;
  font-weight: 400; 
  color: #CBCACE; 
  margin-bottom: 0.2rem;
  margin-right: 1rem;
  text-align: center; 
  opacity: 0.85; 
  margin-top: 1rem;
}

#createtablespace {
  display: none;
  flex-direction: column;
  width: fit-content;
  height: 41rem;
}

#tabdisplayspace {
  display: none;
  flex-direction: row;
  width: fit-content;
  height: fit-content;
}

.hypercontainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hyperhorizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}



.hidden {
  display: none !important;
}


#custom-alert-overlay {
  position: fixed;
  top: 2rem; 
  left: 48%;
  transform: translateX(-50%); 
  width: auto;
  z-index: 1000;
  
}


#custom-alert {
  color: white;
  margin-top: 0.9rem;
  padding: 1.25rem; 
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  text-align: center;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  max-width: 90%; 
  width: 30rem; 
  word-wrap: break-word;
  position: relative;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  margin-left: 2rem;
}


#close-button {
  position: absolute;
  top: 0.5rem; 
  right: 0.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 1rem; 
  cursor: pointer;
}

#progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0.3125rem; 
  background-color: rgba(255, 255, 255, 0.7);
  animation: progress 3s linear forwards;
  width: 100%;
}


@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}


.success {
  background-color: #4CAF50; 
}


.error {
  background-color: #f44336; 
}

.tutorial-container {
  background-color: #2d025b;
  padding-top: 0.5rem;
  width: 100%;
  height: fit-content;
  justify-content: center;
}

.tutorial-title {
  text-align: left; 
  font-size: 2rem;
  color: #CBCACE;
  font-family: 'Co Headline', sans-serif;
  margin-bottom: 2rem;
  padding-left: 47.5rem; 
}

.tutorial-section {
  margin-bottom: 1.5rem;
  background-color: rgba(0, 0, 0, 0.5); 
  padding: 1rem;
  border-radius: 5px;
}

.tutorial-section-title {
  font-size: 1.5rem;
  color: #CBCACE; 
  margin-bottom: 0.5rem;
}

.tutorial-text {
  font-size: 1rem;
  color: #CBCACE; 
  line-height: 1.6;
}

.maincontainer {
  margin-bottom: 0;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem; 
}

video {
  width: 60rem !important;
  height: 40rem !important;
}

