:root {
	--off-white: #f2f3f4;
	--off-black: #3d3d3d;
}

html {
	background-color: var(--off-white);
	color: var(--off-black);
}

body {
	width: 100%;
	height: 100%;
	margin: 0 0 10vh 0;

	font-family: 'Palatino Linotype', Palatino, "Book Antiqua", serif;
}

a {
	display: inline-block;
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--off-white);
	background-color: var(--off-black);
}

a:has(> .container-title) {
	width: fit-content;
	padding: 0.5em;
 	margin-left: -0.5em;
}

button {
	font-family: inherit;
	font-size: inherit;
	background-color: inherit;
}

footer {
	width: 50%;
	margin: 1rem auto 0 auto;
}

footer a:hover {
	background-color: var(--off-white);
	color: var(--off-black);
}

footer h1 {
	font-size: 18px;
	margin: 0 0 0.5rem 0;
}

footer h1::before, footer h1::after {
	background-color: var(--off-white);
}

h1 {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 2rem 0 0 0;
	position: relative;
}

h1::before,
h1::after {
  content: "";
  flex: 1; /* lines grow to fill space on either side */
  height: 1px;
  background-color: var(--off-black);
}
h1::before {
	margin-right: 1rem;
}
h1::after {
	margin-left: 1rem;
}

h3 {
	margin: 0;
}

main {
	width: 50%;
	max-width: 700px;
	margin: 2rem auto 1.5rem auto;

	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

p {
	margin: 0;
}

ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
ul.two-column {
	columns: 2;
  column-gap: 1rem;
}

.accordion-header {
	width: 100%;
	text-align: left;
	border: none;
	padding: 0.75rem 1rem;
	cursor: pointer;
}

.accordion-panel {
	height: 0;
	overflow: hidden;
	transition: height 300ms ease;
}

.accordion-content {
	padding: 0.3rem 1rem;
	background-color: var(--off-black);
	color: var(--off-white);
}

.container {
	margin-top: 1rem;
}

.container-header {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.container-meta {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.container-title {
	margin: 0;
	padding: 0;
}

.download-button {
	font-size: 0.9rem;
}

.icon {
  max-height: 200px;
  max-width: 200px;
  width: auto;
  height: auto;
  margin: 0 auto 2rem auto;
}

.icon-full-width {
	max-width: 100%;
	width: 100%;
}

.role {
  position: relative; /* needed for ::before positioning */
  margin: 1rem 0;
  padding-left: 0.5rem;
}
.role::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;                   /* start at the left edge of the container */
  width: 2px;                /* thickness of the line */
  height: 100%;
  background-color: var(--off-black);
}

.skills-column {
  break-inside: avoid;
	margin-bottom: 1em;
}

.skills-grid {
  columns: 3;
  gap: 1.5rem;
}

.skills-list li::after {
    content: ",";
}

.skills-list li:last-child::after {
    content: "";
}

.social-media-icons {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: center;
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper .tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: var(--off-black);
  color: var(--off-white);
  text-align: center;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;

  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);

  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.tooltip-wrapper .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
}

.tooltip-wrapper:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 900px) {
	main {
		width: 70%;
	}

	footer {
		width: 70%;
	}
}

@media (max-width: 720px) {
	main {
		width: 75%;
	}

	footer {
		width: 75%;
	}
}

@media (max-width: 600px) {
	main {
		margin: 1rem auto 1rem auto;
		max-width: 100%;
		width: 90%;
	}

	footer {
		width: 90%;
	}

	.skills-grid {
	  columns: 2;
	}
}

@media (max-width: 440px) {
	.container-meta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 350px) {
	.skills-grid {
  	columns: 1;
	}
}