* {
  box-sizing: border-box;
}

header {
  position: fixed; /* Fixes the header at the top */
  top: 0; /* Stick the header to the top of the page */
  left: 0;
  width: 100%; /* Make the header stretch across the width */
  z-index: 1000; /* Ensure the header is above other content */
}

body {
  font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
  font-size: 16px;
}

a {
  display: inline-block;
}

.center {
  border: 5px solid;
  margin: auto;
  margin-top: 160px;
  width: 20%;
  padding: 10px;
  text-align: center;
}

.bigcontainer {
  height: 70px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;         /* Vertically center children */
  justify-content: center;     /* Center title horizontally */
  background-color: #4b6c9e;
  /* background-color: white; */
}

.logo {
  position: absolute;
  top: 0px;
  left: 30px;                  /* 50px from left */
  /* padding: 5px; */
}

.titulo {
  font-size: 20px;
  font-weight: 600;
  /* color: #28374B; */
  color: white;
}

.content {
  position: absolute;
  top: 120px; /* Iniciar logo abaixo do cabeçalho */
  bottom: 30px; /* Parar logo acima do rodapé */
  left: 0;
  right: 0;
  overflow-y: auto; /* Rolagem vertical no conteúdo */
  padding: 20px;
  overflow-x: hidden;
}

.button_project {
  width: 300px;
  height: 100px;
  border-radius: 20px; /* Borda arredondada */
  border: 5px solid black;
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  background-color: #007bff;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin: 20px;

  white-space: normal;     /* ✅ Allow wrapping */
  overflow: hidden;        /* ✅ Prevent overflow */
  text-align: center;      /* ✅ Center multiline text */
  display: flex;           /* ✅ Flexbox for vertical alignment */
  justify-content: center; /* ✅ Horizontally center */
  align-items: center;     /* ✅ Vertically center */
  padding: 10px;           /* ✅ Optional padding */
}

/* Efeito hover */
.button_project:hover {
  background-color: #0056b3; /* Azul mais escuro ao passar o mouse */
}

.content p {
  line-height: 1.5;
  margin-top: 20px;
}

.footer {
  position: fixed;
  margin-left: 0px;
  bottom: 0;
  left: 0px;
  width: 100%;
  height: 30px; /* Altura do rodapé */
  background-color: gainsboro;
  text-align: center;
  line-height: 30px;
  z-index: 1000; /* Para garantir que o rodapé esteja acima do conteúdo */
}

.navbar {
  padding-left: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #28374B;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 10px;
  text-decoration: none;
}

.nav-items {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-items li {
  margin-right: 20px;
}

/* Push the .right item to the far right */
.nav-items .right {
  margin: auto;
  margin-right: 0;
  position: absolute;
  right: 0;
}

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 10px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: #465c71;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #28374B;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: white;
  padding: 10px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #465c71;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.empresa {
  font-size: medium;
  padding-right: 30px;
  text-align: center;
  align-items: center;
  color: white;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Calibri, 'Gill Sans', 'Gill Sans MT', 'Trebuchet MS', sans-serif;
  font-size: 16px;
}

.container {
  position: absolute;
  top: 120px;
  height: calc(100vh - 120px);
  display: flex;
  width: 100%;
}

.left-panel {
  width: 600px;
  background: white;
  overflow: auto;
  padding: 10px;
}

.resizer-vertical {
  width: 5px;
  background: #888;
  cursor: col-resize;
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.top-right {
  flex: 2;
  background: #eee;
  position: relative;
  overflow: auto;
}

.resizer-horizontal {
  height: 5px;
  background: #888;
  cursor: row-resize;
}

.bottom-right {
  /* margin-left: 20px; */
  flex: 1;
  background: white;
  position: relative;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.row-horizontal {
  margin-top: 10px;
  display: flex;
  gap: 20px;
  justify-content: space-around;
}

.fixed-box {
  
  width: 700px;
  height: 380px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
}

.bottom-right table {
  margin-top: 20px; /* or any value you like */
}

#map {
  width: 100%;
  height: 100%;
}

.graph-container {
  display: flex;
  justify-content: center;
}

#perfilCanvas {
  width: 1500px;
  height: 300px;
  display: block;
}

.controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.maximize-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  background: black;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
}

.irpara-btn {
  text-align: right;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  background: black;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
}

.irpara-txt {
  position: absolute;
  top: 5px;
  right: 105px;
  width: 100px;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 12px;
}

.play-button {
  position: absolute;
  top: 8px;
  right: 210px;
  background-color: black;
  color: white;
  border: none;
  font-size: 12px;
  /* border-radius: 50%; */
  width: 40px;
  height: 20px;
  cursor: pointer;
  align-items: center;
}

.select_drenagem {
  position: absolute;
  top: 8px;
  right: 210px;
  width: 200px;
}

.hidden {
  display: none;
}

.direita {
  float: right;
  cursor: pointer;
  font-size: 0.65em;
  margin-top: 10px;
}

.ficha_tecnica {
  display: flex;
  align-items: center;
  gap: 8px;            /* space between text and button */
  position: relative;
  font-size: 28px;
  font-weight: bold;
  margin-left: 10px;
  margin-top: 20px;
  color: #333;
}

.ficha_tecnica a{
  flex: 1 1 auto;      /* text can wrap; takes remaining space */
  color: #333;
  text-decoration: none;
}

.ficha_tecnica a:hover {
  text-decoration: underline;
}

.disciplina {
  position: relative;
  font-size: 28px;
  font-weight: bold;
  margin-left: 10px;
  margin-top: 20px;
  color: #333;
}

.disciplina a {
  color: #333;
  text-decoration: none;
}
.disciplina a:hover {
  text-decoration: underline;
}

#NomeDescObra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 28px;
  font-weight: bold;
}

.links {
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  margin-left: 20px;
}   
.links a {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  margin-right: 15px; /* espaçamento entre os links */
  margin-bottom: 5px;
}
.links a:hover {
  text-decoration: underline;
}

.button_import {
  width: 50px;
  height: 50px;
  border-radius: 20px; /* Borda arredondada */
  border: 5px solid black;
  font-size: 24px;
  font-weight: bold;
  color: white;
  background-color: #007bff;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;

  white-space: normal;     /* ✅ Allow wrapping */
  overflow: hidden;        /* ✅ Prevent overflow */
  text-align: center;      /* ✅ Center multiline text */
  display: flex;           /* ✅ Flexbox for vertical alignment */
  justify-content: center; /* ✅ Horizontally center */
  align-items: center;     /* ✅ Vertically center */
}

.button_import:hover {
  background-color: #0056b3; /* Azul mais escuro ao passar o mouse */
}

table {
  /* padding: 20px; */
  background-color: #f9f9f9;
  /* margin-top: 20px; */
  border-radius: 8px;
}

th,td {
    padding: 8px;
    color: #054893;
    text-align: center;
}

tr {max-height: 50px;}

th {
  background-color: #054893;
  color:#ffffff;
}

thead {
  position: sticky;
  top: 0;
  background-color: #054893;
  color:#ffffff;
}

tfoot td {
  background-color: #054893;
  font-weight: bold;
  color:#ffffff;
}

caption {
  background-color: #28374B;
  color:#ffffff;
  font-size: large;
  font-weight: bold;
  padding: 10px;
}

.table-container {
  margin:auto;
  /* width: 100%; */
  border-collapse: collapse;
  display: none;
}

.tabela-container {
  width: fit-content;
  border: 1px solid #ccc;
}

.clickable {
  cursor: pointer;
}

#overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 10px;
  border-radius: 8px;
  font-family: sans-serif;
}

.iluminada {
  background-color: yellow;
}

#legend {
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    max-width: 100%;
    align-items: center;
}

.legend-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-color {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border: 1px solid #000;
}

