* {
  box-sizing: border-box;
  padding: 0px;
  margin: 0px;
}

body {
  margin-left: 5px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
#main-header {
  border-bottom: solid 1px black;
  padding: 20px 5px 20px 5px;
}

#introduction {
  display: flex;
  flex-direction: column;
  padding: 10px 0px 10px 0px;
  align-items: center;
  border-bottom: solid 1px black;
}
#introduction h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}
#navigation-links {
  display: flex;
  gap: 10px;
}
#all-elements-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
#show-elements-btn {
  padding: 5px 10px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

.example-container {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  gap: 10px;
  margin: 5px 0px 5px 0px;
}
table {
  border-collapse: collapse;
  width: 100%;
}
table,
th,
td {
  border: 1px solid black;
}
#example-paragraphs p {
  word-break: break-word;
  max-width: 250px;
}
/* Dialog styles */
dialog {
  margin: auto;
  padding: 30px;
  width: 600px;
  border: none;
  border-radius: 8px;
  height: 90%;
}
#content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
}
#tags {
  width: 450px;
  overflow: auto;
  font-size: 1.2rem;
}
#close-dialog {
  position: absolute;
  top: 0.6rem;
  right: 0.1rem;
  background: transparent;
  color: black;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}
#search-tags {
  padding: 5px;
  font-size: 1rem;
  width: 60%;
  border-radius: 5px;
  height: 40px;
}
#search-tags:focus {
  outline: 2px solid blue;
}
#search-sort {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin: 5px;
  width: 100%;
}
#sort-select {
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  background: white;
  color: black;
  cursor: pointer;
  width: 200px;
  height: 30px;
}

#sort-select:hover {
  border-color: #888;
}
#main-footer {
  border-top: solid 1px black;
  padding: 20px 5px 20px 5px;
  display: flex;
  justify-content: center;
}
img {
  max-width: 400px;
  height: auto;
}
