:root {
  --primary: rgba(256, 256, 256, 1.0);
  --secondary: rgba(0, 0, 0, 1.0) 
}

.main {
  font-family: monospace;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.top-bar {
  display: flex;
  align-items: top;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--primary);
  padding: 10px 0px 10px 0px;
  margin-bottom: 10px;
}

.top-bar-text-right {
  text-align: right;
  padding-right: 20px;
}

.top-bar-text-center{
  text-align: center;
}

.top-bar a {
  color: var(--primary)
}

.portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
}

.text {
  margin: 0 20px 0 20px;
  text-align: left;
}

.projects {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 10px;
}

.project {
  font-size: large;
  position: relative;
  margin: 0 10px 0 10px;
  border-style: solid;
}

.project a {
  color: var(--secondary);
}

.project::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.project:hover::after {
  background-color: var(--secondary);
}

.project-image {
  display: block;
  width: 192px; 
  height: 192px;
}

.project-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(256, 256, 256, 0.7);
}

.definition {
  border-style: solid;
  border-radius: 6px;
  margin: 0 20px 0 20px;
  padding: 5px;
}

h1, h2, h3, h4{
  margin: 0;
  padding: 3px;
}

code {
  color: var(--primary);
  padding: 0.2em 0.4em;
  background-color: var(--secondary);
  border-radius: 3px;
  font-size: 85%;
}

pre code {
  background-color: var(--secondary);
  margin: 0 10px 0 10px;
  padding: 10px;
  display: block;
  overflow-x: auto;
  border-radius: 6px;
}
