html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #191919;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
}

a {
  text-decoration: none;
}

.red {
  color: red;
  font-weight: bold;
}

.bold {
  font-weight: bold;
}


/* HEADER */

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 0 5%;
  box-sizing: border-box;
  z-index: 1000;
  background-color: #191919;
}

.logo {
  color: rgb(255, 245, 233);
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: -1px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-link {
  color: rgb(255, 245, 233);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.nav-menu > .nav-link {
  margin-left: 40px;
}

.nav-link:hover {
  text-decoration: underline;
}


/* CONTAINER E SIDEBAR */

#container {
  display: flex;
  width: 100vw;
  height: calc(100vh - 60px);
  padding-top: 60px;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #191919;
}

#sketch-container {
  flex: 1;
  position: relative;
}

#sketch-container canvas {
  top: 80px !important;
  position: absolute;
}

#sidebar {
  width: 300px;
  background-color: #191919;
  color: white;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  margin: 0;
  position: relative;
}


/* CORPO */

#headline {
  padding: 28px;
  display: flex;
  align-items: center;
  text-align: center;
  z-index: 20;
  font-family: 'JetBrains Mono', monospace;
  color: rgb(255, 245, 233);
  font-size: 17px;
}

.navigation-arrows {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  justify-content: center;
}

.arrow {
  padding: 5px 17px;
  border: 2px solid rgb(255, 245, 233);
  background-color: rgba(0,0,0,0.2);
  border-radius: 2px;
  width: 30px;
  font-size: 15pt;
  font-family: "JetBrains Mono", monospace;
  color: rgb(255, 245, 233);
  cursor: pointer;
  display: inline-flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.close-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: white;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, text-decoration 0.2s;
}

.close-label.visible {
  opacity: 0.5;
  visibility: visible;
}

.close-label.visible:hover {
  opacity: 1;
  text-decoration: underline;
}

#headline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 100%;
}

#closure-wrapper {
  display: none;
  text-align: center;
  color: rgb(255,245,233);
  font-family: 'JetBrains Mono', monospace;
  padding: 30px;
}

.section-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  height: 100%;
  text-align: center;
  padding: 20px;
  color: rgb(255, 245, 233);
  display: none;
  font-family: 'JetBrains Mono', monospace;
}

.section-title {
  visibility: hidden;
  font-size: 22px;
  font-weight: bold;
}

.section-body {
  visibility: hidden;
  font-size: 15px;
  line-height: 1.5;
}


/* FILTRO*/

.filter-dropdown {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 260px;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 28px;
  background-color: #191919;
  color: white;
  border: 2px solid red;
  border-radius: 60px;  
  gap: 10px;     
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  text-align: center;
  box-sizing: border-box;   
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  border-color: darkred;
}

#dropdown-arrow {
  font-size: 16pt;
  position: relative;
  top: -5px;
}

.filter-input:focus {
  outline: none;              
  border: 1px solid red;      
  box-shadow: 0 0 0 1px red; 
}

.filter-input::placeholder {
  color: rgba(80, 79, 79, 0.3);
}

#death-counter-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

#death-counter-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: white;
  margin: 0;
}

#death-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: red;
  margin: 0;
  padding: 0;
  border: none;
}

#filter-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 260px;
  max-height: 150px;
  overflow-y: auto;
  background-color: #191919;
  border: 1px solid red;
  border-radius: 12px;
  padding: 5px 0;
  z-index: 999;
}

#filter-panel .country-option {
  padding: 10px 16px;
  color: white;
  cursor: pointer;
}

#filter-panel .country-option:hover {
  background-color: #800000;
}

#search-input {
 display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 40px);
  padding: 12px 28px;
  background-color: #191919;
  color: white;
  border: 2px solid red;
  border-radius: 60px;    
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  text-align: center;
  position: relative;
  box-sizing: border-box;    
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 100;
  margin-left: 8px;      
}

#search-input:focus {
  outline: none; 
}


/* BOTTONE */

#other-visualization-wrapper {
  display: none;
}

.other-visualization-button {
  position: absolute;
  bottom: 5px;
  left: 20px;
  width: calc(100% - 40px);
  padding: 12px 28px;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  text-align: center;
  background-color: #a00000;
  color: white;
  border-radius: 60px;
  border: 1px solid #ff0000;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 101; /* aggiunto */
}

.other-visualization-button:hover {
  background-color: #cc0000;
}

.other-visualization-body{
  position: absolute;
  bottom: 70px; 
  left: 20px;
  width: calc(100% - 40px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: white;
  text-align: center;
  line-height: 1.2;
}
