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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f5f6fa;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 2rem;
  margin-bottom: 2rem;
}
header h1 {
  margin-bottom: 1rem;
}
header .icon:visited {
  color: white;
}
header .search-container {
  position: relative;
  max-width: 600px;
}
header .search-container input {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}
header .search-container #search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
}
header .search-container #search-results .search-result {
  padding: 1rem;
  border-bottom: 1px solid #dcdde1;
}
header .search-container #search-results .search-result:last-child {
  border-bottom: none;
}
header .search-container #search-results .search-result h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
header .search-container #search-results .search-result a {
  color: #3498db;
  text-decoration: none;
}
header .search-container #search-results .search-result a:hover {
  text-decoration: underline;
}

.icon {
  display: inline;
  text-decoration: none;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.event-card:hover {
  transform: translateY(-2px);
}
.event-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}
.event-card .view-details {
  display: inline-block;
  margin-top: 1rem;
  color: #3498db;
  text-decoration: none;
}
.event-card .view-details:hover {
  text-decoration: underline;
}

.event-details {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.event-details h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}
.event-details h2 .icon, .event-details h2 .icon:visited {
  color: #2c3e50;
}
.event-details .description {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.properties {
  overflow-x: auto;
}
.properties table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border-left: 1px solid #2c3e50;
}
.properties table th, .properties table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #2c3e50;
}
.properties table th {
  background-color: #2c3e50;
  color: white;
}
.properties table .desc {
  width: 22em;
}
.properties table tr:hover {
  background-color: rgb(251.8, 252.12, 253.4);
}
.properties table .code {
  background-color: #f5f6fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}
.properties table .codeblock {
  display: block;
  white-space: pre-wrap;
  width: 22em;
  word-wrap: normal;
}
.properties table .examples {
  list-style: none;
}
.properties table .examples li {
  margin-bottom: 0.5rem;
}
.properties table .examples li:last-child {
  margin-bottom: 0;
}
.properties table table {
  border-left: 1px solid #8e44ad;
}
.properties table table th, .properties table table td {
  border-bottom: 1px solid #8e44ad;
}
.properties table table th {
  background-color: #8e44ad;
  color: white;
}
.properties table table table {
  border-left: 1px solid #c0392b;
}
.properties table table table th, .properties table table table td {
  border-bottom: 1px solid #c0392b;
}
.properties table table table th {
  background-color: #c0392b;
}
.properties table table table table {
  border-left: 1px solid #16a085;
}
.properties table table table table th, .properties table table table table td {
  border-bottom: 1px solid #16a085;
}
.properties table table table table th {
  background-color: #16a085;
}
.properties table table table table table {
  border-left: 1px solid #d35400;
}
.properties table table table table table th, .properties table table table table table td {
  border-bottom: 1px solid #d35400;
}
.properties table table table table table th {
  background-color: #d35400;
}

nav {
  margin-top: 1rem;
}
nav a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
}
nav a:hover {
  opacity: 1;
  text-decoration: underline;
}