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

a {
  text-decoration: none;
  color: white;
}

.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;
}

#sidebar {
  width: 300px;
  min-height: 100%;
  background-color: #191919;
  color: white;
  padding: 20px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
}

/* WRAPPER SEZIONI E FRECCE */
.section-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 240px;
  text-align: center;
  padding: 0 10px;
  color: rgb(255, 245, 233);
}

.explanation-wrapper,
.conflicts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

#graph-explained,
#conflicts,
#country-intro {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


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

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

#closure-body {
  font-weight: bold;
}

.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;
}


/* BOTTONE 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 IMPUNITY */
.other-visualization-wrapper {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.other-visualization-button {
  width: 100%;
  max-width: 200px;
  padding: 12px 28px;
  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;
}

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


.other-visualization-body {
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: white;
  text-align: center;
  line-height: 1.2;
}

/* link per tornare ai picchi */
.back-to-peaks {
  position: absolute;
  bottom: 15px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: white;
  text-align: center;
  line-height: 1.2;
}